/* =================================================================
   01. VARIABLES Y RESET GLOBAL
   ================================================================= */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0f0f0f;
    --text-main: #FFFFFF;
    --text-muted: #A0AAB9;
    --accent-ia: #5BC0EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    min-height: 100vh;
}

/* =================================================================
   02. TIPOGRAFÍA Y UTILIDADES
   ================================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

.bg-image-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* =================================================================
   03. BARRA SUPERIOR (HEADER UNIFICADO)
   ================================================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 25px;
    background-color: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;

    /* ANTI-ZOOM FIX: El gap se ajusta automáticamente si falta espacio */
    gap: clamp(20px, 8vw, 120px);
    flex-wrap: nowrap;

    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.2, 1);
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

.main-nav {
    display: flex;
    align-items: center;
    /* ANTI-ZOOM FIX: Gap dinámico para los botones */
    gap: clamp(15px, 2vw, 30px);
    margin-top: 10px;
    flex-wrap: nowrap;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    /* Evita compresión al hacer zoom */
}

.main-nav a:hover {
    color: var(--accent-ia);
}

/* Toque violeta exclusivo */
.main-nav a[href="integracion-ia.html"]:hover,
.gd-dropdown-content a[href="integracion-ia.html"]:hover {
    color: #9D4EDD !important;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

.gd-dropdown-content a[href="integracion-ia.html"]:hover::before {
    color: #9D4EDD !important;
}

/* =================================================================
   04. MENÚ DESPLEGABLE (TELÓN MEGA MENÚ)
   ================================================================= */
.gd-dropdown-wrapper {
    position: static;
}

.gd-dropdown-btn {
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0 0 8px 0;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.gd-dropdown-btn:hover {
    color: var(--accent-ia);
    border-color: var(--accent-ia);
}

.gd-arrow-down {
    transition: transform 0.6s ease;
}

.gd-dropdown-content {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    background-color: #000000;
    width: 100vw;
    max-width: 100vw;
    border: none;
    border-radius: 0;
    padding: 70px 150px 170px 150px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px 40px;

    /* Vital: Permite que el texto largo baje de renglón en el telón */
    white-space: normal;

    opacity: 0;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: opacity 0.6s ease, visibility 0.8s, clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gd-dropdown-wrapper.is-open .gd-dropdown-content {
    opacity: 1;
    visibility: visible;
    clip-path: inset(0 0 0 0);
}

.gd-dropdown-wrapper.is-open .gd-arrow-down {
    transform: rotate(180deg);
}

.gd-invite-arrow {
    position: absolute;
    top: 0px;
    left: 140px;
    color: var(--accent-ia);
    display: flex;
    align-items: center;
}

.gd-invite-arrow svg {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 12px rgba(91, 192, 235, 0.9));
    animation: pulsar-flecha 1.5s infinite ease-in-out;
}

@keyframes pulsar-flecha {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }
}

.gd-dropdown-content a {
    position: relative;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    white-space: normal !important;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.gd-dropdown-content a::before {
    content: "❯";
    position: absolute;
    left: 0;
    top: 0.15em;
    color: var(--accent-ia);
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.gd-dropdown-content a:hover {
    color: #ffffff;
    padding-left: 25px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.gd-dropdown-content a:hover::before {
    opacity: 1;
}


/* =================================================================
   05. BUSCADOR INTEGRADO EN HEADER (CUADRADO, FLUIDO, MISMO ANCHO)
   ================================================================= */
.header-search-wrapper {
    margin-left: auto;
    /* Lo empuja a la derecha del menú */
    margin-right: clamp(20px, 4vw, 50px);
    /* Margen seguro del borde derecho */
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 5px;
    /* Alineación con tus botones */
}

/* Barra interactiva - Ahora es CUADRADA / RECTANGULAR */
.header-search-bar {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 4px;
    /* <--- Bordes rectos y modernos */
    width: 44px;
    /* Tamaño inicial: solo el botón */
    height: 44px;
    overflow: hidden;
    /* Animación limpia, fluida y de despliegue exacto (sin rebote) */
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.4s ease,
        border-color 0.4s ease;
    border: 1px solid transparent;
}

/* Estado Expandido */
.header-search-bar.is-expanded {
    width: 350px;
    /* <--- Exactamente el MISMO ANCHO que el desplegable */
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Botón Lupa */
.header-search-btn {
    min-width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Le agregamos una sutil rotación/escala al abrir */
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-search-bar.is-expanded .header-search-btn {
    color: var(--accent-ia);
    transform: scale(1.05);
    /* La lupa resalta al abrirse */
}

/* Campo de Texto */
#header-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    padding-right: 15px;

    /* El texto entra deslizado para dar sensación de fluidez */
    opacity: 0;
    pointer-events: none;
    transform: translateX(15px);
    transition: opacity 0.4s ease 0.1s, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.1s;
}

.header-search-bar.is-expanded #header-search-input {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* Caja de Resultados Desplegable */
.header-search-dropdown {
    position: absolute;
    top: 55px;
    /* Un poco más pegada a la barra */
    right: 0;
    width: 350px;
    /* <--- Mismo ancho que la barra expandida */
    background: #050a12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    /* <--- Bordes cuadrados haciendo juego */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    max-height: 400px;
    overflow-y: auto;

    /* Animación de apertura general del contenedor */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.98);
    transform-origin: top right;
    /* Se despliega desde la lupa */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.header-search-dropdown.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Scroll interno sutil */
.header-search-dropdown::-webkit-scrollbar {
    width: 5px;
}

.header-search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* ------------------------------------------------------------
   EFECTO CASCADA EN LOS RESULTADOS (La magia de la fluidez) 
   ------------------------------------------------------------ */
.search-res-item {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, padding-left 0.3s ease;

    /* Por defecto están ocultos y movidos a la derecha */
    opacity: 0;
    transform: translateX(15px);
    /* Cuando JS los inyecta, se activa esta animación */
    animation: resFadeInSlide 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Retrasos escalonados para que entren uno por uno */
.search-res-item:nth-child(1) {
    animation-delay: 0.05s;
}

.search-res-item:nth-child(2) {
    animation-delay: 0.1s;
}

.search-res-item:nth-child(3) {
    animation-delay: 0.15s;
}

.search-res-item:nth-child(4) {
    animation-delay: 0.2s;
}

.search-res-item:nth-child(n+5) {
    animation-delay: 0.25s;
}

@keyframes resFadeInSlide {
    0% {
        opacity: 0;
        transform: translateX(15px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.search-res-item:last-child {
    border-bottom: none;
}

/* Al pasar el mouse */
.search-res-item:hover {
    background: rgba(91, 192, 235, 0.08);
    padding-left: 25px;
    /* Sutil movimiento para interactividad */
}

.res-title {
    display: block;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.search-res-item:hover .res-title {
    color: var(--accent-ia);
    /* El título brilla en cyan */
}

.res-desc {
    display: block;
    color: #94a3b8;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Responsive celular */
@media (max-width: 768px) {
    .header-search-wrapper {
        margin-right: 20px;
    }

    /* En celular ambos bajan de tamaño, pero siguen siendo idénticos en ancho */
    .header-search-bar.is-expanded {
        width: 260px;
    }

    .header-search-dropdown {
        width: 260px;
    }
}

/* =================================================================
   06. RESPONSIVE Y MENÚ MÓVIL (MODULAR)
   ================================================================= */

/* Ocultar botón hamburguesa en escritorio por defecto */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--accent-ia);
}

/* MEDIA QUERY EXCLUSIVO PARA MÓVILES */
@media (max-width: 768px) {

    /* 1. Prevención estricta de scroll horizontal */
    body,
    html {
        overflow-x: hidden;
    }

    /* 2. Ajuste del Header para alinear Logo, Lupa y Menú */
    .main-header {
        padding: 15px 20px;
        gap: 10px;
        align-items: center;
        /* Centrado vertical */
    }

    /* 3. Mostrar botón hamburguesa */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 4. Transformar el nav en un panel lateral top-right */
    .main-nav {
        position: fixed;
        top: 74px;
        /* Altura estimada del header, ajusta si es necesario */
        right: -100%;
        /* Oculto fuera de pantalla */
        width: 260px;
        max-height: calc(100vh - 74px);
        background-color: #050a12;
        /* Fondo oscuro integrado */
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0 0 0 8px;
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px;
        gap: 20px;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 998;
        box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.8);
        margin-top: 0;
    }

    /* Clase activa que añadiremos con JS para deslizar el menú */
    .main-nav.is-mobile-open {
        right: 0;
    }

    /* 5. Ajustes de botones principales del menú ("Lo que hacemos" / "Nosotros") */
    .gd-dropdown-wrapper {
        width: 100%;
    }

    .gd-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        /* Texto izquierda, flecha derecha */
        padding-bottom: 12px;
        font-size: 1.1rem;
    }

    /* 6. Adaptar Mega Menú a Acordeón de flujo normal (Anula conflicto de z-index/overflow) */
    .gd-dropdown-content {
        position: static;
        /* Vital: lo devuelve al flujo del documento */
        width: 100%;
        max-width: 100%;
        padding: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
        gap: 12px;

        /* Reemplazamos clip-path con max-height para un acordeón sin saltos */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        clip-path: none;
        transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.3s ease;
    }

    /* Cuando tu JS actual agregue .is-open, el submenú baja empujando el contenido */
    .gd-dropdown-wrapper.is-open .gd-dropdown-content {
        max-height: 700px;
        /* Altura suficiente para los links */
        opacity: 1;
        visibility: visible;
        margin-top: 15px;
    }

    .gd-invite-arrow {
        display: none;
        /* Ocultamos la flecha decorativa gigante en celular */
    }

    .gd-dropdown-content a {
        font-size: 0.95rem;
        padding-left: 15px;
    }

    .gd-dropdown-content a::before {
        left: 0;
        opacity: 0.5;
        /* Viñeta siempre visible para accesibilidad */
    }

    /* 7. Buscador: Ajustes milimétricos para que no pelee por espacio con el menú */
    .header-search-wrapper {
        margin-left: auto;
        margin-right: 10px;
        /* Separación de la hamburguesa */
        margin-top: 0;
    }

    .header-search-bar.is-expanded {
        width: 180px;
        /* Más corto en celular para no tapar el logo */
    }

    .header-search-dropdown {
        width: 260px;
        right: -40px;
        /* Centrado respecto a la lupa */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
        /* Ajusta este valor según la altura real de tu header */
    }
}

/* =================================================================
   05. SECCIÓN HERO (PORTADA PRINCIPAL)
   ================================================================= */
.section-hero {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    padding-right: 5%;
    background-color: var(--bg-primary);
}

/* --- ANIMACIÓN DEL LOGO (Horizontal) --- */
.logo-interactive-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.logo-img {
    width: 70px;
    height: auto;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.logo-text-reveal {
    position: absolute;
    left: 45px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.logo-nombre-img {
    width: 120px;
    height: auto;
    display: block;
    margin-top: 0;
}

/* Hover (PC) y Toque (Móvil) unificados */
.logo-interactive-wrapper:hover .logo-img,
.logo-interactive-wrapper.mobile-active .logo-img {
    transform: scale(0.6) translateX(-25px);
}

.logo-interactive-wrapper:hover .logo-text-reveal,
.logo-interactive-wrapper.mobile-active .logo-text-reveal {
    opacity: 1;
    transform: translateX(0);
}

/* --- IMAGEN DE FONDO FUSIONADA --- */
.hero-bg-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    will-change: opacity;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%);
    mask-image: linear-gradient(to right, transparent 0%, black 50%);
}

.hero-bg-image-wrapper.is-visible {
    opacity: 0.45;
}

.hero-bg-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(100%) brightness(1.1);
}

/* --- CONTENIDO CENTRAL (Tipografía Gigante) --- */
.hero-center-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 70vh;
    position: relative;
    z-index: 10;
}

.hero-line-decoration {
    width: 1px;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: height 2.5s ease-in-out;
}

.hero-line-decoration.is-visible {
    height: 100%;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.huge-word {
    font-family: var(--font-tech);
    font-size: 13vh;
    font-weight: 700;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--text-main);
    -webkit-text-stroke: 0;
    opacity: 0;
    transform: translateY(60px);
    transition: all 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.huge-word.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.huge-word.highlight {
    color: var(--accent-ia);
}

.hero-tagline {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 4vh;
    padding-right: 5px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease;
}

.hero-tagline.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================
   RESPONSIVE MÓVIL (Todo unificado en un solo bloque)
   ================================================================= */
@media (max-width: 768px) {

    /* Ajustes generales de la sección */
    .section-hero {
        padding-right: 20px;
    }

    .brand-fixed-top-left {
        top: 25px;
        left: 25px;
    }

    /* -----------------------------------------------------
       NUEVO: Reducción del Logo y Marca en Móviles
       ----------------------------------------------------- */
    .logo-img {
        width: 45px;
        /* Reducido de 70px a 45px */
    }

    .logo-nombre-img {
        width: 85px;
        /* Reducido de 120px a 85px */
    }

    .logo-text-reveal {
        left: 30px;
        /* Ajustamos para que el texto nazca más pegadito al nuevo logo más chico */
    }

    /* ----------------------------------------------------- */

    /* Fondo */
    .hero-bg-image-wrapper {
        width: 100%;
        right: -10%;
    }

    .hero-bg-image-wrapper.is-visible {
        opacity: 0.25 !important;
    }

    /* Textos centrales */
    .hero-center-wrapper {
        height: 50vh;
        gap: 20px;
    }

    .hero-line-decoration {
        display: block;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .huge-word {
        font-size: 2.8rem;
        line-height: 1;
        letter-spacing: -1px;
    }

    .hero-tagline {
        font-size: 0.85rem;
        max-width: 200px;
        margin-top: 15px;
        line-height: 1.4;
    }
}

/* =================================================================
   06. SECCIÓN 2: SERVICIOS (TARJETAS HOVER / CARRUSEL MÓVIL)
   ================================================================= */
.section-accordion {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
}

/* --- TÍTULO CON SCROLL REVEAL --- */
.accordion-header {
    padding: 60px 20px 30px 20px;
    width: 100%;
    text-align: left;
}

.accordion-title {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 3px solid var(--accent-ia);
    padding-left: 15px;

    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.accordion-title.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- CONTENEDOR FLEX (Base PC) --- */
.accordion-wrapper {
    display: flex;
    width: 100%;
    height: 80vh;
    gap: 0;
    padding: 0 20px;
}

/* --- TARJETAS --- */
.acc-card {
    position: relative;
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s ease;
}

.acc-card:last-child {
    border-right: none;
}

/* Fondo y Efecto Blur */
.acc-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, filter 0.6s ease;
    z-index: 0;
}

.acc-card:hover .acc-img-bg {
    filter: blur(8px) brightness(0.6);
    transform: scale(1.1);
}

/* Overlay Oscuro */
.acc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0.6;
    z-index: 1;
    transition: opacity 0.5s;
}

.acc-card:hover .acc-overlay {
    opacity: 0.8;
}

/* Contenido Interno */
.acc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    padding: 40px 20px;
    z-index: 2;
}

.acc-heading {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.acc-hidden-text {
    opacity: 0;
    max-height: 0;
    transform: translateY(20px);
    overflow: hidden;
    transition: all 0.5s ease;
}

.acc-card:hover .acc-heading {
    transform: translateY(0);
}

.acc-card:hover .acc-hidden-text {
    opacity: 1;
    max-height: 300px;
    transform: translateY(0);
}

.acc-desc {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 25px;
    line-height: 1.4;
    display: block;
}

.acc-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-ia);
    font-family: var(--font-tech);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.acc-link:hover {
    color: #fff;
    border-bottom: 2px solid var(--accent-ia);
    letter-spacing: 1px;
}

.acc-link .arrow {
    transition: transform 0.3s;
}

.acc-link:hover .arrow {
    transform: translateX(8px);
}


/* --- RESPONSIVE MÓVIL (CARRUSEL DESLIZANTE) --- */
@media (max-width: 768px) {
    .accordion-wrapper {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        height: auto;
        padding-bottom: 30px;
        gap: 15px;
    }

    .accordion-wrapper::-webkit-scrollbar {
        display: none;
    }

    .acc-card {
        min-width: 85vw;
        height: 500px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        scroll-snap-align: center;
        flex: none;
    }

    .acc-img-bg {
        filter: brightness(1) !important;
        transform: scale(1);
    }

    .acc-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 100%);
    }

    .acc-content {
        padding: 25px;
    }

    .acc-heading {
        opacity: 1;
        transform: translateY(0);
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .acc-desc {
        font-size: 1rem;
        color: #ccc;
        margin-bottom: 20px;
    }

    .acc-link {
        border-bottom: 1px solid var(--accent-ia);
    }
}


/* =================================================================
   07. OVERLAY DE DETALLES (SLIDE PANEL - BOTÓN CORREGIDO)
   ================================================================= */
.details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 2000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 0;

    transform: translateX(100%);
    /* Animación de entrada suave y fluida (sin latigazo) */
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.details-overlay.is-active {
    transform: translateX(0);
}

/* --- BOTÓN CERRAR (TU LÓGICA STICKY ORIGINAL RESTAURADA) --- */
.btn-close-details {
    /* Vuelve a ser sticky para acompañar el scroll interno perfectamente */
    position: -webkit-sticky;
    position: sticky;
    top: 30px;

    /* Lo mandamos a la derecha */
    align-self: flex-end;
    margin-right: 30px;

    /* Tu truco maestro para que no empuje el texto de abajo */
    margin-bottom: -50px;

    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-ia);
    font-family: var(--font-tech);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2005;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-close-details span {
    font-size: 1.5rem;
    line-height: 0.5;
}

.btn-close-details:hover {
    background: var(--accent-ia);
    color: #000;
    border-color: var(--accent-ia);
}

/* --- CONTENEDOR CENTRAL --- */
.details-container {
    width: 100%;
    max-width: 900px;
    padding: 80px 20px 100px 20px;
    position: relative;
    z-index: 5;
}

.detail-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.detail-content.active-content {
    display: block;
    animation: fadeContentIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
}

@keyframes fadeContentIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tipografía del Overlay */
.detail-title {
    font-family: var(--font-tech);
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1;
    text-transform: uppercase;
}

.detail-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.detail-body p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* --- RESPONSIVE OVERLAY --- */
@media (max-width: 768px) {
    .btn-close-details {
        top: 20px;
        margin-right: 20px;
        /* Fondo más oscuro en móvil para que no se pierda al hacer scroll sobre texto */
        background: rgba(0, 0, 0, 0.85);
    }

    .detail-title {
        font-size: 2rem;
        word-break: break-word;
        line-height: 1.1;
    }

    .details-container {
        padding-top: 60px;
    }
}

/* =================================================================
   08. SECCIÓN 3: QUIÉNES SOMOS (PARALLAX Y CORTINA)
   ================================================================= */

.section-about {
    width: 100%;
    position: relative;
    z-index: 10;
}

.about-sticky-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* --- IMAGEN DE FONDO --- */
.about-bg-image {
    width: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.about-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* --- PANEL DE TEXTO --- */
.about-content-box {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1400px;
    background-color: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-text-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tipografía */
.about-title {
    font-family: var(--font-tech);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-ia);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.about-subtitle {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about-col h4 {
    font-family: var(--font-tech);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.about-col p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: justify;
}

/* =================================================================
   LÓGICA ESPECÍFICA DE ESCRITORIO (PARALLAX CLIP-PATH)
   ================================================================= */
@media (min-width: 901px) {
    .section-about {
        height: 100vh;
        /* La ventana de recorte mágica solo en PC */
        clip-path: inset(0);
        -webkit-clip-path: inset(0);
    }

    .about-sticky-container {
        height: 100%;
        align-items: flex-end;
    }

    .about-bg-image {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        will-change: transform;
    }

    .about-content-box {
        padding: 80px 5% 60px 5%;
        /* El transform inicial para el JS Parallax */
        transform: translateY(100%);
    }
}

/* =================================================================
   LÓGICA ESPECÍFICA DE MÓVIL (EFECTO CORTINA STICKY)
   ================================================================= */
@media (max-width: 900px) {
    .section-about {
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .about-sticky-container {
        display: block;
        height: auto;
        overflow: visible;
    }

    .about-bg-image {
        /* Se queda pegada de forma nativa */
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        left: 0;
        height: 100vh;
        background-attachment: scroll;
    }

    .about-bg-image::after {
        display: none;
    }

    /* Apagamos capa extra */

    .about-content-box {
        /* Sube y tapa la imagen */
        border-radius: 25px 25px 0 0;
        min-height: 100vh;
        padding: 60px 25px 100px 25px;
        margin-top: -60px;
        /* Reseteamos cualquier transform residual */
        transform: translateY(0) !important;
    }

    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .about-title {
        font-size: 2.2rem;
        line-height: 1.1;
    }
}

/* =================================================================
   09. SECCIÓN 4: DESARROLLO DE SOFTWARE
   ================================================================= */
.section-apps {
    background-color: var(--bg-primary);
    padding: 120px 5%;
    position: relative;
}

.apps-vertical-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.apps-header-top {
    text-align: center;
}

.typewriter-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 800;
    min-height: 1.2em;
}

.typewriter-title .cursor {
    color: var(--accent-ia);
    animation: blinkCursor 1s infinite step-end;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.apps-subtitle-center {
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.apps-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* --- TARJETAS --- */
.tech-box {
    background-color: #050505;
    border: 2px solid #1f1f1f;
    padding: 50px 40px;
    position: relative;
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);

    /* Mantenemos opacity 1 por si el JS está fallando, aseguramos que se vean */
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.tech-box:hover {
    border-color: var(--accent-ia);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tech-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #222222;
    transition: color 0.4s ease;
}

.tech-box:hover .tech-num {
    color: var(--accent-ia);
}

.tech-line {
    flex-grow: 1;
    height: 2px;
    background-color: #1f1f1f;
    transition: background-color 0.4s ease;
}

.tech-box:hover .tech-line {
    background-color: rgba(91, 192, 235, 0.3);
}

.box-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.box-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.highlight-code {
    display: block;
    margin-top: 25px;
    font-family: 'Courier New', Courier, monospace;
    background-color: #0a0a0c;
    border: 1px solid #222;
    padding: 12px 15px;
    color: var(--accent-ia);
    font-size: 0.95rem;
    border-left: 3px solid var(--accent-ia);
    transition: all 0.3s ease;
}

.tech-box:hover .highlight-code {
    background-color: #0f1318;
    box-shadow: 0 0 15px rgba(91, 192, 235, 0.15);
}

@media (max-width: 768px) {
    .section-apps {
        padding: 80px 5%;
    }

    .apps-vertical-layout {
        gap: 50px;
    }

    .typewriter-title {
        font-size: 2.2rem;
    }

    .apps-subtitle-center {
        font-size: 1.1rem;
    }

    .apps-cards-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tech-box {
        padding: 40px 25px;
    }

    .box-title {
        font-size: 1.6rem;
    }
}

/* =================================================================
   10. SECCIÓN IMPACTO (BANNER FINAL CON ZOOM NEGATIVO)
   ================================================================= */
.impact-section-wrapper {
    background-color: var(--bg-primary);
    margin: 80px 0;
    position: relative;
    z-index: 20;
}

.impact-card-wide {
    position: relative;
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* --- IMAGEN DE FONDO Y OVERLAY --- */
.impact-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.3);
    /* Empieza con Zoom */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    /* Optimización para que el zoom no tenga lag */
}

.impact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: background 0.5s ease;
}

/* Interacción Hover: Imagen y Fondo */
.impact-card-wide:hover .impact-bg-img {
    transform: scale(1.0);
}

.impact-card-wide:hover .impact-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* --- CONTENIDO Y TEXTOS --- */
.impact-content {
    position: relative;
    z-index: 5;
    padding: 20px;
    width: 100%;
}

.impact-big-title {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-size: 10vw;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    margin: 0;
    letter-spacing: -2px;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: transform 0.6s ease, text-shadow 0.6s ease;
}

.impact-subtitle {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 15px 0 30px 0;
    font-weight: 400;
    letter-spacing: 1px;

    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
}

/* Interacción Hover: Textos */
.impact-card-wide:hover .impact-big-title {
    transform: translateY(-5px);
    text-shadow: 0 0 40px rgba(91, 192, 235, 0.4);
}

.impact-card-wide:hover .impact-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* --- ENLACE Y FLECHA --- */
.impact-link {
    font-family: var(--font-tech);
    font-size: 1rem;
    color: var(--accent-ia);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.impact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-ia);
    transition: width 0.3s ease;
}

.impact-link .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Interacción Hover: Enlace */
.impact-card-wide:hover .impact-link::after {
    width: 100%;
}

.impact-card-wide:hover .arrow {
    transform: translateX(5px);
}


/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 768px) {
    .impact-card-wide {
        height: 350px;
    }

    .impact-big-title {
        font-size: 18vw;
    }

    .impact-subtitle {
        opacity: 1;
        transform: translateY(0);
        margin-bottom: 20px;
        font-size: 1rem;
    }
}

/* =================================================================
   11. SECCIÓN CASO DE ÉXITO (ESTILO LIMPIO E INDUSTRIAL)
   ================================================================= */

/* --- CABECERA --- */
.case-header-simple {
    margin-bottom: 60px;
    border-left: 3px solid var(--accent-ia);
    padding-left: 25px;
}

@media (max-width: 768px) {
    .case-header-simple {
        margin-bottom: 30px;
    }
}

.case-tag {
    font-family: var(--font-tech);
    color: var(--accent-ia);
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.simple-title {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .simple-title {
        font-size: 1.8rem;
    }
}

.simple-intro {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 750px;
    line-height: 1.6;
}

/* --- BLOQUES GENERALES --- */
.case-block {
    margin-bottom: 70px;
}

.block-title {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    display: inline-block;
}

.block-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #a0aab9;
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 800px;
}

.simple-divider {
    height: 1px;
    margin: 50px 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
}

/* --- 1. GRILLA CON CAJAS SUTILES --- */
.simple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .simple-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.card-full {
    grid-column: 1 / -1;
}

.simple-card {
    background: rgba(255, 255, 255, 0.015);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
}

.simple-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(91, 192, 235, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.simple-card h4 {
    font-family: var(--font-tech);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.simple-card p {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.simple-card strong {
    color: #fff;
    font-weight: 500;
}

/* --- 2. DESTACADO (HITO) - SUAVE --- */
.highlight-box {
    background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-ia);
    padding: 45px;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 50px;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.highlight-box:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 192, 235, 0.3);
    box-shadow: 0 15px 40px rgba(91, 192, 235, 0.15);
}

.highlight-label {
    font-family: var(--font-tech);
    color: var(--accent-ia);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    opacity: 0.8;
}

.highlight-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
}

.old-val {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    color: #444;
    text-decoration: line-through;
}

.arrow-val {
    color: var(--accent-ia);
    font-size: 1.6rem;
    opacity: 0.8;
}

.new-val {
    font-family: var(--font-tech);
    font-size: 3.2rem;
    color: #fff;
    font-weight: 700;
}

.highlight-desc {
    color: #ccc;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .highlight-box {
        padding: 25px 15px;
        margin-bottom: 30px;
    }

    .highlight-numbers {
        flex-direction: column;
        gap: 5px;
    }

    .old-val {
        font-size: 1.2rem;
    }

    .new-val {
        font-size: 2.2rem;
    }

    .arrow-val {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    /* Flecha apunta abajo en móvil */
}

/* --- 3. LISTA LIMPIA --- */
.text-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.text-list li {
    margin-bottom: 25px;
    color: #999;
    font-size: 1rem;
    line-height: 1.7;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.text-list li:hover {
    border-left-color: var(--accent-ia);
    color: #ccc;
    padding-left: 25px;
}

.text-list strong {
    color: #fff;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 5px;
}

/* --- 4. FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.feature-item {
    background: rgba(255, 255, 255, 0.015);
    padding: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    border-left-color: var(--accent-ia);
    background: rgba(255, 255, 255, 0.03);
}

.feature-item.full-width {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-ia);
}

.feature-item h5 {
    font-family: var(--font-tech);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --- 5. FOOTER CRECIMIENTO --- */
.growth-footer {
    margin-top: 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.5) 100%);
    padding: 50px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.growth-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.growth-number {
    font-family: var(--font-tech);
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 40px rgba(91, 192, 235, 0.2);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .growth-number {
        font-size: 2.5rem;
        white-space: normal;
        line-height: 1.2;
    }
}

/* --- 6. GANCHO FINAL (FINAL HOOK BOX) --- */
.final-hook-box {
    margin-top: 50px;
    text-align: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-ia);
    padding: 50px;
    border-radius: 6px;
    transition: all 0.4s ease;
}

.final-hook-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(91, 192, 235, 0.3);
}

.hook-title {
    font-family: var(--font-tech);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hook-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-tech);
    font-size: 1.1rem;
    color: var(--accent-ia);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 18px 40px;
    border: 1px solid var(--accent-ia);
    background: rgba(91, 192, 235, 0.05);
    border-radius: 4px;
    transition: all 0.3s;
}

.hook-link:hover {
    background-color: var(--accent-ia);
    color: #000;
    box-shadow: 0 0 30px rgba(91, 192, 235, 0.4);
    transform: scale(1.02);
}

.hook-link .arrow {
    transition: transform 0.3s;
}

.hook-link:hover .arrow {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .final-hook-box {
        padding: 30px 15px;
        margin-top: 30px;
    }

    .hook-title {
        font-size: 1.4rem;
    }

    .hook-link {
        padding: 15px 25px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .detail-content {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Prevención de desborde horizontal */
}

/* =================================================================
   12. FOOTER CENTRADO Y MINIMALISTA - GUIADATA
   ================================================================= */
.section-footer {
    background-color: var(--bg-primary);
    color: var(--text-main);
    padding: 80px 0 0 0;
    font-family: var(--font-body);
    border-top: none;
}

.container-footer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

/* --- CABECERA: LOGO Y SLOGAN --- */
.footer-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-img-logo {
    width: 85px;
    height: auto;
    margin-bottom: 15px;
}

/* Estructura para que DATA quede debajo de IA (Si usas texto en vez de imagen) */
.footer-logo-wrapper {
    display: flex;
    align-items: flex-start;
    font-family: var(--font-tech);
    margin-bottom: 25px;
}

.f-txt-gu {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-right: 5px;
}

.ia-data-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.f-box-ia {
    background-color: #fff;
    color: #000;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 2px;
    text-align: center;
}

.f-txt-data {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    margin-top: 5px;
}

.tagline-main {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.tagline-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- GRILLA INFERIOR (3 COLUMNAS) --- */
.footer-grid-centered {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-col {
    flex: 1;
    text-align: center;
}

.footer-heading {
    font-family: var(--font-tech);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 600;
}

.advisor-name {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.footer-link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    margin-bottom: 15px;
}

.footer-link:hover {
    color: var(--accent-ia);
}

/* --- WHATSAPP MINIMALISTA --- */
.link-whatsapp-min {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.link-whatsapp-min:hover {
    color: var(--accent-ia);
}

/* --- REDES SOCIALES --- */
.social-icons-centered {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.social-btn:hover {
    border-color: var(--accent-ia);
    background-color: var(--accent-ia);
    color: #000;
    transform: translateY(-3px);
}

/* --- BOTTOM: COPYRIGHT Y PRIVACIDAD --- */
/* Unifiqué los dos bloques .footer-bottom que tenías separados */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    margin: 0;
}

.link-privacidad {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.link-privacidad:hover {
    color: var(--accent-ia);
    border-bottom-color: var(--accent-ia);
}

/* --- CLASE DE PÁGINA EXTERNA --- */
.seccion-privacidad {
    /* Compensamos la barra fija en la página de políticas */
    padding-top: 150px;
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 800px) {
    .footer-grid-centered {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .footer-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-img-logo {
        width: 70px;
    }
}

/* =================================================================
   13. PÁGINA DE PRIVACIDAD - DISEÑO PREMIUM
   ================================================================= */

@keyframes entrarDesdeDerecha {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.seccion-privacidad {
    background-color: var(--bg-primary);
    color: #ffffff;
    padding: 120px 20px 80px 20px;
    font-family: var(--font-body);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    animation: entrarDesdeDerecha 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@media (max-width: 600px) {
    .seccion-privacidad {
        padding-top: 100px;
    }
}

.contenedor-privacidad {
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- TÍTULOS --- */
.titulo-legal {
    font-family: var(--font-tech);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #ffffff;
}

.vigencia-legal {
    font-size: 1rem;
    color: var(--accent-ia);
    margin-bottom: 40px;
    font-style: italic;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.contenedor-privacidad h2 {
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-ia);
    margin-top: 60px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .titulo-legal {
        font-size: 2rem;
    }

    .contenedor-privacidad h2 {
        font-size: 1.3rem;
    }
}

/* --- TEXTOS Y LISTAS --- */
.contenedor-privacidad strong {
    color: #ffffff;
    font-weight: 700;
    border-bottom: 1px solid var(--accent-ia);
}

.contenedor-privacidad p,
.contenedor-privacidad li {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.contenedor-privacidad ul {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style-type: none;
}

.contenedor-privacidad li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.contenedor-privacidad li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-ia);
}

@media (max-width: 600px) {

    .contenedor-privacidad p,
    .contenedor-privacidad li {
        font-size: 1.1rem;
    }
}

/* --- CIERRE LEGAL --- */
.cierre-legal {
    margin-top: 80px;
    padding-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.frase-cierre {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.btn-volver-legal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    border: 1px solid var(--accent-ia);
    color: var(--accent-ia);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-volver-legal:hover {
    background-color: var(--accent-ia);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.copyright-legal {
    margin-top: 40px;
    font-size: 0.9rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
}