* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Raleway", sans-serif;
}

.hero {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: aliceblue;
}

#gestion {
    scroll-margin-top: 120px;
}

#agenda {
    scroll-margin-top: 120px;
}

/* El wrapper le da "alto de scroll" a la sección para que
   el usuario pueda scrollear mientras el hero queda fijo (sticky)
   y la animación va progresando. Subí/bajá el 250vh para hacer
   la transición más larga o más corta. */
.hero-wrapper {
    position: relative;
    height: 250vh;
}

.hero-section {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ---- Título (izquierda) ---- */
.hero-title {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--split);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: flex-end;
    gap: 28px;
    padding: calc(var(--frame) + 40px) 56px calc(var(--frame) + 48px) calc(var(--frame) + 40px);
    will-change: transform, opacity;
    border-radius: 0;
}

/* Logo: arriba del todo, el resto del contenido queda abajo */
.hero-title .logo {
    height: 60px;
    margin-bottom: auto;
}

.hero-direct-links {
    width: auto;
    height: auto;
    display: flex;
    gap: 8px;
}

.logo {
    width: 100%;
    height: 80px;
    overflow: hidden;
    display: flex;
    justify-content: start;
}

.logo img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.hero-title h1 {
    font-size: clamp(3.25rem, 7vw, 8rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: #1d2422;
}

.hero-title span {
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 420px;
    color: #3b4543;
}

.hero-direct-links a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    color: aliceblue;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-btn1 {
    background-color: #2f5fd6;
}

.hero-btn2 {
    background-color: #e29b01;
}

.hero-btn3 {
    background-color: #19a76e;
}

/* ---- Fondo de video (centro) ---- */
.hero-bkg {
    position: absolute;
    top: var(--frame);
    left: var(--split);
    width: calc(100% - var(--split) - var(--frame));
    height: calc(100% - var(--frame) * 2);
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    will-change: left, width, border-radius;
}

/* Texto que invita al click, aparece al hacer hover sobre hero-bkg */
.hero-bkg-hint {
    z-index: 4;
    background-color: #ffaf03;
    color: #242424;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 1;
    z-index: 9999;
    cursor: pointer;
}

/* Una vez que arrancó la animación de scroll (video expandiéndose),
   el hint queda oculto aunque sigas en hover, para no pisar el texto. */
.hero-bkg.hero-bkg--hide-hint .hero-bkg-hint {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(10px);
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.video-player.active {
    display: block;
}

/* Overlay oscuro sobre el video, aparece con el scroll */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: #242424de;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

/* Bloques de texto sobre el video expandido */
.hero-text-blocks {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: aliceblue;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    will-change: transform, opacity;
    border-radius: 24px;
}

.hero-text-tag {
    background-color: #ffaf03;
    color: #242424;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text-blocks h2 {
    font-size: 3rem;
    max-width: 800px;
    margin-bottom: 20px;
}

.hero-text-blocks p {
    font-size: 1.3rem;
    max-width: 600px;
}

/* ---- Aside (derecha) ---- */
.hero-aside {
    position: absolute;
    bottom: var(--frame);
    right: 0%;
    width: 55%;
    height: calc(100% - var(--frame) * 2);
    will-change: transform, opacity;
    padding: 60px 60px 60px calc(var(--notch) / 2 + 48px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: aliceblue;
    z-index: 9;
}

.hero-aside-logos {
    position: absolute;
    right: 30px;
    bottom: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-medal {
    position: relative;
    outline: none;
}

.hero-medal img {
    display: block;
    width: 100px;
    height: auto;
    background-color: #242424;
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hero-medal:hover img,
.hero-medal:focus-visible img {
    transform: scale(1.3);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Mensaje: se abre hacia arriba, alineado al borde derecho de la medalla */
.hero-medal__tip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 28px);
    width: 260px;
    padding: 14px 16px;
    background: aliceblue;
    color: #242424;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
}

.hero-medal__tip::after {
    content: "";
    position: absolute;
    right: 32px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: aliceblue;
    transform: rotate(45deg);
}

.hero-medal__tip h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #242424;
}

.hero-medal__tip p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.hero-medal:hover .hero-medal__tip,
.hero-medal:focus-visible .hero-medal__tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-medal img,
    .hero-medal__tip {
        transition: none;
    }
}

.hero-aside-bottom {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    align-items: start;
    padding-right: 20%;
}

.hero-aside h2 {
    font-size: 2rem;
}

.trust-block__cta {
    appearance: none;
    border: none;
    color: aliceblue;
    font-size: 1rem;
    font-weight: 600;
    padding: 20px 0;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================= HERO: marco + panel claro + muescas (desktop) =================
   Variables editables:
   --frame  aire entre el borde de la pantalla y el hero
   --split  ancho del panel izquierdo (donde empieza el video)
   --panel  color del panel y de las muescas
   --notch  diametro de las muescas semicirculares                          */
.hero-section {
    --frame: 12px;
    --split: 48%;
    --panel: aliceblue;
    --notch: clamp(80px, 12vw, 180px);
}

/* Fondo degradé del marco (se desvanece al expandirse el video) */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: var(--frame-o, 1);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%), radial-gradient(at top center, rgba(255, 255, 255, 0.40) 0%, rgba(0, 0, 0, 0.40) 120%) #989898;
    background-blend-mode: multiply, multiply;
}

/* Panel claro de la izquierda (JS ajusta --panel-w al expandir) */
.hero-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: var(--frame);
    bottom: var(--frame);
    left: var(--frame);
    width: var(--panel-w, calc(var(--split) - var(--frame) + 8px));
    background: var(--panel);
    border-radius: 4px 0 0 4px;
    opacity: var(--panel-o, 1);
}

.gestion {
    width: 100%;
    height: auto;
    position: relative;
}

/* El grid vive acá (antes estaba en .gestion). También es el
   contenedor de referencia del video (.g-video) y de la máscara. */
.gestion-main {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 8px;
    padding: 80px 20px;
    position: relative;
}

/* Contenido que continúa debajo del grid */
.gestion-content {
    width: 100%;
    height: auto;
    position: relative;
    padding: 20px;
    margin: 40px 0;
}

/* ===== Slider de Gestión (IA / Ciencia de Datos / Productos Digitales) ===== */
.g-slider {
    --g-ease: cubic-bezier(0.65, 0, 0.35, 1);
    --g-index: 0;
    /* slide activo, lo actualiza gestion-animation.js */
    --g-accent: #ffaf03;
    /* color del borde de la card (cambia según el slide) */
    position: relative;
    width: 100%;
    height: calc(100vh - 40px);
    min-height: 560px;
    scroll-margin-top: 90px;
}

/* Color del borde de la card por slide (data-active lo setea el JS) */
.g-slider[data-active="0"] {
    --g-accent: #ffaf03;
}

.g-slider[data-active="1"] {
    --g-accent: #21b57a;
}

.g-slider[data-active="2"] {
    --g-accent: #2f5fd6;
}

/* Stage: la caja que recorta el video y los slides */
.g-slider-stage {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #242424;
    isolation: isolate;
}

/* ----- Nav interno (arriba, centrado, fijo dentro del slider) ----- */
.g-slider-nav {
    position: absolute;
    top: 10%;
    left: 74%;
    transform: translateX(-50%);
    z-index: 9999999;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: calc(100% - 24px);
    padding: 6px;
    background: rgba(240, 248, 255, 0.92);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(36, 36, 36, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Fondo que se desliza suavemente hasta la pestaña activa */
.g-slider-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: var(--w, 0px);
    transform: translateX(var(--x, 0px));
    background: #ffaf03;
    border-radius: 999px;
    transition: transform 0.8s var(--g-ease), width 0.8s var(--g-ease);
    will-change: transform, width;
}

.g-slider-tab {
    position: relative;
    z-index: 1;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #242424;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g-slider-tab:not(.is-active):hover {
    color: #21b57a;
}

.g-slider-tab:focus-visible {
    outline: 2px solid #242424;
    outline-offset: 2px;
}

/* ----- Pista que se desplaza ----- */
.g-slider-track {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(calc(var(--g-index) * -100%));
    transition: transform 1s var(--g-ease);
    will-change: transform;
}

.g-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
    color: aliceblue;
}

/* ----- Video de fondo único (compartido por todos los slides) + overlay ----- */
.g-slider-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: #21b57a;
    /* color mientras carga */
}

.g-slider-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(36, 36, 36, 0.72) 0%, rgba(36, 36, 36, 0.35) 60%, rgba(36, 36, 36, 0.2) 100%);
    pointer-events: none;
}

/* ----- Contenido: texto a la izquierda, imagen a la derecha ----- */
.g-slide-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    padding: 120px 60px 20px;
}

.ia-logo {
    width: 100%;
    /* en vez de 300px */
    display: flex;
    flex-wrap: wrap;
    /* si no entran, bajan de línea */
    align-items: center;
    gap: 24px 40px;
    padding: 20px 0;
}

.ia-logo a {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    /* permite que el <a> se encoja */
}

.ia-logo img {
    display: block;
    height: 60px;
    /* controlás por alto, así quedan parejos */
    width: auto;
    max-width: 100%;
}

.bit-logo img {
    width: 100px;
    height: auto;
}

.banco-logo img {
    width: 200px;
    height: auto;
}

.g-slide-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
}

.g-slide-text p {
    max-width: 100%;
    height: 100%;
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.92;
    padding-right: 80px;
}

/* ----- Card blanca por encima del slider -----
   Nace desde afuera: se apoya en el borde inferior del slider (y lo cruza por --g-overhang)
   y tiene dos bordes inversos en la base que la hacen curvarse hacia afuera. */
.g-card {
    --g-r: 28px;
    /* radio de las curvas */
    --g-overhang: 20px;
    /* cuánto sobresale por debajo del slider (0px = al ras) */
    --g-card-bg: aliceblue;
    /* fondo de la card y de las curvas */
    --card-right: 80px;
    --card-width: min(42vw, 840px);
    --card-height: min(70vh, 600px);
    position: absolute;
    z-index: 5;
    right: var(--card-right);
    bottom: calc(var(--g-overhang) * -1);
    width: var(--card-width);
    height: calc(var(--card-height) + var(--g-overhang));
    padding: 16px 16px calc(16px + var(--g-overhang));
    background: var(--g-card-bg);
    border-radius: var(--g-r) var(--g-r) 0 0;
}

/* Bordes inversos (curvas cóncavas) a ambos lados de la base, a la altura del borde del slider */
.g-card::before,
.g-card::after {
    content: "";
    position: absolute;
    bottom: var(--g-overhang);
    width: var(--g-r);
    height: var(--g-r);
    pointer-events: none;
}

.g-card::before {
    left: calc(var(--g-r) * -1);
    background: radial-gradient(circle at 0 0, transparent calc(var(--g-r) - 0.5px), var(--g-card-bg) var(--g-r));
}

.g-card::after {
    right: calc(var(--g-r) * -1);
    background: radial-gradient(circle at 100% 0, transparent calc(var(--g-r) - 0.5px), var(--g-card-bg) var(--g-r));
}

/* Marco interno: queda fijo, solo cambia el color del borde */
.g-card-frame {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: aliceblue;
    transition: border-color 0.8s var(--g-ease);
}

/* Lo que se mueve: el contenido interno */
.g-card-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(calc(var(--g-index) * -100%));
    transition: transform 1s var(--g-ease);
    will-change: transform;
}

.g-card-item {
    flex: 0 0 100%;
    height: 100%;
}

/* ----- Productos Digitales: grilla de tarjetas-botón dentro de la card ----- */
.g-card-item--apps {
    box-sizing: border-box;
    padding: 10px;
    background: aliceblue;
    overflow-y: auto;
}

.g-apps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 10px;
    min-height: 100%;
}

.g-app {
    --app-c: #2f5fd6;
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-areas: "icon title" "desc desc" "tags tags" "btn btn";
    align-content: start;
    gap: 4px 10px;
    padding: 12px;
    background: aliceblue;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(36, 36, 36, 0.06);
}

.g-app--blue {
    --app-c: #2f5fd6;
}

.g-app--green {
    --app-c: #21b57a;
}

.g-app--red {
    --app-c: #e0475c;
}

.g-app--yellow {
    --app-c: #ffaf03;
}

.g-app-icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--app-c);
    color: aliceblue;
    font-size: 1.25rem;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--app-c) 35%, transparent);
}

.g-app-title {
    grid-area: title;
    align-self: center;
    margin: 0;
    color: #242424;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.15;
}

.g-app-desc {
    grid-area: desc;
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 0.74rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.g-app-tags {
    grid-area: tags;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.g-app-tags span {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(47, 95, 214, 0.1);
    color: #2f5fd6;
    font-size: 0.66rem;
    font-weight: 700;
}

.g-app-btn {
    grid-area: btn;
    justify-self: start;
    align-self: end;
    margin-top: 4px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #242424;
    color: aliceblue;
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.g-app-btn:hover {
    background: var(--app-c);
    transform: translateY(-1px);
}

.g-app-btn:focus-visible {
    outline: 2px solid var(--app-c);
    outline-offset: 2px;
}

/* Items inactivos: fuera de la tabulación y del foco (así no desplazan el marco al enfocar un link) */
.g-card-item[aria-hidden="true"] {
    visibility: hidden;
    transition: visibility 0s 1s;
}

.g-apps--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.g-apps--lg .g-app {
    grid-template-columns: 60px 1fr;
    align-content: center;
    gap: 8px 16px;
    padding: 20px 22px;
    border-radius: 18px;
}

.g-apps--lg .g-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 1.6rem;
}

.g-apps--lg .g-app-title {
    font-size: 1.15rem;
}

.g-apps--lg .g-app-desc {
    margin-top: 6px;
    font-size: 0.88rem;
    -webkit-line-clamp: 3;
}

.g-apps--lg .g-app-tags span {
    padding: 3px 10px;
    font-size: 0.72rem;
}

.g-apps--lg .g-app-btn {
    margin-top: 8px;
    padding: 10px 20px;
    font-size: 0.85rem;
}

@media (max-width: 900px) {

    .g-apps,
    .g-apps--4 {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: auto;
    }
}

.g-card-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Botón bajo el texto del slide de IA */
.g-slide-cta {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 14px 26px;
    border-radius: 999px;
    background: #ffaf03;
    color: #242424;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    transform: translateY(28px);
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.2s ease, visibility 0s 0.4s;
}

.g-slide-cta:hover {
    background: #ffaf03;
}

.g-slide-cta:focus-visible {
    outline: 3px solid aliceblue;
    outline-offset: 3px;
}

.g-slide.is-active .g-slide-cta {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 0.9s ease 0.75s, transform 1s var(--g-ease) 0.75s, background-color 0.2s ease 0s, visibility 0s 0s;
}

/* ----- Entrada escalonada del contenido del slide activo ----- */
.g-slide-text>*:not(.g-slide-cta) {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.g-slide.is-active .g-slide-text>*:not(.g-slide-cta) {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s ease, transform 1s var(--g-ease);
}

/* Escalonado: cada elemento entra un poco después del anterior */
.g-slide.is-active .g-slide-text> :nth-child(1) {
    transition-delay: 0.45s;
}

.g-slide.is-active .g-slide-text> :nth-child(2) {
    transition-delay: 0.6s;
}

.g-slide.is-active .g-slide-text> :nth-child(3) {
    transition-delay: 0.75s;
}

.g-slide.is-active .g-slide-text> :nth-child(4) {
    transition-delay: 0.9s;
}

.g-slide.is-active .g-slide-text> :nth-child(5) {
    transition-delay: 1.05s;
}

@media (max-width: 900px) {
    .g-slide-inner {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
        padding: 110px 24px calc(30vh + 24px);
    }

    .g-slide-text p {
        font-size: 1rem;
    }

    .g-card {
        --g-r: 20px;
        --card-right: 40px;
        --card-height: 30vh;
        left: 40px;
        width: auto;
    }

    .g-slider-nav {
        overflow-x: auto;
    }

    .g-slider-tab {
        padding: 10px 14px;
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .g-slider-track,
    .g-slider-indicator,
    .g-card-track,
    .g-card-frame,
    .g-slide-cta,
    .g-slide-title,
    .g-slide-text p {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}

/* El video ocupa toda la sección y solo se ve a través de la máscara */
.g-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    clip-path: url(#gestionClip);
    background: #21b57a;
    /* color mientras carga */
}

.g-box1 {
    grid-column: span 5 / span 5;
    grid-row: span 2 / span 2;
    color: #242424;
}

.g-box2 {
    grid-column: span 3 / span 3;
    grid-row: span 2 / span 2;
    grid-column-start: 1;
    grid-row-start: 3;
}

.g-box3 {
    grid-column: span 2 / span 2;
    grid-row: span 4 / span 4;
    grid-column-start: 2;
    grid-row-start: 5;
}

.g-box4 {
    grid-column: span 2 / span 2;
    grid-row: span 6 / span 6;
    grid-column-start: 4;
    grid-row-start: 3;
}

.g-box5 {
    grid-column: span 2 / span 2;
    grid-row: span 8 / span 8;
    grid-column-start: 6;
    grid-row-start: 1;
}

.g-box6 {
    grid-column: span 3 / span 3;
    grid-row: span 3 / span 3;
    grid-column-start: 8;
    grid-row-start: 6;
}

.g-box7 {
    grid-column: span 2 / span 2;
    grid-row: span 5 / span 5;
    grid-column-start: 8;
    grid-row-start: 1;
}

.g-box-bkg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 24px;
    overflow: hidden;
    /* el contenido respeta las esquinas redondeadas */
    --p: 0;
    /* progreso de la animación, lo actualiza el JS */
}

.g-content {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* abajo; usá flex-start para arriba */
    gap: 6px;
    color: aliceblue;
    /* Revelado de abajo hacia arriba, sincronizado con la máscara */
    clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0);
}

/* Degradado suave para que el texto se lea sobre el video */
.g-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(36, 36, 36, 0.55), transparent 70%);
}

.g-kpi {
    font-size: clamp(2.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1;
}

.g-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Contenido por encima del video */
.g-box1,
.g-box2,
.g-box6 {
    position: relative;
    z-index: 1;
}

.g-box-title {
    display: flex;
    align-items: center;
    justify-content: start;
}

.g-box-title h2 {
    text-transform: uppercase;
    font-size: 5rem;
}

.g-box-subtitle {
    display: flex;
    align-items: start;
    padding-right: 40px;
}

.g-box-subtitle p {
    font-size: 1.2rem;
}

.g-box-subtitle span {
    font-weight: 700;
}

.g-box-content {
    display: flex;
    align-items: center;
    padding: 20px;
    padding-right: 80px;
    font-size: 1.2rem;
}

.g-box-content span {
    font-weight: 700;
}

/* ===== GOBIERNO ABIERTO ===== */

/* Padding de la sección: deja respirar al contenedor redondeado */
.gobierno-abierto {
    --ga-inset-y: 100px;
    --ga-inset-x: 20px;
    --ga-radius: 32px;
    position: relative;
    isolation: isolate;
    width: 100%;
    height: auto;
    padding: var(--ga-inset-y) var(--ga-inset-x);
    background-color: #242424;
}

/* Todo lo que se agregue dentro de la sección queda por encima del video.
   OJO: sin z-index a propósito. Si .gobierno-main creara su propio stacking context,
   los números con máscara (mix-blend-mode) no podrían "ver" el video de fondo. */
.gobierno-abierto>* {
    position: relative;
}

/* El contenedor ES el grid. El video ya no vive acá: está en la sección */
.gobierno-main {
    width: 100%;
    display: flex;
    padding: 48px 32px;
}

.gobierno-abierto__intro {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 40px;
}

/* ---------- Texto ---------- */

/* Sobre el video: blanco */
.gobierno-abierto__intro h2 {
    font-size: clamp(2rem, 4.6vw, 5.2rem);
    line-height: 1.05;
    text-transform: uppercase;
    font-weight: 700;
    color: aliceblue;
}

.gobierno-abierto__intro p {
    font-size: 1.2rem;
    line-height: 1.4;
    color: aliceblue;
    padding-right: 0;
}

.gobierno-abierto__intro p {
    margin-top: 16px;
}

/* Colores que lee ventanas.js */

:root {
    --win-ink: #242424;
    --win-paper: #ffffff;
    --win-desk: #d9e5f0;
    --win-green: #19a76e;
    --win-amber: #e29b01;
    --win-blue: #5b9bd5;
}

/* Contenedor de la escena: proporción 8:5, se adapta al ancho disponible */
.win-scene {
    position: relative;
    width: 100%;
    height: 400px;
    max-width: 900px;
    aspect-ratio: 8 / 5;
}

.win-scene canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    /* click = reiniciar la animación */
}

/* ---------- Mobile ---------- */

@media (max-width: 800px) {
    .gobierno-abierto {
        --ga-inset-y: 12px;
        --ga-inset-x: 12px;
        --ga-radius: 24px;
    }

    .gobierno-main {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        padding: 32px 18px;
    }
}

/* ==========================================================================
   SELECTOR DE GOBIERNO ABIERTO  ·  todo scopeado con .gsel
   (sin :root, *, html ni body)

   Índice
   1. Variables y colores por categoría
   2. Contenedor
   3. Menú de categorías (botones sólidos)
   4. Grilla y tarjetas
   5. Contenido de la tarjeta (etiqueta, título, texto, enlaces)
   6. Estados: resaltado por categoría y foco
   7. Tarjetas expandibles
   8. Responsive
   9. Movimiento reducido
   ========================================================================== */

/* 1. VARIABLES Y COLORES POR CATEGORÍA ------------------------------------ */
.gsel {
    --gsel-c: #ffaf03;
    /* color de la categoría (valor por defecto) */
    --gsel-on: #111;
    /* texto que se lee sobre --gsel-c */
    --gsel-ink: #111;
    /* texto/elementos oscuros */
    --gsel-paper: #fff;
    /* texto/fondo claro */
    --gsel-bar: 6px;
    /* ancho del borde izquierdo de color */
    --gsel-gap: 12px;
}

.gsel [data-cat="informacion-publica"] {
    --gsel-c: #ffaf03;
    --gsel-on: #111;
}

/* naranja */
.gsel [data-cat="datos-abiertos"] {
    --gsel-c: #2f5fd6;
    --gsel-on: #fff;
}

/* azul */
.gsel [data-cat="participacion-ciudadana"] {
    --gsel-c: #21b57a;
    --gsel-on: #111;
}

/* verde */

/* 2. CONTENEDOR ----------------------------------------------------------- */
.gsel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: calc(80svh - 48px);
    margin: 24px 20px;
    padding: 6px 40px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    color: #fff;
    /* vidrio sobre el video de la sección (https://css.glass) */
    background: rgba(29, 29, 29, 0.418);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.gsel,
.gsel *,
.gsel *::before,
.gsel *::after {
    box-sizing: border-box;
}

/* Video de fondo (detrás de las tarjetas, dentro del vidrio) */
.gsel__video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #242424;
    pointer-events: none;
}

.gsel__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #242424c7 0%, #f7f7f773 100%);
    pointer-events: none;
}


/* 3. MENÚ DE CATEGORÍAS --------------------------------------------------- */
.gsel__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gsel__btn {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    padding: 14px 18px;
    font-family: inherit;
    font-weight: 700;
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    line-height: 1.15;
    color: aliceblue;
    /* sólido, con borde izquierdo del color de la categoría */
    border-left: var(--gsel-bar) solid var(--gsel-c);
    border-radius: 12px;
    transition: background .25s, color .25s, transform .25s;
}

.gsel__btn:hover,
.gsel__btn.is-active {
    background: var(--gsel-c);
    color: var(--gsel-on);
    transform: translateX(10px);
}

.gsel__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* 4. GRILLA Y TARJETAS ---------------------------------------------------- */
.gsel__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(230px, 1fr));
    gap: var(--gsel-gap);
}

/* La tarjeta es el "hueco" de la grilla; la cara visible es .gsel__face */
.gsel__card {
    position: relative;
    display: flex;
    cursor: pointer;
    transition: transform .3s, opacity .3s;
}

.gsel__face {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    background: var(--gsel-paper);
    color: var(--gsel-ink);
    border-left: var(--gsel-bar) solid var(--gsel-c);
    border-radius: 22px;
    transition: background .3s, box-shadow .3s, width .35s;
}

/* 5. CONTENIDO DE LA TARJETA --------------------------------------------- */
.gsel__top {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.gsel__top span:first-child {
    opacity: .6;
}

.gsel__title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.gsel__text {
    margin: 0;
    font-size: .85rem;
    line-height: 1.4;
    color: var(--gsel-ink);
    opacity: .72;
}

/* Botón-enlace (pastilla) */
.gsel__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 10px 14px;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    background: var(--gsel-ink);
    color: var(--gsel-paper);
    border-radius: 999px;
    transition: transform .2s, opacity .2s;
}

.gsel__link:hover {
    transform: translateX(3px);
    opacity: .88;
}

.gsel__link:focus-visible {
    outline: 2px solid var(--gsel-ink);
    outline-offset: 2px;
}

/* 6. ESTADOS: RESALTADO POR CATEGORÍA Y FOCO ------------------------------ */

/* Las tarjetas de otras categorías se atenúan */
.gsel.has-active .gsel__card:not(.is-active) {
    opacity: .35;
    transform: scale(.97);
}

.gsel__card:focus-within .gsel__face {
    box-shadow: 0 0 0 3px var(--gsel-c);
}

/* La tarjeta resaltada toma el color de su categoría.
   Se invierten ink/paper para mantener el contraste (texto claro sobre azul, etc.) */
.gsel__card.is-active {
    transform: translateY(-8px);
}

.gsel__card.is-active .gsel__face {
    --gsel-ink: var(--gsel-on);
    --gsel-paper: var(--gsel-c);
    background: var(--gsel-c);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .35);
}

.gsel__card.is-active:focus-within .gsel__face {
    box-shadow: 0 18px 36px rgba(0, 0, 0, .35), 0 0 0 3px #fff;
}

/* 7. TARJETAS EXPANDIBLES (Seguridad ciudadana / Finanzas públicas) ------- */
.gsel__card--exp .gsel__face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    flex: none;
    justify-content: flex-start;
}

.gsel__card--exp.is-flip .gsel__face {
    left: auto;
    right: 0;
}

.gsel__card--exp.is-open {
    z-index: 5;
}

/* Variante "hacia arriba": se ancla por abajo y crece sobre las demás tarjetas,
   así no se recorta contra el borde inferior de la grilla */
.gsel__card--up .gsel__face {
    top: auto;
    bottom: 0;
}

.gsel__card--up.is-open .gsel__face {
    box-shadow: 0 -24px 48px rgba(0, 0, 0, .4);
}

.gsel__card--exp.is-open .gsel__face {
    width: calc(200% + var(--gsel-gap));
    box-shadow: 0 24px 48px rgba(0, 0, 0, .4);
}

.gsel__toggle {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 9px 14px;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
    color: inherit;
    border: 1.5px solid var(--gsel-ink);
    border-radius: 999px;
    transition: background .2s, color .2s;
}

.gsel__toggle:hover {
    background: var(--gsel-ink);
    color: var(--gsel-paper);
}

.gsel__toggle:focus-visible {
    outline: 2px solid var(--gsel-ink);
    outline-offset: 2px;
}

.gsel__toggle i {
    font-style: normal;
    font-size: 1rem;
    line-height: 1;
}

/* Panel con los botones (se despliega con grid-template-rows 0fr → 1fr) */
.gsel__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s;
}

.gsel__card.is-open .gsel__panel {
    grid-template-rows: 1fr;
}

.gsel__links {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    /* cerrado: sus enlaces no reciben foco */
    transition: visibility 0s .35s;
}

.gsel__card.is-open .gsel__links {
    visibility: visible;
    transition-delay: 0s;
}

.gsel__inner {
    padding-top: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.gsel__inner .gsel__link {
    justify-content: space-between;
    align-self: stretch;
}

/* 8. RESPONSIVE ----------------------------------------------------------- */

@media (max-width: 980px) {
    .gsel {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 20px;
        margin: 12px;
        border-radius: 24px;
    }

    .gsel__menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .gsel__btn:hover,
    .gsel__btn.is-active {
        transform: translateY(-2px);
    }

    .gsel__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
        grid-auto-rows: minmax(190px, auto);
    }

    /* la tarjeta expandida ocupa toda la fila y empuja al resto */

    .gsel__card--exp .gsel__face {
        position: relative;
        width: 100%;
        min-height: 0;
        flex: 1;
    }

    .gsel__card--exp.is-open {
        grid-column: 1 / -1;
    }

    .gsel__card--exp.is-open .gsel__face {
        width: 100%;
    }

    .gsel__inner {
        grid-template-columns: 1fr;
    }
}

/* 9. MOVIMIENTO REDUCIDO -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .gsel * {
        transition: none !important;
    }
}

.g-algoritmica {
    width: 100%;
    height: auto;
}

.g-algoritmica-title {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 40px 0;
    padding-bottom: 80px;
}

.g-algoritmica-title h2 {
    text-transform: uppercase;
    font-size: 5.2rem;
    color: #242424;
    border-bottom: 2px solid #242424;
}

.g-algoritmica-title p {
    padding-top: 40px;
    font-size: 3rem;
    color: #242424;
}

.g-algoritmica-main {
    width: 100%;
    height: auto;
}

.comite-ia {
    width: 100%;
    height: 400px;
    position: relative;
}

.comite-title {
    position: absolute;
    width: 100%;
    height: 400px;
    padding: 40px;
    z-index: 2;
    color: aliceblue;
}

.comite-title h2 {
    font-size: 4rem;
}

.comite-title p {
    margin-top: 20px;
    padding-right: 45%;
    font-size: 1.2rem;
}

.comite-video {
    position: absolute;
    --sc-cut: clamp(36px, 5vw, 64px);
    width: 100%;
    height: 400px;
    clip-path: polygon(0 0,
            calc(100% - var(--sc-cut)) 0,
            100% var(--sc-cut),
            100% 100%,
            var(--sc-cut) 100%,
            0 calc(100% - var(--sc-cut)));
    z-index: 0;
}

.comite-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.c-overlay {
    position: absolute;
    width: 100%;
    height: 400px;
    --sc-cut: clamp(36px, 5vw, 64px);
    z-index: 1;
    background-color: #1d24228e;
    clip-path: polygon(0 0,
            calc(100% - var(--sc-cut)) 0,
            100% var(--sc-cut),
            100% 100%,
            var(--sc-cut) 100%,
            0 calc(100% - var(--sc-cut)));
}

/* Contenedor de la red: toma el tamaño de su padre (ajustá width/height a gusto) */
.network {
    position: relative;
    width: 300px;
    height: 300px;
}

.network canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: grab;
    touch-action: none;
}

.network canvas:active {
    cursor: grabbing;
}

.agenda {
    width: 100%;
    height: auto;
    background-color: #242424;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.agenda-top {
    width: 100%;
    height: 40vh;
    display: flex;
    align-items: end;
    padding-left: 60px;
    background-color: #f0f8ff;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    /* esconde el h2 mientras está fuera de posición */
}

.agenda-top h2 {
    font-size: 8rem;
    color: #242424;
    position: absolute;
    bottom: -30px;
    transform: translateY(120%);
    /* arranca oculto, abajo del bloque */
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.agenda-top.in-view h2 {
    transform: translateY(0);
    /* sube hasta su posición final */
}

.agenda-bottom {
    width: 100%;
    height: 20vh;
    text-transform: uppercase;
    position: relative;
    padding-left: 52px;
    overflow: hidden;
    /* esconde el h2 mientras está fuera de posición */
}

.agenda-bottom h2 {
    font-size: 8rem;
    color: aliceblue;
    position: absolute;
    top: -28px;
    transform: translateY(-120%);
    /* arranca oculto, arriba del bloque */
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.agenda-bottom.in-view h2 {
    transform: translateY(0);
    /* baja hasta su posición final */
}

.agenda-main {
    width: 100%;
    height: auto;
    background-color: #242424;
}

.agenda-kpi {
    display: flex;
    gap: 12px;
    padding: 0 60px;
}

.agenda-kpi .agenda-kpi__card {
    width: auto;
    height: auto;
    padding: 5rem 1rem;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

.agenda-kpi .agenda-kpi__label {
    font-size: 3rem;
    color: aliceblue;
    margin: 0 0 4px;
}

.agenda-kpi .agenda-kpi__value {
    font-size: 4rem;
    font-weight: 500;
    margin: 0;
    color: aliceblue;
}

:root {
    --tile-bg: #242424;
    --tile-w: 180px;
    --tile-h: 150px;
    --gap: 8px;
    --speed-1: 35s;
    --speed-2: 35s;
}

/* ===== Contenedor doble carrusel ===== */
.carrusel-doble {
    width: 100%;
    overflow: hidden;
    padding-bottom: 40px;
}

.carrusel-fila {
    overflow: hidden;
    width: 100%;
    margin-bottom: var(--gap);
}

.carrusel-fila:last-child {
    margin-bottom: 0;
}

.carrusel-track {
    display: flex;
    width: max-content;
    gap: var(--gap);
}

:root {
    --gap: 20px;
    --tile-w: 400px;
    --tile-h: 340px;
    --tile-bg: aliceblue;
    --text-dark: #242424;
    --text-muted: #565b62;
    --speed-1: 52s;
    --speed-2: 48s;
}

/* ===== Tarjeta ===== */
.carrusel-item {
    flex: 0 0 auto;
    width: var(--tile-w);
    height: var(--tile-h);
}

.carrusel-card {
    position: relative;
    display: block;
    height: 100%;
    width: 100%;
    background: var(--tile-bg);
    border-right: 8px solid var(--card-color, #2f5fd6);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
    /* mantiene el ::before contenido dentro de la tarjeta */
}

/* capa de color que entra deslizándose desde el lado del borde */
.carrusel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--card-color, #2f5fd6);
    transform: translateX(105%);
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    z-index: 0;
}

.carrusel-card:hover::before {
    transform: translateX(0);
}

.card-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 10px;
    transition: color .3s ease .08s;
}

.card-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
    transition: color .3s ease .08s;
}

.card-logo {
    margin-top: auto;
    align-self: flex-start;
    max-height: 84px;
    width: auto;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s ease .15s, transform .35s ease .15s;
}

.carrusel-card:hover .card-title,
.carrusel-card:hover .card-text {
    color: aliceblue;
}

.carrusel-card:hover .card-logo {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    .carrusel-card::before,
    .card-title,
    .card-text,
    .card-logo {
        transition: none !important;
    }
}

.carrusel-card.sin-cambio-texto:hover .card-title,
.carrusel-card.sin-cambio-texto:hover .card-text {
    color: var(--text-dark);
    /* o el color que quieras que mantenga */
}

.card-tag {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
    transition: color .3s ease .08s, background-color .3s ease .08s;
}

/* colores por categoría, en reposo */
.card-tag--membresia {
    background: rgba(47, 95, 214, .12);
    color: #2f5fd6;
}

.card-tag--certificacion {
    background: rgba(106, 76, 156, .15);
    color: #6a4c9c;
}

.card-tag--reconocimiento {
    background: rgba(255, 175, 3, .15);
    color: #ffaf03;
}

.card-tag--apoyo {
    background: rgba(33, 181, 122, .15);
    color: #21b57a;
}

/* al hacer hover, queda legible sobre el fondo de color de la tarjeta */
.carrusel-card:hover .card-tag {
    background: rgba(240, 248, 255, .22);
    color: aliceblue;
}

.carrusel-fila {
    cursor: grab;
    touch-action: pan-y;
}

.carrusel-fila.arrastrando {
    cursor: grabbing;
}

.carrusel-card,
.carrusel-card img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.agenda-kpi .agenda-kpi__card {
    cursor: pointer;
    transition: transform .25s ease;
}

.agenda-kpi .agenda-kpi__card:hover {
    transform: translateY(-4px);
}

/* Estado por defecto: todas las tarjetas visibles */
.carrusel-doble .carrusel-item {
    opacity: 1;
    filter: grayscale(0);
    transition: opacity .35s ease, filter .35s ease;
}

/* Al filtrar, todo se atenúa... */
.carrusel-doble.filtrando .carrusel-item {
    opacity: .18;
    filter: grayscale(1);
}

/* ...excepto las tarjetas cuya categoría matchea el KPI en hover */
.carrusel-doble[data-filtro-activo="membresia"] .carrusel-item.categoria-membresia,
.carrusel-doble[data-filtro-activo="reconocimiento"] .carrusel-item.categoria-reconocimiento,
.carrusel-doble[data-filtro-activo="apoyo"] .carrusel-item.categoria-apoyo,
.carrusel-doble[data-filtro-activo="certificacion"] .carrusel-item.categoria-certificacion {
    opacity: 1;
    filter: grayscale(0);
}

/* ===== STICKY HEADER ===== */
.sticky-nav-header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    /* From https://css.glass */
    background: rgba(240, 248, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(36, 36, 36, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(240, 248, 255, 0.3);
    padding: 0.4rem 1.8rem;
    border-bottom: 1px solid rgba(47, 95, 214, 0.08);
}

/* ----- LOGO ----- */
.nav-logo {
    flex-shrink: 0;
    height: 48px;
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: block;
    height: 100%;
}

.nav-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.newsletter {
    width: 100%;
    height: auto;
    background-color: #242424;
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding: 20px;
}

.newsletter video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.news-title {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #242424;
    text-align: center;
    padding: 40px 300px;
    gap: 40px;
    background-color: aliceblue;
    border-radius: 24px;
}

.news-title span {
    text-transform: uppercase;
    font-weight: 800;
    color: #21b57a;
}

.news-title h2 {
    font-size: 4rem;
}

.news-title p {
    font-size: 1.5rem;
}

.news-title a {
    text-decoration: none;
    color: aliceblue;
    font-weight: 800;
    font-size: 1.2rem;
    background-color: #242424;
    padding: 20px 30px;
    border-radius: 24px;
    border-right: 5px solid #21b57a;
    border-left: 5px solid #21b57a;
}

.site-footer {
    height: auto;
    position: relative;
    overflow: hidden;
    color: aliceblue;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #242424;
}

.footer-inner {
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: start;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 14px;
    text-align: start;
}

.brand-logo .mark {
    border-radius: 5px;
    display: inline-block;
}

.brand-tagline {
    font-size: 14px;
    line-height: 1.5;
    max-width: 260px;
    margin-bottom: 22px;
}

.social-row {
    display: flex;
    gap: 10px;
}

.social-row a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--icon-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    background: rgba(240, 248, 255, .35);
    color: aliceblue;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    font-size: 14px;
    color: aliceblue;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    position: relative;
    margin: 48px auto 0;
    padding: 20px 0 28px;
    border-top: 1px solid aliceblue;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: aliceblue;
}

.footer-bottom a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width:900px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:560px) {
    .footer-inner {
        grid-template-columns: 1fr
    }

    .site-footer {
        padding: 40px 24px 0
    }
}

/* Compensa el header sticky al hacer scroll-to hacia las tarjetas */

#gestion-productos,
#gestion-ciencia-datos,
#gestion-ia {
    scroll-margin-top: 90px;
}

/* ==========================================================
   PAGE TRANSITION — bloque que tapa/revela entre subpáginas
   Incluir este archivo en TODAS las páginas que participen
   de la transición (principal y subpáginas).
   ========================================================== */

:root {
    --pt-color: aliceblue;
    /* color del bloque — ajustalo a tu paleta */
    --pt-duration: 600ms;
    /* duración de la animación de tape/reveal */
}

#pt-block {
    position: fixed;
    inset: 0;
    background: var(--pt-color);
    transform: translateY(100%);
    /* estado de reposo: escondido abajo */
    transition: transform var(--pt-duration) cubic-bezier(.65, 0, .35, 1);
    z-index: 9999;
    pointer-events: none;
}

/* sube y tapa toda la pantalla (de abajo hacia arriba) */

#pt-block.pt-cover {
    transform: translateY(0);
}

/* sigue subiendo y se va por arriba (revela de arriba hacia abajo) */

#pt-block.pt-reveal {
    transform: translateY(-100%);
}

/* usado solo al cargar la página destino, para que el bloque
   aparezca ya tapando todo SIN animarse desde abajo */

#pt-block.pt-instant {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    #pt-block {
        transition: none;
    }
}

/* ===== STICKY NAV EN PÍLDORA — fixed en pantalla (independiente del hero) =====
   Estados (clases que pone hero-scroll.js):
   - sin clase  : oculta
   - .is-visible: aparece fija abajo (120px del borde inferior) al expandirse el hero-bkg
   - .is-top    : al seguir bajando por la página se pega arriba (20px del borde superior)
   La posición y la animación las maneja solo este CSS. */
.sticky-nav-header.hero-nav {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 999;
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 14px;
    background: aliceblue;
    border: none;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(36, 36, 36, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    /* Oculta, apenas más abajo de su posición inferior (entrada con deslizamiento) */
    transform: translate(-50%, calc(100vh - 120px - 50% + 20px));
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    will-change: transform, opacity;
}

@media (min-width: 993px) {
    .sticky-nav-header.hero-nav.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, calc(100vh - 120px - 50%));
    }

    .sticky-nav-header.hero-nav.is-visible.is-top {
        transform: translate(-50%, 20px);
    }
}

.hero-nav__list {
    display: flex;
    align-items: center;
    list-style: none;
}

.hero-nav__li {
    position: relative;
}

/* Divisor vertical corto entre segmentos */
.hero-nav__li+.hero-nav__li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 28px;
    background: #e4dfdb;
    transform: translateY(-50%);
}

.hero-nav__row {
    display: flex;
    align-items: center;
    border-radius: 999px;
    transition: background 0.25s ease;
}

.hero-nav__row:hover,
.hero-nav__li.is-open .hero-nav__row {
    background: #f4efec;
}

.hero-nav__item {
    display: flex;
    gap: 4px;
    padding: 8px 4px 8px 26px;
    text-decoration: none;
}

.hero-nav__row--plain .hero-nav__item {
    padding-right: 26px;
}

.hero-nav__label {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    color: #242424;
}

.hero-nav__value {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.1;
    color: #242424;
    white-space: nowrap;
}

.hero-nav__chevron {
    display: flex;
    align-items: center;
    padding: 12px 18px 12px 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #7a7673;
    font-size: 0.7rem;
}

.hero-nav__chevron i,
.hero-nav__sub-toggle i {
    transition: transform 0.25s ease;
}

.hero-nav__li.is-open>.hero-nav__row .hero-nav__chevron i,
.hero-nav__sub.is-open .hero-nav__sub-toggle i {
    transform: rotate(180deg);
}

/* ----- Dropdown: se abre hacia ARRIBA porque la píldora vive abajo ----- */
.hero-nav__dropdown {
    position: absolute;
    left: 0;
    bottom: calc(100% + 22px);
    min-width: 240px;
    margin: 0;
    padding: 0.6rem 0;
    list-style: none;
    background: aliceblue;
    border: 1px solid rgba(36, 36, 36, 0.04);
    border-radius: 16px;
    box-shadow: 0 18px 40px -8px rgba(36, 36, 36, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px) scale(0.97);
    transform-origin: bottom left;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.hero-nav__dropdown--nested {
    min-width: 280px;
}

/* Puente invisible para no perder el hover al cruzar el hueco */
.hero-nav__dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 26px;
}

.hero-nav__li.is-open>.hero-nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Nav arriba (.is-top): los dropdowns se abren hacia ABAJO */
.hero-nav.is-top .hero-nav__dropdown {
    bottom: auto;
    top: calc(100% + 22px);
    transform: translateY(-6px) scale(0.97);
    transform-origin: top left;
}

.hero-nav.is-top .hero-nav__dropdown::after {
    top: auto;
    bottom: 100%;
}

.hero-nav.is-top .hero-nav__li.is-open>.hero-nav__dropdown {
    transform: translateY(0) scale(1);
}

@media (hover: hover) and (min-width: 993px) {

    .hero-nav__li:hover>.hero-nav__dropdown,
    .hero-nav.is-top .hero-nav__li:hover>.hero-nav__dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
}

.hero-nav__dropdown a {
    display: block;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #242424;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.hero-nav__dropdown a:hover {
    background: #f4f9ff;
    color: #2f5fd6;
    border-left-color: #2f5fd6;
}

/* Submenú anidado (Gobierno Abierto) */
.hero-nav__sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-nav__sub-row a {
    flex: 1;
}

.hero-nav__sub-toggle {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #8992a6;
    font-size: 0.7rem;
}

.hero-nav__submenu {
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
    transition: max-height 0.25s ease;
}

.hero-nav__sub.is-open .hero-nav__submenu {
    max-height: 240px;
}

.hero-nav__submenu a {
    padding-left: 2rem;
    font-size: 0.85rem;
}

/* Botón circular oscuro del final */
.hero-nav__cta {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #242424;
    color: aliceblue;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-nav__cta:hover {
    background: #ffaf03;
    color: #242424;
    transform: scale(1.06);
}

/* Con 5 segmentos la píldora se compacta en escritorio chico para no desbordar */
@media (min-width: 993px) and (max-width: 1360px) {
    .hero-nav__item {
        padding-left: 16px;
    }

    .hero-nav__row--plain .hero-nav__item {
        padding-right: 16px;
    }

    .hero-nav__chevron {
        padding-right: 12px;
    }

    .hero-nav__label,
    .hero-nav__value {
        font-size: 0.8rem;
    }
}

/* Mobile / tablet: el JS no anima; píldora fija abajo, tocar un segmento abre su menú */

@media (max-width: 992px) {
    .sticky-nav-header.hero-nav {
        top: auto;
        bottom: 16px;
        padding: 8px;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%);
        display: none;
    }

    .hero-nav__li {
        position: static;
    }

    .hero-nav__value,
    .hero-nav__chevron,
    .hero-nav__cta {
        display: none;
    }

    .hero-nav__item,
    .hero-nav__row--plain .hero-nav__item {
        padding: 12px 14px;
    }

    .hero-nav__label {
        font-size: 0.8rem;
        font-weight: 700;
        color: #242424;
    }

    .hero-nav__dropdown,
    .hero-nav__dropdown--nested {
        left: 0;
        right: 0;
        min-width: 0;
        bottom: calc(100% + 12px);
        transform-origin: bottom center;
    }
}

/* ==========================================================
   Slider de Gestión · IA — etiquetas de estado y modales
   ========================================================== */
.g-app-tags .g-tag-status--live {
    background: rgba(33, 181, 122, 0.15);
    color: #21b57a;
}

.g-app-tags .g-tag-status--proposed {
    background: rgba(255, 175, 3, 0.15);
    color: #ffaf03;
}

button.g-app-btn {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

html.ia-modal-open {
    overflow: hidden;
}

.ia-modal {
    --ia-c: #ffaf03;
    --ia-on: #242424;
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(1800px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: #242424;
    color: aliceblue;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(36, 36, 36, 0.5);
}

.ia-modal--yellow {
    --ia-c: #ffaf03;
    --ia-on: #242424;
}

.ia-modal--blue {
    --ia-c: #2f5fd6;
    --ia-on: aliceblue;
}

.ia-modal--green {
    --ia-c: #21b57a;
    --ia-on: #242424;
}

.ia-modal--red {
    --ia-c: #e0475c;
    --ia-on: aliceblue;
}

.ia-modal::backdrop {
    background: rgba(36, 36, 36, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ia-modal[open] {
    animation: ia-modal-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ia-modal[open]::backdrop {
    animation: ia-backdrop-in 0.35s ease;
}

@keyframes ia-modal-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ia-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ia-modal-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
    min-height: min(480px, calc(100vh - 40px));
    max-height: calc(100vh - 40px);
    padding: 22px 64px 56px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-top: 6px solid var(--ia-c);
}

.ia-modal-inner::-webkit-scrollbar {
    display: none;
}

.ia-modal-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: start;
    gap: 20px;
}

.ia-modal-status {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--ia-c);
    color: var(--ia-on);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ia-modal-title {
    font-size: clamp(2.8rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
}

.ia-modal-title  p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.92;
}

.ia-modal-right span {
    font-size: 1.2rem;
    font-weight: 700;
}

.ia-modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(240, 248, 255, 0.14);
    color: aliceblue;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
}

.ia-modal-close:hover {
    background: var(--ia-c);
    color: var(--ia-on);
    transform: rotate(90deg);
}

.ia-modal-close:focus-visible {
    outline: 3px solid aliceblue;
    outline-offset: 3px;
}

@media (max-width: 800px) {
    .ia-modal-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: start;
        padding: 80px 28px 36px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ia-modal[open],
    .ia-modal[open]::backdrop {
        animation: none;
    }
}

/* ==========================================================================
   SHOWCASE · estructura compartida por Gestión y Gobierno abierto
   Marco gris + tarjeta negra: texto/CTA a la izquierda, media con esquinas
   cortadas al centro, KPIs y etiqueta a la derecha.
   ========================================================================== */
.showcase {
    --sc-cut: clamp(36px, 5vw, 64px);
    padding: 0px;
    border-radius: 36px;
    background-blend-mode: multiply;
}


.showcase__card {
    position: relative;
    padding: clamp(24px, 3vw, 44px);
    background: #242424;
    color: aliceblue;
    border-radius: 28px;
    overflow: hidden;
}

/* Fila superior: texto | media | KPIs */
.showcase__top {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr) minmax(150px, 0.34fr);
    gap: clamp(20px, 3vw, 48px);
    height: min(calc(100vh - 140px), 700px);
    min-height: 520px;
}

/* Fila inferior: slider / selector, dentro de la misma tarjeta */
.showcase__extra {
    position: relative;
    margin-top: clamp(28px, 4vw, 56px);
    padding-top: clamp(28px, 4vw, 56px);
    border-top: 1px solid rgba(240, 248, 255, 0.14);
}

/* Slider de Gestión integrado: sin sobresalir de la tarjeta */
.showcase .gestion-content {
    padding: 0;
    margin: 0;
}

.showcase .g-slider {
    height: min(calc(100vh - 60px), 800px);
    min-height: 600px;
}

.showcase .g-slide-inner {
    padding-top: 110px;
    padding-bottom: 40px;
}

.showcase .g-slide-text p {
    font-size: 1.05rem;
    line-height: 1.55;
    height: auto;
}

.showcase .g-slider-stage {
    border-radius: 20px;
}

.showcase .g-card {
    --g-overhang: 0px;
    --card-right: 32px;
}

/* Selector de Gobierno abierto integrado: sin vidrio, sin video propio, sin margen */
.showcase .gsel {
    margin: 0;
    padding: 0;
    min-height: 0;
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.showcase .gsel__video,
.showcase .gsel__shade {
    display: none;
}

/* ----- Izquierda ----- */
.showcase__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    min-width: 0;
}

.showcase__title {
    font-size: clamp(2.6rem, 4.6vw, 4.8rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: #fff;
    margin-bottom: 24px;
}

.showcase__text {
    max-width: 380px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(240, 248, 255, 0.85);
}

.showcase__text strong {
    color: #fff;
    font-weight: 700;
}

.showcase__foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

/* Botón blanco con esquina superior derecha cortada */
.showcase__cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    background: aliceblue;
    color: #111;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    transition: background 0.25s ease, transform 0.25s ease;
}

.showcase__cta:hover {
    background: var(--sc-accent);
    transform: translateX(4px);
}

.showcase__cta:focus-visible {
    outline: 2px solid var(--sc-accent);
    outline-offset: 3px;
}

.showcase__trust {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 320px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.showcase__trust i {
    margin-top: 2px;
    color: var(--sc-accent);
}

/* ----- Centro: media con esquinas cortadas (arriba-derecha y abajo-izquierda) ----- */
.showcase__media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #242424;
    container-type: size;
    clip-path: polygon(0 0,
            calc(100% - var(--sc-cut)) 0,
            100% var(--sc-cut),
            100% 100%,
            var(--sc-cut) 100%,
            0 calc(100% - var(--sc-cut)));
}

.showcase__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* La escena de ventanas (canvas) se centra sobre el video manteniendo 8:5 */
.showcase__media .win-scene {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92cqw, 147cqh);
    height: auto;
    max-width: none;
    aspect-ratio: 8 / 5;
}

/* ----- Derecha ----- */
.showcase__right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
    min-width: 0;
}

.showcase__stats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.showcase__stats strong {
    display: block;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

.showcase__stats span {
    display: block;
    max-width: 150px;
    margin: 6px 0 0 auto;
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(240, 248, 255, 0.8);
}

.showcase__tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: aliceblue;
}

/* Reemplaza la grilla y el layout previos de las dos secciones */
.gestion .gestion-main {
    display: block;
    height: auto;
    min-height: 0;
    padding: 90px 20px 20px;
}

.gobierno-abierto .gobierno-main {
    display: block;
    padding: 0 0 24px;
}

/* ----- Responsive ----- */
@media (max-width: 992px) {
    .showcase__top {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .showcase__media {
        order: 2;
        aspect-ratio: 4 / 3;
    }

    .showcase__left {
        order: 1;
    }

    .showcase__right {
        order: 3;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        text-align: left;
        gap: 16px;
    }

    .showcase__stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 18px 28px;
    }

    .showcase__stats span {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase__cta {
        transition: none;
    }
}


/* ==========================================================================
   GESTIÓN · showcase
   Clases propias de esta sección. Se suman a las compartidas (.showcase__*),
   así que acá solo va lo que la diferencia.
   ========================================================================== */
.gestion-showcase {
    --sc-accent: #21b57a;
}

.gestion-showcase__card {
    background-color: aliceblue;
}

.gestion-showcase__top {
    /* gestión: ajustes de top */
}

.gestion-showcase__left {
    color: #242424;
}

.gestion-showcase__head {
    /* gestión: ajustes de head */
}

.gestion-showcase__title {
    /* gestión: ajustes de title */
    color: #242424;
}

.gestion-showcase__text {
    /* gestión: ajustes de text */
    color: #242424;
}

.gestion-showcase__foot {
    /* gestión: ajustes de foot */
    color: #242424;
}

.gestion-showcase__cta {
    /* gestión: ajustes de cta */
    color: #242424;
}

.gestion-showcase__trust {
    /* gestión: ajustes de trust */
}

.gestion-showcase__media {
    /* gestión: ajustes de media */
}

.gestion-showcase__video {
    /* gestión: ajustes de video */
}

.gestion-showcase__shade {
    /* gestión: ajustes de shade */
}

.gestion-showcase__right {
    /* gestión: ajustes de right */
}

.gestion-showcase__stats strong {
    /* gestión: ajustes de stats */
    color: #242424;
}

.gestion-showcase__stats span {
    /* gestión: ajustes de stats */
    color: #242424;
}

.gestion-showcase__tag {
    /* gestión: ajustes de tag */
    color: #242424;
}

.gestion-showcase__extra {
    /* gestión: ajustes de extra */
    color: #242424;
}


/* ==========================================================================
   GOBIERNO ABIERTO · showcase
   Clases propias de esta sección. Se suman a las compartidas (.showcase__*),
   así que acá solo va lo que la diferencia.
   ========================================================================== */
.gobierno-showcase {
    --sc-accent: #ffaf03;
}

.gobierno-showcase__card {
    /* gobierno abierto: ajustes de card */
}

.gobierno-showcase__top {
    /* gobierno abierto: ajustes de top */
}

.gobierno-showcase__left {
    /* gobierno abierto: ajustes de left */
}

.gobierno-showcase__head {
    /* gobierno abierto: ajustes de head */
}

.gobierno-showcase__title {
    /* gobierno abierto: ajustes de title */
}

.gobierno-showcase__text {
    /* gobierno abierto: ajustes de text */
}

.gobierno-showcase__foot {
    /* gobierno abierto: ajustes de foot */
}

.gobierno-showcase__cta {
    /* gobierno abierto: ajustes de cta */
}

.gobierno-showcase__trust {
    /* gobierno abierto: ajustes de trust */
}

.gobierno-showcase__media {
    /* gobierno abierto: ajustes de media */
}

.gobierno-showcase__video {
    /* gobierno abierto: ajustes de video */
}

.gobierno-showcase__shade {
    /* gobierno abierto: ajustes de shade */
}

.gobierno-showcase__right {
    /* gobierno abierto: ajustes de right */
}

.gobierno-showcase__stats {
    /* gobierno abierto: ajustes de stats */
}

.gobierno-showcase__tag {
    /* gobierno abierto: ajustes de tag */
}

.gobierno-showcase__extra {
    /* gobierno abierto: ajustes de extra */
}




/* ==========================================================================
   GOBERNANZA ALGORÍTMICA · showcase (Comité Local de IA)
   Clases propias de esta sección. Se suman a las compartidas (.showcase__*),
   así que acá solo va lo que la diferencia.
   ========================================================================== */
.g-algoritmica-main>.algoritmica-showcase {
    margin: 0 20px;
}

.algoritmica-showcase {
    --sc-accent: #2f5fd6;
}

.algoritmica-showcase__title {
    /* título largo: un poco más chico que en Gestión / Gobierno */
    font-size: clamp(2.2rem, 3.6vw, 3.8rem);
}

.algoritmica-showcase__text {
    max-width: 420px;
    padding-bottom: 20px;
}

.algoritmica-showcase__shade {
    background: linear-gradient(180deg, rgba(29, 36, 34, 0.25), rgba(29, 36, 34, 0.55));
}

.algoritmica-showcase__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.algoritmica-showcase__cta:hover {
    color: #fff;
    background-color: #e29b01;
}

/* Segundo botón (Decreto): contorno, misma silueta con esquina cortada */
.algoritmica-showcase__cta--ghost {
    background: transparent;
    color: aliceblue;
    box-shadow: inset 0 0 0 2px aliceblue;
}

.algoritmica-showcase__cta--ghost:hover {
    background: var(--sc-accent);
    box-shadow: inset 0 0 0 2px var(--sc-accent);
}

/* La imagen del robot ya no sube sobre el video: se apoya junto al texto de objetivos */
.g-algoritmica .objetivos-img {
    --img-up: -30px;
    width: min(30%, 360px);
}

@media (max-width: 992px) {
    .g-algoritmica-main>.algoritmica-showcase {
        margin: 0 12px;
    }

    .g-algoritmica .objetivos-img {
        display: none;
    }
}

:root {
    color-scheme: light;
    --page: #ece9e3;
    --bar: #2f5fd6;
    --axis: #2f5fd6;
    --accent: #ffaf03;
    --lens: grey;
    --ok: #21b57a;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---- Comité IA: botones Ordenanza / Decreto ---- */
.comite-botones {
    position: absolute;
    top: 40px;
    right: 80px;
    z-index: 3;
    display: flex;
    gap: 14px;
}

.comite-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #ffaf03;
    color: #111;
    border: 2px solid #ffaf03;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}

.comite-btn:hover,
.comite-btn:focus-visible {
    background: transparent;
    color: #f0f8ff;
    transform: translateY(-2px);
}

/* ---- Objetivos (tarjetas) ---- */
.objetivos {
    width: 100%;
    padding: 60px 40px 40px;
}

.objetivos-intro {
    max-width: 820px;
    margin-bottom: 40px;
}

.objetivos-intro h3 {
    font-size: 3rem;
    color: #242424;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.objetivos-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #242424;
}

.objetivos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.objetivo-card {
    --sc-cut: 28px;
    position: relative;
    background: #242424;
    color: #f0f8ff;
    padding: 28px 24px 32px;
    clip-path: polygon(0 0,
            calc(100% - var(--sc-cut)) 0,
            100% var(--sc-cut),
            100% 100%,
            var(--sc-cut) 100%,
            0 calc(100% - var(--sc-cut)));
    transition: transform .25s, background .25s, color .25s;
}

.objetivo-card:hover {
    transform: translateY(-6px);
    background: #2f5fd6;
    color: #111;
}

.objetivo-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: #2f5fd6;
    margin-bottom: 14px;
    transition: color .25s;
}

.objetivo-card:hover .objetivo-num {
    color: #111;
}

.objetivo-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.objetivo-card p {
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .comite-botones {
        top: auto;
        bottom: 40px;
        left: 40px;
        right: auto;
    }

    .comite-title p {
        padding-right: 0;
    }

    .objetivos {
        padding: 40px 20px;
    }

    .objetivos-intro h3 {
        font-size: 2.2rem;
    }
}

/* ---- Capas: comite-ia (0-3) < imagen (4) < tarjetas y textos (5) ---- */
.objetivos {
    position: relative;
}

.objetivos-intro,
.objetivos-grid {
    position: relative;
    z-index: 5;
}

.objetivos-img {
    --img-up: 180px;
    /* cuánto sube la imagen sobre el bloque comite-ia */
    position: absolute;
    top: calc(-1 * var(--img-up));
    right: 60px;
    z-index: 4;
    width: min(45%, 460px);
    height: auto;
    background: none;
    pointer-events: none;
}

@media (max-width: 900px) {
    .objetivos-img {
        --img-up: 120px;
        right: 20px;
        width: 50%;
    }
}

/* ==========================================================================
   GOBERNANZA ALGORÍTMICA · responsive mobile
   Se suma a las reglas compartidas de .showcase (que ya apilan en <= 992px).
   ========================================================================== */
@media (max-width: 768px) {

    /* ----- Título de la sección ----- */
    .g-algoritmica-title {
        padding: 24px 20px 40px;
        text-align: center;
    }

    .g-algoritmica-title h2 {
        font-size: clamp(2rem, 9vw, 3rem);
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    .g-algoritmica-title p {
        padding-top: 20px;
        font-size: clamp(1.05rem, 4.4vw, 1.4rem);
        line-height: 1.35;
    }

    .network {
        width: 200px;
        height: 200px;
    }

    /* ----- Showcase del Comité ----- */
    .g-algoritmica-main>.algoritmica-showcase {
        margin: 0 12px;
    }

    .algoritmica-showcase .showcase__card {
        padding: 0;
        border-radius: 22px;
    }

    .algoritmica-showcase .showcase__top {
        gap: 24px;
    }

    .algoritmica-showcase .showcase__left {
        gap: 24px;
    }

    .algoritmica-showcase__title {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
        line-height: 1;
        margin-bottom: 16px;
        overflow-wrap: anywhere;
    }

    .algoritmica-showcase__text {
        max-width: none;
        font-size: 0.95rem;
    }

    .algoritmica-showcase__actions {
        width: 100%;
    }

    .algoritmica-showcase__cta {
        flex: 1 1 140px;
        justify-content: space-between;
        padding: 14px 18px;
    }

    .algoritmica-showcase .showcase__trust {
        max-width: none;
    }

    .algoritmica-showcase .showcase__media {
        aspect-ratio: 4 / 3;
        --sc-cut: 36px;
    }

    /* KPIs: lista vertical, número a la izquierda y descripción a la derecha */
    .algoritmica-showcase .showcase__right {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        text-align: left;
    }

    .algoritmica-showcase .showcase__stats {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
    }

    .algoritmica-showcase .showcase__stats li {
        display: grid;
        grid-template-columns: minmax(88px, 0.4fr) 1fr;
        align-items: center;
        gap: 16px;
        padding: 14px 0;
        border-top: 1px solid rgba(240, 248, 255, 0.14);
    }

    .algoritmica-showcase .showcase__stats li:last-child {
        border-bottom: 1px solid rgba(240, 248, 255, 0.14);
    }

    .algoritmica-showcase .showcase__stats strong {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .algoritmica-showcase .showcase__stats span {
        max-width: none;
        margin: 0;
        font-size: 0.8rem;
    }

    /* ----- Objetivos ----- */
    .objetivos {
        padding: 32px 16px 28px;
    }

    .objetivos-intro {
        margin-bottom: 24px;
    }

    .objetivos-intro h3 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
        line-height: 1.05;
    }

    .objetivos-intro p {
        font-size: 1rem;
    }

    .objetivos-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .objetivo-card {
        --sc-cut: 22px;
        padding: 22px 20px 26px;
    }

    .objetivo-num {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .objetivo-card h4 {
        font-size: 1.15rem;
    }

    .objetivo-card p {
        font-size: 0.95rem;
    }

    /* En touch no hay hover: evita que la tarjeta quede "levantada" tras tocarla */
    .objetivo-card:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .g-algoritmica-main>.algoritmica-showcase {
        margin: 0 0px;
    }

    .algoritmica-showcase .showcase__card {
        padding: 18px 14px;
    }

    .algoritmica-showcase__cta {
        flex-basis: 100%;
    }

    .algoritmica-showcase .showcase__media {
        aspect-ratio: 1 / 1;
    }

    .algoritmica-showcase .showcase__stats li {
        grid-template-columns: 76px 1fr;
        gap: 12px;
    }

    .algoritmica-showcase .showcase__tag {
        font-size: 0.7rem;
    }
}

/* ----- NEWSLETTER FORM ----- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.news-form {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.news-form__row {
    display: flex;
    gap: 12px;
}

.news-form input[type="email"] {
    flex: 1;
    min-width: 0;
    font: inherit;
    font-size: 1.2rem;
    color: #242424;
    background-color: #fff;
    padding: 18px 24px;
    border: 2px solid #242424;
    border-radius: 24px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.news-form input[type="email"]:focus {
    border-color: #21b57a;
    box-shadow: 0 0 0 4px rgba(33, 181, 122, 0.25);
}

.news-form__btn {
    font: inherit;
    font-weight: 800;
    font-size: 1.2rem;
    color: aliceblue;
    background-color: #242424;
    padding: 18px 30px;
    border: 0;
    border-right: 5px solid #21b57a;
    border-left: 5px solid #21b57a;
    border-radius: 24px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, opacity 0.2s;
}

.news-form__btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.news-form__btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.news-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.4;
    cursor: pointer;
}

.news-form__consent input {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: #21b57a;
    cursor: pointer;
}

.news-form__msg {
    min-height: 1.4em;
    font-size: 1rem !important;
    font-weight: 600;
    text-align: center;
}

.news-form__msg.is-ok {
    color: #178a5d;
}

.news-form__msg.is-error {
    color: #e0475c;
}

@media (max-width: 640px) {
    .news-form__row {
        flex-direction: column;
    }

    .news-form__btn {
        width: 100%;
    }
}

/* ==========================================================================
   Modales de proyectos de IA (ia-modal-1 a ia-modal-4)
   Izquierda: estado + título + texto en columna.
   Derecha: canvas animado del proyecto.
   Se carga después de styles.css y solo afecta a .ia-modal--visual.
   ========================================================================== */

.ia-modal--visual .ia-modal-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 4vw, 72px);
    align-items: center;
}

/* Columna izquierda: estado, título y texto apilados */
.ia-modal--visual .ia-modal-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    min-width: 0;
}

.ia-modal--visual .ia-modal-title {
    font-size: clamp(2rem, 3.6vw, 3.6rem);
    line-height: 1.05;
}

.ia-modal--visual .ia-modal-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ia-modal--visual .ia-modal-text p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.92;
}

/* Columna derecha: panel con el canvas */
.ia-modal--visual .ia-modal-right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.ia-modal-canvas {
    display: block;
    width: 100%;
    height: min(62vh, 560px);
    border-radius: 24px;
    background: rgba(240, 248, 255, 0.04);
    border: 1px solid rgba(240, 248, 255, 0.08);
}

@media (max-width: 800px) {
    .ia-modal--visual .ia-modal-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: start;
    }

    .ia-modal--visual .ia-modal-title {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .ia-modal-canvas {
        height: min(48vh, 360px);
    }
}


/* ==========================================================
   LOGO DEL NAV · BOTÓN VOLVER ARRIBA · NAV HAMBURGUESA
   ========================================================== */

/* Logo del nav clickeable (lleva al inicio) */
.nav-logo a {
    cursor: pointer;
}

.nav-logo a:focus-visible,
.m-nav__logo:focus-visible {
    outline: 2px solid #2f5fd6;
    outline-offset: 3px;
    border-radius: 8px;
}

/* ----- Botón flecha: abajo a la derecha, encima del traductor (GTranslate) ----- */
.back-to-top {
    --translator-gap: 72px; /* alto aprox. del selector de idioma + aire */
    position: fixed;
    right: 15px;
    bottom: calc(var(--translator-gap) + env(safe-area-inset-bottom, 0px));
    z-index: 998;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #242424;
    color: aliceblue;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(36, 36, 36, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
        background 0.25s ease, color 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #ffaf03;
    color: #242424;
}

.back-to-top:focus-visible {
    outline: 2px solid #2f5fd6;
    outline-offset: 3px;
}

/* ----- Nav hamburguesa (solo tablet / mobile) ----- */
.m-nav {
    display: none;
}



/* ===== Modales visor (documentos y tableros) ===== */
.viewer-modal {
    width: min(1100px, 94vw);
    height: min(90vh, 900px);
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.viewer-modal[open] {
    display: flex;
    flex-direction: column;
}

.viewer-modal::backdrop {
    background: rgba(10, 15, 30, .65);
    backdrop-filter: blur(4px);
}

.viewer-modal__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: aliceblue;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.viewer-modal__title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viewer-modal__ext {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, .2);
    transition: background .2s;
}

.viewer-modal__ext:hover {
    background: rgba(0, 0, 0, .06);
}

.viewer-modal__close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .08);
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
}

.viewer-modal__close:hover {
    background: rgba(0, 0, 0, .18);
}

.viewer-modal__frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #f3f3f3;
}

@media (max-width: 640px) {
    .viewer-modal {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
    }

    .viewer-modal__ext span {
        display: none;
    }
}


/* Tableros: más grandes que un documento */
.viewer-modal--tablero {
    width: min(1400px, 96vw);
    height: min(92vh, 960px);
}

/* Contenedor único de modales (los <dialog> se muestran en la top layer) */
.modals-root,
.modals-root > section {
    display: contents;
}

/* Subtítulo destacado dentro de la columna de texto (modales 6 y 7) */
.ia-modal--visual .ia-modal-lead {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: #f0f8ff;
}


/* ==========================================================================
   waves.css — Ondas institucionales (Municipalidad de la Ciudad de Mendoza)
   Colores tomados del logo: turquesa #009ba8 y verde #a2c962.
   - .wave-divider : separador entre secciones (3 capas animadas)
   - .wave-edge    : cintas laterales en las secciones claras
   - .footer-waves : cierre ondulado al pie de la página
   Todo es decorativo (aria-hidden, pointer-events: none).
   ========================================================================== */

:root {
    --brand-teal: #009ba8;
    --brand-green: #a2c962;
    --wave-h: clamp(64px, 9vw, 140px);
    --edge-w: clamp(10px, 2.4vw, 40px);

    /* Onda horizontal (periódica, se repite sin cortes) */
    --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60C200 0 400 0 600 60S1000 120 1200 60V120H0Z'/%3E%3C/svg%3E");
    /* Onda vertical para los bordes */
    --wave-mask-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 1200' preserveAspectRatio='none'%3E%3Cpath d='M0 0H60C0 200 0 400 60 600S120 1000 60 1200H0Z'/%3E%3C/svg%3E");
}

/* ---------- Separadores entre secciones ---------- */
.wave-divider {
    position: relative;
    z-index: 3;
    height: var(--wave-h);
    background: var(--from, #f0f8ff);
    overflow: hidden;
    pointer-events: none;
    line-height: 0;
}

.wave-divider .w,
.footer-waves .w {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: calc(100% + var(--tile));
    height: var(--h);
    background: var(--c);
    -webkit-mask: var(--wave-mask) 0 0 / var(--tile) 100% repeat-x;
    mask: var(--wave-mask) 0 0 / var(--tile) 100% repeat-x;
    animation: wave-drift var(--dur) linear infinite;
    will-change: transform;
}

.w--1 {
    --c: var(--brand-green);
    --h: 100%;
    --tile: 1200px;
    --dur: 38s;
    opacity: 0.92;
}

.w--2 {
    --c: var(--brand-teal);
    --h: 78%;
    --tile: 900px;
    --dur: 30s;
    animation-direction: reverse;
    animation-delay: -9s;
}

.w--3 {
    --c: var(--to, #242424);
    --h: 56%;
    --tile: 1000px;
    --dur: 44s;
    animation-delay: -17s;
}
.w--4 {
    --c: var(--to, #f0f8ff);
    --h: 56%;
    --tile: 1000px;
    --dur: 44s;
    animation-delay: -17s;
}
@keyframes wave-drift {
    to {
        transform: translateX(calc(-1 * var(--tile)));
    }
}

/* ---------- Cierre del footer ---------- */
.site-footer {
    padding-bottom: calc(20px + var(--wave-h) * 0.7);
}

.site-footer .footer-inner,
.site-footer .footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--wave-h) * 0.8);
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.footer-waves .w--1 {
    --h: 100%;
}

.footer-waves .w--2 {
    --h: 66%;
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {

    .wave-divider .w,
    .footer-waves .w,
    .wave-edge .e {
        animation: none;
    }
}

/* ---------- Móvil: ondas más cortas para que se noten ---------- */
@media (max-width: 700px) {
    .w--1 { --tile: 520px; }
    .w--2 { --tile: 400px; }
    .w--3 { --tile: 440px; }
    .e--1 { --tile: 700px; }
    .e--2 { --tile: 520px; }
}

/* Espacio para el logo sobre el título del modal (modal del Comité de IA) */
.ia-modal-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 72px;
    
}

.ia-modal-logo img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Mientras no tenga logo, se ve un recuadro punteado (desaparece al agregar el <img>) */
.ia-modal-logo:empty {
    max-width: 220px;
    border: 2px dashed rgba(240, 248, 255, 0.25);
    border-radius: 14px;
}

.ia-modal-logo:empty::before {
    content: "Logo";
    margin: auto;
    color: rgba(240, 248, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
/* Destinos del nav dentro de Gobierno abierto (deja lugar a la píldora fija) */
#gobierno-abierto {
    scroll-margin-top: 0;
}

#gobierno-abierto-selector {
    scroll-margin-top: 110px;
}