/* =========================================
   1. VARIABLES (FIXED DARK THEME)
   ========================================= */
:root {
    /* Fondo Negro OLED puro */
    --bg-body: #000000;
    /* Gris muy oscuro para secciones alternas */
    --bg-secondary: #000000; 
    /* Gris elevado para las tarjetas/imágenes */
    --bg-card: #000000;
    /* Nav translúcido oscuro */
    --bg-nav: rgba(0, 0, 0, 0.8);
    
    /* Textos claros */
    --text-main: #f5f5f7;
    --text-secondary: #a1a1a6;
    
    /* Azul Vibrante */
    --accent: #2997ff;
    --accent-hover: #47aaff;
    
    /* Sombras y Glow */
    --shadow-card: 0 20px 40px rgba(0, 17, 255, 0.226);
    /* GLOW PERMANENTE EN TODAS LAS IMAGENES */
    --image-glow: 0 0 60px rgba(41, 152, 255, 0.089);
    
    --radius-lg: 24px;
    --radius-btn: 980px;
    --nav-height: 54px;
    --max-width: 1080px;
    
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   2. GENERAL
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; height: auto; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.4;
    margin-bottom: 20px;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 15px; }

h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
}

p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 400;
    
}

/* Texto Gradiente (Optimizado para fondo negro) */
/* =========================================
   ANIMACIÓN DE TEXTO (EFECTO TITANIO)
   ========================================= */

.text-gradient {
    /* 1. Definimos un gradiente ancho que se repite: Blanco -> Gris -> Blanco */
    background-image: linear-gradient(
        110deg, 
        #ffffff 20%, 
        #0c3666 50%, 
        #ffffff 80%
    );
    
    /* 2. Hacemos el fondo el doble de grande para poder moverlo */
    background-size: 200% auto;
    
    /* 3. Recortamos el fondo con la forma del texto */
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    
    display: inline-block;
    
    /* 4. Aplicamos la animación 'shine' */
    /* 8 segundos es una velocidad elegante y lenta (estilo Apple) */
    animation: shine 8s linear infinite;
}

/* Definimos el movimiento */
@keyframes shine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* =========================================
   3. NAVIGATION
   ========================================= */
header {
    position: fixed; top: 0; width: 100%; height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width); margin: 0 auto; height: 100%;
    display: flex; justify-content: space-between; align-items: center; padding: 0 20px;
}

.logo a { font-size: 1.1rem; font-weight: 600; color: var(--text-main); }

.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 0.85rem; color: var(--text-main); opacity: 0.8; }
.nav-links a:hover { color: var(--accent); opacity: 1; }

/* =========================================
   4. LAYOUT & CARDS
   ========================================= */
.hero {
    height: 90vh; display: flex; flex-direction: column; justify-content: center; 
    align-items: center; text-align: center; padding: 0 20px;
    /* Un degradado radial muy sutil en el fondo del hero para dar profundidad */
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 70%);
}
.hero-content { max-width: 800px; animation: fadeUp 1s forwards; opacity: 0; transform: translateY(20px); }

.section-product { padding: 120px 20px; overflow: hidden; }
.section-product.bg-secondary { background-color: var(--bg-secondary); }

.container {
    max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

/* Zig-Zag */
.section-product:nth-child(even) .container { direction: rtl; }
.section-product:nth-child(even) .text-box { direction: ltr; }

/* IMÁGENES CON GLOW */
.img-box {
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    /* Efecto de resplandor azul detrás de todas las imágenes */
    filter: drop-shadow(var(--image-glow)); 
    transition: transform 0.6s ease, box-shadow 0.5s ease;
}
.img-box:hover { transform: scale(1.02); }

/* =========================================
   5. COMPONENTS
   ========================================= */
.btn {
    display: inline-block; padding: 12px 28px;
    background-color: var(--accent); color: white;
    border-radius: var(--radius-btn); font-size: 0.95rem; font-weight: 500;
}
.btn:hover { background-color: var(--accent-hover); box-shadow: 0 0 20px rgba(41, 151, 255, 0.4); }

.btn-link {
    color: var(--accent); font-size: 1.1rem; font-weight: 500;
    display: inline-flex; align-items: center; gap: 5px;
}
.btn-link::after { content: '›'; font-size: 1.4rem; line-height: 1; transition: 0.2s; }
.btn-link:hover::after { transform: translateX(4px); }

/* =========================================
   6. CONTACT & FOOTER
   ========================================= */
.contact-section { padding: 140px 20px; text-align: center; background: var(--bg-secondary); }
.contact-sub { max-width: 500px; margin: 0 auto 40px; }

.social-grid { display: flex; justify-content: center; gap: 30px; margin-top: 50px; }
.social-item img { width: 32px; filter: invert(1); opacity: 0.7; transition: 0.3s; } /* Invertimos iconos negros a blancos */
.social-item:hover img { opacity: 1; transform: scale(1.1); }

.site-footer { 
    padding: 40px; text-align: center; font-size: 0.8rem; color: #555; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}

/* =========================================
   7. ANIMATIONS & RESPONSIVE
   ========================================= */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.reveal .text-box, .reveal .img-box {
    opacity: 0; transform: translateY(40px); transition: var(--transition);
}
.reveal.active .text-box, .reveal.active .img-box { opacity: 1; transform: translateY(0); }
.reveal.active .img-box { transition-delay: 0.1s; }

.burger { display: none; cursor: pointer; }
.burger span { display: block; width: 25px; height: 2px; background: var(--text-main); margin: 5px; transition: 0.3s; }

/* =========================================
   8. RESPONSIVE (Móvil: Sin imágenes)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Ajuste del contenedor: una columna */
    .container { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    
    /* 2. Resetear dirección del zig-zag para que el texto siempre se lea normal */
    .section-product:nth-child(even) .container { direction: ltr; }
    .section-product:nth-child(even) .text-box { direction: ltr; }
    
    /* 3. OCULTAR IMÁGENES EN MÓVIL */
    .img-box { 
        display: none; 
    }

    /* 4. Ajustes de texto y espaciado */
    .section-product {
        padding: 60px 20px; /* Menos padding vertical en móvil */
    }
    
    .text-box {
        padding: 0;
        text-align: justify; /* Alineación izquierda limpia */
        
    }

    h1 { font-size: 2.8rem; } /* Título un poco más chico para que entre bien */
    h2 { font-size: 2rem; }
    

    /* 5. Lógica del Menú Hamburguesa */
    .burger { display: block; z-index: 1001; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: #050505; /* Fondo casi negro */
        flex-direction: column; justify-content: center;
        box-shadow: -20px 0 40px rgba(0,0,0,0.8); 
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-left: 40px;
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links a { 
        font-size: 1.3rem; /* Enlaces más grandes para el dedo */
        margin: 15px 0;
        display: block;
    }
    
    /* Animación del icono X */
    .burger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger.toggle span:nth-child(2) { opacity: 0; }
    .burger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
}