/* ============================================================
   NEXT GAME PLAN — theme.css
   Custom styles. Bootstrap 5.3 handles layout utilities.
   ============================================================ */

/* ── 0. @font-face ─────────────────────────────────────── */

/* ── Sharp Sans Display No1 — FONT SECUNDARIA (titulares, headings, labels)
   Font oficial CONCACAF. Archivos en assets/fonts/sharpSans-secondary/ */

@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-Hairline.ttf') format('truetype');
    font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-HairlineIt.ttf') format('truetype');
    font-weight: 100; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-Ultrathin.ttf') format('truetype');
    font-weight: 150; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-UltrathinIt.ttf') format('truetype');
    font-weight: 150; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-Thin.ttf') format('truetype');
    font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-ThinIt.ttf') format('truetype');
    font-weight: 200; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-Light.ttf') format('truetype');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-LightIt.ttf') format('truetype');
    font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-Book.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-BookIt.ttf') format('truetype');
    font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-Medium.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-MediumIt.ttf') format('truetype');
    font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-Semibold.ttf') format('truetype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-SemiboldIt.ttf') format('truetype');
    font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-BoldIt.ttf') format('truetype');
    font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-Extrabold.ttf') format('truetype');
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-ExtraboldIt.ttf') format('truetype');
    font-weight: 800; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-Black.ttf') format('truetype');
    font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Sharp Sans Display No1';
    src: url('../fonts/sharpSans-secondary/SharpSansDispNo1-BlackIt.ttf') format('truetype');
    font-weight: 900; font-style: italic; font-display: swap;
}

/* ── Circular Std — FONT PRINCIPAL (menú, botones, textos UI)
   Archivos en assets/fonts/circular-principal/ */

@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/circular-principal/circular-std-2.ttf') format('truetype');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/circular-principal/circular-std-4.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Circular Std';
    src: url('../fonts/circular-principal/circular-std-medium-500.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}

/* ── 1. CSS Variables ──────────────────────────────────── */
:root {
    /* ── Paleta oficial Concacaf ──────────────────────── */
    --ngp-black:       #10131B;   /* BLACK — fondo más profundo */
    --ngp-dark-1:      #212225;   /* GREY — superficies, paneles, footer */
    --ngp-dark-2:      #212225;   /* GREY */
    --ngp-dark-3:      #212225;   /* GREY */
    --ngp-dark-4:      #212225;   /* GREY */
    --ngp-gold:        #D8B97D;   /* CONCACAF GOLD */
    --ngp-gold-light:  #B8A06A;   /* CONCACAF GOLD (mouseover) */
    --ngp-gold-dark:   #B8A06A;   /* CONCACAF GOLD (mouseover) */
    --ngp-gold-faint:  rgba(216,185,125,0.15);
    --ngp-white-75:    rgba(255,255,255,0.75);
    --ngp-white-50:    rgba(255,255,255,0.5);
    --ngp-white-30:    rgba(255,255,255,0.3);
    --ngp-white-10:    rgba(255,255,255,0.1);
    --ngp-white-05:    rgba(255,255,255,0.05);
    --ngp-white-00:    rgba(255,255,255);
    --ngp-header-h:    64px;
    --ngp-topbar-h:    56px;
    --ngp-total-h:     120px; /* topbar + header */
    --ngp-radius:      10px;  /* border-radius base — botones, cards, inputs */
    --ngp-radius-2:      20px;  /* border-radius base — botones, cards, inputs */
    --vh:              1vh;   /* sobreescrita por JS con window.innerHeight * 0.01 */
}

/* ── 2. Global resets & base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    margin-top: 0 !important;
    scroll-behavior: smooth;
}

body {
    font-family: 'Circular Std', 'Century Gothic', Arial, sans-serif;
    background: var(--ngp-black);
    color: #fff;
    overflow-x: hidden;
}

html, body { max-width: 100%; overflow-x: hidden; }

/* custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ngp-dark-1); }
::-webkit-scrollbar-thumb { background: var(--ngp-gold); border-radius: 3px; }

/* Alpine cloak */
[x-cloak] { display: none !important; }

/* ── 3. Typography helpers ─────────────────────────────── */
.font-heading   { font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif; }
.font-display   { font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif; font-weight: 700; }
.font-condensed { font-family: 'Messina Sans Condensed', 'Circular Std', Arial, sans-serif; }
.font-body      { font-family: 'Circular Std', 'Century Gothic', Arial, sans-serif; }

.text-gold       { color: var(--ngp-gold) !important; }
.text-gold-light { color: var(--ngp-gold-light) !important; }
.text-muted-50   { color: var(--ngp-white-50) !important; }
.text-muted-30   { color: var(--ngp-white-30) !important; }

.tracking-wide   { letter-spacing: 0.08em; }
.tracking-wider  { letter-spacing: 0.14em; }
.tracking-label  { letter-spacing: 0.25em; }

/* ── 4. Boot Overlay ───────────────────────────────────── */
.boot-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--ngp-dark-1);
    transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.boot-overlay.fade-out {
    opacity: 0;
}

/* ── 5. Top Bar ────────────────────────────────────────── */
.ngp-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    height: var(--ngp-topbar-h);
    background: var(--ngp-white-00);
    border-bottom: 1px solid rgba(255,255,255);
    display: flex;
    align-items: center;
}

/* Hide top bar on mobile — adjust CSS variables accordingly */
@media (max-width: 767px) {
    .ngp-top-bar { display: none; }
    :root {
        --ngp-topbar-h: 0px;
        --ngp-total-h:  64px;
    }
}

.ngp-top-bar .container-xl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    height: 100%;
}

.top-bar-group {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    justify-content: center;
}

.top-bar-label {
    font-family: 'Circular Std';
    font-size: 8px;
    font-weight: 400;
    color: var(--ngp-dark-1);
    white-space: nowrap;
    text-align: left;
}

.top-bar-divider {
    display: none;
}

.comp-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comp-icon {
    height: 32px;
    width: auto;
    max-width: 80px;
    margin-right: 14px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* ── 6. Main Header ────────────────────────────────────── */
.ngp-main-header {
    position: fixed;
    top: var(--ngp-topbar-h);
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--ngp-header-h);
    background: rgba(33,34,37,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ngp-white-05);
    opacity: 0;
    animation: ngpHeaderIn 0.8s 2s ease forwards;
}

@keyframes ngpHeaderIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ngp-main-header .container-xl {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Logo */
.ngp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.ngp-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--ngp-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ngp-logo-icon-inner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(216,185,125,0.25);
}
.ngp-logo-text {
    font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #fff;
    text-transform: uppercase;
}

/* Primary Nav */
.ngp-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 991px) {
    .ngp-nav { display: none; }
}

.ngp-nav-link {
    position: relative;
    font-family: 'Circular Std', 'Century Gothic', Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ngp-white-00);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
}
.ngp-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--ngp-gold);
    transition: width 0.3s ease;
}
.ngp-nav-link:hover { color: var(--ngp-white-50); }
.ngp-nav-link:hover::after { width: 100%; }
.ngp-nav-link.is-active { color: #fff; font-weight: 600; }
.ngp-nav-link.is-active::after { width: 100%; background: #fff; }

/* Actions */
.ngp-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Language Dropdown ────────────────────────────────── */
.ngp-lang-dropdown {
    position: relative;
    flex-shrink: 0;
}

/* Trigger badge */
.ngp-lang-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #37383a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ngp-lang-badge:hover,
.ngp-lang-badge.is-open {
    background: var(--ngp-gold);
    color: var(--ngp-dark-1);
}

/* Dropdown pill */
.ngp-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #37383a;
    border-radius: var(--ngp-radius);
    padding: 4px;
    display: flex;
    gap: 2px;
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
/* Triángulo apuntando hacia el trigger */
.ngp-lang-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #37383a;
}

/* Language options */
.ngp-lang-option {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 12px;
    border-radius: 100%;
    border: none;
    background: transparent;
    color: var(--ngp-white-00);
    background-color: #000;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ngp-lang-option:hover {
    background: rgba(0, 0, 0, 0.35);
    color: var(--ngp-gold);
}
.ngp-lang-option.is-active {
    background: var(--ngp-gold);
    color: #1a1a1a;
}
.ngp-lang-option.is-active:hover {
    background: var(--ngp-gold-light);
    color: #1a1a1a;
}

/* Dropdown transitions */
.ngp-lang-enter       { transition: opacity 0.15s ease, transform 0.15s ease; }
.ngp-lang-enter-start { opacity: 0; transform: translateX(-50%) translateY(-6px); }
.ngp-lang-enter-end   { opacity: 1; transform: translateX(-50%) translateY(0); }
.ngp-lang-leave       { transition: opacity 0.10s ease, transform 0.10s ease; }
.ngp-lang-leave-start { opacity: 1; transform: translateX(-50%) translateY(0); }
.ngp-lang-leave-end   { opacity: 0; transform: translateX(-50%) translateY(-6px); }

/* Sign In — text link style */
.btn-ngp-login {
    font-size: 12px;
    font-weight: 700;
    color: var(--ngp-gold);
    background: none;
    border: 1px solid var(--ngp-gold);
    border-radius: var(--ngp-radius);
    padding: 10px 20px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.btn-ngp-login svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.btn-ngp-login:hover { 
    color: var(--ngp-black);
    background-color: var(--ngp-gold); 
}

/* Get Started — small gold CTA for header */
.btn-ngp-info {
    font-size: 12px;
    font-weight: 700;
    background: var(--ngp-gold);
    color: var(--ngp-black);
    border: none;
    padding: 10px 20px;
    border-radius: var(--ngp-radius);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-ngp-info:hover { background: var(--ngp-gold-light); color: var(--ngp-black); }

/* Contact us link in header */
.ngp-contact-link {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}
.ngp-contact-link:hover { color: #fff; }

@media (max-width: 767px) {
    .ngp-main-header .container-xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        gap: 0.5rem;
    }
    .ngp-logo img {
        max-width: 92px;
        height: auto;
    }
    .ngp-actions {
        gap: 5px;
        min-width: 0;
    }
    .ngp-lang-badge {
        min-width: 36px;
        padding: 8px 9px;
        font-size: 11px;
        border-radius: 8px;
    }
    .ngp-lang-menu {
        left: auto;
        right: 0;
        transform: none;
    }
    .ngp-lang-menu::before {
        left: auto;
        right: 13px;
        transform: none;
    }
    .ngp-lang-enter-start { opacity: 0; transform: translateY(-6px); }
    .ngp-lang-enter-end   { opacity: 1; transform: translateY(0); }
    .ngp-lang-leave-start { opacity: 1; transform: translateY(0); }
    .ngp-lang-leave-end   { opacity: 0; transform: translateY(-6px); }
    .ngp-contact-link { display: none; }
    /* Login stays visible on mobile; hide More Info instead */
    .btn-ngp-info { display: none; }
    .btn-ngp-login svg { display: none; }
    .btn-ngp-login { padding: 8px 14px; font-size: 11px; }
}

/* Hide Logout from header actions on small screens — it lives in the hamburger menu */
@media (max-width: 500px) {
    .ngp-actions .btn-ngp-logout { display: none !important; }
}

@media (max-width: 420px) {
    .ngp-main-header .container-xl {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }
    .ngp-logo img {
        max-width: 78px;
    }
    .ngp-actions {
        gap: 4px;
    }
    .ngp-user-pill {
        gap: 5px;
    }
    .ngp-avatar-circle {
        width: 28px;
        height: 28px;
    }
    .btn-ngp-profile {
        padding: 8px 10px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .btn-ngp-profile {
        padding: 8px;
        font-size: 10px;
    }
    .ngp-lang-badge {
        min-width: 32px;
        padding: 8px;
        font-size: 10px;
    }
}

/* ── Hamburger Button ─────────────────────────────────── */
.ngp-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.ngp-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.ngp-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ngp-hamburger.is-open span:nth-child(2) { opacity: 0; }
.ngp-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
    .ngp-hamburger { display: flex; }
}

@media (max-width: 420px) {
    .ngp-hamburger {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 360px) {
    .ngp-hamburger {
        width: 32px;
    }
}

/* ── Mobile Menu Panel ────────────────────────────────── */
.ngp-mobile-menu {
    position: fixed;
    top: var(--ngp-header-h);
    left: 0;
    right: 0;
    z-index: 1025;
    background: rgba(33,34,37,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ngp-white-05);
    padding: 3.5rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.ngp-mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.ngp-mobile-menu-link {
    font-family: 'Circular Std', 'Century Gothic', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--ngp-white-05);
    transition: color 0.2s;
    display: block;
    cursor: pointer;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    text-align: left;
    width: 100%;
}
.ngp-mobile-menu-link:hover,
.ngp-mobile-menu-link.is-active { color: var(--ngp-gold); }
.ngp-mobile-menu-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}
/* Always show buttons inside mobile menu regardless of media query hiding */
.ngp-mobile-menu-actions .btn-ngp-login,
.ngp-mobile-menu-actions .btn-ngp-info,
.ngp-mobile-menu-actions .btn-ngp-profile {
    display: inline-flex !important;
}

/* ── 7. Hero Section — Video Background ───────────────── */
#section-hero,
#section-purpose,
#section-curriculum,
#section-voices {
    scroll-margin-top: var(--ngp-total-h);
}

#section-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    height: calc(var(--vh) * 100);
    background: var(--ngp-black);
    overflow: hidden;
    padding-top: var(--ngp-total-h);
}

/* Video background layer */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--ngp-black);
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
/* Desktop video por defecto, mobile oculto */
.hero-video--mobile  { display: none; }
@media (max-width: 999px) {
    .hero-video--desktop { display: none; }
    .hero-video--mobile {
        display: block;
        inset: auto;
        object-fit: cover;
        object-position: top center;
    }
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(
        to right,
        rgba(33,34,37,0.88) 0%,
        rgba(33,34,37,0.55) 40%,
        rgba(33,34,37,0.15) 70%,
        transparent 100%
    ); */
}

/* Hero content wrapper — text aligned right, vertically centered */
.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Hero text block */
.hero-text-block {
    opacity: 0;
    transform: translateY(24px);
    animation: slideUpFade 1s 1.2s ease forwards;
    max-width: 520px;
    width: 100%;
}
@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }

/* Logos row — layout via Bootstrap d-flex justify-content-center gap-3 */
.hero-logos {
    align-items: center;
    margin-bottom: 1.5rem;
}
.hero-logo-item {
    align-items: center;
    gap: 8px;
}
.hero-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
}
.hero-logo-icon.gold-border { border-color: rgba(216,185,125,0.5); }
.hero-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.hero-logo-inner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.hero-logo-inner.gold { background: rgba(216,185,125,0.3); }
.hero-logo-text {
    font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.65);
}
.hero-logo-text.gold { color: rgba(216,185,125,0.85); }

/* Main title */
.hero-title {
    font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif;
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 0.95;
    margin-bottom: 0.75rem;
}
.hero-title .word-next,
.hero-title .word-plan { color: #fff; }
.hero-title .word-game { color: var(--ngp-gold); }

/* Partner logos (Concacaf + PIF) */
.hero-partner-logo {
    height: 40px;
    width: auto;
    display: block;
}
/* PIF logo es más ancho — escalarlo proporcionalmente al de Concacaf */
.hero-logo-pif {
    height: 48px;
}

/* Logo image inside hero title */
.hero-title-logo {
    width: 100%;
    height: auto;
    display: block;
}

.hero-subtitle {
    font-family: 'Messina Sans Condensed', 'Circular Std', Arial, sans-serif;
    font-size: 1.05rem;
    color: var(--ngp-gold);
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

.hero-tagline {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.75);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 2rem;
}
.hero-tagline strong { font-weight: 700; color: #fff; }

/* CTA Button — solid gold */
.btn-ngp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ngp-gold);
    border: none;
    color: var(--ngp-black);
    font-family: 'Circular Std', 'Century Gothic', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 14px 80px;
    border-radius: var(--ngp-radius);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;  
}
.btn-ngp-cta span.cta-fill { display: none; }
.btn-ngp-cta span.cta-label { position: static; }
.btn-ngp-cta:hover { background: var(--ngp-gold-light); color: var(--ngp-black); }

/* Hero responsive — tablet */
@media (max-width: 1023px) {
    .hero-logos { gap: 1rem; margin-bottom: 1rem; justify-content: center; }
    .hero-partner-logo { height: 30px; }
    .hero-logo-pif { height: 36px; }
    .hero-logo-icon { width: 32px; height: 32px; }
    .hero-logo-text { font-size: 0.75rem; letter-spacing: 0.1em; }
    .hero-title-logo { width: 75%; }
}

/* Hero responsive — mobile */
@media (max-width: 767px) {
    .hero-content {
        justify-content: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    .hero-logos { justify-content: center; gap: 0.75rem; margin-bottom: 0.75rem; }
    .hero-partner-logo { height: 22px; }
    .hero-logo-pif { height: 26px; }
    .hero-logo-icon { width: 26px; height: 26px; }
    .hero-logo-text { font-size: 0.65rem; }
    .hero-title { font-size: clamp(2.8rem, 10vw, 3.5rem); }
    .hero-title-logo { width: 55%; }
    .hero-text-block { max-width: 100%; }
    .hero-video-overlay {
        background: none;
    }
}

/* ── 8. Section base styles ────────────────────────────── */
.ngp-section {
    position: relative;
    min-height: calc(var(--vh) * 100);
    background: var(--ngp-black);
    padding: 6rem 0;
    overflow: hidden;
}

@media (max-width: 767px) {
    .ngp-section { padding: 4rem 0; min-height: auto; }
}

.section-label {
    font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--ngp-gold);
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Circular Std';
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 500;
    color: var(--ngp-gold);
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* Curriculum fade-in elements */
.curriculum-fade-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.curriculum-fade-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Transition delays para animación escalonada */
.curriculum-delay-1 { transition-delay: 0.12s; }
.curriculum-delay-2 { transition-delay: 0.24s; }
.curriculum-delay-3 { transition-delay: 0.36s; }

/* Subtítulo del curriculum */
.curriculum-subtitle {
    color: var(--ngp-white-00);
    max-width: 38rem;
    margin: 0 auto 3.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ── 9. Purpose — Full-bleed crossfade slider (vanilla JS) ───────── */
#section-purpose {
    padding: 0 !important;
    min-height: 0 !important;   /* cancela el min-height de .ngp-section */
    margin: 0;
    background: #000;
    position: relative;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    height: calc(var(--vh) * 100);
}

#purposeSlider {
    position: absolute;
    inset: 0;
    cursor: grab;
}
#purposeSlider.is-dragging { cursor: grabbing; }

/* Todos los slides apilados; solo el activo es visible */
.purpose-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 2rem 5rem;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}
.purpose-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
/* Vimeo iframe — full-bleed dentro del slide */
.purpose-vimeo-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* full-bleed: cubre el contenedor manteniendo ratio 16:9 */
    width: 177.78vh;   /* 16/9 × 100vh */
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw; /* 9/16 × 100vw */
    transform: translate(-50%, -50%);
    border: none;
    z-index: 0;
    pointer-events: auto;
}

/* Background image — full-bleed cover */
.purpose-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Gradient overlay sobre la imagen */
.purpose-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Geometric pattern overlay on each slide */
.purpose-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpolygon points='20,10 40,30 20,50' fill='%23D8B97D' opacity='0.06'/%3E%3Cpolygon points='42,5 52,15 42,25' fill='%23D8B97D' opacity='0.04'/%3E%3C/svg%3E"); */
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 1;
}

.purpose-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    width: 100%;
    padding-bottom: 2rem;
}
.purpose-quote {
    font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 600;
    color: var(--ngp-gold);
    line-height: 1.5;
    margin: 0;
}
.purpose-quote strong { font-weight: 700; }

/* Pagination dots wrapper */
#purposeSlider .purpose-pagination-wrapper {
    position: absolute;
    bottom: 1.75rem;
    left: 0;
    right: 0;
    z-index: 20;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
#purposeSlider .purpose-pagination-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.purpose-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.purpose-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.purpose-dot.is-active {
    background: var(--ngp-gold);
    width: 24px;
    border-radius: var(--ngp-radius);
}

@media (max-width: 767px) {
    .purpose-slide { padding: 0 1rem 4rem; }
    .purpose-quote { font-size: 1.25rem; }
}

/* ── 10. Curriculum Cards — Photo-card grid ────────────── */
#section-curriculum {
    background: var(--ngp-dark-1);
    background-image: url('../images/home/curriculum/modulos/fondo-modulos.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow-x: hidden; /* hide card animation bleed, allow sticky in VISTA 2 */
    min-height: calc(var(--vh) * 100);
    /* NO flex/justify-content/padding: VISTA 1 (absolute) maneja su propio
       centrado, VISTA 2 (flow) determina la altura real del section. */
}

/* VISTA 1: siempre absolute dentro del section. Se apila sobre VISTA 2
   y se desvanece in-place al abrir un módulo — sin afectar flow,
   sin mover cards ni voices.
   IMPORTANTE: height fijo al viewport (no bottom:0) para que al crecer
   la sección cuando VISTA 2 entra, las cards no se desplacen
   verticalmente por el justify-content:center recalculándose. */
.curriculum-vista1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--vh, 1vh) * 100);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 20vh extra en bottom desplaza el centro visual ~20% hacia arriba
       (de 50% a ~40% del viewport). */
    padding: calc((var(--ngp-total-h) + 2rem) * 0.2) 0 calc(4rem + 20vh);
}
/* ≥1000px — VISTA 1 & 2: +20% padding-top */
@media (min-width: 1000px) {
    .curriculum-vista1 {
        padding-top: calc((var(--ngp-total-h) + 2rem) * 0.24);
    }
    .module-detail-page {
        padding-top: calc((var(--ngp-total-h) + 2rem) * 0.24);
    }
}

/* ≥1300px ya no necesita override propio — hereda el * 0.24 de ≥1000px */

/* ── Short-viewport desktops (15" laptops, scaled displays) ──────
   Pantallas con height ≤ 800px (ej. 1366×768 nativo, o 1366×768 al
   125% → 1093×614 CSS px). El contenido 2×2 a 16/9 supera el
   viewport; sacamos VISTA 1 del absoluto para que la sección
   crezca con el contenido.
   min-width:768px evita tocar mobile (que ya tiene su propio fix). */
@media (min-width: 768px) and (max-height: 800px) {
    /* Dejar que las cards definan la altura — sin clamp de viewport */
    #section-curriculum {
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
    }
    #section-curriculum .curriculum-vista1 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        height: auto !important;
        /* Mismo valor que VISTA 2: openDetail/closeDetail posicionan la sección
           con el mismo headerH offset que scrollToIndex, así ambas vistas
           arrancan a la misma altura visual. */
        padding-top: calc((var(--ngp-total-h) + 2rem) * 0.24);
        padding-bottom: 0;
        justify-content: flex-start;
    }
    /* Filas más juntas */
    #section-curriculum .row {
        --bs-gutter-y: 0.75rem;
    }
    /* Cards más planas para que el contenido no sea demasiado alto */
    #section-curriculum .curriculum-card {
        aspect-ratio: 16 / 9;
    }
    /* Reducir márgenes del texto */
    #section-curriculum .section-title {
        margin-bottom: 0.25rem;
    }
    .curriculum-subtitle {
        margin-bottom: 1.75rem;
    }
    /* Voices */
    #section-voices.ngp-section {
        padding: calc(var(--ngp-total-h) - 1.5rem) 0 4rem;
    }
    /* VISTA 2 — mismo padding-top que VISTA 1 */
    #section-curriculum .module-detail-page {
        padding-top: calc((var(--ngp-total-h) + 2rem) * 0.24);
    }
}

/* Photo-card base */
.curriculum-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    opacity: 0;
    border: 1px solid var(--ngp-gold);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.curriculum-cards--animated .curriculum-card.from-left  { transform: translateX(-40px); }
.curriculum-cards--animated .curriculum-card.from-right { transform: translateX(40px); }
.curriculum-cards--animated .curriculum-card.is-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}
.curriculum-card:hover {
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255,255,255,0.15), 0 0 40px rgba(255,255,255,0.06);
    transform: translateY(-3px) !important;
}

/* Background image */
.card-photo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-color: var(--ngp-dark-2);
    transition: transform 0.6s ease;
}
.curriculum-card:hover .card-photo-bg { transform: scale(1.04); }

/* Gradient overlay: transparent top → dark bottom */
.card-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.35) 40%,
        rgba(0,0,0,0.75) 70%,
        rgba(0,0,0,0.92) 100%
    );
    z-index: 1;
}
.card-photo-overlay.is-disabled {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.88) 40%,
        rgba(0,0,0,0.94) 70%,
        rgba(0,0,0,0.98) 100%
    );
}
.curriculum-card.is-disabled {
    cursor: default;
    pointer-events: none;
}
.curriculum-card.is-disabled .card-ribbon {
    pointer-events: none;
}

/* Top row: MODULE badge */
.card-top {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;
}
.card-module-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    background: transparent;
    color: var(--ngp-gold);
    border: 1px solid var(--ngp-gold);
    padding: 10px 30px;
    border-radius: var(--ngp-radius-2);
}

/* Coming Soon — diagonal ribbon (top-right corner)
   Container 150×150 clips a 210px-wide strip rotated 45°.
   Using fixed height + flexbox keeps text perfectly centered. */
.card-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}
.card-ribbon span {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 25px;
    right: -50px;
    width: 170px;
    height: 26px;
    background: #fff;
    color: var(--ngp-dark-1, #0d1117);
    font-family: 'Sharp Sans Display No1', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: none;
    transform: rotate(45deg);
    transform-origin: center center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Bottom text block — anchored to very bottom of card */
.card-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem 1.5rem;
    z-index: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.card-subtitle-label {
    display: block;
    font-family: 'Circular Std', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ngp-gold);
    margin-bottom: 0.2rem;
}

/* Title + View Module on the same row */
.card-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}
.card-title-photo {
    font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.15;
    margin: 0;
    flex: 1;
}
.card-title-photo strong {
    font-weight: 700;
    color: #fff;
}

/* View Module — right-aligned, same baseline as title */
.card-view-more {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ngp-gold);
    flex-shrink: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.curriculum-card:hover .card-view-more {
    opacity: 1;
    transform: translateX(0);
}

/* Keep fade-in elements */
.card-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: rgba(216,185,125,0.2);
    color: var(--ngp-gold);
    padding: 4px 10px;
    border-radius: var(--ngp-radius);
}

/* ── Curriculum: fade cruzado grid ↔ detail ────────────── */
/* El bloque que SALE recibe position:absolute para no empujar */
/* al bloque que ENTRA — evita el stacking visual durante crossfade */

/* Grid de cards sale → desliza a la derecha (%) mientras se desvanece.
   Porcentaje para que sea proporcional al ancho del elemento — en
   desktop (1320px) ~15% = ~200px, claramente horizontal. */
.fade-leave {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.fade-leave-start { opacity: 1; transform: translateX(0); }
.fade-leave-end   { opacity: 0; transform: translateX(12%); }

/* Grid de cards entra ← desliza desde la derecha con delay */
.fade-enter {
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.12s,
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}
.fade-enter-start { opacity: 0; transform: translateX(12%); }
.fade-enter-end   { opacity: 1; transform: translateX(0); }

/* Detail (VISTA 2) entra desde izquierda — % proporcional */
.detail-enter {
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}
.detail-enter-start { opacity: 0; transform: translateX(-12%); }
.detail-enter-end   { opacity: 1; transform: translateX(0); }

/* Detail sale ← hacia izquierda, absolute para liberar el flow */
.detail-leave {
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}
.detail-leave-start { opacity: 1; transform: translateX(0); }
.detail-leave-end   { opacity: 0; transform: translateX(-12%); }


/* ── 11. Introduction Modal ────────────────────────────── */
.intro-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.intro-modal-content {
    position: fixed;
    z-index: 2001;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(900px, 90vw);
    aspect-ratio: 16/9;
    border: 2px solid var(--ngp-gold);
    border-radius: 8px;
    background: #000;
    overflow: visible;
    box-shadow: 0 0 60px rgba(216,185,125,0.12);
}

/* Close button — circular, superpuesto sobre la esquina del borde */
.intro-close-btn {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 2002;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ngp-gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.intro-close-btn:hover {
    background: var(--ngp-gold-light);
    transform: scale(1.08);
}
.intro-close-btn svg {
    width: 18px;
    height: 18px;
    color: var(--ngp-black);
}

/* Modal body — contiene video y play overlay */
.intro-modal-body {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.intro-modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}
/* Vimeo iframe — mismas dimensiones que el video MP4 */
.intro-modal-iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    background: #000;
}
.voices-modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    background: #000;
}
/* Vimeo embed iframe — ocupa todo el modal body igual que el video */
.voices-modal-iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    background: #000;
}

/* Play overlay — centrado sobre el video */
.intro-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.4s ease;
}
.intro-play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Thumbnail poster — cubre el overlay con la imagen de la voice antes del play */
.intro-thumbnail-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    z-index: 0;
}
/* Scrim — oscurece el thumbnail para que el botón sea legible */
.intro-thumbnail-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Play button — pill con texto en desktop, círculo con ícono en mobile */
.intro-play-btn {
    position: relative; /* necesario para z-index sobre thumbnail y scrim */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 46px;
    border-radius: 100px;
    border: 1px solid var(--ngp-white-00);
    background: rgba(16, 19, 27, 0.2);
    color: #fff;
    font-family: 'Circular Std', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.intro-play-overlay:hover .intro-play-btn {
    background: rgba(216,185,125,0.15);
    border-color: var(--ngp-gold-light);
}
/* Texto visible en desktop, ícono oculto */
.intro-play-label { display: inline; }
.intro-play-icon {
    display: none;
    width: 22px;
    height: 22px;
    color: var(--ngp-gold);
    margin-left: 2px;
}

/* ── Modal transitions — Alpine x-transition classes ────── */

/* Backdrop — fade suave */
.intro-backdrop-enter,
.intro-backdrop-leave {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.intro-backdrop-enter-start,
.intro-backdrop-leave-end  { opacity: 0; }
.intro-backdrop-enter-end,
.intro-backdrop-leave-start { opacity: 1; }

/* Modal content — entra desde abajo, centrado con translate(-50%,-50%) */
.intro-modal-enter {
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-modal-leave {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.intro-modal-enter-start {
    opacity: 0;
    transform: translate(-50%, -40%) translateY(60px);
}
.intro-modal-enter-end {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}
.intro-modal-leave-start {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}
.intro-modal-leave-end {
    opacity: 0;
    transform: translate(-50%, -40%) translateY(60px);
}

/* Modal responsive */
@media (max-width: 767px) {
    .intro-modal-content {
        width: 95vw;
        border-radius: 6px;
    }
    .intro-close-btn {
        top: -14px;
        right: -14px;
        width: 38px;
        height: 38px;
    }
    .intro-close-btn svg { width: 16px; height: 16px; }
    /* Mobile: ocultar texto, mostrar ícono SVG en círculo */
    .intro-play-label { display: none; }
    .intro-play-icon { display: block; }
    .intro-play-btn {
        width: 64px;
        height: 64px;
        padding: 0;
        border-color: var(--ngp-gold);
    }
    /* Voices cards: mantener píldora con texto en mobile, igual que desktop */
    .voice-play-overlay .intro-play-btn {
        width: auto;
        height: auto;
        padding: 10px 22px;
        border-color: rgba(255, 255, 255, 0.45);
    }
    .voice-play-overlay .intro-play-label { display: inline; }
    .voice-play-overlay .intro-play-icon  { display: none; }
}

@media (max-width: 480px) {
    .intro-close-btn {
        top: -12px;
        right: -12px;
        width: 34px;
        height: 34px;
    }
    .intro-play-btn { width: 56px; height: 56px; }
    .intro-play-icon { width: 20px; height: 20px; }
    /* Voices cards: mantener píldora con texto también en 480px */
    .voice-play-overlay .intro-play-btn {
        width: auto;
        height: auto;
        padding: 10px 22px;
        border-color: rgba(255, 255, 255, 0.45);
    }
    .voice-play-overlay .intro-play-label { display: inline; }
    .voice-play-overlay .intro-play-icon  { display: none; }
}

/* ── 12. Module Detail — VISTA 2 (Redesign v2) ─────────── */

.module-detail-page {
    width: 100%;
    min-height: calc(var(--vh, 1vh) * 100);
    background-color: var(--ngp-dark-1);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    /* Padding: 80% del top original transferido al bottom.
       Original: top = calc(--ngp-total-h + 2rem), bottom = 4rem.
       Nuevo: top = 20% del original, bottom = 4rem + 80% del original. */
    padding-top: calc((var(--ngp-total-h) + 2rem) * 0.2);
    padding-bottom: calc(4rem + (var(--ngp-total-h) + 2rem) * 0.8);
}

/* ── Video del módulo (detail-module.php) ── */
.module-detail-video-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.module-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes ngp-slide-in-left {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.mdv-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2.5rem 4rem;
    /* animation quitado: la transición horizontal ahora la maneja
       Alpine x-transition (.detail-enter) en el contenedor padre.
       La animation aquí duplicaba el movimiento y en desktop daba
       sensación de que VISTA 2 entraba desde arriba. */
}

/* Back button */
.module-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--ngp-gold);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    cursor: pointer;
    padding: 0;
    margin-bottom: 2rem;
    transition: color 0.2s;
}
.module-detail-back:hover { color: var(--ngp-gold); }

/* Tag */
.module-detail-tag {
    display: inline-block;
    background: var(--ngp-gold);
    color: var(--ngp-black);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    border-radius: var(--ngp-radius-2);
    margin-bottom: 2rem;
    align-self: flex-start;
}

/* Title */
.module-detail-title {
    font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif;
    font-size: clamp(1.7rem, 2.55vw, 2.7rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 0.2rem;
}

/* Tagline — gold subtitle under title */
.module-detail-tagline {
    font-family: 'Sharp Sans Display No1';
    font-size: 1.45rem;
    color: var(--ngp-gold);
    line-height: 1.55;
    margin: 0 0 0.9rem;
    font-weight: 600;
    font-style: normal;
}

/* Description */
.module-detail-desc {
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Sharp Sans Display No1';
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 1.5rem;
    max-height: 6.5em; /* ~4 líneas (line-height 1.75 × 4 ≈ 6.5em) */
    overflow-y: auto;
}
/* Scrollbar sutil para la descripción */
.module-detail-desc::-webkit-scrollbar {
    width: 4px;
}
.module-detail-desc::-webkit-scrollbar-track {
    background: transparent;
}
.module-detail-desc::-webkit-scrollbar-thumb {
    background: rgba(216, 185, 125, 0.25);
    border-radius: 4px;
}
.module-detail-desc::-webkit-scrollbar-thumb:hover {
    background: rgba(216, 185, 125, 0.45);
}

/* Skills pills */
.module-skill-pill {
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 2px solid rgba(255,255,255,0.4);
}

/* ── Hero: video (left 3fr) + info (right 2fr) ──
   IMPORTANTE: el grid-template-columns y el gap deben ser idénticos
   a los de .mdv-bottom para que .mdv-video-col quede alineado con
   .mdv-chapters (mismo ancho de columna 3fr). */
.mdv-hero {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.mdv-video-col {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mdv-video-frame {
    position: relative;
    width: 100%;
    flex: 1;                 /* se estira a la altura de .mdv-info-col para alinear bordes inferiores */
    min-height: 260px;       /* fallback cuando el grid colapsa a 1 columna en tablet/mobile */
    border-radius: 12px;
    overflow: hidden;
    background: #000;        /* letterbox: rellena lo que el video de Vimeo no cubra */
    border: 1px solid var(--ngp-gold-dark);
}

/* Video player dentro del frame */
.mdv-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Play overlay sobre el video */
.mdv-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.22);
    cursor: pointer;
    z-index: 2;
}

.mdv-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Circular Std';
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 10px 44px;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.mdv-play-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Caption text at bottom of video */
.mdv-video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}
.mdv-video-caption p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Messina Sans Condensed', 'Circular Std', Arial, sans-serif;
    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
}

.mdv-video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 100%);
    pointer-events: none;
}
.mdv-video-caption p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
}

.mdv-info-col {
    display: flex;
    flex-direction: column;
    padding-top: 0.25rem;
}

.mdv-instructor {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 1rem;
}
.mdv-instructor strong {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 500;
}
.mdv-instructor span {
    font-family: 'Sharp Sans Display No1';
    color: var(--ngp-white-00);
    font-size: 0.875rem;
    font-weight: 500;
}

.mdv-cta-box {
    border: 1px solid var(--ngp-gold-dark);
    border-radius: 10px;
    padding: 2.25rem;
    background: rgba(0,0,0,0.1);
    margin-top: auto;
}
.mdv-cta-box > p {
    color: var(--ngp-white-00);
    font-family: 'Sharp Sans Display No1';
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 0.875rem;
}

.mdv-cta-btn {
    display: block;
    width: 100%;
    font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif;
    background: var(--ngp-gold);
    color: var(--ngp-black);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.mdv-cta-btn:hover { background: var(--ngp-gold-light); }

/* ── Class Plan pill ── */
.mdv-plan-pill-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
}

.mdv-plan-pill {
    display: inline-block;
    font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif;
    border: 1px solid var(--ngp-gold-dark);
    color: var(--ngp-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 8px 60px;
    border-radius: 100px;
}

/* ── Bottom: chapters (left 3fr) + skills (right 2fr) ── */
.mdv-bottom {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
}

.mdv-chapters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mdv-chapter {
    display: grid;
    grid-template-columns: 150px 1fr;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.25s;
    border-bottom: none;
}
.mdv-chapter:hover,
.mdv-chapter.is-active {
    background: linear-gradient(90deg, rgba(184, 160, 106, 0.4) 0%, rgba(184, 160, 106, 0.2) 50%, rgba(184, 160, 106, 0) 100%);
}
/* When chapter is active/hovered — darken label to stay readable */
/* .mdv-chapter:hover .mdv-chapter-label,
.mdv-chapter.is-active .mdv-chapter-label { color: rgba(0,0,0,0.7); }
.mdv-chapter:hover .mdv-chapter-title,
.mdv-chapter.is-active .mdv-chapter-title { color: #111; }
.mdv-chapter:hover .mdv-chapter-desc,
.mdv-chapter.is-active .mdv-chapter-desc { color: rgba(0,0,0,0.55); } */

.mdv-chapter-thumb {
    position: relative;
    width: 150px;
    background: var(--ngp-dark-3);
    overflow: hidden;
    flex-shrink: 0;
    align-self: stretch;        /* llena la altura de la fila */
    border: 1px solid var(--ngp-gold);
    border-radius: 6px;
    margin: 0.5rem;
    margin-right: 0;
}
.mdv-chapter-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 4px;
    transition: transform 0.4s ease;
}
.mdv-chapter:hover .mdv-chapter-thumb img { transform: scale(1.05); }

.mdv-chapter-thumb img.mdv-chapter-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
    border-radius: 0;
    z-index: 2;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
    transition: none;
}
.mdv-chapter:hover .mdv-chapter-thumb img.mdv-chapter-lock {
    transform: translate(-50%, -50%); /* anular el scale(1.05) heredado */
}

/* Info centrada verticalmente dentro de cada fila */
.mdv-chapter-info {
    padding: 0.875rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mdv-chapter-label {
    display: block;
    font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ngp-gold-dark);
    margin-bottom: 0.2rem;
}

.mdv-chapter-title {
    font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ngp-white-00);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.mdv-chapter-desc {
    font-family: 'Sharp Sans Display No1';
    font-size: 0.775rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skills column */
.mdv-skills {
    position: sticky;
    top: calc(var(--ngp-total-h) + 2rem);
}

.mdv-skills-heading {
    font-family: 'Sharp Sans Display No1', 'Circular Std', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--ngp-gold);
    margin: 0 0 1rem;
}

.mdv-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 480px) { 
    .mdv-chapter-info {
        padding: 0.75rem 0.5rem;
    }

}

/* ── 12b. Module Detail — VISTA 3 (Logged-in) ──────────── */

.mdv-logged-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    align-items: start;
}
.mdv-logged-left {
    display: flex;
    flex-direction: column;
}
.mdv-logged-right {
    display: flex;
    flex-direction: column;
}

/* Instructor row with circular avatar */
.mdv-logged-instructor {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 1rem;
}
.mdv-instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ngp-gold-dark);
    flex-shrink: 0;
}
.mdv-logged-instructor strong {
    display: block;
    font-family: 'Sharp Sans Display No1', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}
.mdv-logged-instructor span {
    display: block;
    font-family: 'Sharp Sans Display No1', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

/* Module Completion progress bar */
.mdv-completion {
    margin: 1.5rem 0 0.5rem;
}
.mdv-completion-heading {
    font-family: 'Sharp Sans Display No1', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    margin: 0 0 0.75rem;
}
.mdv-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.mdv-progress-fill {
    height: 100%;
    background: var(--ngp-gold);
    border-radius: 4px;
    transition: width 0.6s ease;
}
.mdv-progress-text {
    font-family: 'Sharp Sans Display No1', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ngp-gold);
}

/* Download Workbook button */
.mdv-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ngp-gold);
    color: var(--ngp-black);
    font-family: 'Sharp Sans Display No1', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 100px;
    padding: 12px 32px;
    cursor: pointer;
    margin: 1rem 0 1.5rem;
    align-self: flex-start;
    transition: background 0.2s;
}
.mdv-download-btn:hover {
    background: var(--ngp-gold-light);
    color: var(--ngp-black);
}

/* Feedback card */
.mdv-feedback-card {
    background: linear-gradient(135deg, rgba(216,185,125,0.08), rgba(33,34,37,0.9));
    border: 1px solid var(--ngp-gold-dark);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}
.mdv-feedback-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.mdv-feedback-header h4 {
    font-family: 'Sharp Sans Display No1', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ngp-gold);
    margin: 0;
}
.mdv-feedback-check {
    width: 24px;
    height: 24px;
    color: #4ade80;
}
.mdv-feedback-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 0.75rem;
}
.mdv-feedback-stars svg {
    width: 20px;
    height: 20px;
    fill: var(--ngp-gold);
}
.mdv-feedback-card p {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    line-height: 1.6;
    margin: 0;
}

/* Chapter play icon overlay on thumbnails */
.mdv-chapter-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    transition: background 0.2s;
}
.mdv-chapter:hover .mdv-chapter-play-icon {
    background: rgba(0,0,0,0.15);
}
.mdv-chapter-play-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* Chapter completion checkmark */
.mdv-chapter-check {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
}
.mdv-chapter-check svg {
    width: 24px;
    height: 24px;
    color: #4ade80;
}

/* Override chapter grid inside logged layout for checkmark column */
.mdv-logged-layout .mdv-chapter {
    grid-template-columns: 150px 1fr 28px;
}

/* Skills — static in logged left column */
.mdv-logged-left .mdv-skills {
    position: static;
    margin-top: 1.5rem;
}

/* ── 13. Voices Section ────────────────────────────────── */
#section-voices {
    background: var(--ngp-dark-1);
    background-image: url('../images/home/curriculum/modulos/fondo-modulos.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    min-height: calc(var(--vh) * 100);
    display: flex;
    align-items: center;
    padding: calc(var(--ngp-total-h) + 1.5rem) 0 4rem;
}
/* iPad Pro 11 y tablets landscape similares */
@media (min-width: 768px) and (max-width: 1366px) {
    #section-voices {
        padding: calc(var(--ngp-total-h) + 1.5rem) 0 18rem;
    }
}

.voices-title {
    font-family: 'Sharp Sans Display No1', Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ngp-gold);
    margin-bottom: 1rem;
}
.voices-subtitle {
    color: var(--ngp-white-00);
    font-family: 'Circular Std';
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.voices-slider-wrap {
    position: relative;
}

.voices-track-wrap {
    position: relative;
}

/* Flex slider — all breakpoints */
.voices-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    align-items: start;
    scrollbar-width: none;
}
.voices-grid::-webkit-scrollbar { display: none; }

.voices-col {
    flex: 0 0 calc((100% - 3rem) / 3);
    max-width: calc((100% - 3rem) / 3);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Portrait card */
.voice-card-new {
    position: relative;
    border: 1px solid var(--ngp-gold);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;   /* portrait */
    cursor: pointer;
}
.voice-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transition: transform 0.5s ease;
}
.voice-card-new:hover .voice-card-bg { transform: scale(1.04); }

/* Play button overlay — centrado sobre la card */
.voice-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}
/* Allow clicks to reach the intro-play-btn inside the card overlay */
.voice-play-overlay .intro-play-btn {
    pointer-events: auto;
}
/* Card hover — adapts intro-play-btn to white tones on dark card */
.voice-card-new:hover .intro-play-btn {
    background: rgba(216,185,125,0.15);
    border-color: var(--ngp-gold-light);
}
.voice-card-new:hover .intro-play-btn .intro-play-icon {
    color: rgba(255, 255, 255, 0.75);
}

/* Gradient overlay — dark at bottom for text legibility */
.voice-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}

/* Text at the bottom of the card */
.voice-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.25rem 1.25rem;
}
.voice-person-name {
    font-family: 'Sharp Sans Display No1', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
}
.voice-person-role {
    font-family: 'Sharp Sans Display No1';
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ngp-gold);
    margin: 0 0 0.75rem;
    line-height: 1.4;
}
.voice-module-tag {
    font-family: 'Circular Std';
    font-size: 0.7rem;
    background: transparent;
    border: 1px solid var(--ngp-gold);
    border-radius: 20px;
    color: var(--ngp-gold);    
    padding: 0.3rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.voice-module-tag:hover { background: rgba(216,185,125,0.15); }

/* Body text below each card */
.voice-body-text {
    color: var(--ngp-white-00);
    font-family: 'Circular Std';
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}
.voice-body-text p { margin-bottom: 0.75rem; }
.voice-body-text p:last-child { margin-bottom: 0; }

/* Dots */
.voices-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}
.voices-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.voices-dot.is-active {
    background: var(--ngp-gold);
    transform: scale(1.35);
}

/* Arrows */
.voices-arrow {
    position: absolute;
    top: var(--voices-arrow-top, 50%);
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--ngp-gold);
    background: rgba(0, 0, 0, 0.5);
    color: var(--ngp-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
}
.voices-arrow:hover {
    background: rgba(216, 185, 125, 0.2);
    border-color: var(--ngp-gold-light);
}
.voices-arrow svg {
    width: 20px;
    height: 20px;
}
.voices-arrow-prev { left: -22px; }
.voices-arrow-next { right: -22px; }

@media (max-width: 1366px) and (min-width: 768px) {
    .voices-arrow-prev { left: -12px; }
    .voices-arrow-next { right: -12px; }
}

/* ── Mobile: horizontal scroll slider ─────────────────── */
@media (max-width: 767px) {
    #section-voices { padding-top: calc(var(--ngp-total-h) + 2rem); }
    .voices-grid {
        gap: 1rem;
        padding-bottom: 1rem;
    }
    .voices-col {
        flex: 0 0 82vw;
        max-width: 82vw;
        scroll-snap-align: center;
        cursor: pointer;
    }
    .voice-card-new { aspect-ratio: 2 / 3; }
    .voices-arrow { display: none !important; }
}

/* ── Voices — iPad / tablet (768–1024px) ─────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
    .voices-title {
        font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    }
    .voices-subtitle {
        font-size: 0.8rem;
    }
    .voice-person-name {
        font-size: 1.2rem;
    }
    .voice-person-role {
        font-size: 0.7rem;
    }
    .voice-module-tag {
        font-size: 0.6rem;
    }
    .voice-body-text {
        font-size: 0.7rem;
    }
    .voice-card-body {
        padding: 1rem 0.875rem 0.875rem;
    }
    .voices-grid {
        gap: 1rem;
    }
    .voices-col {
        flex: 0 0 calc((100% - 1rem) / 2);
        max-width: calc((100% - 1rem) / 2);
        scroll-snap-align: start;
    }
}

/* ── 13. Detail Page Overlay ───────────────────────────── */
.detail-page {
    position: fixed;
    inset: 0;
    z-index: 1500;
    overflow-y: auto;
}
.detail-page-bg {
    position: fixed;
    inset: 0;
    z-index: 1499;
    background: linear-gradient(135deg, var(--ngp-gold) 0%, var(--ngp-gold) 40%, var(--ngp-black) 40%, var(--ngp-black) 100%);
}
.detail-video-frame {
    border: 2px solid var(--ngp-gold);
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 40px rgba(216,185,125,0.1);
}
.class-plan-card {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.5s ease forwards;
    background: var(--ngp-dark-2);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.2s;
}
.class-plan-card:hover { border-color: rgba(216,185,125,0.3); }

/* ── 14. Login Overlay ─────────────────────────────────── */

/* Panel positioned absolute inside #section-hero */
.login-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
    min-width: 360px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: var(--ngp-total-h) 3rem 3rem;
    pointer-events: none; /* let clicks pass through the wrapper */
}

/* Card catches pointer events */
.login-card { pointer-events: all; }

/* Alpine transitions — half speed = 0.8s enter, 0.6s leave */
.login-overlay-enter       { transition: transform 0.8s cubic-bezier(0.16,1,0.3,1), opacity 0.8s ease; }
.login-overlay-enter-start { transform: translateX(100%); opacity: 0; }
.login-overlay-enter-end   { transform: translateX(0);    opacity: 1; }
.login-overlay-leave       { transition: transform 0.6s cubic-bezier(0.4,0,1,1), opacity 0.6s ease; }
.login-overlay-leave-start { transform: translateX(0);    opacity: 1; }
.login-overlay-leave-end   { transform: translateX(100%); opacity: 0; }

/* Card */
.login-card {
    background: #fff;
    border-radius: 0;
    padding: 2.8rem 2.4rem 2.4rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.45);
    position: relative;
}

/* Close button — inside card, top-right */
.login-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: rgba(0,0,0,0.35);
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    transition: color 0.2s;
    z-index: 5;
}
.login-close-btn:hover { color: rgba(0,0,0,0.75); }

/* Partner logos row (Concacaf | PIF) */
.login-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 1.4rem;
}
.login-logo-concacaf {
    height: 28px;
    width: auto;
    filter: brightness(0);
}
.login-logo-pif {
    height: 28px;
    width: auto;
    filter: brightness(0);
}
.login-logos-divider {
    color: rgba(0,0,0,0.2);
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 300;
}

/* NGP logo */
.login-ngp-logo-wrap {
    text-align: center;
    margin-bottom: 0.6rem;
}
.login-ngp-logo {
    height: 48px;
    width: auto;
    display: inline-block;
}

/* Subtitle */
.login-subtitle {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin: 0 0 1.75rem;
    font-family: 'Circular Std', Arial, sans-serif;
    letter-spacing: 0.02em;
}

/* Form fields */
.login-field { margin-bottom: 0; }
.login-input {
    display: block;
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
    font-family: 'Circular Std', Arial, sans-serif;
}
.login-input:focus { border-color: #c8a95c; }
.login-input::placeholder { color: #aaa; }

/* Forgot password — sits between email and password */
.login-forgot-row {
    padding: 0.55rem 0 0.55rem;
    text-align: right;
}
.login-forgot {
    font-size: 0.78rem;
    color: #c8a95c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.login-forgot:hover { color: #a07830; }

/* Error message */
.login-error {
    background: rgba(220,38,38,0.07);
    border: 1px solid rgba(220,38,38,0.2);
    color: #dc2626;
    border-radius: 0;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    margin: 0.75rem 0 0;
}

/* Submit button */
.login-submit-btn {
    display: block;
    width: 100%;
    background: #c8a95c;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    padding: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1.25rem;
    font-family: 'Circular Std', Arial, sans-serif;
}
.login-submit-btn:hover:not(:disabled) { background: #b8923c; }
.login-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Spinner */
.login-spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Invitation — outlined button */
.login-invitation { margin-top: 1rem; }
.login-invitation-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid #c8a95c;
    border-radius: 0;
    color: #888;
    font-size: 0.78rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: 'Circular Std', Arial, sans-serif;
}
.login-invitation-btn:hover { border-color: #a07830; color: #c8a95c; }

/* Login overlay — mobile adjustments */
@media (max-width: 767px) {
    .login-overlay {
        width: 100%;
        min-width: 0;
        padding: var(--ngp-total-h) 1rem 1rem;
        justify-content: center;
    }
    .login-card {
        max-width: 340px;
        padding: 2rem 1.6rem 1.8rem;
    }
    .login-ngp-logo { height: 38px; }
    .login-logo-concacaf,
    .login-logo-pif { height: 22px; }
    .login-subtitle { font-size: 0.68rem; margin-bottom: 1.2rem; }
    .login-input { padding: 0.65rem 0.8rem; font-size: 0.82rem; }
    .login-submit-btn { padding: 0.7rem; font-size: 0.78rem; }
    .login-invitation-btn { padding: 0.55rem 0.8rem; font-size: 0.72rem; }
}

/* Logged-in pill (header) */
.ngp-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ngp-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ngp-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
    overflow: hidden;
}
.ngp-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.btn-ngp-profile {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: capitalize;
    color: var(--ngp-gold);
    background: transparent;
    border: none;
    border-radius: var(--ngp-radius);
    border: 1px solid var(--ngp-gold);
    padding: 10px 20px;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-ngp-profile:hover { background: var(--ngp-gold-light); color: #000; }

/* Mobile: login panel full width */
@media (max-width: 767px) {
    .login-overlay {
        width: 100%;
        min-width: 0;
        padding: var(--ngp-total-h) 1rem 1rem;
        justify-content: center;
        align-items: flex-start;
    }
    .login-card { max-width: 100%; border-radius: 12px; padding: 2rem 1.25rem; }
    .login-close-btn { right: 1rem; }
}

/* ── 15. Dashboard — Profile View ──────────────────────── */

.dash-profile-section {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    padding-top: calc(var(--ngp-total-h, 90px) + 2rem);
    padding-bottom: 4rem;
}
.dash-profile-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.dash-ngp-logo {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ── Profile top: [achievements] [avatar+info] [skilled] ── */
.dash-profile-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.dash-profile-pill-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1;          /* both columns take equal space → avatar stays at true center */
    min-width: 0;
}
.dash-profile-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

/* Pills — transparent bg, golden border, golden font */
/* Now rendered as a <span> label — no pointer, no hover background */
.dash-pill-btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--ngp-gold);
    border-radius: 30px;
    color: var(--ngp-gold);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 4rem;
    white-space: nowrap;
    text-align: center;
    user-select: none;
}
.dash-pill-level {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: transparent;
    border: 1px solid var(--ngp-gold);
    border-radius: 30px;
    padding: 0.3rem 1.2rem;
    font-size: 0.82rem;
    color: var(--ngp-gold);
    white-space: nowrap;
}
.dash-pill-label { font-weight: 700; color: var(--ngp-gold); }
.dash-pill-stars { color: var(--ngp-gold); display: flex; gap: 2px; }
/* hint lives outside the pill border — same width as pill */
.dash-pill-hint {
    color: var(--ngp-gold);
    font-size: 0.7rem;
    text-align: center;
    width: 75%;
    line-height: 1.3;
}

/* Achievement hexagon icons below the Achievements pill */
.dash-ach-icons {
    display: flex;
    gap: 15px;
}
/* Rendered as <button> — icon-only, the PNG carries its own design */
.dash-ach-hex {
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}
.dash-ach-hex:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.08);
    filter: brightness(1.1);
}
.dash-ach-hex:focus-visible {
    outline: 2px solid var(--ngp-gold);
    outline-offset: 3px;
    border-radius: 4px;
}
.dash-ach-hex img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    display: block;
}

/* Disabled certificate — grayed out, no interaction */
.dash-ach-hex.is-disabled,
.dash-ach-hex:disabled {
    cursor: not-allowed;
    pointer-events: none;
}
.dash-ach-hex.is-disabled img,
.dash-ach-hex:disabled img {
    filter: grayscale(1) brightness(0.6);
    opacity: 0.5;
}

/* Avatar container — wraps avatar + camera badge */
.dash-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
}
.dash-avatar-camera {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ngp-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    cursor: pointer;
    border: 2px solid var(--ngp-gold);
    z-index: 2;
}
.dash-avatar-camera svg { width: 13px; height: 13px; }

/* Avatar */
.dash-avatar-wrapper {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    border: 3px solid var(--ngp-gold);
    overflow: hidden;
    position: relative;
    background: var(--ngp-dark-3);
}
.dash-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dash-avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ngp-gold);
}
.dash-profile-name {
    font-family: 'Sharp Sans Display No1', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    text-align: center;
}
.dash-profile-email {
    color: #fff;
    font-size: 0.82rem;
    margin: 0 0 0.75rem;
    text-align: center;
}
/* Edit Profile — golden border, pill radius */
.dash-edit-profile-btn {
    background: transparent;
    border: 1px solid var(--ngp-gold);
    border-radius: 30px;
    color: var(--ngp-gold);
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}
.dash-edit-profile-btn:hover { background: rgba(216,185,125,0.1); }

/* ── Lower card: golden border + very transparent gold bg ── */
.dash-lower-card {
    border: 1px solid rgba(216,185,125,0.45);
    background: rgba(216,185,125,0.06);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
}

/* Completion bar — 50% width, centered */
.dash-completion-block {
    max-width: 50%;
    margin: 0 auto 1.5rem;
    text-align: center;
}
.dash-completion-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 0.5rem;
}
.dash-completion-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}
.dash-completion-fill {
    height: 100%;
    background: var(--ngp-gold);
    border-radius: 4px;
    transition: width 0.8s ease;
}
.dash-completion-pct {
    font-size: 0.78rem;
    color: var(--ngp-gold);
}

/* Modules section */
.dash-modules-section { margin-bottom: 1.5rem; }
.dash-modules-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 0.75rem;
    text-align: center;
}

/* Grid: each cell is a flex row [num] [button] or [button] [num] */
.dash-modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.dash-module-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Right column: number goes after button (right side) */
.dash-module-cell.right-col {
    flex-direction: row-reverse;
}

/* External number badge */
.dash-module-num-badge {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}
.dash-module-num-badge.num-done {
    background: var(--ngp-gold);
    color: #111;
}
.dash-module-num-badge.num-pending {
    background: transparent;
    border: 1.5px solid var(--ngp-gold);
    color: var(--ngp-gold);
}

/* Module button */
.dash-module-row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s;
    text-align: left;
    border: 1px solid var(--ngp-gold);
    background: transparent;
    min-width: 0;
}
.dash-module-row.is-done {
    background: var(--ngp-gold);
    border-color: var(--ngp-gold);
}
.dash-module-row.is-done .dash-module-name { color: #111; }
.dash-module-row:not(.is-done):not(.is-inactive):hover { border-color: var(--ngp-white-00); }

/* Inactive state — greyed out, non-interactive */
.dash-module-row.is-inactive {
    border-color: rgba(255, 255, 255, 0.18);
    background: transparent;
    cursor: default;
    pointer-events: none;
}
.dash-module-row.is-inactive .dash-module-diploma {
    color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}
.dash-module-row.is-inactive .dash-module-name {
    color: rgba(255, 255, 255, 0.28);
}

/* Diploma icon inside button */
.dash-module-diploma {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ngp-gold);
}
.dash-module-diploma.is-dimmed { opacity: 0.25; }
.dash-module-row.is-done .dash-module-diploma { color: #111; opacity: 1; }
.dash-module-diploma svg { width: 18px; height: 18px; }

.dash-module-name {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ngp-white-00);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status indicators */
.dash-module-status {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}
/* Completed: green circle + white check */
.dash-module-status.status-done {
    background: #22c55e;
    color: #fff;
}
/* Incomplete: red circle + white ! */
.dash-module-status.status-pending {
    background: #ef4444;
    color: #fff;
}

/* Share row */
.dash-share-label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--ngp-white-00);
    margin-bottom: 0.75rem;
}
.dash-share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ngp-gold);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.dash-share-icon:hover { background: var(--ngp-gold-light, #e8c98d); transform: scale(1.08); color: #111; }

/* Responsive */
@media (max-width: 575px) {
    .dash-modules-grid { grid-template-columns: 1fr; }
    .dash-module-cell.right-col { flex-direction: row; }
    .dash-profile-top { flex-direction: column; gap: 1rem; align-items: center; }
    .dash-pill-hint { display: none; }
    .dash-completion-block { max-width: 80%; }
}

/* ── 17. Footer ────────────────────────────────────────── */

.ngp-footer {
    font-family: 'Sharp Sans Display No1';
    background: var(--ngp-dark-1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Decorative background symbol */
.footer-symbol-bg {
    position: absolute;
    left: 65%;
    top: 100%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    pointer-events: none;
    opacity: 0.93;
    z-index: 0;
}

.footer-symbol-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.3) saturate(0.6);
}

.ngp-footer .container-xl {
    position: relative;
    z-index: 1;
}

/* Footer top zone: logo + social icons */
.footer-top {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.4);
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Social icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, opacity 0.2s;
    flex-shrink: 0;
    overflow: hidden;
    background: transparent;
}

.social-icon:hover {
    border-color: var(--ngp-gold);
    color: var(--ngp-gold);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.social-icon--img:hover {
    opacity: 0.8;
}

/* Footer links zone */
.footer-links {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.4);
}

.footer-col-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ngp-white-00);
    margin-bottom: 1.25rem;
    display: block;
}

/* Label invisible para alineamiento vertical en columna 5 */
.footer-col-label--hidden {
    visibility: hidden;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li + li {
    margin-top: 0.5rem;
}

.footer-link-list a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.5;
}

.footer-link-list a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Copyright bar */
.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copyright {
    font-size: 11px;
    color: var(--ngp-gold);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    font-size: 11px;
    font-weight: 500;
    color: var(--ngp-gold);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer responsive */
@media (max-width: 991px) {
    .footer-col-label--hidden {
        visibility: visible;
    }
}

@media (max-width: 767px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2.5rem 0 2rem;
    }
    .footer-links {
        padding: 2rem 0;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom-links {
        gap: 0.75rem;
    }
    .footer-symbol-bg {
        width: 320px;
        height: 320px;
        opacity: 0.06;
    }
    .social-icon {
        width: 42px;
        height: 42px;
    }
    .social-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* ── 15. Utility: overflow lock ────────────────────────── */
html.overflow-hidden,
body.overflow-hidden {
    overflow: hidden !important;
}

/* ── 16. Animations ─────────────────────────────────────── */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ── 17. Responsive ─────────────────────────────────────── */

/* Mobile */
@media (max-width: 767px) {
    :root {
        --ngp-topbar-h: 0px;
        --ngp-total-h:  64px;
    }
    .ngp-top-bar { display: none; }

    .hero-title    { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.8rem; }
    .hero-tagline  { font-size: 0.9rem; }

    /* Viewport completo garantizado en mobile */
    #section-hero,
    #section-purpose {
        height: 100vh;
        height: 100dvh;
        height: calc(var(--vh) * 100);
    }

    /* Curriculum VISTA 1: en mobile sale del modo absolute para que las
       4 cards + título fluyan naturalmente sin recortarse. */
    .curriculum-vista1 {
        position: relative;
        height: auto;
        justify-content: flex-start;
        padding-top: calc((var(--ngp-total-h) + 2rem) * 0.8);
        padding-bottom: 3rem;
    }

    /* Cards en móvil: columna única con aspect-ratio generoso */
    .curriculum-card { aspect-ratio: 16 / 10; }

    /* Module detail responsive — mobile: espacio para header + respiro */
    .module-detail-page { padding-top: calc((var(--ngp-total-h) + 1rem) * 0.8); }
    .mdv-inner { padding: 0 1rem 3rem; }
    .mdv-hero, .mdv-bottom { grid-template-columns: 1fr; gap: 1.5rem; }
    .mdv-skills { position: static; }
    .mdv-video-frame { flex: none; aspect-ratio: 16 / 9; min-height: unset; }
    .mdv-plan-pill-container { display: block; text-align: center; }
    .mdv-chapters { gap: 0.35rem; }
    .mdv-chapter { grid-template-columns: 110px 1fr; }
    .mdv-chapter-thumb { width: 110px; }

    /* Ocultar overlay de Play en video de módulos — controles nativos son suficientes */
    .mdv-video-overlay { display: none; }

    /* VISTA 3 logged-in responsive — mobile */
    .mdv-logged-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .mdv-logged-layout .mdv-chapter { grid-template-columns: 110px 1fr 24px; }
    .mdv-instructor-avatar { width: 60px; height: 60px; }
}

/* ── iPhone (≤480px) — ~15-30% smaller than base mobile ── */
@media (max-width: 480px) {

    /* Hero */
    .hero-tagline {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    .btn-ngp-cta {
        padding: 10px 40px;
        font-size: 0.9rem;
    }

    /* Purpose */
    .purpose-slide {
        padding: 0 0.75rem 2.5rem;
    }

    /* Curriculum VISTA 1 */
    .curriculum-subtitle {
        margin: 0 auto 2rem;
        font-size: 0.8rem;
    }
    .curriculum-vista1 {
        padding-top: calc((var(--ngp-total-h) + 1.5rem) * 0.8);
        padding-bottom: 2rem;
    }

    /* Voices */
    .voice-person-name {
        font-size: 1.2rem;
    }
    .voice-card-body {
        padding: 1rem 0.875rem 0.875rem;
    }
    .voice-body-text {
        font-size: 0.8rem;
    }
    .voices-subtitle {
        font-size: 0.8rem;
        max-width: 90vw;
    }

    /* Module detail — VISTA 2 */
    .mdv-hero,
    .mdv-bottom {
        gap: 1rem;
    }
    .mdv-cta-box {
        padding: 1.5rem;
    }
    .mdv-chapters { gap: 0.2rem; }
    .mdv-chapter-thumb {
        width: clamp(90px, 24vw, 170px);
    }
    .mdv-plan-pill {
        padding: 6px 30px;
        font-size: 9px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title      { font-size: 3rem; }
    .curriculum-card { aspect-ratio: 16 / 9; }

    /* Asegurar viewport completo en tablet */
    #section-hero,
    #section-purpose {
        height: 100vh;
        height: 100dvh;
        height: calc(var(--vh) * 100);
    }

    /* Curriculum VISTA 1: padding ajustado para tablet + shift up */
    .curriculum-vista1 {
        padding-top: calc(var(--ngp-total-h) + 2rem);
        padding-bottom: calc(4rem + 15vh);
    }

    /* Module detail responsive — tablet: 35% más arriba */
    .module-detail-page { padding-top: calc(var(--ngp-total-h) * 0.65); }
    .mdv-inner { padding: 0 2rem 4rem; }
    .mdv-hero, .mdv-bottom { grid-template-columns: 1fr; gap: 2rem; }
    .mdv-skills { position: static; }
    .mdv-video-frame { flex: none; aspect-ratio: 16 / 9; min-height: unset; }
    .mdv-plan-pill-container { display: block; text-align: center; }

    /* VISTA 3 logged-in responsive — tablet */
    .mdv-logged-layout { grid-template-columns: 1fr; gap: 2rem; }
    .mdv-logged-layout .mdv-chapter { grid-template-columns: 150px 1fr 28px; }
}

/* iPad Pro portrait (1024px) + landscape iPads / small laptops up to 1366px */
/* padding-top de .module-detail-page ahora controlado por el bloque ≥1000px */

/* iPad Pro portrait (1024px) + landscape iPads / small laptops up to 1366px */
@media (max-width: 1024px) {
    .mdv-plan-pill-container { display: block; text-align: center; }
}

/* Landscape tablet (iPad Air, iPad Pro, etc.) — reducir ~10% respecto a portrait */
@media (max-height: 900px) and (orientation: landscape) and (min-width: 768px) {
    .hero-title-logo { width: 65%; }
    .hero-partner-logo { height: 27px; }
    .hero-logo-pif { height: 32px; }
    .hero-logos { justify-content: center; }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #section-hero {
        height: auto;
        min-height: 400px;
        padding: 2rem 0;
    }
    #section-purpose {
        height: auto;
        min-height: 400px;
    }
    #purposeSlider {
        min-height: 400px;
    }
    .purpose-slide {
        min-height: 400px;
        padding-bottom: 3.5rem;
    }
    .hero-title   { font-size: 2rem; }
    .hero-title-logo { width: 45%; }
    .hero-partner-logo { height: 18px; }
    .hero-logo-pif { height: 22px; }
    .hero-logos { justify-content: center; }
    .hero-content { justify-content: center; padding-bottom: 3vh; }
}

/* ── Large displays — escalado proporcional al viewport ──────────
   Base: 1440px → todo en vw para mantener misma proporción visual.
   hero-content también escala: max-width y padding relativos al vw.
   ─────────────────────────────────────────────────────────────── */
@media (min-width: 1441px) {
    /* Contenedor hero: sin max-width fijo, centrado vertical */
    .hero-content {
        max-width: none;
        padding: 3.5vw;
        align-items: center;
    }
    /* Bloque de texto proporcional (~15% menor que ratio 1:1) */
    .hero-text-block { max-width: 30.7vw; }
    .hero-partner-logo { height: 2.36vw; }
    .hero-logo-pif { height: 2.83vw; }
    .hero-logos { gap: 1.19vw; margin-bottom: 0.94vw; }
    .hero-tagline { font-size: 1.22vw; margin-bottom: 1.65vw; }
    .btn-ngp-cta { font-size: 1.04vw; padding: 0.83vw 4.72vw; }
}
