/* public/css/cajepy-theme.css - Tema personalizado CAJEPY */

:root {
    /* Colores principales del logo */
    --purple-dark: #3a2a5a;
    --purple-darker: #2d2043;
    --purple-darkest: #1a1332;
    
    --pink-primary: #e91e63;
    --pink-light: #ff4081;
    --pink-gradient: #ff006e;
    
    --orange-primary: #ff6b35;
    --orange-light: #ff9100;
    --orange-gradient: #ffa726;
    
    --blue-primary: #00bcd4;
    --blue-light: #3fb8ff;
    --blue-gradient: #29b6f6;
    
    /* Colores de UI */
    --text-light: #ffffff;
    --text-muted: #9a92b0;
    --bg-dark: #1a1332;
    --bg-card: rgba(58, 42, 90, 0.5);
    --shadow-purple: 0 10px 30px rgba(233, 30, 99, 0.3);
    --shadow-blue: 0 10px 30px rgba(0, 188, 212, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--purple-darkest);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Fondo con patrón de casino */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(233, 30, 99, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}
/* Contenedores principales - prevenir overflow */
main,
section,
header,
footer,
nav {
    overflow-x: hidden;
    max-width: 100%;
}

/* Container de Bootstrap - ajuste específico */
.container,
.container-fluid {
    overflow-x: hidden;
    padding-left: 15px;
    padding-right: 15px;
}

/* Para móviles específicamente */
@media (max-width: 768px) {
    /* Prevenir overflow en el body solo en móvil */
    body {
        overflow-x: hidden;
    }
    
    /* Asegurar que el ticker no desborde */
    .logo-ticker {
        overflow: hidden;
        width: 100%;
    }
    
    /* Hero contenido */
    .hero-section {
        overflow: hidden;
    }
}
/* Navigation Bar Profesional */
.navbar {
    background: rgba(26, 19, 50, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    padding: 0.7rem 0;
    background: rgba(26, 19, 50, 1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-light) !important;
    display: flex;
    align-items: center;
    gap: 15px;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-toggler{
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.navbar-brand img {
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.brand-text {
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 400;
    font-size: 0.95rem;
    margin: 0 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.9;
}

.navbar-nav .nav-link:hover {
    color: var(--blue-light) !important;
    opacity: 1;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 50%;
    background: var(--blue-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 70%;
}

/* Botón especial en navbar */
.navbar-nav .btn {
    margin-left: 1rem;
    padding: 8px 24px;
    font-size: 0.9rem;
}

/* Hero Section CAJEPY */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(26, 19, 50, 0.9) 0%, rgba(42, 32, 60, 0.7) 100%), url('/images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* --- Imagen decorativa del lado derecho con animación --- */
.hero-section { position: relative; } /* ya la tienes, lo dejo por si acaso */

.hero-section::after { z-index: 0; }  /* tu fondo de símbolos sigue al fondo */

/* NUEVO: imagen animada */
.hero-section::before{
  content: "";
  position: absolute;
  top: 50%;
  right: clamp(16px, 6vw, 80px);
  transform: translate(80px, -50%) scale(0.96) rotate(4deg); /* estado inicial (fuera de escena) */
  width: min(34vw, 520px);
  aspect-ratio: 1 / 1;
  background: url("/images/logo.png") center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
  /* 1) entra, 2) luego flota para siempre */
  animation:
    hero-enter .8s cubic-bezier(.2,.8,.2,1) forwards,
    hero-float 7s ease-in-out .9s infinite alternate;
}

/* Entrada desde la derecha */
@keyframes hero-enter{
  from { opacity: 0; transform: translate(80px, -50%) scale(.96) rotate(4deg); }
  to   { opacity: 1; transform: translate(0,    -50%) scale(1)    rotate(0deg); }
}

/* Flotación sutil (sube/baja + micro-rotación) */
@keyframes hero-float{
  from { transform: translate(0, -50%)  scale(1)    rotate(0deg);   }
  to   { transform: translate(0, -46%)  scale(1.02) rotate(1.5deg); }
}

/* Móviles: ocúltala o hazla más pequeña (elige una de las dos opciones) */
@media (max-width: 992px){
  .hero-section::before{ display:none; }              /* Opción A: ocultar */
  /* .hero-section::before{ width: 46vw; } */         /* Opción B: reducir */
}

/* Accesibilidad: si el usuario prefiere menos movimiento, no animar */
@media (prefers-reduced-motion: reduce){
  .hero-section::before{
    animation: none;
    opacity: 1;
    transform: translate(0,-50%) scale(1) rotate(0deg);
  }
}

/* FIXES PARA LEGIBILIDAD */
.hero-content h1 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content h1 span {
    color: #3fb8ff !important;
}

.hero-content .lead {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Asegurar que TODOS los títulos sean blancos */
h1, h2, h3, h4, h5 {
    color: white !important;
}

/* Párrafos más legibles */
p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Badges más visibles */
.badge-cajepy {
    background: rgba(63, 184, 255, 0.2) !important;
    color: white !important;
    border: 1px solid #3fb8ff !important;
}

/* Botones estilo CAJEPY - Profesionales y Elegantes */
.btn-cajepy-primary {
    background: var(--pink-primary);
    color: white;
    border: none;
    padding: 14px 40px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-cajepy-primary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    filter: blur(8px);
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-cajepy-primary:hover {
    background: var(--pink-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3),
                0 10px 40px rgba(233, 30, 99, 0.1);
    color: white;
}

.btn-cajepy-primary:hover::after {
    opacity: 1;
    width: 80%;
}

.btn-cajepy-outline {
    background: transparent;
    color: var(--blue-light);
    border: 1px solid rgba(63, 184, 255, 0.5);
    padding: 14px 40px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-cajepy-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(63, 184, 255, 0.1);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.btn-cajepy-outline:hover {
    background: rgba(63, 184, 255, 0.1);
    border-color: var(--blue-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 184, 255, 0.2);
}

.btn-cajepy-outline:hover::before {
    width: 300px;
    height: 300px;
}

/* Botón secundario sólido */
.btn-cajepy-secondary {
    background: var(--blue-primary);
    color: white;
    border: none;
    padding: 14px 40px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.2);
}

.btn-cajepy-secondary:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.3);
    color: white;
}

/* Cards estilo CAJEPY - Más Profesionales */
.cajepy-card {
    background: rgba(58, 42, 90, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.cajepy-card:hover {
    transform: translateY(-5px);
    background: rgba(58, 42, 90, 0.5);
    border-color: rgba(63, 184, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                0 -2px 10px rgba(63, 184, 255, 0.1) inset;
}

/* Stat Cards - Más Elegantes */
.stat-card {
    background: rgba(26, 19, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
    opacity: 0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(63, 184, 255, 0.2);
    background: rgba(26, 19, 50, 0.8);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card i {
    color: var(--blue-light);
    opacity: 0.9;
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Secciones con fondo alternado */
.section-dark {
    background: var(--bg-dark);
    padding: 5rem 0;
}

.section-purple {
    background: linear-gradient(135deg, rgba(42, 32, 60, 0.5) 0%, rgba(26, 19, 50, 0.9) 100%);
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Títulos de sección */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Formularios profesionales */
.form-control, .form-select {
    background: rgba(26, 19, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 8px;
    padding: 12px 18px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    background: rgba(26, 19, 50, 0.6);
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(63, 184, 255, 0.1);
    color: var(--text-light);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-check-input {
    background-color: rgba(26, 19, 50, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: var(--blue-primary);
    border-color: var(--blue-primary);
}

/* Iconos de sección con colores apropiados */
.icon-box i {
    color: var(--blue-light);
}

/* Benefit items más profesionales */
.benefit-item {
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.benefit-item strong {
    color: var(--text-light);
}

.benefit-item:hover {
    transform: translateX(5px);
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--bg-dark);
    border-top: 2px solid transparent;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
    padding: 3rem 0 2rem;
}

footer h5 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--pink-light);
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

/* Badges */
.badge-cajepy {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

/* Animaciones extras */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(233, 30, 99, 0.5); }
    to { box-shadow: 0 0 20px rgba(233, 30, 99, 0.8), 0 0 30px rgba(0, 188, 212, 0.6); }
}

/* Ajustes generales profesionales */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    font-weight: 600;
}

p {
    line-height: 1.7;
}

.text-primary {
    color: var(--blue-light) !important;
}

.text-secondary {
    color: var(--pink-primary) !important;
}

.bg-primary {
    background-color: var(--pink-primary) !important;
}

.bg-secondary {
    background-color: var(--blue-primary) !important;
}

/* Links profesionales */
a {
    color: var(--blue-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--blue-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn-cajepy-primary,
    .btn-cajepy-outline,
    .btn-cajepy-secondary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Scrollbar personalizada profesional */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--purple-darker);
    border-radius: 0;
}

::-webkit-scrollbar-thumb {
    background: rgba(63, 184, 255, 0.3);
    border-radius: 6px;
    border: 2px solid var(--purple-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(63, 184, 255, 0.5);
}

/* Selection color */
::selection {
    background: var(--blue-primary);
    color: white;
}

::-moz-selection {
    background: var(--blue-primary);
    color: white;
}

/* ==========================================
   FIXES URGENTES - HACER TODO LEGIBLE
   ========================================== */

/* TODOS los títulos en BLANCO */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-content h1,
.hero-content h1 span {
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Subtítulos y leads en blanco/gris claro */
.lead, .section-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Todos los párrafos en blanco suave */
p {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Links y spans de color en blanco */
a, span {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Nav links blancos */
.navbar-nav .nav-link {
    color: #FFFFFF !important;
    opacity: 0.9;
}

.navbar-nav .nav-link:hover {
    color: #FFFFFF !important;
    opacity: 1;
}

/* El cuadro azul de "Operadores y Empresarios" */
.section-dark h2,
.section-purple h2,
.section-dark .section-title,
.section-purple .section-title {
    background: none !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* Quitar TODOS los text gradients */
* {
    -webkit-text-fill-color: unset !important;
}

/* Stats números en blanco */
.stat-card h3 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Iconos más visibles */
.stat-card i,
.cajepy-card i,
.icon-box i {
    color: #3fb8ff !important;
    opacity: 1 !important;
}

/* Badge text blanco */
.badge-cajepy {
    color: #3fb8ff !important;
}

/* Forzar color blanco en elementos específicos */
.text-primary,
.text-secondary,
.text-muted,
.text-info,
.text-success {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* El título "QUIÉNES SOMOS" específicamente */
span[style*="color"] {
    color: #FFFFFF !important;
}

/* Cualquier cosa con background-clip */
[style*="background-clip"] {
    background: none !important;
    color: #FFFFFF !important;
}

/* ==========================================
   ESTILOS PARA FORMULARIO DE REGISTRO CAJEPY
   ========================================== */

/* Fondo oscuro para toda la página de registro */
body {
    background: #1a1332 !important;
    color: white !important;
}

/* Navbar consistente con el tema */
.navbar {
    background: rgba(26, 19, 50, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.navbar-brand {
    color: white !important;
}

.navbar-brand i {
    color: #3fb8ff !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    color: #3fb8ff !important;
}

/* Card del formulario */
.card {
    background: rgba(26, 19, 50, 0.95) !important;
    border: 1px solid rgba(63, 184, 255, 0.2) !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Header del card */
.card-header {
    background: linear-gradient(90deg, #e91e63 0%, #3fb8ff 100%) !important;
    border: none !important;
    padding: 1.5rem !important;
    border-radius: 15px 15px 0 0 !important;
}

.card-header h3 {
    color: white !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Body del card */
.card-body {
    padding: 2rem !important;
    background: rgba(26, 19, 50, 0.95) !important;
}

/* Títulos de secciones */
.card-body h5 {
    color: white !important;
    font-weight: 600 !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #3fb8ff !important;
    margin-bottom: 1.5rem !important;
}

.card-body h5 i {
    color: #3fb8ff !important;
}

/* Labels del formulario */
.form-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
}

.form-label .text-danger {
    color: #ff4081 !important;
}

/* Inputs y Selects */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #3fb8ff !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(63, 184, 255, 0.25) !important;
    outline: none !important;
}

/* Select options - para que se vean en navegadores */
.form-select option {
    background: #2d2043 !important;
    color: white !important;
}

/* Checkboxes */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.form-check-input:checked {
    background-color: #3fb8ff !important;
    border-color: #3fb8ff !important;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-left: 0.5rem !important;
}

/* Textarea */
textarea.form-control {
    min-height: 100px !important;
    resize: vertical !important;
}

/* Small text */
small.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* HR separadores */
hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 2rem 0 !important;
}

/* Botones del formulario */
.btn-primary {
    background: #e91e63 !important;
    border: none !important;
    padding: 0.75rem 2rem !important;
    font-weight: 500 !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.btn-primary:hover {
    background: #ff4081 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4) !important;
}

.btn-secondary {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    padding: 0.75rem 2rem !important;
    border-radius: 25px !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #3fb8ff !important;
}

/* Alertas */
.alert-danger {
    background: rgba(233, 30, 99, 0.1) !important;
    border: 1px solid rgba(233, 30, 99, 0.3) !important;
    color: #ff4081 !important;
}

.alert-danger ul {
    margin: 0 !important;
    padding-left: 1.5rem !important;
}

/* Footer */
footer {
    background: #1a1332 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ==========================================
   RESPONSIVE PARA MÓVILES
   ========================================== */

@media (max-width: 768px) {
    /* Container principal más estrecho en móvil */
    .container {
        padding: 0 15px !important;
    }
    
    /* Card más compacto */
    .card {
        margin: 1rem 0 !important;
        border-radius: 10px !important;
    }
    
    .card-header {
        padding: 1rem !important;
    }
    
    .card-header h3 {
        font-size: 1.25rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    /* Formulario más compacto */
    .form-label {
        font-size: 0.9rem !important;
    }
    
    .form-control,
    .form-select {
        font-size: 16px !important; /* Evita zoom en iOS */
        padding: 0.65rem 0.75rem !important;
    }
    
    /* Títulos de sección más pequeños */
    .card-body h5 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Checkboxes en columna única */
    .form-check {
        margin-bottom: 0.75rem !important;
    }
    
    /* Botones full width en móvil */
    .btn {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Grid de ciudades más compacto */
    .col-md-4 {
        margin-bottom: 0.5rem !important;
    }
    
    /* Espaciado reducido */
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    hr {
        margin: 1.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    /* Aún más compacto para móviles pequeños */
    .card-header h3 {
        font-size: 1.1rem !important;
    }
    
    .card-body h5 {
        font-size: 1rem !important;
    }
    
    /* Una columna para todo */
    .row > [class*="col-"] {
        margin-bottom: 0.75rem !important;
    }
    
    /* Navbar más compacto */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .nav-link {
        padding: 0.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* Fix para que los inputs no hagan zoom en iPhone */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Mejoras de accesibilidad */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: 2px solid #3fb8ff !important;
    outline-offset: 2px !important;
}

/* Loading state para botones */
.btn.loading {
    position: relative !important;
    color: transparent !important;
}

.btn.loading::after {
    content: "" !important;
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    top: 50% !important;
    left: 50% !important;
    margin-left: -10px !important;
    margin-top: -10px !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    border-top-color: transparent !important;
    animation: spinner 0.6s linear infinite !important;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* ==========================================
   ESTILOS PARA PANEL ADMIN
   ========================================== */

/* Dashboard Cards */
.stat-card {
    background: rgba(26, 19, 50, 0.95) !important;
    border: 1px solid rgba(63, 184, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    text-align: center;
    color: white !important;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-card h5 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
}

.stat-card h2 {
    color: white !important;
    font-size: 3rem !important;
    font-weight: bold;
}

/* Colores específicos para cada estado */
.stat-card.border-warning {
    border-color: #ffc107 !important;
}

.stat-card.border-success {
    border-color: #28a745 !important;
}

.stat-card.border-danger {
    border-color: #dc3545 !important;
}

/* Sidebar Admin */
.bg-light {
    background: rgba(26, 19, 50, 0.95) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-link:hover {
    color: #3fb8ff !important;
}

.nav-link.active {
    color: #3fb8ff !important;
    background: rgba(63, 184, 255, 0.1) !important;
    border-left: 3px solid #3fb8ff !important;
}

/* Tabla del dashboard */
.table {
    background: rgba(26, 19, 50, 0.95) !important;
    color: white !important;
}

.table thead {
    background: rgba(63, 184, 255, 0.1) !important;
    border-bottom: 2px solid #3fb8ff !important;
}

.table thead th {
    color: white !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 1rem !important;
}

.table tbody td {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    padding: 1rem !important;
}

.table-hover tbody tr:hover {
    background: rgba(63, 184, 255, 0.05) !important;
}

/* Badges de estado */
.badge-pendiente {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
    border: 1px solid #ffc107 !important;
    padding: 0.5rem 1rem !important;
}

.badge-aprobado {
    background: rgba(40, 167, 69, 0.2) !important;
    color: #28a745 !important;
    border: 1px solid #28a745 !important;
    padding: 0.5rem 1rem !important;
}

.badge-rechazado {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    padding: 0.5rem 1rem !important;
}

/* Botones de acción */
.btn-info {
    background: #3fb8ff !important;
    border: none !important;
}

.btn-info:hover {
    background: #00bcd4 !important;
}

/* Container principal */
.container-fluid {
    background: #1a1332 !important;
    min-height: 100vh;
}

/* Títulos */
h2, h3, h4, h5 {
    color: white !important;
}

p {
    color: rgba(255, 255, 255, 0.8) !important;
}
/* ===== TICKER DE LOGOS - VERSIÓN ÚNICA Y CORREGIDA ===== */
.logo-ticker {
  --size: clamp(40px, 8vw, 90px);
  --gap: clamp(20px, 5vw, 60px);
  --duration: 40s;
  
  position: relative;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: clamp(15px, 3vw, 25px) 0;
  overflow: hidden !important; /* CRÍTICO para evitar overflow */
  width: 100%;
  max-width: 100vw;
}

/* Fades laterales */
.logo-ticker::before,
.logo-ticker::after {
  content: "";
  position: absolute;
  top: 0; 
  bottom: 0;
  width: clamp(30px, 5vw, 90px);
  pointer-events: none;
  z-index: 2;
}

.logo-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 100%);
}

.logo-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-dark) 0%, transparent 100%);
}

/* Track con animación */
.logo-track {
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: max-content;
  animation: ticker var(--duration) linear infinite;
  will-change: transform;
  /* IMPORTANTE: Empezar la animación desde fuera de vista */
  animation-delay: 0.5s; /* Pequeño delay para evitar flash inicial */
}

/* Pausar en hover solo en desktop */
@media (hover: hover) {
  .logo-ticker:hover .logo-track {
    animation-play-state: paused;
  }
}

/* Logos individuales */
.logo-item {
  height: var(--size);
  width: auto;
  max-width: clamp(80px, 30vw, 160px);
  object-fit: contain;
  opacity: 1;
  flex-shrink: 0; /* Importante: evita que se compriman */
}

/* Animación del ticker */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* RESPONSIVE - Tablet */
@media (min-width: 768px) {
  .logo-ticker {
    --size: clamp(60px, 7vw, 80px);
    --gap: clamp(40px, 5vw, 60px);
    --duration: 45s;
  }
  
  .logo-item {
    max-width: clamp(120px, 20vw, 180px);
  }
}

/* RESPONSIVE - Desktop */
@media (min-width: 1200px) {
  .logo-ticker {
    --size: 90px;
    --gap: 70px;
    --duration: 50s;
  }
  
  .logo-item {
    max-width: 200px;
  }
}

/* Accesibilidad - Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
    transform: translateX(0);
  }
}

/* FIX ESPECÍFICO PARA MÓVILES - Evitar overflow inicial */
@media (max-width: 767px) {
  .logo-ticker {
    --size: 45px;
    --gap: 20px;
    --duration: 35s;
  }
  
  /* Hacer el track invisible inicialmente */
  .logo-track {
    opacity: 0;
    animation: ticker var(--duration) linear infinite, fadeIn 0.5s ease 0.2s forwards;
  }
  
  @keyframes fadeIn {
    to { opacity: 1; }
  }
}
:root{ --nav-h:72px; } /* alto aprox. de tu navbar fixed; ajustá si hace falta */

/* Desktop: igual que ahora */
@media (min-width: 768px){
  .admin-sidebar,
  .empresa-sidebar{
    min-height: 100vh;
    /* opcional: que quede fijo al hacer scroll */
    /* position: sticky; top: var(--nav-h); overflow-y: auto; */
  }
}

/* Mobile: versión corta y con scroll interno */
@media (max-width: 767.98px){
  .admin-sidebar,
  .empresa-sidebar{
    /* anula cualquier 100vh inline */
    min-height: auto !important;
    height: auto !important;

    /* no pierdas borde derecho (sin márgenes laterales) */
    margin: 8px 0;
    padding: 0 12px;

    max-height: 48vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
  }

  .admin-sidebar h5,
  .empresa-sidebar h5{ font-size:1rem; margin-bottom:.5rem; }

  .admin-sidebar .nav-link,
  .empresa-sidebar .nav-link{ padding:.45rem .25rem; font-size:.95rem; }
}

/* =========================================
   ESTANDARIZACIÓN GLOBAL DE FORMULARIOS
   Aplicar a TODOS los logins y formularios
   ========================================= */

/* Todos los cards de login/registro */
.card {
    background: rgba(26, 19, 50, 0.95) !important;
    border: 2px solid #3fb8ff !important;
}

.card-header {
    background: linear-gradient(135deg, #1a1332 0%, #2a2352 100%) !important;
    color: white !important;
}

/* Todos los inputs sin excepción */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    border: 1px solid rgba(63, 184, 255, 0.25) !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    color: white !important;
    border-color: #3fb8ff !important;
    box-shadow: 0 0 0 3px rgba(63, 184, 255, 0.15) !important;
}

/* Todos los labels */
.form-label, label {
    color: white !important;
}

/* Todos los iconos en input groups */
.input-group-text {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(63, 184, 255, 0.25) !important;
    color: #3fb8ff !important;
}

.input-group-text i {
    color: #3fb8ff !important;
}

/* Botones primarios estándar */
.btn-primary {
    background: linear-gradient(135deg, #3fb8ff 0%, #2196F3 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
}

/* Toggle password buttons */
.toggle-password,
#togglePassword {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #3fb8ff !important;
    border: 1px solid rgba(63, 184, 255, 0.25) !important;
}

/* Agregar DESPUÉS del CSS que ya tienes */

/* Placeholders en gris para distinguirlos del texto real */
::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder,
.form-select::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
}

/* Para navegadores específicos */
::-webkit-input-placeholder { /* Chrome/Safari */
    color: rgba(255, 255, 255, 0.4) !important;
}
::-moz-placeholder { /* Firefox */
    color: rgba(255, 255, 255, 0.4) !important;
}
:-ms-input-placeholder { /* IE/Edge */
    color: rgba(255, 255, 255, 0.4) !important;
}
/* =========================================
   TOGGLE PASSWORD ESTÁNDAR Y RESPONSIVE
   Un solo estilo para todos los toggles
   ========================================= */

/* Fix para input groups en móvil */
.input-group {
    display: flex;
    flex-wrap: nowrap !important; /* CRÍTICO: evita que se rompa en móvil */
}

/* Input de password específico */
#password,
input[type="password"] {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Botón toggle estándar */
.toggle-password,
#togglePassword,
.btn-outline-light.toggle-password,
.btn-outline-secondary[id*="toggle"] {
    /* Mismo estilo que los inputs oscuros */
    background: rgba(255, 255, 255, 0.08) !important;
    color: #3fb8ff !important;
    border: 1px solid rgba(63, 184, 255, 0.25) !important;
    border-left: none !important;
    
    /* Tamaño y padding */
    padding: 0.75rem !important;
    min-width: 45px !important;
    
    /* Sin bordes redondeados a la izquierda */
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    
    /* Transición */
    transition: all 0.3s ease !important;
    
    /* Flexbox para centrar icono */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Cursor */
    cursor: pointer !important;
}

/* Hover del toggle */
.toggle-password:hover,
#togglePassword:hover {
    background: rgba(63, 184, 255, 0.15) !important;
    color: white !important;
}

/* Estado activo (mostrando contraseña) */
.toggle-password.active,
#togglePassword.active {
    background: #3fb8ff !important;
    color: white !important;
    border-color: #3fb8ff !important;
}

/* Focus */
.toggle-password:focus,
#togglePassword:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* El icono dentro del toggle */
.toggle-password i,
#togglePassword i {
    font-size: 1.1rem !important;
    pointer-events: none; /* Evita problemas de click */
}

/* =========================================
   ICONOS DE INPUT GROUPS (los de la izquierda)
   ========================================= */

.input-group-text,
.icon-box {
    /* Mismo estilo oscuro */
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(63, 184, 255, 0.25) !important;
    color: #3fb8ff !important;
    
    /* Sin borde derecho */
    border-right: none !important;
    
    /* Padding consistente */
    padding: 0.75rem !important;
    min-width: 48px !important;
    
    /* Centrar icono */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.input-group-text i,
.icon-box i {
    color: #3fb8ff !important;
    font-size: 1.1rem !important;
}

/* =========================================
   RESPONSIVE PARA MÓVIL
   ========================================= */

@media (max-width: 576px) {
    /* Asegurar que el grupo no se rompa */
    .input-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }
    
    /* Input toma el espacio disponible */
    .input-group .form-control {
        flex: 1 1 auto !important;
        width: 1% !important; /* Hack para flex */
    }
    
    /* Iconos y toggles más pequeños en móvil */
    .input-group-text,
    .icon-box {
        min-width: 40px !important;
        padding: 0.5rem !important;
    }
    
    .toggle-password,
    #togglePassword {
        min-width: 40px !important;
        padding: 0.5rem !important;
    }
    
    /* Iconos un poco más pequeños */
    .input-group-text i,
    .toggle-password i {
        font-size: 0.95rem !important;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 380px) {
    .input-group-text,
    .toggle-password {
        min-width: 35px !important;
        padding: 0.4rem !important;
    }
    
    .input-group-text i,
    .toggle-password i {
        font-size: 0.85rem !important;
    }
}

/* =========================================
   LIMPIEZA DE ESTILOS CONFLICTIVOS
   ========================================= */

/* Eliminar cualquier estilo que contradiga */
.toggle-password {
    /* Eliminar estos si existen */
    background-color: initial !important;
    transform: none !important;
}

/* No aplicar scale en hover (problemático en móvil) */
.toggle-password:hover {
    transform: none !important;
}