/* ── HERO CON VIDEO ─────────────────────────────── */
    .hero-section {
        height: 100vh;
        position: relative;
        overflow: hidden;
    }

    .hero-video {
        position: absolute;
        top: 50%; left: 50%;
        min-width: 100%; min-height: 100%;
        width: auto; height: auto;
        transform: translate(-50%, -50%);
        object-fit: cover;
        z-index: 0;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        z-index: 1;
        transition: background 1.5s ease, backdrop-filter 1.5s ease;
    }

    .hero-overlay.blur-in {
        background: rgba(0,0,0,0.55);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    /* Contenido centrado — sin glassmorphism */
    .hero-content {
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -44%) scale(0.98);
        z-index: 2;
        text-align: center;
        width: 100%;
        max-width: 820px;
        padding: 0 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        transition: opacity 1.4s ease, transform 1.4s ease;
    }

    .hero-content.show-text {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    /* Eyebrow pill */
    .hero-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-family: 'Poppins', sans-serif;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.55);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 999px;
        padding: 0.3rem 1rem;
        margin-bottom: 1.4rem;
    }

    .hero-eyebrow-dot {
        width: 5px; height: 5px;
        border-radius: 50%;
        background: #3b82f6;
        flex-shrink: 0;
        display: inline-block;
    }

    /* Nombre principal */
    .hero-title {
        margin: 0 0 0.5rem;
        line-height: 1;
    }

    .hero-main {
        font-family: 'Fuzzy Bubbles', cursive;
        font-weight: 700;
        font-size: clamp(3rem, 9vw, 5.5rem);
        color: #ffffff;
        text-shadow: 0 2px 20px rgba(59,130,246,0.3);
        letter-spacing: 1px;
    }

    /* Tagline fija */
    .hero-tagline {
        font-family: 'Poppins', sans-serif;
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        font-weight: 300;
        color: rgba(255,255,255,0.58);
        letter-spacing: 0.04em;
        margin: 0 0 0.5rem;
        line-height: 1.5;
    }

    /* Frases rotativas */
    .hero-rotating-clip {
        height: 1.6em;
        overflow: hidden;
        margin-bottom: 2.5rem;
        width: 100%;
    }

    .hero-rotating-inner {
        display: flex;
        flex-direction: column;
        animation: rotateText 7.5s infinite;
    }

    .hero-rotating-inner span {
        display: block;
        height: 1.6em;
        line-height: 1.6em;
        font-family: 'Poppins', sans-serif;
        font-size: clamp(0.9rem, 2vw, 1.05rem);
        font-weight: 400;
        color: rgba(255,255,255,0.82);
        white-space: nowrap;
        text-align: center;
        flex-shrink: 0;
    }

    @keyframes rotateText {
        0%, 20%   { transform: translateY(0); }
        25%, 45%  { transform: translateY(-33.333%); }
        50%, 70%  { transform: translateY(-66.666%); }
        75%, 100% { transform: translateY(0); }
    }

    /* CTAs */
    .hero-ctas {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-family: 'Poppins', sans-serif;
        font-size: 0.88rem;
        font-weight: 600;
        color: #ffffff;
        background: #08519c;
        border-radius: 999px;
        padding: 0.7rem 1.6rem;
        text-decoration: none;
        letter-spacing: 0.04em;
        transition: background 0.2s ease, transform 0.15s ease;
    }

    .hero-btn-primary:hover {
        background: #063d7a;
        transform: translateY(-2px);
        color: #fff;
        text-decoration: none;
    }

    .hero-btn-secondary {
        display: inline-flex;
        align-items: center;
        font-family: 'Poppins', sans-serif;
        font-size: 0.88rem;
        font-weight: 400;
        color: rgba(255,255,255,0.75);
        background: transparent;
        border: 1px solid rgba(255,255,255,0.25);
        border-radius: 999px;
        padding: 0.7rem 1.5rem;
        text-decoration: none;
        letter-spacing: 0.04em;
        transition: border-color 0.2s ease, color 0.2s ease;
    }

    .hero-btn-secondary:hover {
        border-color: rgba(255,255,255,0.55);
        color: #ffffff;
        text-decoration: none;
    }

    /* Scroll hint */
    .hero-scroll-hint {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.8s ease 3s;
    }

    .hero-scroll-hint.show-text {
        opacity: 1;
    }

    .hero-scroll-label {
        font-family: 'Poppins', sans-serif;
        font-size: 0.6rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.3);
    }

    .hero-scroll-line {
        width: 1px;
        height: 30px;
        background: rgba(255,255,255,0.2);
        animation: scrollPulse 2s infinite;
    }

    @keyframes scrollPulse {
        0%, 100% { opacity: 0.2; }
        50%       { opacity: 0.7; }
    }
    /* Responsive hero */
    @media (max-width: 768px) {
        .hero-eyebrow { font-size: 0.6rem; }
        .hero-tagline { font-size: 0.85rem; }

        /* Rotativo: JS controla altura y transform */
        .hero-rotating-clip {
            height: 3em;
        }
        .hero-rotating-inner {
            animation: none !important;
            transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
        }
        .hero-rotating-inner span {
            white-space: normal !important;
            height: 3em !important;
            line-height: 1.5 !important;
            display: flex !important;
            align-items: center;
            justify-content: center;
            padding: 0 0.5rem;
        }

        .hero-ctas { gap: 0.5rem; }
        .hero-scroll-hint { display: none; }
    }

    @media (max-width: 420px) {
        .hero-ctas { flex-direction: column; align-items: center; }
        .hero-btn-primary,
        .hero-btn-secondary { width: 100%; justify-content: center; }
    }
    
    
    /* ---------- NAVBAR: oculto al inicio SOLO en landing ---------- */
    .nav-wrapper {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .nav-wrapper.nav-show {
        opacity: 1;
        transform: translateY(0);
    }

   
/* =========================
   SECCIÓN MISIÓN (sin carrusel)
   ========================= */

.mission-section {
    background:white;
    color: black;
    padding: 4rem 1.5rem;
    scroll-margin-top: 96px;
}

.mission-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: black;
    margin-bottom: 0.75rem;
}

.mission-text {
    font-size: 1.2rem;
    line-height: 1.6;
    letter-spacing: 0.09rem;
    margin: 0 auto;
    text-align: justify;
}

.mission-text{
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}
/* ----- LOGOS ESTÁTICOS ----- */

.mission-logos {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.mission-logos img {
    height: 60px;        /* ajustá tamaño si querés */
    width: auto;
    filter: grayscale(40%);
    opacity: 0.85;
    transition: 
        transform 0.25s ease,
        opacity 0.25s ease,
        filter 0.25s ease;
}

.mission-logos img:hover {
    transform: scale(1.15);
    opacity: 1;
    filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 768px) {
    .mission-logos {
        gap: 2rem;
    }
    .mission-logos img {
        height: 45px;
    }
}

/* ====== FUNCIONES ====== */

.blob-background {
    position: absolute;
    inset: 0;
    z-index: 0;              /* siempre atrás */
    opacity: 0.18;
    pointer-events: none;
}

.funciones-grid {
    position: relative;
    z-index: 1;              /* por delante del blob */
}

/* Que la sección siguiente quede por encima de todo lo anterior */
.alt-section {
    position: relative;
    z-index: 2;
    padding: 100px 8%;
}

/* =========================
   SECCIÓN FUNCIONES
   ========================= */

.funciones-section {
    position: relative;
    padding: 120px 40px;
    overflow: hidden;
    z-index: 1;              /* por delante del fondo del body */
}

.funciones-section .funciones-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}
.funciones-section .funciones-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.funciones-section .funciones-title span {
   color: #08519c;
}

.funciones-section .blob-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
}

/* GRID */
.funciones-section .funciones-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

/* ===== TARJETA CON FLIP ===== */

.funciones-section .funcion-card {
    perspective: 1000px;
    height: 400px;
    min-height: auto !important;   /* por si quedó algún min-height viejo */
}

/* interior que gira */
.funciones-section .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.funciones-section .funcion-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* caras */
.funciones-section .flip-card-front,
.funciones-section .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 22px;
}

.funciones-section .flip-card-back {
    transform: rotateY(180deg);
}

/* borde degradado */
.funciones-section .card-border {
    width: 100%;
    height: 100%;
    padding: 3px;
    border-radius: 18px;
    background-image: linear-gradient(144deg,#2563eb, #5B42F3 50%,#2cc3c3);
    box-shadow: rgba(65, 65, 252, 0.25) 0 15px 30px -5px;
    overflow: hidden;
    display: flex;
}

/* interior blanco */
.funciones-section .card-inner {
    background: #ffffff;
    border-radius: 17px;
    width: 100%;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    color: #000;
    min-height: 190px;  
}

.funciones-section .card-inner {
    background: 
        radial-gradient(circle at 1px 1px, #dcdcdc 1px, transparent 0),
        #ffffff;
    background-size: 12px 12px;   /* separación entre puntos */
}

.funciones-section .card-inner h3 {
    font-family: 'Montserrat', sans-serif;   /* o Inter */
    font-weight: 500;                        /* suave, no bold */
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;                  /* aire */
    margin-bottom: 10px;
    color: #111;                             /* más suave que el negro puro */
    text-align: center;
}
/* lista de la cara trasera */
.funciones-section .card-inner ul {
    list-style: disc;
    padding-left: 0.8rem;

    margin: 0;
    font-size: 0.92rem;
    line-height: 1.4;
}

.funciones-section .card-inner ul li {
        font-family: "Poppins", sans-serif;
        font-weight: 400;
        font-style: normal;
        list-style: none;
        padding-bottom: 0.4rem;
}
/* frontal: sólo título centrado */
.funciones-section .flip-card-front .card-inner {
    align-items: center;
}

/* responsive */
@media (max-width: 1100px) {
    .funciones-section .funciones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .funciones-section .funciones-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================
   SECCIÓN FEATURES / PRODUCTOS
   ========================== */

.alt-section {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background:rgb(1, 0, 60);
}

.alt-section {
    padding: 100px 3%;      /* antes seguro era 8% o 10% */
    margin: 0 auto;
}

/* --- FILAS (bloques pantalla por pantalla) --- */
.alt-row {
    display: flex;
    align-items: center;          /* centra verticalmente */
    justify-content: space-between;
    gap: 40px;
    min-height: 65vh;             /* 🔥 casi toda la pantalla */
    margin: 0 auto;               /* centrado horizontal */
    padding: 80px 0;              /* aire arriba y abajo */
}

.alt-row.reverse {
    flex-direction: row-reverse;
}

/* TEXTO: que no ocupe tanto */
.alt-text {
    flex: 1 1 50%;          /* antes quizá estaba usando más */
    max-width: 600px;
    color: white;
    font-family: "Poppins", sans-serif;
}

.alt-eyebrow {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    opacity: 0.6;
    margin-bottom: 12px;
}

.alt-title {
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 18px;
    line-height: 1.2;
}

.alt-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 22px;
}

.alt-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fbfbfb;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: 0.2s ease;
}

.alt-link:hover {
    border-color: #2563eb;
}

/* VIDEO: que pueda crecer más */
.alt-image {
    flex: 1 1 50%;          /* era más chico antes */
    display: flex;
    justify-content: flex-end;
}

.alt-image img {
    width: 100%;
    max-height: 500px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 18px 35px rgba(0,0,0,0.20);
}

/* --- RESPONSIVE --- */
@media (max-width: 950px) {

    .alt-row,
    .alt-row.reverse {
        flex-direction: column;
        text-align: center;
        min-height: auto;          /* 🔥 en móvil no usar pantalla completa */
        padding: 60px 0;
    }

    .alt-title {
        font-size: 2.1rem;
    }

    .alt-image img {
        width: 90%;
        margin: 0 auto;
    }
}

/* ==========================
   ANIMACIÓN FADE-UP PARA BLOQUES PRODUCTOS
   ========================== */

/* ==== ANIMACIÓN DE APARICIÓN POR SCROLL ==== */

/* Estado inicial (oculto + desplazado) */
.alt-row {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Los que son reverse entran desde la izquierda */
.alt-row.reverse {
    transform: translateX(-60px);
}

/* Estado final cuando entran al viewport */
.alt-row.visible {
    opacity: 1;
    transform: translateX(0);
}
/* Video sección productos */
.alt-video {
    width: 100%;
    max-width: 600px;      /* 🔹 nuevo tamaño más grande */
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
}

/* 🔥 Video vertical (estilo historia) para el de informe economico */
.alt-video-vertical {
    aspect-ratio: 9 / 16 !important;   /* formato vertical */
    max-height: 600px;                 /* permite que sea más alto */
    border-radius: 20px;
    object-fit: cover;
}

@media (min-width: 1400px) {
    .alt-video {
        max-width: 650px;
    }
}

/* HEADER DE LA SECCIÓN PRODUCTOS */
.alt-header {
    max-width: 1100px;
    margin: 0 auto 40px;        /* espacio bajo el título */
    text-align: center;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
}

.alt-header-eyebrow {
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    opacity: 0.6;
    margin-bottom: 8px;
}

.alt-heading {
    font-size: 2.8em;
    font-weight: 600;
    margin: 0;
}

.alt-heading span {
    color: #2cc3c3;        
}

/* ==== ANIMACIÓN FADE PARA EL HEADER ==== */

.fade-in-header {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Cuando entra al viewport */
.fade-in-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === ANIMACIÓN PARA MISIÓN Y FUNCIONES === */

/* Estado inicial */
.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Estado final */
.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/*=============== MAPA =================== */
/* Contenedor del globo */
.alt-globe-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 60px auto 80px;
}

.globe-container {
    width: 100%;
    max-width: 720px;

    /* Fallback fuerte para Safari: altura explícita */
    height: 420px;

    border-radius: 18px;
    overflow: hidden;
    background: #000;     /* por si Cesium tarda en cargar */
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}

/* Para navegadores que soportan bien aspect-ratio (Chrome, etc.) */
@supports (aspect-ratio: 1 / 1) {
    .globe-container {
        aspect-ratio: 4 / 5;
        min-height: 520px;
        /* height: auto; */
    }
}

/* Canvas de Cesium llena su contenedor */
.globe-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/*=========== tarjeta sobre mapa ======================== */
/* Contenedor mapa + tarjeta */
.alt-globe-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 60px auto 80px;
}

/* Tarjeta flotante de Misiones (overlay a la derecha) */
.misiones-card {
    position: absolute;
    top: 50%;
    right: 24px;
    width: 260px;

    background: rgba(8, 19, 53, 0.95);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.12);

    color: #f9fafb;
    font-family: "Poppins", system-ui, sans-serif;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* 🔹 Oculta al inicio */
    opacity: 0;
    transform: translateY(-50%) translateX(20px); /* centrada vertical + un poquito corrida */
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;   /* opcional: que no interfiera con el globo */
}

/* Cuando quieras mostrarla con JS, le agregás esta clase */
.misiones-card.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.misiones-title {
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 10px;
}

.misiones-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}

.misiones-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.6;
}

.misiones-value {
    font-size: 0.98rem;
    font-weight: 500;
}
/* Texto debajo del título antes del mapa */
.alt-header-desc {
    max-width: 720px;
    margin: 16px auto 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #d8d9df;
    text-align: center;
    opacity: 0.85;
}

/* Mobile: tarjeta compacta flotando sobre el mapa */
@media (max-width: 768px) {
    .alt-globe-wrapper {
        max-width: 100%;
    }

    /* Sigue siendo absoluta sobre el mapa, pero compacta y abajo a la derecha */
    .misiones-card {
        position: absolute;
        top: auto;
        bottom: 16px;
        right: 12px;
        width: 155px;           /* más angosta */
        padding: 10px 12px;
        border-radius: 12px;

        /* animación: entra desde abajo */
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .misiones-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .misiones-title {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        margin-bottom: 6px;
    }

    .misiones-label {
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }

    .misiones-value {
        font-size: 0.75rem;
    }

    .misiones-item {
        margin-bottom: 4px;
    }
}
