@import '../../../_main/components/editorial-style.css';
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');


/* ============================================================
   FONTS DECLARATIONS (BodoniModa)
   ============================================================ */
@font-face {
    font-family: 'BodoniModa';
    src: url('../fonts/BodoniModa_9pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BodoniModa';
    src: url('../fonts/BodoniModa_9pt-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #002241;
    --bg-light: #003362;
    --bg-img-blue: #002241;
    --bg-img-purple: #002241;
    --bg-gradient: var(--bg);
    --bg-gradient-image: var(--bg);
    --text: #ffffff;
    --text-light: #003362;
    --accent: #003362;
    --accent-light: #003362;
    --white: #ffffff;
    --red-ucv: #e30613;
    --blue-ucv: var(--bg);

    --nav-cta-hover-bg: #003362;
    --burger-btn-bg: var(--accent);
    --burger-btn-hover-bg: #003362;

    --sgi-logo-height: 80px;
    --form-section-bg: #001c35;

    --hero-editorial-short-padding-top: 3.5rem;
    --hero-editorial-short-padding-bottom: 1.25rem;
    --hero-editorial-short-align-items: center;
}

/* ============================================================
   NEW HERO & SPEAKERS SECTION STYLING (IV Encuentro)
   ============================================================ */
.hero-leaders {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: clamp(5rem, 4rem + 4vw, 7rem);
    padding-bottom: 3.5rem;
    background: #000027;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 3%;
    padding-right: 3%;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* Background Orbs with Animated Glow */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}
.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(129, 188, 233, 0.4) 0%, rgba(0, 34, 65, 0) 70%);
    top: -10%;
    right: 15%;
    animation: floatOrb1 15s ease-in-out infinite alternate;
}
.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 140, 255, 0.3) 0%, rgba(0, 34, 65, 0) 70%);
    bottom: 5%;
    right: 5%;
    animation: floatOrb2 20s ease-in-out infinite alternate;
}
.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 52, 99, 0.5) 0%, rgba(0, 34, 65, 0) 70%);
    top: 30%;
    left: -5%;
    animation: floatOrb3 18s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-30px, 40px) scale(1.1);
    }
}
@keyframes floatOrb2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(40px, -30px) scale(0.95);
    }
}
@keyframes floatOrb3 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

/* 2-Column Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    flex-grow: 1;
    min-height: 0;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Left Column Styling */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(20, 55, 135, 0.55);
    border: 1.5px solid rgba(0, 82, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.hero-title-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0.5rem 0;
}

.hero-title-giant {
    font-family: 'BodoniModa', 'Times New Roman', Georgia, serif;
    font-size: clamp(4.5rem, 4.2rem + 10vw, 17rem);
    font-weight: 900;
    color: var(--white);
    line-height: 0.8;
}

.hero-title-main {
    font-family: 'BodoniModa', 'Times New Roman', Georgia, serif;
    font-size: clamp(1.8rem, 1.6rem + 2vw, 3.2rem);
    font-weight: 700;
    line-height: 0.95;
    color: var(--white);
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    margin: 0;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 0.85rem + 0.4vw, 1.35rem);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-top: -0.25rem;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.95rem;
    color: #ffffff;
    margin: 0.25rem 0;
}

.meta-separator {
    color: #ffffff;
    font-weight: 300;
}

.hero-desc {
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
    line-height: 1.6;
    color: #ffffff;
    max-width: 45ch;
    margin: 0;
}

.flags-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.flags-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 1px;
}

.flags-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.flag-icon {
    width: 32px;
    height: auto;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}
.flag-icon:hover {
    transform: scale(1.15) translateY(-2px);
}

.hero-ctas {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
    width: 100%;
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .hero-ctas a {
        text-align: center;
        justify-content: center;
        width: 100%;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #e30613 0%, #a8000a 100%);
    color: var(--white) !important;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f01421 0%, #bf0813 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.5);
    color: var(--white) !important;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: var(--white) !important;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--white) !important;
}

/* Right Column (Carousel & Glassmorphism) */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.speaker-carousel {
    width: 100%;
    max-width: 580px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.carousel-inner {
    width: 100%;
    position: relative;
    min-height: 450px;
    overflow: visible !important;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible !important;
}

.carousel-item.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    position: relative;
    z-index: 5;
}

/* Overlapping circles layout */
.speaker-display-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 440px;
    padding: 0 10px;
}

/* Portrait with Glow border (larger size) */
.portrait-circle-wrap {
    position: relative;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    z-index: 2;
    flex-shrink: 0;
}

.portrait-glow-border {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0052ff 0%, #001240 40%, #0052ff 60%, #0033cc 100%);
    z-index: 1;
    box-shadow: 0 0 25px rgba(0, 82, 255, 0.5);
    animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.portrait-circle-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #000027;
    z-index: 2;
    background: #002241;
}

/* Glassmorphism speaker details card (smaller circular layout overlapping the portrait) */
.info-circle-card {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(0, 15, 50, 0.55);
    border: 1.5px solid rgba(0, 82, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-left: -120px;
    flex-shrink: 0;
    z-index: 3;
    padding: 28px 28px 22px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    text-align: center;
    transform: translateY(55px);
    overflow: hidden;
}

.card-badge {
    align-self: center;
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    background: rgba(0, 82, 255, 0.15);
    border: 1px solid rgba(0, 82, 255, 0.4);
    color: #ffffff;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.card-name {
    font-family: 'BodoniModa', 'Times New Roman', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.25rem 0;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-divider-line {
    width: 45px;
    height: 2px;
    background-color: #0052ff;
    margin: 0 auto 0.6rem auto; /* center divider line */
}

.card-role {
    font-size: 0.7rem;
    line-height: 1.35;
    color: rgba(163, 197, 224, 0.9);
    text-align: center;
    margin: 0 0 0.45rem 0;
    font-style: italic;
    letter-spacing: 0.01em;
}

.card-talk {
    font-size: 0.72rem;
    line-height: 1.4;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.card-country {
    display: flex;
    align-items: center;
    justify-content: center; /* center flag and country text */
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
}

.card-flag {
    width: 22px;
    border-radius: 5px;
}

/* Concentric wave patterns in background */
.waves-bg {
    position: absolute;
    left: 20%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.waves-bg svg {
    width: 100%;
    height: 100%;
}

.waves-bg circle {
    stroke: rgba(0, 82, 255, 0.18) !important;
}

.waves-bg circle:nth-child(even) {
    stroke: rgba(0, 82, 255, 0.08) !important;
}

/* Glossy 3D glass spheres (royal blue style) */
.sphere-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 25% 15%, #fff 0%, #0052ff 25%, #001240 65%, #001240 100%);
    box-shadow:
        inset -8px -8px 20px rgb(0, 0, 0),
        inset 6px 6px 12px rgba(255, 255, 255, 0.55),
        0 15px 30px rgba(0, 81, 255, 0);
}

.sphere-1 {
    width: 160px;
    height: 160px;
    top: -10%;
    left: -15%;
    filter: blur(5px);
    opacity: 0.35;
    z-index: 0;
    will-change: transform;
}

.sphere-2 {
    width: 140px;
    height: 140px;
    top: 45%;
    left: -15%;
    z-index: 3;
    opacity: 0.8;
    will-change: transform;
}

.sphere-3 {
    width: 110px;
    height: 110px;
    top: -5%;
    right: 25%;
    z-index: 4;
    will-change: transform;
}

.sphere-4 {
    width: 80px;
    height: 80px;
    bottom: -5%;
    right: 10%;
    z-index: 4;
    filter: blur(5px);
    will-change: transform;
}


/* Responsiveness media query for tablet / mobile view */

/* ── Notebooks & Medium Desktops (1025px to 1400px) ── */
@media (min-width: 1025px) and (max-width: 1400px) {
    .hero-grid {
        gap: 1.5rem;
    }
    
    .hero-title-giant {
        font-size: clamp(3.5rem, 3rem + 7vw, 11rem);
    }

    .hero-title-main {
        font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
    }
    
    .carousel-inner {
        min-height: 380px;
    }

    .speaker-display-wrap {
        height: 380px;
    }

    .portrait-circle-wrap {
        width: 280px;
        height: 280px;
    }

    .info-circle-card {
        width: 280px;
        height: 280px;
        margin-left: -90px;
        padding: 22px 18px 18px 18px;
    }
    
    .card-name {
        font-size: 1.05rem;
    }
    
    .card-talk {
        font-size: 0.68rem;
        line-height: 1.35;
        margin-bottom: 0.35rem;
    }
    
    .sphere-1 {
        width: 120px;
        height: 120px;
    }
    
    .sphere-2 {
        width: 105px;
        height: 105px;
        left: -8%;
    }
    
    .sphere-3 {
        width: 85px;
        height: 85px;
    }
    
    .sphere-4 {
        width: 65px;
        height: 65px;
    }
}

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    .hero-leaders {
        padding-top: clamp(5.5rem, 4rem + 4vw, 8rem);
        padding-bottom: 2.5rem;
    }

    .carousel-inner {
        min-height: 400px;
    }

    .speaker-display-wrap {
        height: 400px;
    }

    .portrait-circle-wrap {
        width: 300px;
        height: 300px;
    }

    .info-circle-card {
        width: 280px;
        height: 280px;
        margin-left: -100px;
        transform: translateY(45px);
        padding: 24px 18px 18px 18px;
    }

    .card-name {
        font-size: 1.2rem;
    }

    .card-talk {
        font-size: 0.75rem;
    }
}

/* ── Mobile grande (≤ 768px) ── */
@media (max-width: 768px) {
    .hero-leaders {
        min-height: auto;
        padding-top: clamp(5rem, 3rem + 6vw, 7rem);
        padding-bottom: 2rem;
    }

    .hero-container {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title-container {
        gap: 1rem;
    }

    .hero-title-giant {
        font-size: clamp(3.5rem, 12vw, 9rem);
        line-height: 0.85;
    }

    .hero-title-main {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
    }

    .hero-desc {
        font-size: 0.95rem;
        max-width: 100%;
    }

    /* Speaker display: portrait stacked on top of card */
    .speaker-display-wrap {
        flex-direction: column;
        height: auto;
        gap: 0;
        padding: 0;
        align-items: center;
    }

    .carousel-inner {
        min-height: auto;
    }

    .portrait-circle-wrap {
        width: 200px;
        height: 200px;
        margin-bottom: 0;
        z-index: 4;
    }

    .info-circle-card {
        width: 88%;
        max-width: 320px;
        height: auto;
        border-radius: 24px;
        margin-left: 0;
        margin-top: -30px;
        transform: none;
        padding: 50px 20px 20px 20px;
        z-index: 1;
        text-align: center;
        align-items: center;
    }

    .card-badge {
        align-self: center;
    }

    .card-name {
        align-items: center;
        text-align: center;
        font-size: 1.2rem;
    }

    .card-divider-line {
        margin: 0.5rem auto 0.75rem auto;
    }

    .card-talk {
        font-size: 0.8rem;
        min-height: auto;
        text-align: center;
    }

    .card-country {
        justify-content: center;
    }

    .waves-bg {
        width: 160%;
        height: 160%;
        left: 50%;
        top: 30%;
        opacity: 0.5;
    }

    .sphere-1 {
        width: 90px;
        height: 90px;
        top: -5%;
        left: 2%;
    }

    .sphere-2 {
        width: 70px;
        height: 70px;
        top: 40%;
        left: 2%;
    }

    .sphere-3 {
        width: 60px;
        height: 60px;
        top: -2%;
        right: 10%;
    }

    .sphere-4 {
        width: 75px;
        height: 75px;
        bottom: 2%;
        right: -5%;
    }

    /* Ocultar sección de cards en mobile */
    .speakers-section-inner {
        display: none !important;
    }

    /* Mostrar navegación mobile (dots + flechas) */
    .hero-carousel-mobile-nav {
        display: flex !important;
    }

    /* Speaker bottom cards — por si acaso */
    .speakers-grid {
        gap: 1.5rem;
    }

    .speaker-card {
        flex: 0 0 100%;
    }

    .slider-nav-btn.prev-btn {
        left: -10px;
    }

    .slider-nav-btn.next-btn {
        right: -10px;
    }
}

/* ── Mobile pequeño (≤ 480px) ── */
@media (max-width: 480px) {
    .hero-leaders {
        padding-top: clamp(4.5rem, 2.5rem + 6vw, 6rem);
        padding-bottom: 1.5rem;
    }

    .hero-container {
        padding-left: 4%;
        padding-right: 4%;
    }

    .badge-pill {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .hero-title-container {
        gap: 0.75rem;
    }

    .hero-title-giant {
        font-size: clamp(3rem, 26vw, 9rem);
    }

    .hero-title-main {
        font-size: clamp(1.2rem, 5.5vw, 1.8rem);
    }

    .meta-info {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .meta-separator {
        display: none;
    }

    .meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .flag-icon {
        width: 26px;
    }

    .portrait-circle-wrap {
        width: 170px;
        height: 170px;
    }

    .info-circle-card {
        width: 92%;
        max-width: 290px;
        margin-top: -25px;
        padding: 42px 16px 18px 16px;
    }

    .card-name {
        font-size: 1.1rem;
    }

    .card-talk {
        font-size: 0.75rem;
    }

    .speaker-thumb {
        width: 60px;
        height: 60px;
    }

    .speaker-name {
        font-size: 1rem;
    }

    .speaker-role {
        font-size: 0.78rem;
    }
}

/* Dots Navigation */
.carousel-dots {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
    z-index: 5;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: #0052ff;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(129, 188, 233, 0.8);
}

/* Sub-Hero Speakers Section — oculta en mobile, visible en desktop */
.speakers-section-inner {
    display: none; /* oculta por defecto (mobile-first) */
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    position: relative;
    z-index: 3;
    width: 100%;
}

@media (min-width: 769px) {
    .speakers-section-inner {
        display: block; /* visible solo en desktop/tablet */
    }
}

/* Mobile hero carousel navigation — dots + arrows */
.hero-carousel-mobile-nav {
    display: none; /* hidden on desktop; shown on mobile via media query */
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-bottom: 2rem;
}

.hero-mobile-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 15, 50, 0.6);
    border: 1.5px solid rgba(0, 82, 255, 0.45);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.hero-mobile-btn:hover,
.hero-mobile-btn:active {
    background: rgba(0, 82, 255, 0.3);
    border-color: rgba(0, 82, 255, 0.8);
    transform: scale(1.08);
}

.hero-mobile-btn svg {
    width: 20px;
    height: 20px;
}

.hero-mobile-dots {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.hero-dot.active {
    background: #0052ff;
    transform: scale(1.35);
    box-shadow: 0 0 8px rgba(0, 82, 255, 0.7);
}

.speakers-slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.speakers-slider-viewport {
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.speakers-slider-viewport.grabbing {
    cursor: grabbing;
}

.speakers-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.speaker-card {
    background: rgba(0, 15, 50, 0.45);
    border: 1px solid rgba(0, 82, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 45px;
    padding: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex: 0 0 calc(33.333% - 1.334rem);
    box-sizing: border-box;
}

/* Arrow buttons styling */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 15, 50, 0.65);
    border: 1px solid rgba(0, 82, 255, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slider-nav-btn:hover {
    background: rgba(0, 82, 255, 0.3);
    border-color: rgba(0, 82, 255, 0.8);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.3);
}

.slider-nav-btn svg {
    width: 20px;
    height: 20px;
}

.slider-nav-btn.prev-btn {
    left: -24px;
}

.slider-nav-btn.next-btn {
    right: -24px;
}

@media (max-width: 1200px) {
    .speaker-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .speakers-grid {
        gap: 1.5rem;
    }
    .speaker-card {
        flex: 0 0 100%;
    }
    .slider-nav-btn.prev-btn {
        left: -10px;
    }
    .slider-nav-btn.next-btn {
        right: -10px;
    }
}

.speaker-card:hover,
.speaker-card.active-card {
    background: rgba(0, 82, 255, 0.15);
    border-color: rgba(0, 82, 255, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 82, 255, 0.25);
}

.card-left {
    flex-shrink: 0;
}

.speaker-thumb {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 82, 255, 0.5);
    background: #002241;
    pointer-events: none;
}

.card-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.speaker-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
}

.speaker-role {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #ffffff !important;
    margin: 0;
}

.speaker-country {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-top: 0.2rem;
}

.speaker-flag {
    width: 20px;
    border-radius: 5px;
    pointer-events: none;
}

.card-right {
    flex-shrink: 0;
}

.arrow-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.speaker-card:hover .arrow-btn {
    background: var(--white);
    color: #000027;
    border-color: var(--white);
    transform: rotate(-45deg);
}

.arrow-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   GSAP LOADING STYLES TO PREVENT FLASH OF UN-ANIMATED CONTENT (FOIC)
   ============================================================ */
.gsap-loading .badge-pill,
.gsap-loading .hero-title-giant,
.gsap-loading .hero-title-main span,
.gsap-loading .meta-info,
.gsap-loading .hero-desc,
.gsap-loading .flags-row .flag-icon,
.gsap-loading .carousel-item.active .waves-bg,
.gsap-loading .carousel-item.active .sphere-orb,
.gsap-loading .carousel-item.active .portrait-circle-wrap,
.gsap-loading .carousel-item.active .info-circle-card,
.gsap-loading .speakers-section-desktop .speaker-card {
    opacity: 0;
}

/* ============================================================
   SECCIÓN AGENDA - CRONOGRAMA VERTICAL DE EVENTOS (TEMA CLARO)
   ============================================================ */
.schedules {
    position: relative;
    padding-top: clamp(4rem, 2rem + 6vw, 8rem);
    padding-bottom: clamp(4rem, 2rem + 6vw, 8rem);
    background-color: #F7F7F7;
    background-image: linear-gradient(90deg, #ffffff 50%, #F7F7F7 50%);
    overflow: hidden;
    z-index: 12;
    margin-top: -32px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

@media (max-width: 991px) {
    .schedules {
        background-image: none;
        background-color: #F7F7F7;
    }
}

@media (min-width: 1024px) {
    .schedules {
        margin-top: -64px;
        border-top-left-radius: 64px;
        border-top-right-radius: 64px;
    }
}

.pink {
    color: #e30613 !important;
}

.schedule-title p.pink {
    font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.schedule-title h2 {
    font-family: var(--font-display), sans-serif;
    font-size: clamp(1.8rem, 1.6rem + 2vw, 3.2rem);
    font-weight: 800;
    color: #002241;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.agenda-section {
    position: relative;
    padding-top: clamp(6rem, 5rem + 5vw, 8rem);
    padding-bottom: clamp(6rem, 5rem + 5vw, 8rem);
    background: #000027; /* Matching hero background */
    overflow: hidden;
    box-sizing: border-box;
}

.agenda-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* Background Waves (circular SVG) */
.agenda-waves {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    height: 120%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.65;
}

.agenda-waves svg {
    width: 100%;
    height: 100%;
}

/* Glossy 3D spheres */
.agenda-spheres {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.agenda-sphere {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    box-shadow:
        inset -12px -12px 30px rgba(0, 0, 0, 0.95),
        inset 8px 8px 16px rgba(255, 255, 255, 0.45),
        0 15px 35px rgba(0, 0, 0, 0.4);
}

.agenda-sphere-1 { /* Large sphere, bottom right */
    width: 320px;
    height: 320px;
    right: 15%;
    top: 15%;
    background: radial-gradient(circle at 35% 35%, #8bc4ff 0%, #0052ff 30%, #001144 75%, #000522 100%);
    z-index: 3;
}

.agenda-sphere-2 { /* Medium sphere, top right */
    width: 160px;
    height: 160px;
    right: 38%;
    top: 35px;
    background: radial-gradient(circle at 35% 35%, #a6d2ff 0%, #0052ff 35%, #001144 80%, #000522 100%);
    z-index: 2;
}

.agenda-sphere-3 { /* Small sphere, bottom left of the large one */
    width: 90px;
    height: 90px;
    right: 40%;
    top: 65%;
    background: radial-gradient(circle at 35% 35%, #a6d2ff 0%, #0052ff 35%, #001144 80%, #000522 100%);
    z-index: 4;
}

/* Content block positioning */
.agenda-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.agenda-title {
    font-family: 'BodoniModa', 'Times New Roman', Georgia, serif;
    font-size: clamp(4rem, 3.5rem + 5vw, 7.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 0.95;
    margin: 0.5rem 0;
    text-transform: capitalize;
    letter-spacing: -0.01em;
}

.agenda-description {
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 50ch;
    margin: 0;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .agenda-waves {
        width: 70%;
        right: -10%;
    }
    
    .agenda-sphere-1 {
        width: 240px;
        height: 240px;
        right: 10%;
        top: 20%;
    }
    
    .agenda-sphere-2 {
        width: 120px;
        height: 120px;
        right: 32%;
        top: 35px;
    }
    
    .agenda-sphere-3 {
        width: 70px;
        height: 70px;
        right: 34%;
        top: 70%;
    }
}

@media (max-width: 768px) {
    .agenda-section {
        padding-top: clamp(5rem, 3rem + 6vw, 7rem);
        padding-bottom: clamp(5rem, 3rem + 6vw, 7rem);
    }
    
    .agenda-container {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .agenda-content {
        align-items: center;
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .agenda-title {
        font-size: clamp(3rem, 10vw, 5rem);
    }
    
    .agenda-description {
        max-width: 100%;
    }
    
    /* Background elements opacity on mobile to prevent overlaying text */
    .agenda-waves {
        opacity: 0.35;
        width: 120%;
        right: -10%;
        top: 40%;
    }
    
    .agenda-spheres {
        width: 100%;
        opacity: 0.4;
    }
    
    .agenda-sphere-1 {
        width: 150px;
        height: 150px;
        right: 5%;
        top: 15%;
    }
    
    .agenda-sphere-2 {
        width: 90px;
        height: 90px;
        right: 65%;
        top: 40px;
    }
    
    .agenda-sphere-3 {
        width: 50px;
        height: 50px;
        right: 15%;
        top: 80%;
    }
}

/* ============================================================
   AGENDA ACCORDION & TIMELINE STYLES
   ============================================================ */
.agenda-accordion {
    width: 100%;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.agenda-day-card {
    background: rgba(0, 10, 40, 0.45);
    border: 1px solid rgba(0, 82, 255, 0.35);
    border-radius: 20px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.agenda-day-card:hover {
    border-color: rgba(0, 82, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.12);
}

.agenda-day-card.active {
    border-color: rgba(0, 82, 255, 0.8);
    box-shadow: 0 15px 40px rgba(0, 82, 255, 0.18);
    background: rgba(0, 8, 32, 0.65);
}

.agenda-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.agenda-day-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.day-badge-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.day-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 82, 255, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    line-height: 1.1;
    background: rgba(0, 12, 48, 0.8);
}

.day-lbl {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-val {
    font-size: 1.35rem;
    font-weight: 700;
}

.day-title-date {
    font-size: clamp(1.15rem, 1.1rem + 0.5vw, 1.5rem);
    font-weight: 600;
    color: #ffffff;
}

.day-toggle-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.agenda-day-card.active .day-toggle-arrow {
    transform: rotate(180deg);
    background: rgba(0, 82, 255, 0.15);
    border-color: rgba(0, 82, 255, 0.3);
}

.agenda-day-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.agenda-day-card.active .agenda-day-body {
    max-height: 5000px;
}

.agenda-sessions-list {
    padding: 0 32px 32px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Timeline Vertical Line */
.agenda-sessions-list::before {
    content: '';
    position: absolute;
    left: 209px; /* Centered with the timeline node icon circles */
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 82, 255, 0.8) 0%, rgba(0, 82, 255, 0.1) 100%);
    opacity: 0.5;
}

/* Row Layout */
.agenda-session-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    transition: background 0.3s ease;
}

.agenda-session-row:last-child {
    border-bottom: none;
}

/* Row Columns */
.session-time {
    width: 140px;
    flex-shrink: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #a3c5e0;
    text-align: right;
    letter-spacing: -0.2px;
}

.session-timeline-node {
    width: 38px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.session-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0052ff;
    border: 2px solid #000924;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    box-shadow: 0 0 15px rgba(0, 82, 255, 0.3);
}

.session-badge-cell {
    width: 130px;
    flex-shrink: 0;
}

.session-type-badge {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 800;
    color: #a3c5e0;
    background: rgba(0, 82, 255, 0.12);
    border: 1px solid rgba(0, 82, 255, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.session-title-cell {
    flex-grow: 1;
    font-size: 1.12rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.45;
    padding-right: 24px;
}

.session-speaker-cell {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Speaker Bio Subcard */
.session-speaker-bio {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 100%;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.session-speaker-bio:hover {
    background: rgba(0, 82, 255, 0.05);
    border-color: rgba(0, 82, 255, 0.2);
}

.speaker-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 82, 255, 0.5);
    flex-shrink: 0;
}

.speaker-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.speaker-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speaker-role {
    font-size: 0.74rem;
    color: #a3c5e0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.speaker-country {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2px;
}

.speaker-flag {
    width: 16px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Panel/Participants Count */
.session-panel-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a3c5e0;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.session-panel-info i {
    font-size: 0.9rem;
    color: #0052ff;
}

/* Responsive Styles for Accordion */
@media (max-width: 1024px) {
    .agenda-sessions-list::before {
        left: 179px;
    }
    
    .session-time {
        width: 110px;
        font-size: 0.95rem;
    }
    
    .session-badge-cell {
        width: 110px;
    }
    
    .session-title-cell {
        font-size: 1.05rem;
    }
    
    .session-speaker-cell {
        width: 280px;
    }
    
    .session-speaker-bio {
        padding: 10px 12px;
    }
    
    .speaker-avatar {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 991px) {
    .agenda-sessions-list {
        padding: 0 20px 20px 20px;
    }
    
    .agenda-sessions-list::before {
        display: none; /* Hide timeline line on smaller tablets */
    }
    
    .agenda-session-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 0;
    }
    
    .session-time {
        width: auto;
        text-align: left;
        color: #ffffff;
        font-size: 1rem;
        background: rgba(0, 82, 255, 0.15);
        padding: 2px 10px;
        border-radius: 4px;
    }
    
    .session-timeline-node {
        display: none; /* Hide circles */
    }
    
    .session-badge-cell {
        width: auto;
    }
    
    .session-type-badge {
        width: auto;
        padding: 3px 8px;
    }
    
    .session-title-cell {
        padding-right: 0;
        font-size: 1.1rem;
    }
    
    .session-speaker-cell {
        width: 100%;
    }
    
    .session-speaker-bio {
        background: rgba(255, 255, 255, 0.03);
    }
}

@media (max-width: 576px) {
    .agenda-day-header {
        padding: 20px 20px;
    }
    
    .day-badge-wrap {
        gap: 16px;
    }
    
    .day-circle {
        width: 52px;
        height: 52px;
    }
    
    .day-lbl {
        font-size: 0.65rem;
    }
    
    .day-val {
        font-size: 1.1rem;
    }
    
    .day-title-date {
        font-size: 1.1rem;
    }
    
    .day-toggle-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* Custom Footer Background Color Override */
.editorial-footer {
    background: #000028 !important;
}

/* Hide navigation CTA pill on mobile for this page */
@media (max-width: 768px) {
    .nav-cta-pill {
        display: none !important;
    }
}


/* ============================================================
   IV ENCUENTRO — Logros section overrides (scoped to this page)
   ============================================================ */

/* Layout: heading + intro en una sola fila usando grid.
   Las clases flex/w-full/flex-col del div son Tailwind y no están cargadas. */
.logros-section .flex.w-full.flex-col {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 3rem;
}

/* El heading ocupa solo su ancho natural, alineado a la izquierda */
.logros-section #logros-heading.logros-heading-text {
    justify-content: flex-start;
    white-space: nowrap;
}

/* Intro text: centrado verticalmente, sin margen top */
.logros-section #logros-intro {
    display: flex !important;
    align-items: center;
    margin-top: 0 !important;
    opacity: 1;
}

.logros-section .logros-intro-text {
    text-align: left;
    max-width: 38ch;
}

/* Stack back to column on mobile */
@media (max-width: 768px) {
    .logros-section .flex.w-full.flex-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 0.5rem;
    }

    .logros-section #logros-heading.logros-heading-text {
        white-space: normal;
        justify-content: center;
        text-align: center;
    }

    .logros-section .logros-intro-text {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   "Presentación" — Dropdown de previsualización de reels
   ============================================ */
.slide-nav-video-toggle,
.nav-video-toggle {
    background: none;
    border: none;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.slide-nav-video-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slide-nav-video-caret {
    width: 14px;
    height: 14px;
    margin-left: auto;
    opacity: 0.7;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.slide-nav-video-toggle[aria-expanded="true"] .slide-nav-video-caret {
    transform: rotate(180deg);
}

.video-preview-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Mobile: se despliega en línea, debajo del toggle, dentro del panel deslizante */
.slide-nav-item-video .video-preview-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding-left: 24px;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.slide-nav-item-video .video-preview-panel.open {
    max-height: 520px;
    opacity: 1;
    margin-top: 14px;
}

/* Desktop: flyout flotante debajo del link del nav */
.nav-video-dropdown {
    position: relative;
}

.video-preview-panel--desktop,
.video-preview-panel--icon {
    /* Grid en vez de flex-wrap: con ancho fijo, flex dejaba un hueco vacío
       a la derecha porque los items (120px) no llenaban el contenedor */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translate(-50%, -8px);
    background: rgba(8, 18, 38, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px;
    width: min(90vw, 320px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 500;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* nav-left no traía flex propio: al agregar el ícono como hermano del
   logo (fuera del <a>), quedaba apilado debajo en vez de al costado */
.nav-left {
    display: flex;
    align-items: center;
}

/* Icono YouTube junto al logo — solo visible en mobile, donde el nav
   horizontal ("Presentación"/"Agenda") se oculta detrás del burger menu */
.nav-video-icon-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    border-radius: 50%;
    background: #ff0000;
    border: none;
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    animation: nav-video-icon-pulse 2.2s ease-in-out infinite;
}

.nav-video-icon-btn svg {
    width: 14px;
    height: 14px;
}

@keyframes nav-video-icon-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.45); }
    50% { box-shadow: 0 0 0 7px rgba(255, 0, 0, 0); }
}

/* El ícono vive pegado al logo, no al borde de la pantalla: anclar el
   flyout a su propio wrapper (left:0) lo saca de la pantalla por la
   derecha. Se fija respecto al viewport en su lugar. */
.nav-video-dropdown--icon .video-preview-panel--icon {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    grid-template-columns: repeat(2, 1fr);
    transform: translateY(-8px);
}

/* Grid de 2 columnas: dejar que el item llene su columna (stretch, el
   default) en vez de un ancho fijo. justify-items:center quedaba de
   cuando el panel era de una sola columna: con 2 columnas hacía que
   cada item se dimensionara "a su contenido" en vez de a la columna,
   y como el thumbnail es width:100% de un padre sin ancho resuelto,
   cada video terminaba con un tamaño distinto e inconsistente */
.nav-video-dropdown--icon .video-preview-panel--icon .video-preview-item {
    width: auto;
}

.nav-video-dropdown--icon .video-preview-panel--icon.open {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .nav-video-icon-btn {
        display: inline-flex;
    }
}

.video-preview-panel--desktop.open,
.video-preview-panel--icon.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.video-preview-item {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 120px;
    color: #ffffff;
}

/* En los flyouts (grid de 2 columnas) los items deben llenar su columna
   en vez de quedarse en 120px fijos, o el ancho fijo del panel vuelve a
   dejar un hueco a la derecha */
.video-preview-panel--desktop .video-preview-item,
.video-preview-panel--icon .video-preview-item {
    width: auto;
    /* Los grid items tienen min-width:auto por defecto: sin esto, una
       etiqueta larga sin espacios para partir empuja la columna más
       ancha que su 1fr y desborda el panel por el costado */
    min-width: 0;
}

/* Con un número impar de videos, el último queda solo en su fila y
   pegado a la columna izquierda con un hueco vacío al lado: centrarlo
   ocupando ambas columnas en vez de dejarlo descuadrado */
.video-preview-panel--desktop .video-preview-item:last-child:nth-child(odd),
.video-preview-panel--icon .video-preview-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 140px;
}

.video-preview-thumb {
    /* 9:16: los thumbnails hqdefault de Shorts vienen en un lienzo 4:3
       con el video real centrado y una copia borrosa rellenando los
       costados. Un contenedor cuadrado (1:1) dejaba ese "fondo doble"
       visible; con 9:16 el crop cae justo sobre el video real. */
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.video-preview-item:hover .video-preview-thumb img {
    transform: scale(1.06);
}

.video-preview-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-preview-play svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    background: rgba(0, 82, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
}

.video-preview-item:hover .video-preview-play svg {
    transform: scale(1.1);
    background: rgba(0, 82, 255, 1);
}

.video-preview-label {
    font-size: 0.72rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    opacity: 0.9;
}

/* Lightbox de reproducción */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-lightbox.open {
    opacity: 1;
}

.video-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.video-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.video-lightbox-close svg {
    width: 20px;
    height: 20px;
}

.video-lightbox-frame {
    position: relative;
    z-index: 1;
    width: min(92vw, calc(90vh * 9 / 16));
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: #000;
}

.video-lightbox-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .video-preview-panel--desktop {
        display: none;
    }
}

/* ============================================================
   LIVE BADGE — Botón "EN VIVO" (transmisión YouTube)
   Solo box-shadow/opacity (paint, no layout) para evitar lag.
   ============================================================ */
.hero-top-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red-ucv);
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    border-radius: 50px;
    white-space: nowrap;
    animation: liveBadgePulse 2.2s ease-out infinite;
    transition: transform 0.25s ease, background-color 0.25s ease;
    will-change: box-shadow;
}

.live-badge:hover {
    background: #ff2233;
    transform: scale(1.05);
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
    animation: liveDotBlink 1.4s ease-in-out infinite;
}

@keyframes liveBadgePulse {
    0%   { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(227, 6, 19, 0); }
    100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

@keyframes liveDotBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* Variante Hero — solo mobile: en PC el nav ya muestra "EN VIVO" y sería redundante */
.live-badge--hero {
    display: none;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

@media (max-width: 767px) {
    .live-badge--hero {
        display: inline-flex;
    }
}

/* Variante nav de escritorio — junto a Presentación/Agenda */
.live-badge--nav {
    font-size: clamp(0.85rem, 0.75rem + 0.3vw, 1rem);
    padding: 0.35rem 0.9rem;
}

/* Variante menú deslizante móvil — respeta el estilo de slide-nav-item,
   solo lo tiñe de rojo y deja el punto siempre visible y pulsando */
.slide-nav-item--live {
    color: var(--red-ucv) !important;
}

.slide-nav-item--live:hover {
    color: #ff2233 !important;
}

.slide-dot--live {
    background-color: var(--red-ucv) !important;
    transform: scale(1) !important;
    opacity: 1 !important;
    animation: liveDotBlink 1.4s ease-in-out infinite;
}

.slide-nav-item--live:hover .slide-dot--live {
    background-color: #ff2233 !important;
}

@media (prefers-reduced-motion: reduce) {
    .live-badge,
    .live-dot,
    .slide-dot--live {
        animation: none;
    }
}

@media (max-width: 480px) {
    .live-badge--hero {
        font-size: 0.78rem;
        padding: 0.45rem 0.9rem;
    }
}
