:root {
    --bg-dark: #000000;
    --bg-light: #ffffff;
    --text-dark: #242320;
    --text-muted: #666666;
    --text-light: #ffffff;
    --font-main: 'Manrope', sans-serif;
    --font-heading: 'Syne', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- NAVEGACIÓN --- */
/* --- BARRA DE NAVEGACIÓN FIJA (ESCONDIDA DE PRIMERA INSTANCIA) --- */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    
    /* Estado inicial: Completamente oculta arriba del todo */
    transform: translateY(-100%);
    
    /* Transición suave para el efecto de deslizar de arriba a abajo */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Se activa únicamente cuando se detecta el scroll en JS */
.nav-bar.scrolled {
    transform: translateY(0); /* Baja a su posición original visible */
}

.nav-container {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* Botón de hamburguesa */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.hamburger-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-dark);
}

.small-logo {
    height: 28px;
}

/* --- BOTÓN HAMBURGUESA --- */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* --- MENÚ OVERLAY A PANTALLA COMPLETA --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark); /* Fondo negro elegante */
    z-index: 2000;
    display: flex;
    align-items: center; /* Centra el contenido verticalmente en la pantalla */
    justify-content: center;
    box-sizing: border-box;
    padding: 0 80px; /* Margen generoso a los lados */
    
    /* Animación de apertura estándar */
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estado activo administrado por JS */
.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* Botón para cerrar en la esquina superior derecha */
.close-btn {
    position: absolute;
    top: 25px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 45px;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 0.7;
}
/* --- REJILLA DEL MENÚ (2 COLUMNAS ASIMÉTRICAS A TODO LO ALTO) --- */
.menu-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Columna izquierda más ancha */
    width: 100%;
    max-width: 1200px;
    height: 70vh; /* Le damos una altura fija interna para poder estirar los elementos a las esquinas */
    gap: 100px; 
    align-items: stretch; /* Estira ambas columnas de arriba a abajo */
}

/* --- COLUMNA IZQUIERDA (Home y Contacto abajo, Logo arriba) --- */
.overlay-links-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el logo al tope y los enlaces al fondo */
    height: 100%;
}

.overlay-link {
    font-family: var(--font-heading);
    font-size: 56px; /* Letras grandes y sofisticadas */
    font-weight: 400;
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.1;
    align-self: flex-start;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Enlaces gigantes (Home, Contacto) abajo a la izquierda */
.menu-links-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.overlay-link {
    font-family: var(--font-heading);
    font-size: 56px; /* Letras grandes y sofisticadas */
    font-weight: 400;
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.1;
    align-self: flex-start;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.overlay-link:hover {
    opacity: 0.7;
    transform: translateX(10px);
}


/* --- COLUMNA DERECHA (Contacto e Email abajo a la derecha) --- */
.overlay-contact-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Empuja todo el bloque de información hacia el piso derecho */
    gap: 40px; 
    height: 100%;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end; /* Alinea los textos a la derecha de su columna */
    text-align: right;
}

/* Etiquetas pequeñas ("Escríbenos", "Ubicación") */
.contact-label {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
}

/* Correo electrónico (Esquina inferior derecha) */
.overlay-email {
    font-family: var(--font-main);
    font-size: 18px;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 4px;
    width: fit-content;
    transition: border-color 0.3s;
}

.overlay-email:hover {
    border-color: var(--text-light);
}

/* Ubicación */
.contact-text {
    font-family: var(--font-main);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}


/* --- RESPONSIVIDAD PARA MÓVILES --- */
@media (max-width: 768px) {
    .menu-overlay {
        padding: 40px;
    }
    
    .menu-grid-container {
        grid-template-columns: 1fr; /* Pasa a una sola columna */
        height: auto;
        gap: 50px;
    }
    
    .overlay-link {
        font-size: 40px;
    }
    
    .contact-block {
        align-items: flex-start; /* En móvil se regresa a la izquierda para mejor lectura */
        text-align: left;
    }
}

/* --- HERO BANNER (CON VIDEO DE FONDO) --- */
.hero-section {
    position: relative;
    height: 100vh; /* Ocupa el 100% del alto de la pantalla */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    box-sizing: border-box;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Queda detrás del contenido */
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que el video llene el espacio sin deformarse */
}

/* Filtro oscuro para garantizar contraste del texto blanco */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2; /* Por encima del video, por debajo del texto */
}

/* --- CONTENEDOR HERO INTERNO --- */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    height: 100vh; /* Forzamos a que use todo el alto de la ventana */
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Empuja firmemente todo el contenido al fondo */
    box-sizing: border-box;
}

/* El logo se mantiene centrado e inmóvil en su posición asimétrica */
.big-logo-image {
    max-width: 650px;
    width: 100%;
    height: auto;
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* Fila inferior: Texto a la izquierda, Botón a la derecha en el fondo */
.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 40px;
    margin-bottom: 40px; /* Despegado sutil del límite inferior de la pantalla */
}

.hero-text {
    max-width: 420px; /* Rompe el texto en varias líneas igual que el diseño */
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
}

.button-secondary {
    display: inline-block;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 14px 36px;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap; /* Evita que el botón se rompa en dos renglones */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-dark); /* Invierte colores al pasar el cursor */
}

/* --- SECCIONES COMUNES --- */
.section-container {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.mono-text {
    font-family: var(--font-mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 0;
}

/* --- IMAGEN EN PARALLAX --- */
.full-width-image-section {
    max-width: 100%;
    padding: 0;
    height: 60vh;
    overflow: hidden;
    position: relative;
}

.parallax-image {
    width: 100%;
    height: 140%;
    object-fit: cover;
    position: absolute;
    top: -20%;
    will-change: transform;
}

/* --- REJILLA DE SERVICIOS / TECNOLOGÍA --- */
.services-category-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
    margin: 60px 0 30px 0;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon_black {
    width: 24px;
    height: 24px;
}

.service-card .mono-text {
    margin-bottom: 0;
    color: var(--text-dark);
    font-weight: 500;
}

.medium-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

.divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 40px 0;
}

/* --- SECCIÓN CONOCE MÁS --- */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.large-text {
    font-size: 22px;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.mission-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* --- SECCIÓN STICKY: FACTORES CLAVE --- */
.sticky-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.left-sticky-column {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.right-scroll-column {
    display: flex;
    flex-direction: column;
}

.services-item {
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.services-item h4 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    margin: 10px 0 15px 0;
}

/* --- BOTÓN PRINCIPAL OSCURO --- */
.button-dark {
    display: inline-block;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 14px 32px;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.button-dark:hover {
    opacity: 0.9;
}

.footer {
    background-color: #f9f9f9; 
    text-align: center; 
    padding: 40px 20px; 
    font-size: 13px; 
    color: var(--text-muted); 
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 768px) {
    .hero-content {
        padding: 100px 20px 40px 20px;
    }
    
    .hero-bottom {
        flex-direction: column;
        align-items: flex-start; /* En móvil se apilan hacia la izquierda */
        gap: 25px;
    }
    
    .hero-text {
        font-size: 16px;
        max-width: 100%;
    }
}

/* --- RESPONSIVIDAD PARA MÓVILES --- */
@media (max-width: 768px) {
    .menu-overlay {
        padding: 0 40px;
    }
    
    .menu-grid-container {
        grid-template-columns: 1fr; /* Pasa a una sola columna en móviles */
        gap: 50px;
    }
    
    .overlay-link {
        font-size: 40px;
    }
    
    .overlay-contact-right {
        padding-top: 0;
    }
}

/* ==========================================================================
   ESTILOS: SECCIÓN DE INNOVACIÓN
   ========================================================================== */
/* ==========================================================================
   ESTILOS: SECCIÓN DE INNOVACIÓN (ESTRUCTURA EXACTA DE STARPORT)
   ========================================================================= */
.innovation-section {
    position: relative;
    width: 100%;
    min-height: 25rem; /* Mantiene la altura proporcional premium */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;

    background-color: var(--primary--black, #000000);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* El fondo de ondas estirado simétricamente al 100% de la pantalla */
.innovation-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    
    /* Imagen de ondas con el oscurecimiento nativo incorporado */
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), 
                      url('https://cdn.prod.website-files.com/66b4760e97764e77ef48616e/66bbc6f791ceecb0c7fbb85c_waves.png');
    
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* EFECTO PARALLAX REAL */
    z-index: 1;
}

/* Contenedor de la retícula asimétrica de textos */
.innovation-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 80px;
    align-items: flex-start;
    position: relative;
    z-index: 2; /* Obliga al texto a flotar sobre la imagen de las ondas */
    
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 40px;
    box-sizing: border-box;
}

.innovation-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.innovation-heading {
    font-family: 'Manrope', sans-serif;
    font-size: 48px;
    line-height: 1.15;
    color: var(--primary--white, #ffffff);
    margin: 0;
    font-weight: 400;
}

.innovation-right {
    padding-top: 55px; /* Alineación milimétrica con la segunda línea del título */
}

.innovation-right .medium-text {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* --- OPTIMIZACIÓN RESPONSIVA (MÓVILES) --- */
@media (max-width: 991px) {
    .innovation-section {
        min-height: auto;
    }
    
    .innovation-section::before {
        background-attachment: scroll; /* Desactiva fixed en móviles para evitar parpadeos */
        width: 100%;
        left: 0;
        transform: none;
    }

    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 4rem 24px;
    }
    
    .innovation-right {
        padding-top: 0;
    }
    
    .innovation-heading {
        font-size: 36px;
    }
}
/* ==========================================================================
   ESTILOS: FOOTER CORPORATIVO EXTENDIDO
   ========================================================================== */
.main-footer {
    background-color: #000000;
    padding: 80px 40px 60px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-logo {
    height: 24px;
    width: fit-content;
    opacity: 0.9;
}

.footer-copyright {
    font-family: var(--font-main);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-links-column {
    display: flex;
    gap: 100px;
}

.footer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-group-title {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 6px;
}

.footer-link {
    font-family: var(--font-main);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* --- RESPONSIVIDAD DE AMBOS COMPONENTES --- */
@media (max-width: 991px) {
    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .innovation-right {
        padding-top: 0;
    }
    
    .innovation-heading {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links-column {
        gap: 60px;
    }
}

/* ==========================================================================
   ESTILOS: PÁGINA DE CONTACTO (ENCAPSULADO PARA NO CONTROPONERSE)
   ========================================================================== */

/* Contenedor maestro exclusivo de la página de contacto */
.contact-page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    /* Forzamos a que el fondo de esta página sea arena sin romper el de la principal */
    background-color: var(--primary--sand, #f7f5ef); 
}

.contact-page-wrapper .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* --- RETÍCULA ASIMÉTRICA --- */
.contact-page-wrapper .contact-header-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-page-wrapper .header-block {
    grid-column: span 12;
}

.contact-page-wrapper .contact-content-grid {
    display: grid;
    grid-template-columns: 2fr 7fr 3fr; 
    gap: 4rem;
    align-items: flex-start;
}

/* --- COMPONENTES DE TEXTO Y TIPOGRAFÍA --- */
.contact-page-wrapper .mono-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-color--neutral, #666666);
    display: inline-block;
}

.contact-page-wrapper .contact-heading {
    font-family: 'Syne', sans-serif;
    font-size: 80px;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    color: var(--primary--black, #000000);
}

.contact-page-wrapper .small-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color--neutral, #666666);
    margin: 0;
}

.contact-page-wrapper .support-link {
    font-size: 14px;
    color: var(--primary--black, #000000);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-page-wrapper .support-link:hover {
    opacity: 0.7;
}

/* Márgenes utilitarios aislados */
.contact-page-wrapper .margin-bottom-medium { margin-bottom: 1.5rem; }
.contact-page-wrapper .margin-bottom-small { margin-bottom: 0.75rem; }
.contact-page-wrapper .margin-top-large { margin-top: 2.5rem; }

/* ==========================================================================
   FORMULARIO DE CONTACTO MINIMALISTA
   ========================================================================== */
.contact-page-wrapper .form-block {
    width: 100%;
}

.contact-page-wrapper .form-row-twin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-page-wrapper .form-input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(36, 35, 32, 0.2);
    padding: 14px 0;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: var(--primary--charcoal, #242320);
    outline: none;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.contact-page-wrapper .form-input::placeholder {
    color: rgba(36, 35, 32, 0.4);
}

.contact-page-wrapper .form-input:focus {
    border-bottom-color: var(--primary--black, #000000);
}

.contact-page-wrapper .form-input.text-area {
    min-height: 120px;
    resize: none;
}

/* Botón de envío */
.contact-page-wrapper .form-submit-button {
    background-color: var(--primary--charcoal, #242320);
    color: var(--primary--sand, #f7f5ef);
    border: none;
    padding: 12px 28px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.contact-page-wrapper .form-submit-button:hover {
    background-color: var(--primary--black, #000000);
}

.contact-page-wrapper .align-right-desktop {
    text-align: right;
}

/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVA (MÓVILES)
   ========================================================================== */
@media (max-width: 991px) {
    .contact-page-wrapper {
        padding: 40px 0;
    }

    .contact-page-wrapper .contact-heading {
        font-size: 56px;
    }

    .contact-page-wrapper .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-page-wrapper .align-right-desktop {
        text-align: left;
    }

    .contact-page-wrapper .form-row-twin {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-page-wrapper .container {
        padding: 0 24px;
    }
}