/* VARIABLES GLOBALES */
:root {
     /* La fuente del sistema es instantánea y no parpadea */
    --main-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --primary-blue: #0047AB;
    --accent-purple: #0047AB;
    --dark-bg: #0b0b0b;
    --card-bg: #161616;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    /* Esto hace que el navegador oculte el texto hasta que la fuente esté lista 
       (solo por unos milisegundos), evitando el efecto de cambio visual */
    font-display: block;
}

body {
     -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    /* Si Bebas Neue tarda 0.1s, usará Impact o Arial Black que son parecidas en peso */
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
}
/* Aplicamos la fuente a todo el sitio */
body, h1, h2, h3, h4, .nav-menu li a, .btn, .slide-content h1 {
    /*font-family: 'Inter', sans-serif !important;*/
    font-family: var(--main-font) !important;
}

/* NAVEGACIÓN */
/* NAVEGACIÓN PREMIUM */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(11, 11, 11, 0.7); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(15px); /* Efecto cristal esmerilado */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2000;
    transition: all 0.3s ease;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

/* 1. Mantenemos el color blanco siempre */
.nav-menu li a {
    position: relative;
    color: #ffffff !important; /* Forzamos el blanco */
    text-decoration: none;
    padding: 5px 10px;
    transition: 0.3s;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    
}

/* 2. Creamos la línea de subrayado (invisible por defecto) */
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* Empieza con ancho cero */
    height: 2px;
    background-color: #ffffff; /* 0047AB El azul de tu marca para el detalle */
    transition: width 0.3s ease; /* Animación de expansión */
}

/* 3. Al hacer Hover: la línea se expande y el texto sigue blanco */
.nav-menu li a:hover::after {
    width: 100%; /* La línea cubre todo el ancho del texto */
}

/* Eliminamos cualquier regla antigua que cambiara el color */
.nav-menu li a:hover {
    color: #ffffff; /* Aseguramos que no cambie al azul */
}
/*
.nav-menu li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu li a:hover {
    color: var(--accent-purple);
}
*/


/* Botón de Contacto en el Menú */
.nav-btn {
    background: var(--accent-purple);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700 !important;
}

.nav-btn:hover {
    background: var(--primary-blue);
    color: white !important;
    transform: translateY(-2px);
}

/* RESPONSIVO (MÓVIL) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

@media (max-width: 992px) {
    .hamburger { display: block; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #0b0b0b;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 40px 0;
    }

    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 15px 0; }
}

/* --- LOGO --- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    
    /* Ajustes de posición */
    margin-left: -230px; /* Lo empuja más hacia el borde izquierdo */
    margin-top: 25px;   /* Lo baja un poco respecto a la línea central */
    
    transition: all 0.3s ease;
}

.logo-img {
    height: 200px; /* Ajusta este valor si quieres que se vea un poco más grande */
    width: auto;
    display: block;
}

/* Efecto opcional al pasar el mouse */
.logo-img:hover {
    transform: scale(1.05);
}

/* Ajuste para móviles para que el logo no sea demasiado grande */
@media (max-width: 768px) {
    .logo-img {
        height: 40px; 
    }
}

/* --- HERO Y SUPERPOSICIÓN CLARA --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* Eliminamos el fondo negro por defecto para que no oscurezca */
    background: transparent; 
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;

    background-color: #0b0b0b; /* Color oscuro idéntico al fondo para que no haya parpadeo blanco */
    image-rendering: -webkit-optimize-contrast; /* Mejora la nitidez inicial */
}

.slide.active {
    opacity: 1;
    visibility: visible;
    content-visibility: auto;
}


/* CAPA DE SUPERPOSICIÓN ULTRA LIGERA */
/* Esta capa es crucial: protege el texto blanco pero es casi invisible */
.slide-overlay-light {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.15); /* Solo 15% de oscuridad */
    z-index: 2;
}

/* CONTENIDO SUPERPUESTO */
.slide-content {
    position: relative;
    z-index: 3; /* Por encima de la imagen y la capa ligera */
    text-align: center; /* Centrado como al principio */
    color: #ffffff;
}

/* El título del Slide (el texto grande que te gusta) */
.slide-content h1 {
    font-weight: 800; /* Extra bold para que se vea potente */
    letter-spacing: -2px; /* Un poco de tracking negativo para estilo moderno */
    text-transform: uppercase;
    font-size: 4.5rem;
}

.slide h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    /* Añadimos una sombra sutil al texto para que resalte sobre el fondo claro */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

.slide-content h2 {
    font-weight: 600; /* Extra bold para que se vea potente */
    letter-spacing: -2px; /* Un poco de tracking negativo para estilo moderno */
    text-transform: none;
    font-size: 2.5rem;
}

.slide h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1.1;
    margin-top: 80px;
    margin-bottom: 80px;
    /* Añadimos una sombra sutil al texto para que resalte sobre el fondo claro */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

.slide p {
    font-size: 1.2rem;
    color: #ffffff; /* Texto blanco puro */
    margin-bottom: 40px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* BOTÓN AZUL ORIGINAL */
.btn-primary {
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif !important; /*'Inter', sans-serif !important;*/
    font-weight: 600; /* Para que se vea profesional y legible */
    /*text-transform: uppercase;*/
    letter-spacing: 1px;

    background-color: #0047AB;
    color: #ffffff;
    padding: 16px 45px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    border-radius: 4px;
    transition: 0.3s;
}

/* Mantenemos las animaciones de entrada direccionales */
.slide .anim-left { transform: translateX(-100px); opacity: 0; transition: all 1s ease-out 0.4s; }
.slide .anim-right { transform: translateX(100px); opacity: 0; transition: all 1s ease-out 0.6s; }
.slide .anim-bottom { transform: translateY(50px); opacity: 0; transition: all 1s ease-out 0.8s; }

.slide.active .anim-left,
.slide.active .anim-right,
.slide.active .anim-bottom {
    opacity: 1;
    transform: translate(0);
}


/* --- ANIMACIONES DE ENTRADA NOTABLES --- */
.slide .anim-left { 
    transform: translateX(-150px); /* Más distancia para que se note el movimiento */
    opacity: 0;
}
.slide .anim-right { 
    transform: translateX(150px); 
    opacity: 0;
}
.slide .anim-bottom { 
    transform: translateY(80px); 
    opacity: 0;
}

/* Estado activo: entran a su lugar */
.slide.active .anim-left,
.slide.active .anim-right,
.slide.active .anim-bottom {
    opacity: 1;
    transform: translate(0);
}

/* Delays para efecto cascada */
.slide.active .anim-left { transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s; }
.slide.active .anim-right { transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s; }
.slide.active .anim-bottom { transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s; }

/* --- NAVEGACIÓN NUMÉRICA CENTRADA --- */
.slider-nav-centered {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.nav-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 15px;
    cursor: pointer;
    position: relative;
    padding-bottom: 8px;
    transition: 0.4s ease;
}

.nav-number.active {
    color: #ffffff;
}

.nav-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #0047AB; /* Línea azul bajo el número */
    transition: width 0.4s ease;
}

.nav-number.active::after {
    width: 100%;
}

/* SECCIÓN SERVICIOS ESTILO CLARO */
.services {
    background-color: #f8f9fa; /* Fondo gris muy claro casi blanco */
    padding: 100px 5%;
    text-align: center;
    color: #1a2b4b; /* Azul oscuro para el texto */
}

.services h2 {
    font-family: 'Montserrat', sans-serif; /* Cambiado a una fuente más redonda como la imagen */
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1a3a5a;
    text-transform: none; /* Quitamos las mayúsculas para que sea más moderno */
}

.services .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Sombra suave */
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef; /* Color de carga mientras no hay imagen */
}

.card-body {
    padding: 30px 20px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #111;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: none;
}

.card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}


/* --- NUEVA SECCIÓN DE VIDEO INDEPENDIENTE --- */
.video-separator {
    background-color: #ffffff; /* O el color de fondo de tu sección actual */
    padding: 100px 5%; /* Espacio generoso arriba y abajo */
    display: flex;
    justify-content: center;
    align-items: center;
}

.separator-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
    gap: 30px; /* Espacio entre el botón y las líneas */
}

/* Diseño de las Líneas Finas */
.video-separator .line {
    flex: 1; /* Ocupan todo el espacio disponible lateral */
    height: 1px; /* Espesor muy fino */
    background: linear-gradient(90deg, rgba(0, 71, 171, 0) 0%, rgba(0, 71, 171, 0.2) 50%, rgba(0, 71, 171, 0) 100%);
    /* Degradado sutil para que desaparezcan en los extremos (usando tu azul) */
}

/* Diseño del Botón de Play (Basado en imagen 4) */
.play-btn-main {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: #0047AB; /* Tu azul corporativo */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 71, 171, 0.3); /* Sombra suave azul */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn-main svg {
    width: 25px;
    height: 25px;
    margin-left: 3px; /* Pequeño ajuste para centrar visualmente el triángulo */
}

/* Efectos al pasar el mouse (Hover) */
.play-btn-main:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 71, 171, 0.5); /* Sombra más intensa */
}

/* --- EFECTO PULSANTE SUTIL (Como en imagen 4) --- */
.play-btn-main .pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent-color); /* Tu azul */
    animation: pulse 2s infinite ease-out;
    z-index: -1; /* Detrás del botón */
    opacity: 0.8;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .separator-container { gap: 15px; }
    .play-btn-main { width: 50px; height: 50px; }
    .play-btn-main svg { width: 20px; height: 20px; }
}


/* SECCIÓN ABOUT (ESTILO CLARO) */
/* SECCIÓN SOBRE NOSOTROS CON FONDO PERSONALIZADO */
.about.bg-custom {
    background-image: url('img/bg-image-7.jpg'); /* Nombre del archivo que subiste */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff; /* Color de respaldo */
    padding: 120px 5%;
    position: relative;
    overflow: hidden;
}

/* Ajuste de opacidad de los textos para legibilidad sobre el fondo con curvas */
.about-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 50px;
    color: #1a3a5a; /* Azul oscuro para contraste */
}

/* El resto del CSS se mantiene igual para los iconos y nube de palabras */
.about-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre el fondo */
}

/* ... (Aquí iría el resto del CSS anterior de MV-Item y Word-Cloud) ... */

.about {
    background-color: #ffffff; /* Fondo blanco puro */
    padding: 120px 5%;
    color: #1a2b4b; /* Azul oscuro corporativo */
}

.about-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

/* COLUMNA DE TEXTO (IZQUIERDA) */
.about-text {
    flex: 1;
    max-width: 550px;
}

.about-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 50px;
    color: #111;
    text-transform: none;
}

.mission-vision-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mv-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.mv-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: #0047AB; /* Tu azul cobalto */
    margin-top: 5px;
}

.mv-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #111;
    font-weight: 700;
}

.mv-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* COLUMNA VISUAL (DERECHA) */
/* Contenedor de la parte derecha (Robot y Nube) */
.about-visual {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Aumentamos la altura mínima para dar espacio al robot */
}

/* Contenedor específico de la imagen */
.robot-image-container {
    position: relative;
    width: 110%; /* Hacemos que el contenedor sea un poco más ancho que su espacio */
    display: flex;
    justify-content: center;
    z-index: 1;
}

/* Ajustes para que el robot sea más grande */
.robot-about {
    width: 100%; 
    max-width: 500px; /* Aumentamos el tamaño máximo (antes solía ser 400px o 500px) */
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.2)); /* Sombra para darle profundidad */
    transition: transform 0.5s ease;
    transform: scale(1.1); /* Un pequeño aumento extra de escala */
    margin-top: -50px;
}

/* Efecto al pasar el mouse sobre la sección */
.about:hover .robot-about {
    transform: scale(1.15) translateY(-10px); /* El robot crece y flota sutilmente */
}


/* NUBE DE PALABRAS (ESTILO NEÓN) 
.word-cloud {
    position: absolute;
    top: -50px;
    right: 50px;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.word {
    padding: 2px 5px;
}

.word.purple { color: #0047AB; }
.word.gray { color: #a0a0a0; }
.word.cyan { color: #00C8FF; text-shadow: 0 0 10px rgba(0, 200, 255, 0.5); }
.word.pink { color: #FF66A3; text-shadow: 0 0 10px rgba(255, 102, 163, 0.5); }
.word.blue { color: #0047AB; }
*/


/* RESPONSIVO    992px*/
@media (max-width: 80%) {
    .about-flex { flex-direction: column-reverse; text-align: center; }
    .about-visual { justify-content: center; margin-bottom: 50px; }
    .word-cloud { position: relative; top: 0; right: 0; text-align: center; margin-bottom: 20px; }
    .robot-about { max-width: 300px; }
    .mv-item { flex-direction: column; align-items: center; }
}

/* SECCIÓN CTA BANNER */
.cta-banner {
    background: linear-gradient(90deg, #6c757d 0%, #495057 100%); /* Gris elegante degradado */
    padding: 60px 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta-text {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.5px;
}

.cta-button {
    background-color: #ffffff;
    color: #333333;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap; /* Evita que el texto del botón se rompa en dos líneas */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: var(--accent-purple); /* Usa el morado de tu marca al pasar el mouse */
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Ajuste para tablets y celulares */
@media (max-width: 992px) {
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
}

/* SECCIÓN LO QUE PODEMOS HACER */
.what-we-do {
    background-color: #ffffff; /* Fondo blanco */
    padding: 100px 5%;
    text-align: center;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1a3a5a;
}

/* SECCIÓN LO QUE PODEMOS HACER (CON ICONOS FLOTANTES) */
.what-we-do {
    background-color: #ffffff; /* Fondo blanco */
    padding: 120px 5%;
    text-align: center;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1a3a5a;
}

/* Estructura de Cards */
.what-we-do .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.what-we-do .card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    
    /* ANIMACIÓN ORIGINAL */
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    cursor: default;
}

.what-we-do .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* POSICIONAMIENTO DEL ICONO FLOTANTE */
.what-we-do .card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative; /* Clave para posicionar el icono */
    overflow: hidden;
}

.icon-floating {
    position: absolute;
    bottom: -10px; /* Un poco por debajo del borde para que 'salga' al hover */
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-purple); /* Tu morado de marca */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(123, 44, 191, 0.3);
    z-index: 2;
    
    /* ANIMACIÓN DEL ICONO */
    transition: transform 0.4s ease, opacity 0.3s ease;
    opacity: 0.8; /* Ligeramente transparente por defecto */
    transform: translateY(10px); /* Oculto un poco por defecto */
}

.icon-floating svg {
    width: 30px;
    height: 30px;
}

/* EFECTO DEL ICONO AL HOVER DE LA TARJETA */
.what-we-do .card:hover .icon-floating {
    opacity: 1; /* Se vuelve opaco */
    transform: translateY(-5px); /* Sube suavemente */
}

.what-we-do .card-body {
    padding: 30px 20px;
}

.what-we-do .card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #111;
    font-weight: 700;
}

.what-we-do .card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}



/* --- PATRONES GEOMÉTRICOS FIJOS (ESTÁTICOS) --- */
.geometric-grid {
    position: absolute;
    bottom: 0px; /* Separación del borde inferior */
    width: 150px; /* Ancho total del patrón */
    height: 150px; /* Alto total */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3x3 como en la imagen */
    gap: 1px; /* Espaciado muy fino entre cubos */
    pointer-events: none; /* No interfieren con el slider */
    z-index: 5; /* Por encima de la imagen de fondo */
    /*opacity: 0.6; /* Un poco de transparencia como en el original */
}

/* Posición Izquierda */
.fixed-left {
    left: 0px;
}

/* Posición Derecha */
.fixed-right {
    right: 0px;
}

/* Estilo Base del Cubo */
.cube {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Cubos Llenos (Azul Corporativo) */
.cube.filled {
    background-color: #ffffff; /* El azul original que pediste */
    border: 1px solid rgba(233, 226, 226, 0.792);
}

/* Cubos Vacíos (Wireframe o casi invisibles) */
.cube.empty {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.813); /* Línea ultra fina */
}

/* Ajustes para que la navegación numérica siga centrada arriba de esto */
.slider-nav-centered {
    z-index: 10; /* Aseguramos que los números estén por encima */
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .geometric-grid {
        width: 100px;
        height: 100px;
        bottom: 10px;
    }
    .fixed-left { left: 10px; }
    .fixed-right { right: 10px; }
}


/* FOOTER */
footer {
    background: #050505;
    padding: 60px 10% 30px;
    border-top: 1px solid #1a1a1a;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin-left: 80px;
}

.footer-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 5px 80px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #adaaaa;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .slide h1 { font-size: 3rem; }
    .footer-top { flex-direction: column; text-align: center; }
}



/* CONTACT PAGE */

/* Contenedor Principal */
.contact-hero-section {
    position: relative;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
}

/* Imagen de fondo (Cabecera) */
.hero-background {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url('img/contact-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-center-text h1 {
    font-size: 5rem;
    font-weight: 800;
    color: white;
}



/* El truco de la superposición */
/* Contenedor de toda la sección */
.contact-main-area {
    background-color: #ffffff; /* Fondo de la página */
    padding-bottom: 100px;
}

.contact-layout {
    max-width: 1200px;
    margin: -150px auto 0; /* Superposición sobre el Hero */
    display: flex; /* Alinea uno al lado del otro */
    align-items: flex-start;
    gap: 0; /* Sin espacio entre ellos, pero son bloques distintos */
    position: relative;
    z-index: 10;
}

/* Tarjeta Negra */
.info-card-black {
    background-color: #000000;
    color: #ffffff;
    width: 450px;
    padding: 70px 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    min-height: 730px;
    display: flex;
    flex-direction: column;
}

.display-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 60px;
}

.detail-group {
    margin-bottom: 40px;
}

.detail-group h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.detail-group p {
    color: #999;
    font-size: 0.95rem;
}

.social-links-row {
    margin-top: auto;
    display: flex;
    gap: 25px;
}

.social-links-row a {
    color: #fff;
    font-size: 1.1rem;
}

/* Formulario independiente (Lado Derecho) */
.form-stand-alone {
    flex: 1; /* Ocupa el resto del espacio */
    /*background-color: #ffffff;*/
    padding-top: 200px;
    padding-left: 100px;
    /*padding: 70px 80px;

     Importante: no tiene box-shadow para que se vea integrado al fondo */
}

.input-row {
    margin-bottom: 30px;
}

.input-row input, 
.input-row textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.input-row input:focus, 
.input-row textarea:focus {
    border-bottom-color: #0047AB;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0;
    font-size: 0.9rem;
    color: #666;
}

.btn-blue-submit {
    width: 100%;
    background-color: #0047AB;
    color: white;
    padding: 20px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-blue-submit:hover {
    background-color: #003580;
}


/* --- FOOTER SECTION ---- */
.footer-refined {
    background-color: #000000;
    color: #ffffff;
    padding: 100px 0 40px;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.footer-main-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
}

/* Sección de Marca */
.footer-brand-section {
    max-width: 400px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: -5px;
    margin-bottom: 0px;
}

.footer-logo-img {
    height: 150px; /* Ajusta según tu imagen del robot */
}

.footer-brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: 1px;
}

.footer-brand-name small {
    color: #0047AB; /* Azul TenAIcity */
    font-size: 1.4rem;
}

.footer-description {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Sección de Contacto */
.footer-contact-section {
    text-align: left;
    min-width: 250px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-email {
    display: block;
    color: #cccccc;
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 0.95rem;
    transition: 0.3s;
}

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

.footer-social-icons {
    display: flex;
    gap: 20px;
}

.footer-social-icons a {
    color: #ffffff;
    font-size: 1.1rem;
    transition: 0.3s;
}

.footer-social-icons a:hover {
    transform: translateY(-3px);
    color: #0047AB;
}

/* Barra inferior y botón subir */
.footer-bottom-bar {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 30px 50px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: flex-end; /* Alineado a la derecha como la imagen */
    align-items: center;
    position: relative;
}

.footer-bottom-bar p {
    font-size: 0.85rem;
    color: #666666;
}

.all-rights {
    color: #007a7a; /* Ese tono cian oscuro de tu captura */
    margin-left: 5px;
}

.back-to-top {
    position: absolute;
    right: 50px;
    bottom: 20px;
    background: #ffffff;
    color: #000000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.back-to-top:hover {
    background: #0047AB;
    color: #ffffff;
}



/* Contenedor del logo y nombre */
.large-logo-wrapper {
    display: flex;
    align-items: center; /* Alinea el texto al centro vertical del robot */
    gap: 25px; /* Más espacio entre el robot y las letras */
    margin-bottom: 35px;
}

/* El Robot más grande */
.footer-robot-large {
    height: 350px; /* Antes era 80px, aquí puedes probar con 140px o 150px */
    margin-top: -130px !important;
    margin-bottom: -130px;
    filter: drop-shadow(0 0 10px rgba(0, 71, 171, 0.2)); /* Opcional: un brillo azul sutil */
}

@media (max-width: 480px) {
    .footer-robot-large {
        height: 80px; /* Se reduce un poco solo en pantallas pequeñas */
    }
    .footer-brand-name {
        font-size: 1.8rem;
    }
}

/* dropdown MULTI-LANGUAJE*/
/* Estilo del contenedor del Dropdown */
.dropdown {
    display: inline-block;
    position: relative;
}

.dropbtn {
    color: white;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* El contenido del menú (oculto por defecto) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #111111; /* Negro profundo como el footer */
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    top: 100%;
    right: 0; /* Alineado a la derecha */
    overflow: hidden;
}

/* Enlaces dentro del dropdown */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    transition: 0.3s;
}

/* Cambio de color al pasar el mouse */
.dropdown-content a:hover {
    background-color: #0047AB; /* El azul Tenacity */
    color: white;
}

/* Mostrar el menú al hacer hover */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.flag-icon {
    font-size: 1.1rem;
}

/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}