/* =========================================
   1. FUENTES Y CONFIGURACIÓN GLOBAL
   ========================================= */

@font-face {
    font-family: 'Barlow';
    src: url('./fonts/Barlow-Regular.ttf') format('ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-Regular.ttf') format('ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif; /* Removed !important */
    background-color: #000;
    color: #fff;
    overflow-x: hidden; 
}

/* Global smooth transition for all standard links */
a {
    transition: all 0.5s ease-in-out;
}

/* =========================================
   2. NAVEGACIÓN (ENHANCED UX/UI)
   ========================================= */

.navbar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 4em; 
    width: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2)); 
}

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

.nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-item:hover {
    color: #fc8f57; 
    text-shadow: 0 0 15px rgba(252, 143, 87, 0.6); 
}

/* =========================================
   3. BOTONES Y ESTILOS BASE (UNIFICADOS)
   ========================================= */

/* Base Gradient & Transition for ALL Main CTAs */
.gradient-button,
.hero-cta,
.why-cta,
.nav-cta-secondary {
    background: linear-gradient(to right, #fc8f57, #c470c1, #0c0b22, #fc8f57);
    background-size: 200% auto; 
    background-position: left center; 
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Base Hover for ALL Main CTAs */
.gradient-button:hover,
.hero-cta:hover,
.why-cta:hover,
.nav-cta-secondary:hover {
    background-position: right center; 
    color: #ffffff;
    filter: brightness(1.15); 
}

/* Specific Adjustments: Navbar CTA */
.nav-cta-secondary {
    font-size: 13px;
    letter-spacing: 1px;
    padding: 12px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
}

.nav-cta-secondary:hover {
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(196, 112, 193, 0.5); 
}

/* Specific Adjustments: Hero CTA */
.hero-cta {
    padding: 20px 50px;
    font-size: 1rem;
    letter-spacing: 3px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(252, 143, 87, 0.2); 
}

.hero-cta:hover {
    transform: translateY(-4px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(196, 112, 193, 0.5); 
}

/* Specific Adjustments: Why CTA */
.why-cta {
    padding: 18px 45px;
    font-size: 1rem;
    letter-spacing: 2px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(231, 111, 81, 0.5);
}

.why-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 40px rgba(196, 112, 193, 0.5);
}

/* =========================================
   4. NEW VIDEO HERO SECTION
   ========================================= */

.video-hero {
    position: relative;
    width: 100%;
    max-width: 100vw; /* Garantiza que el contenedor no exceda el ancho de la pantalla */
    height: 100vh;
    height: 100dvh; /* Uso de viewport dinámico (mejor para dispositivos móviles) */
    overflow: hidden; /* Corta cualquier excedente de video */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
    z-index: 1;
    /* --- Optimizaciones añadidas --- */
    transform: translateZ(0); /* Fuerza la aceleración por hardware (GPU) */
    will-change: transform; /* Le avisa al navegador que optimice este elemento */
}

/* =========================================
   5. INTRO SECTION (PREVIOUS HERO)
   ========================================= */

.intro-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 20px;
    
    /* Nuevo fondo con gradiente premium, reemplazando el grid anterior */
    background: radial-gradient(circle at center, #1a1930 0%, #0c0b22 60%, #000000 100%);
}

.intro-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.intro-content img {
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.4em;
    color: #ffffff;
    margin: 20px 0 25px 0; 
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.3); 
}

.hero-description {
    font-family: 'Barlow', Arial, sans-serif !important;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #ffffff; 
    max-width: 750px;
    margin: 0 auto 40px auto;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 
        1px 2px 5px rgba(0, 0, 0, 1), 
        0 0 20px rgba(255, 255, 255, 0.5), 
        0 0 45px rgba(252, 143, 87, 0.35);
}

/* =========================================
   6. RESPONSIVE DESIGN GLOBALES
   ========================================= */

@media (max-width: 768px) {
    
    /* MODIFICADO: Permite que el contenedor ocupe el 100% del alto para aprovechar el formato 9:16 del video móvil */
    .video-hero {
        height: 100vh; 
        height: 100dvh;
        width: 100%;
    }

    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Garantiza que el video llene el espacio sin deformarse */
        object-position: center; 
    }

    .nav-container {
        padding: 0 20px;
    }
    
    .nav-item {
        display: none; 
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-family: 'Barlow', sans-serif;
        font-size: 0.95rem;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .intro-content img {
        max-width: 100vw !important;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .why-title {
        font-size: 2.5rem;
    }
    
    .why-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr; 
        gap: 50px;
    }
    
    .why-cta {
        width: 100%;
        padding: 18px 10px;
        box-sizing: border-box;
        font-size: 0.9rem;
    }
    
    .reason-desc {
        font-size: 1.05rem; 
    }
}


/* =========================================
   7. SECCIÓN: ¿POR QUÉ DRIVERS?
   ========================================= */

.why-drivers-section {
    position: relative;
    width: 100%;
    padding: 120px 20px;
    background-image: url('./assets/BG.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.why-bg-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 40%, rgba(30, 100, 180, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(30, 100, 180, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(30, 100, 180, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.why-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    width: 100%;
    text-align: center;
}

.why-title {
    font-family: 'Inter', sans-serif; 
    font-size: 3.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8), 0 0 25px rgba(255,255,255,0.7), 0 0 50px rgba(138, 180, 248, 0.4);
}

.why-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: #e0e6ed;
    margin-bottom: 70px;
    font-weight: 400;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4); 
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 70px;
}

.reason-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reason-card:hover {
    transform: translateY(-10px);
}

.reason-icon {
    width: 100px; 
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(252, 143, 87, 0.35)); 
    transition: filter 0.4s ease, transform 0.4s ease;
}

.reason-card:hover .reason-icon {
    filter: drop-shadow(0 0 25px rgba(252, 143, 87, 0.7)); 
    transform: scale(1.05);
}

.reason-title {
    font-family: 'Inter', sans-serif; 
    font-size: 1.4rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 0 0 30px rgba(252, 143, 87, 0.3);
}

.reason-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem; /* Increased from 0.95rem for larger desktop reading */
    line-height: 1.7;  /* Increased slightly so the larger text doesn't feel cramped */
    color: #cbd5e1; 
    font-weight: 400;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.why-footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8; 
    color: #ffffff;
    margin-bottom: 45px;
    font-weight: 600;
    text-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.8), 
        0 0 15px rgba(195, 111, 191, 0.9), 
        0 0 30px rgba(195, 111, 191, 0.6), 
        0 0 45px rgba(195, 111, 191, 0.4); 
}

/* =========================================
   RESPONSIVE DESIGN PARA LA SECCIÓN
   ========================================= */

@media (max-width: 1024px) {
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 50px 30px;
    }
}

@media (max-width: 768px) {
    .why-title {
        font-size: 2.5rem;
    }
    .why-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    .reasons-grid {
        grid-template-columns: 1fr; 
        gap: 50px;
    }
    .why-cta {
        width: 100%;
        padding: 18px 10px;
        box-sizing: border-box;
        font-size: 0.9rem;
    }
    
    /* NEW: Scales down the paragraph size on mobile devices */
    .reason-desc {
        font-size: 1.05rem; 
    }
}

.why-title,
.why-subtitle,
.why-footer-text,
.reason-title,
.reason-desc,
.hero-subtitle,
.hero-description {
    font-family: 'Inter', Arial, sans-serif !important;
}

/* Enhanced Honeycomb Grid for 7 items (4 top, 3 bottom) */
.hex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hex-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hex-row:not(:first-child) {
    margin-top: -65px; 
}

.hex {
    position: relative;
    width: 220px;
    height: 254px; 
    margin: 0 10px; 
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    cursor: pointer;
}

.hex-inner {
    position: absolute;
    inset: 2px; 
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.5s ease;
}

.hex::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
    z-index: 1;
    transition: background 0.5s ease;
}

.hex:hover {
    transform: scale(1.1) translateY(-10px) !important; 
    z-index: 20;
    filter: drop-shadow(0 0 25px rgba(252, 143, 87, 0.6));
}

.hex:hover::before {
    background: linear-gradient(135deg, #fc8f57, #c470c1); 
}

/* Oscurece todos al hacer hover */
.hex:hover .hex-inner {
    background: rgba(12, 11, 34, 0.95) !important;
}

.hex:hover .logo-animate {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.logo-animate {
    transition: transform 0.4s ease, filter 0.4s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hex-float-1 { animation: float 6s ease-in-out infinite; }
.hex-float-2 { animation: float 7s ease-in-out infinite 1s; }
.hex-float-3 { animation: float 8s ease-in-out infinite 2s; }
.hex-float-4 { animation: float 6.5s ease-in-out infinite 0.5s; }
.hex-float-5 { animation: float 7.5s ease-in-out infinite 1.5s; }

.orb-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(252, 143, 87, 0.08) 0%, transparent 70%);
    top: -100px;
    left: -200px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}
.orb-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 112, 193, 0.08) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.center-light {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 800px;
    background: radial-gradient(circle, rgba(196, 112, 193, 0.25) 0%, rgba(252, 143, 87, 0.15) 35%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hex-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px; 
        margin-top: 20px;
        justify-content: center;
    }
    .hex-row {
        display: contents; 
    }
    .hex {
        width: 150px;
        height: 173.2px;
        margin: 0 !important; 
    }
    .center-light {
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(196, 112, 193, 0.2) 0%, rgba(252, 143, 87, 0.1) 40%, transparent 70%);
    }
}