/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Paleta de Colores "Dark Tech" */
    --bg-dark: #0f172a;       
    --bg-card: #1e293b;       
    --text-main: #f8fafc;     
    --text-muted: #94a3b8;    
    
    /* Acento: Electric Blue */
    --primary: #3b82f6;       
    --primary-hover: #2563eb; 
    --accent: #06b6d4;        

    /* Espaciado y Bordes */
    --radius: 8px;
    --container-width: 1100px;
    
    /* Altura del Header (Variable para cálculos) */
    --header-height: 90px;
}

/* Utilidad de Fondo Cuadriculado */
.bg-grid-tech {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}


body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; }

/* Container Global */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER & NAV
   ========================================= */
header {
    background-color: rgba(15, 23, 42, 0.95); 
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    height: 100%;
}

.logo img {
    /* Ajuste de logo para mantener proporción */
    width: 180px;      
    height: auto;
    max-height: 60px;
    display: block;    
    object-fit: contain; 
    /* Vuelve el logo blanco puro */
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main); 
    font-size: 1.05rem;      
    font-weight: 700;        
    letter-spacing: 0.5px;   
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Botón del menú (CTA pequeño) */
.btn-nav {
    border: 2px solid var(--primary); 
    padding: 8px 24px;
    border-radius: var(--radius);
    color: var(--primary) !important;
    font-weight: 700; 
}

.btn-nav:hover {
    background-color: var(--primary);
    color: white !important;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
#hero {
    min-height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; /* Tamaño de los cuadraditos */
    background-position: center;
}

#hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

#hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Botones Grandes */
.btn-primary, .btn-secondary {
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-block;
    border: none; 
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); 
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: rgba(255,255,255,0.05);
}

/* BOTÓN NEÓN SHARP (La versión definitiva) */
.btn-animated {
    width: 100%; /* Para que ocupe todo el ancho en el celu */
    position: relative;
    padding: 14px 32px;
    border-radius: var(--radius);
    background: var(--bg-card);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Corrección para que la luz cubra todo el botón siempre */
.btn-animated::before {
    content: '';
    position: absolute;
    /* Lo centramos desde el medio */
    top: 50%;
    left: 50%;
    /* Hacemos un cuadrado GIGANTE de 1000px para que sobre espacio */
    width: 1000px;
    height: 1000px;
    
    background: conic-gradient(
        transparent, 
        transparent, 
        var(--primary), 
        transparent 20%
    );
    
    /* Importante: Usamos la nueva animación que mantiene el centro */
    animation: rotateBig 4s linear infinite;
    z-index: -2;
}

.btn-animated::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-card);
    border-radius: calc(var(--radius) - 2px);
    z-index: -1;
}

/* Nueva animación que rota manteniendo el elemento centrado */
@keyframes rotateBig {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.btn-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
    background-color: rgba(37, 99, 235, 0.05);
}

/* =========================================
   4. SECCIONES GENERALES
   ========================================= */
section {
    padding: 100px 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

/* =========================================
   5. SERVICIOS (GRID)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* =========================================
   TARJETAS "CLEAN TECH" (Legibilidad + Estilo)
   ========================================= */
.card {
    background-color: var(--bg-card); /* Fondo sólido para leer bien */
    padding: 40px 30px;
    border-radius: var(--radius);
    position: relative;
    transition: all 0.4s ease; /* Transición suave */
    
    /* Borde sutil por defecto */
    border: 1px solid rgba(255, 255, 255, 0.05); 
    
    /* Sombra suave */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* EL EFECTO WOW AL PASAR EL MOUSE */
.card:hover {
    transform: translateY(-7px); /* Sube un poquito */
    border-color: var(--primary); /* El borde se pone azul */
    /* El brillo azul detrás (Glow) */
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.25); 
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
    transition: color 0.3s;
}

.card:hover h3 {
    color: var(--primary); /* El título también se ilumina */
}

.focus {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.plus {
    border-top: 1px solid rgba(255,255,255,0.1); /* Línea separadora sutil */
    padding-top: 20px;
    color: var(--text-main) !important;
    font-size: 0.95rem !important;
    font-style: italic;
}

.quote {
    width: fit-content;  
    margin: 60px auto;   
    text-align: left;    

    /* Estilos visuales */
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-main);
    border-left: 4px solid var(--primary); 
    padding-left: 20px;  
}

/* =========================================
   6. METODO ITERA (PASOS)
   ========================================= */
#metodo {
    background-color: #0b1120; 
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step {
    position: relative;
    padding-top: 10px;
}

.step-number {
    font-size: 5rem; /* Un poco más grande */
    font-weight: 800;
    color: rgba(255,255,255,0.03); 
    position: absolute;
    top: -40px;
    left: -10px;
    z-index: 0;
    line-height: 1;
}

.step h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;   
    font-size: 1.4rem;
    color: var(--text-main); 
}

.step p {
    position: relative;
    z-index: 1;
    color: #cbd5e1;      
    font-size: 0.95rem;    
    line-height: 1.8;      
}

/* Excepción para que el texto de Método Y Autoridad sea más ancho */
#metodo .section-desc, 
#autoridad .section-desc {
    max-width: 900px; 
    width: 100%;
    margin-left: auto; 
    margin-right: auto;
}

/* =========================================
   7. AUTORIDAD & CONTACTO
   ========================================= */
.tech-stack {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    opacity: 0.7; 
}

.tech-stack span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
}

.tech-stack span:hover {
    border-color: var(--primary);
    color: white;
}

#contacto {
    background-color: var(--bg-card);
}

form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}


textarea {
    resize: vertical; 
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    padding: 60px 0; 
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background-color: #0b1120; 
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px; 
}

.social-links a {
    color: white; 
    font-weight: 500;
    opacity: 0.7;
    transition: 0.3s;
}

.social-links a:hover {
    opacity: 1;
    color: var(--primary); 
}

/* =========================================
   9. RESPONSIVE (MÓVIL CON JS)
   ========================================= */
@media (max-width: 900px) {
    
    /* Ajustes generales */
    header {
        position: fixed; /* Volvemos a Fixed para que el menú acompañe al bajar */
        padding: 15px 0;
        background-color: rgba(15, 23, 42, 0.98); /* Más opaco para leer mejor */
    }

    #hero {
        padding-top: 150px; /* Compensamos el header fijo */
    }

    /* ESTILO DEL BOTÓN HAMBURGUESA */
    .hamburger {
        display: block; /* Aparece solo en móvil */
        cursor: pointer;
        z-index: 2000;
    }

    .hamburger div {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* EL MENÚ OCULTO POR DEFECTO */
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh; /* Ocupa toda la altura */
        top: 0vh; /* Sube hasta el techo */
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Centra los items verticalmente */
        width: 70%; /* Ancho del cajón lateral */
        transform: translateX(100%); /* SE ESCONDE A LA DERECHA */
        transition: transform 0.4s ease-in;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        padding-top: 60px;
    }

    /* CLASE QUE AGREGA EL JS PARA MOSTRARLO */
    .nav-links.active {
        transform: translateX(0%); /* VUELVE A LA PANTALLA */
    }

    /* Animación de las 3 rayitas a una X */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--primary);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: var(--primary);
    }
    
    /* Ajustes de textos en móvil */
    #hero h1 { font-size: 2.2rem; }
    .cta-group { flex-direction: column; padding: 0 20px;}
    .btn-primary, .btn-secondary { width: 100%; }
}

/* Ocultar hamburguesa en escritorio */
@media (min-width: 901px) {
    .hamburger { display: none; }
}

/* =========================================
   10. ANIMACIONES (El toque final)
   ========================================= */

/* Definimos la animación: Subir y aparecer */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* Empieza 30px más abajo */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Termina en su lugar */
    }
}

/* Aplicamos la animación a los elementos del Hero */

/* 1. El Título (Llega primero) */
#hero h1 {
    opacity: 0; /* Invisible al inicio */
    animation: fadeInUp 0.8s ease-out forwards; /* Dura 0.8s */
    animation-delay: 0.2s; /* Espera un poquito antes de arrancar */
}

/* 2. El Subtítulo (Llega segundo) */
#hero .subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.4s; /* Espera un poco más */
}

/* 3. Los Botones (Llegan al final) */
.cta-group {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.6s; /* Los últimos en llegar */
}

/* =========================================
   CARRUSEL INFINITO DE LOGOS
   ========================================= */
.logo-carousel-container {
    margin-top: 80px;
    text-align: center;
}

.carousel-title {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* 1. Damos más altura a la pista para que los logos no se corten al crecer */
.logo-slider {
    height: 140px; /* Antes era 100px. Ahora tienen espacio de sobra. */
    margin: auto;
    overflow: hidden; 
    position: relative;
    width: 90%;
    max-width: 1000px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    
    /* Agregamos padding para centrar visualmente */
    display: flex;
    align-items: center;
}

.logo-track {
    display: flex;
    width: calc(200px * 10);
    animation: scroll 20s linear infinite;
    /* Aseguramos que los items estén centrados verticalmente en la pista */
    align-items: center; 
}

/* Cada logo individual */
.slide {
    height: 100px;
    width: 200px; /* Ancho de cada espacio de logo */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px; /* Espacio entre logos */
}

/* 2. El Logo: Más controlado y sin brillos "sucios" */
.slide img {
    max-height: 70px; /* Un tamaño base más chico para que al crecer no se desborde */
    width: auto;
    
    /* Estado Apagado (Default) */
    opacity: 0.3;     /* Grisáceo y apagado */
    filter: grayscale(100%) brightness(0) invert(1); /* Blanco plano */
    
    transition: all 0.4s ease; /* Transición suave */
    /* Quitamos cualquier margen que pueda estar molestando */
    display: block; 
}

/* 3. El Efecto Hover: Solo Luz Pura y Movimiento */
.slide img:hover {
    /* En lugar de brillo borroso, usamos Opacidad total. 
       En un fondo oscuro, pasar de 0.3 a 1 ya parece un "encendido" de luz. */
    opacity: 1; 
    
    /* Crecemos un poco, pero no tanto como antes */
    transform: scale(1.15); 
    
    /* SIN DROP-SHADOW. Esto elimina el problema del "borde cuadrado". */

}

/* La animación que mueve la pista hacia la izquierda */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 5)); } /* Mueve la mitad del ancho total */
}

/* El cursor que parpadea */
.txt-type {
    border-right: 0.2rem solid var(--primary); /* Barrita azul */
    padding-right: 5px;
    color: var(--primary); /* El texto que se escribe será azul */
    animation: blink 0.7s infinite; /* Parpadeo */
}

@keyframes blink {
    0% { border-color: transparent }
    50% { border-color: var(--primary) }
    100% { border-color: transparent }
}

/* =========================================
   INDICADOR DE SCROLL (Desktop & Mobile)
   ========================================= */

/* El contenedor que controla la posición y la salida suave */
.scroll-wrapper {
    position: absolute;
    bottom: 70px; /* En PC se ve bien ahí arriba */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

/* AJUSTE PARA CELULARES: Lo bajamos para que no tape los botones */
@media (max-width: 768px) {
    .scroll-wrapper {
        bottom: 20px; /* Mucho más cerca del borde inferior */
    }
}

/* El indicador interno con su animación de entrada (aparece a los 2s) */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInScroll 1s ease-in forwards 2s;
}

/* CLASE FADE-OUT: Cuando el JS detecta scroll, se desvanece */
.scroll-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes fadeInScroll {
    from { opacity: 0; transform: translate(-50%, 0); }
    to { opacity: 0.7; transform: translate(-50%, 0); }
}

/* El cuerpo del mouse */
.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

/* La ruedita que se mueve */
.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary); /* Azul Itera */
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px; /* Baja y desaparece */
    }
}

/* Las flechitas abajo del mouse (Opcional, pero queda pro) */
.arrow-scroll span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin: -5px auto;
    animation: scrollArrow 2s infinite;
}

.arrow-scroll span:nth-child(2) { animation-delay: -0.2s; }
.arrow-scroll span:nth-child(3) { animation-delay: -0.4s; }

@keyframes scrollArrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* =========================================
   CITA / QUOTE (Diseño Responsivo)
   ========================================= */

/* 1. Estilo Base (Para PC / Pantallas Grandes) */
/* Este es el que ya tenías y te gustaba */
.quote {
    width: fit-content;
    margin: 60px auto;
    text-align: left; /* Alineado a la izquierda en PC */
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-main);
    
    /* Línea lateral azul clásica */
    border-left: 4px solid var(--primary); 
    padding-left: 20px;
    padding-top: 0; /* Sin relleno arriba */
    position: relative; /* Necesario para el cambio en móvil */
}

/* Ocultamos la línea de arriba en PC por si acaso */
.quote::before {
    display: none; 
}

/* 2. TRANSFORMACIÓN PARA CELULARES */
@media (max-width: 768px) {
    .quote {
        width: 90%; /* Que ocupe casi todo el ancho */
        text-align: center; /* Centramos el texto */
        border-left: none; /* CHAU línea del costado */
        padding-left: 0;   /* Sacamos el relleno del costado */
        padding-top: 25px; /* Damos lugar arriba para la nueva línea */
    }

    /* Hacemos aparecer la línea azul ARRIBA */
    .quote::before {
        display: block; /* Ahora sí la mostramos */
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%); /* Centrada perfecta */
        width: 60px;
        height: 4px;
        background: var(--primary);
        border-radius: 2px;
    }
}

/* =========================================
   AUTORIDAD (Estilo Minimalista sin Tarjetas)
   ========================================= */

.authority-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alineados arriba */
    flex-wrap: wrap; /* Para que baje en celular */
    gap: 0; /* El espacio lo manejamos con padding */
    margin-top: 60px;
}

/* El Item individual (SIN BORDES NI FONDO) */
.auth-item {
    flex: 1; /* Ocupan espacio igual */
    min-width: 200px;
    text-align: center;
    padding: 0 20px;
}

/* El Icono con luz propia (Neon suave) */
.auth-icon-glow {
    font-size: 3rem;
    margin-bottom: 20px;
    /* Sombra de luz detrás del emoji para que destaque */
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.4));
    transition: transform 0.3s ease;
}

.auth-item:hover .auth-icon-glow {
    transform: scale(1.1) rotate(5deg);
}

.auth-item h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 250px; /* Evita que el texto se estire mucho */
    margin: 0 auto; /* Centrado */
}

/* LÍNEAS SEPARADORAS VERTICALES (Solo PC) */
.divider-vertical {
    width: 1px;
    height: 100px; /* Altura de la línea */
    background: linear-gradient(
        to bottom, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    align-self: center;
}

/* RESPONSIVE (Celulares) */
@media (max-width: 768px) {
    .authority-grid {
        flex-direction: column; /* Uno abajo del otro */
        gap: 40px; /* Espacio entre items */
    }

    .divider-vertical {
        display: none; /* Chau líneas verticales en celular */
        /* Podrías poner una horizontal si quisieras, pero el espacio vacío queda mejor */
    }
    
    .auth-item {
        width: 100%;
        padding: 0;
    }
}

/* =========================================
   ANIMACIÓN FLOTANTE (Corrección)
   ========================================= */

/* 1. Definimos la animación (un poco más rápida y notoria para probar) */
@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); } /* Sube 12px */
    100% { transform: translateY(0px); }
}

/* 2. Aplicamos la animación asegurando el 'display' */
.auth-item .auth-icon-glow {
    display: inline-block; /* ¡ESTO ES CLAVE! Sin esto no se mueven */
    animation: floatIcon 4s ease-in-out infinite;
}

/* 3. Los tiempos distintos (Delay) */
.auth-item:nth-child(1) .auth-icon-glow {
    animation-delay: 0s;
}

.auth-item:nth-child(2) .auth-icon-glow {
    animation-delay: 1.5s;
}

.auth-item:nth-child(3) .auth-icon-glow {
    animation-delay: 0.8s;
}

@media (max-width: 768px) {
    .scroll-wrapper {
        display: none !important;
    }
}

/* =========================================
   BOTÓN HEADER (Hover Moderno)
   ========================================= */
.btn-header {
    /* Base: Transparente pero definido */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde sutil inicial */
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Suavidad Apple */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* El efecto al pasar el mouse */
.btn-header:hover {
    border-color: var(--primary); /* El borde se pone azul Itera */
    color: var(--primary); /* El texto se pone azul */
    background: rgba(37, 99, 235, 0.08); /* Fondo apenas azulado */
    
    /* El toque mágico: un brillo suave alrededor */
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2); 
    transform: translateY(-2px); /* Se levanta un poquito */
}
