/* =========================================================================
   PyCon Colombia 2028 — Landing v2 (ilustración PSD + sistema Figma)
   Colores, tipografía y forma de tarjetas/botones tomados del Figma
   "botones y tarjetas pycon".
   ========================================================================= */
:root {
    /* --- Tokens del Figma --- */
    --cream: #FBF6EC;        /* fondo de tarjeta: bruma cálida del atardecer */
    --orange: #E3913A;       /* borde de tarjeta: ámbar del sol bajo */
    --aqua: #EEF2E1;         /* panel interno de la tarjeta: verde salvia claro */
    --teal: #4D6E3C;         /* botón píldora: verde selva */
    --blush: #F6E5D3;        /* fondo del tablero de ponentes: durazno de la bruma */

    /* --- Derivados para contraste AA --- */
    --teal-btn: #3F5F31;     /* verde selva profundo: texto blanco 7.3:1 */
    --teal-btn-h: #2F4A24;
    --teal-ink: #2F4A24;     /* texto verde sobre crema: 9:1 */
    --ink: #1B2A17;          /* texto principal (verde casi negro): 14:1 sobre crema */
    --muted: #4E5A45;        /* texto secundario: 6.8:1 sobre crema, > 4.5:1 sobre tarjeta translúcida */
    --card-fill: rgba(251, 246, 236, .84);   /* tarjetas translúcidas sobre el recorrido 3D */
    --inset-fill: rgba(238, 242, 225, .82);
    --sky: #E9EFDD;
    --glass-fill: rgba(251, 246, 236, .74);   /* vidrio sobre el recorrido 3D */

    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius-card: 24px;      /* tarjetas redondeadas */
    --radius-inner: 14px;     /* paneles, filas y fotos dentro de las tarjetas */
    --radius-pill: 999px;
    --shadow: 0 30px 60px -30px rgba(27, 42, 23, .55), 0 2px 8px rgba(27, 42, 23, .08);
    --header-h: 64px;
    --max: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 28px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--sky);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 100;
    background: var(--teal-btn); color: #fff; padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* =========================================================================
   RECORRIDO 3D (Three.js · tour3d.js)
   El canvas queda fijo detrás de todo; el contenido se lee siempre sobre
   superficies opacas o vidrio denso, nunca directo sobre la escena.
   ========================================================================= */
.tour {
    position: fixed; left: 0; top: 0; z-index: 0; width: 100%; height: 100vh; height: 100lvh;
    overflow: hidden; pointer-events: none;
    /* mientras carga (o sin WebGL): el mismo atardecer del recorrido */
    background: linear-gradient(180deg, #7CA6D8 0%, #E4CFCB 32%, #FFDAAA 48%, #A3A672 58%, #4D6A3B 74%, #1E3822 100%);
}
.tour__canvas {
    position: absolute; inset: 0; width: 100%; height: 100%; display: block;
    opacity: 0; transition: opacity 1.4s ease;
    /* la gradación (saturación/contraste) se hace en el shader: un filter: aquí costaría una pasada extra por cuadro */
}
.tour.is-ready .tour__canvas { opacity: 1; }

/* Velo de lectura: bruma clara detrás del logo (se disipa al bajar, --hero)
   y viñeta suave en los bordes para que el centro respire */
.tour__veil {
    position: absolute; inset: 0;
    background:
        radial-gradient(62% 46% at 50% 33%, rgba(255, 249, 238, calc(var(--hero, 1) * .62)), rgba(255, 249, 238, calc(var(--hero, 1) * .2)) 58%, rgba(255, 249, 238, 0) 78%),
        radial-gradient(130% 95% at 50% 42%, rgba(8, 26, 20, 0) 52%, rgba(8, 26, 20, .42) 100%);
}

/* Destello de lente (tour3d.js las ubica en la línea sol → centro y fija la intensidad) */
.tour__flare { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .25s linear; }
.tour__flare i { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.tour__flare-glare { background: radial-gradient(closest-side, rgba(var(--c), .62), rgba(var(--c), .2) 32%, rgba(var(--c), .06) 60%, rgba(var(--c), 0)); }
.tour__flare-ring { background: radial-gradient(closest-side, rgba(var(--c), 0) 60%, rgba(var(--c), .42) 88%, rgba(var(--c), 0)); }
.tour__flare-hex {
    border-radius: 0; background: radial-gradient(closest-side, rgba(var(--c), .22), rgba(var(--c), .5));
    clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
}

/* Aviso de carga del modelo: pequeño, abajo a la izquierda, no bloquea la página
   (doble clase para ganarle al position: relative de .glass) */
.tour-status.glass {
    position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: calc(100vw - 100px);
    display: flex; align-items: center; gap: 12px; margin: 0;
    padding: 9px 16px; border-radius: var(--radius-pill);
    font-size: .82rem; font-weight: 600; line-height: 1.3; color: var(--ink);
    transition: opacity .5s ease, transform .5s ease, visibility 0s;
}
.tour-status__bar { flex: none; width: 64px; height: 4px; border-radius: 4px; background: rgba(27, 42, 23, .16); overflow: hidden; }
.tour-status__bar i { display: block; height: 100%; background: var(--teal-btn); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .25s; }
.tour-status.is-error .tour-status__bar { display: none; }
.tour-status.is-done { opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity .5s ease, transform .5s ease, visibility 0s .5s; }

@media (max-aspect-ratio: 1/1) {
    .tour__veil {
        background:
            radial-gradient(95% 34% at 50% 26%, rgba(255, 249, 238, calc(var(--hero, 1) * .62)), rgba(255, 249, 238, calc(var(--hero, 1) * .2)) 60%, rgba(255, 249, 238, 0) 80%),
            linear-gradient(0deg, rgba(10, 32, 22, .5) 0%, rgba(10, 32, 22, 0) 40%),
            radial-gradient(140% 90% at 50% 40%, rgba(8, 26, 20, 0) 55%, rgba(8, 26, 20, .38) 100%);
    }
}
@media (max-width: 720px) {
    /* en el móvil el aviso queda arriba, bajo los botones de menú e idioma (abajo tapaba los botones del inicio) */
    .tour-status.glass { left: 50%; top: 70px; bottom: auto; translate: -50% 0; max-width: calc(100vw - 32px); white-space: nowrap; font-size: .72rem; padding: 6px 12px; gap: 8px; }
    .in-view .tour-status.glass { top: calc(var(--header-h) + 18px); }
    .tour-status__bar { width: 40px; }
}

/* =========================================================================
   INDICADOR DEL RECORRIDO (tour3d.js)
   Un punto por escena a la derecha; la línea se llena con el progreso.
   ========================================================================= */
.tour-rail {
    /* centrado con flex y sin transform: un transform haría que el botón fijo del móvil se ubique respecto al riel */
    position: fixed; right: 18px; top: 0; bottom: 0; z-index: 40; pointer-events: none;
    display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 18px;
}
.tour-rail > * { pointer-events: auto; }
.in-view .tour-rail { display: none; }
.tour-rail__list {
    --rail: 0; position: relative; list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; align-items: flex-end; gap: 20px;
}
/* línea de fondo y relleno de progreso, detrás de los puntos (centrados a 11px del borde) */
.tour-rail__list::before, .tour-rail__list::after {
    content: ""; position: absolute; right: 10px; top: 11px; bottom: 11px; width: 2px; border-radius: 2px;
}
.tour-rail__list::before { background: rgba(251, 246, 236, .35); }
.tour-rail__list::after { background: var(--orange); transform-origin: top; transform: scaleY(var(--rail)); }
.tour-rail__list button {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-end;
    height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
}
/* el punto */
.tour-rail__list button::after {
    content: ""; flex: none; width: 10px; height: 10px; margin: 0 6px 0 10px; border-radius: 50%;
    background: var(--cream); box-shadow: 0 0 0 2px rgba(27, 42, 23, .35), 0 2px 8px rgba(27, 42, 23, .4);
    transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background-color .3s;
}
.tour-rail__list button:hover::after, .tour-rail__list button:focus-visible::after { transform: scale(1.3); }
.tour-rail__list button.is-active::after { background: var(--orange); transform: scale(1.45); box-shadow: 0 0 0 3px rgba(251, 246, 236, .9), 0 2px 10px rgba(27, 42, 23, .5); }
.tour-rail__list button.is-done::after { background: var(--orange); }
/* sin etiquetas visibles: el nombre de cada escena queda solo para lectores de pantalla */
.tour-rail__list button:focus-visible { outline: none; }
.tour-rail__list button:focus-visible::after { outline: 3px solid var(--orange); outline-offset: 3px; }

.tour-rail__explore {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px;
    border-radius: var(--radius-pill); cursor: pointer;
    font: 600 .82rem/1 var(--font); color: var(--ink);
}
.tour-rail__explore svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tour-rail__off, .is-exploring .tour-rail__on { display: none; }
.is-exploring .tour-rail__off { display: inline; }
/* sin escena 3D (sin WebGL o modo ligero) no hay nada que explorar */
.tour:not(.is-ready) ~ .tour-rail .tour-rail__explore { display: none; }

/* Modo explorar: la interfaz se desvanece y queda solo la selva (se sigue recorriendo con el scroll) */
main, .site-footer, .site-header, .to-top { transition: opacity .45s ease, visibility 0s; }
.is-exploring main, .is-exploring .site-footer, .is-exploring .site-header, .is-exploring .to-top {
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .45s ease, visibility 0s .45s;
}
.is-exploring .tour__veil { opacity: .4; }
.tour__veil { transition: opacity .6s ease; }

/* cuando las tarjetas llegan casi al borde, el botón baja a la esquina para no taparlas */
@media (max-width: 1480px) {
    /* (doble clase para ganarle al position: relative de .glass) */
    .tour-rail__explore.glass { position: fixed; left: 16px; bottom: 16px; height: 44px; }
}
@media (max-width: 720px) {
    /* en el móvil solo los puntos, más juntos y pegados al borde */
    .tour-rail { right: 4px; }
    .tour-rail__list { gap: 12px; }
    .tour-rail__list button::after { width: 8px; height: 8px; margin: 0 7px 0 8px; }
}

/* =========================================================================
   LIQUID GLASS
   Capa translúcida con desenfoque y saturación del fondo, bordes con luz
   especular y un brillo interior. En Chromium además se refracta el fondo
   con un filtro SVG de desplazamiento (#liquid-glass).
   Sobre la escena 3D (cielo claro, selva oscura) el relleno es más denso:
   el texto oscuro mantiene ≥ 7:1 aunque detrás pase el dosel más oscuro.
   ========================================================================= */
.glass {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .1) 42%, rgba(255, 255, 255, .04) 60%, rgba(255, 255, 255, .26) 100%),
        var(--glass-fill);
    -webkit-backdrop-filter: blur(16px) saturate(160%) brightness(1.08);
    backdrop-filter: blur(16px) saturate(160%) brightness(1.08);
    border: 1px solid rgba(255, 255, 255, .62);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, .95),
        inset 0 -1px 1px rgba(255, 255, 255, .4),
        inset 0 14px 22px -16px rgba(255, 255, 255, .95),
        inset 0 -10px 18px -14px rgba(77, 110, 60, .35),
        0 10px 30px -12px rgba(27, 42, 23, .35);
}
.glass::before {
    /* reflejo especular que sigue al puntero (--gx/--gy los actualiza main.js) */
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
    background: radial-gradient(120px 60px at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, .7), transparent 70%);
    opacity: .8;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass { background-color: rgba(251, 246, 236, .9); }
}
/* La refracción SVG se recalcula en cada cuadro del 3D que pasa por detrás: solo en calidad alta */
.has-refraction.tour-hq .glass--refract {
    backdrop-filter: url(#liquid-glass) blur(8px) saturate(160%) brightness(1.08);
}
/* Calidad baja: vidrio sin desenfoque (el desenfoque sobre un canvas animado es caro) y más opaco */
.tour-lite .glass {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    --glass-fill: rgba(251, 246, 236, .92);
}

/* =========================================================================
   BOTONES (píldora del Figma)
   ========================================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 48px; padding: .75em 1.7em;
    border-radius: var(--radius-pill); border: 2px solid transparent;
    font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal-btn); color: #fff; box-shadow: 0 10px 24px -12px rgba(47, 74, 36, .9); }
.btn--primary:hover { background: var(--teal-btn-h); }
.btn--outline { border-color: var(--teal-btn); color: var(--teal-ink); background: transparent; }
.btn--outline:hover, .btn--outline[aria-pressed="true"] { background: var(--aqua); }
.btn--outline[aria-pressed="true"] { border-color: var(--orange); }
.btn--glass { color: var(--ink); }
.btn--sm { min-height: 40px; padding: .5em 1.2em; font-size: .9rem; }

/* =========================================================================
   TARJETAS (crema + borde naranja + panel aqua, como en el Figma)
   ========================================================================= */
/* Tarjetas translúcidas para que el recorrido 3D se vea detrás. Con 84 % de crema, aun
   sobre la selva más oscura, el texto principal queda > 12:1 y el secundario > 4.5:1 */
.card {
    position: relative;
    background: var(--card-fill);
    border: 1.5px solid var(--orange);
    border-radius: var(--radius-card);
    padding: clamp(24px, 4vw, 56px);
    box-shadow: var(--shadow);
}
/* calidad alta: un leve desenfoque del fondo detrás de la tarjeta mejora aún más la lectura */
.tour-hq .card { -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
.inset { background: var(--inset-fill); border-radius: var(--radius-inner); padding: clamp(16px, 2.4vw, 28px); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6em; margin-bottom: .9em;
    font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.title {
    font-weight: 600; letter-spacing: -.02em; line-height: 1.05;
    font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: .5em; color: var(--ink);
}
.title--xl { font-size: clamp(2.2rem, 5.2vw, 4.4rem); letter-spacing: -.03em; }
.title--xl span { display: block; font-size: .82em; color: var(--teal-ink); }
.muted { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 1.2em; padding: 0; }
.tag {
    display: inline-flex; align-items: center; gap: .5em; margin: 0;
    padding: .45em 1.1em; border-radius: var(--radius-pill);
    border: 1.5px solid var(--teal); color: var(--teal-ink); background: var(--cream);
    font-size: .875rem; font-weight: 500; line-height: 1.3;
}
.tag svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; }
.tag--fill { background: var(--aqua); }

.checks { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: .55em; }
.checks li { position: relative; padding-left: 1.8em; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: .35em; width: 1.1em; height: 1.1em; border-radius: 50%;
    background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324575B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
    border: 1.5px solid var(--teal);
}

/* =========================================================================
   CABECERA: solo el idioma al inicio; barra liquid glass tras el scroll
   ========================================================================= */
.site-header {
    position: fixed; top: 12px; left: 0; right: 0; z-index: 50;
    padding: 0 var(--gutter);
    pointer-events: none;
}
.site-header__bar {
    max-width: var(--max); margin: 0 auto; height: var(--header-h);
    display: flex; align-items: center; gap: 16px;
    padding: 0 104px 0 22px; /* espacio a la derecha para el selector de idioma */
    border-radius: var(--radius-pill);
    opacity: 0; transform: translateY(-140%); visibility: hidden;
    transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .25, 1.15), visibility 0s .55s;
}
.site-header__bar.glass { --glass-fill: rgba(251, 246, 236, .82); }
.is-scrolled .site-header__bar {
    opacity: 1; transform: none; visibility: visible; pointer-events: auto;
    transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .25, 1.15), visibility 0s;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; flex: none; }
.brand__logo { width: 34px; height: 34px; }
.brand__text { font-size: 1.15rem; letter-spacing: -.01em; }
.brand__text b { color: var(--teal-ink); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a:not(.btn) {
    position: relative; padding: 8px 12px; border-radius: var(--radius-pill);
    font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--ink);
    transition: background-color .2s;
}
.main-nav a:not(.btn):hover { background: rgba(255, 255, 255, .55); }
.main-nav a.is-active { background: rgba(238, 242, 225, .85); box-shadow: inset 0 0 0 1.5px var(--teal); }
.main-nav__cta { margin-left: 8px; }

/* Desplegable "Agenda" (Keynotes · Ponentes · Ver la agenda) */
.nav-group { position: relative; }
.nav-group__toggle {
    display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px 8px 12px; border: 0; border-radius: var(--radius-pill);
    background: none; cursor: pointer; font-size: .92rem; font-weight: 500; color: var(--ink); transition: background-color .2s;
}
.nav-group__toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.nav-group__toggle:hover, .nav-group.is-open .nav-group__toggle { background: rgba(255, 255, 255, .55); }
.nav-group.is-open .nav-group__toggle svg { transform: rotate(180deg); }
/* en la pantalla de agenda el botón del grupo también queda marcado */
.nav-group:has(a.is-active) .nav-group__toggle { background: rgba(238, 242, 225, .85); box-shadow: inset 0 0 0 1.5px var(--teal); }
.nav-group__menu {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px; z-index: 5;
    display: grid; gap: 2px; padding: 8px; border-radius: 18px;
    background: var(--cream); border: 1.5px solid var(--orange); box-shadow: 0 20px 40px -16px rgba(27, 42, 23, .55);
    opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.nav-group.is-open .nav-group__menu { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .2s; }
.nav-group__menu a:not(.btn) { padding: 10px 14px; border-radius: 12px; }

.lang-toggle {
    position: absolute; top: calc((var(--header-h) - 44px) / 2);
    right: calc(var(--gutter) + max(0px, (100vw - var(--gutter) * 2 - var(--max)) / 2) + 10px);
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    width: 86px; height: 44px; padding: 4px; border-radius: var(--radius-pill);
    cursor: pointer; pointer-events: auto;
    font-weight: 600; font-size: .85rem; letter-spacing: .04em;
}
.lang-toggle span[data-lang] { position: relative; z-index: 1; text-align: center; color: var(--muted); transition: color .25s; }
.lang-toggle span.is-active { color: #fff; }
.lang-toggle__thumb {
    position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
    border-radius: var(--radius-pill); background: var(--teal-btn);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45), 0 4px 10px -4px rgba(47, 74, 36, .9);
    transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
html[lang="en"] .lang-toggle__thumb { transform: translateX(100%); }
.is-scrolled .lang-toggle { box-shadow: none; background: rgba(255, 255, 255, .25); }

/* Botón "Menú" visible al entrar (espejo del selector de idioma); se oculta cuando aparece la barra */
.menu-reveal {
    position: absolute; top: calc((var(--header-h) - 44px) / 2);
    left: calc(var(--gutter) + max(0px, (100vw - var(--gutter) * 2 - var(--max)) / 2) + 10px);
    display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px;
    border-radius: var(--radius-pill); cursor: pointer; pointer-events: auto;
    font-weight: 600; font-size: .9rem; color: var(--ink);
    transition: opacity .3s, transform .3s, visibility 0s;
}
.menu-reveal__icon { display: grid; gap: 4px; }
.menu-reveal__icon i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-reveal:hover { --glass-fill: rgba(251, 246, 236, .92); }
.is-scrolled .menu-reveal { opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .3s, transform .3s, visibility 0s .3s; }

.nav-toggle {
    display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .5); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle__bar { width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   HERO
   ========================================================================= */
main { position: relative; z-index: 1; }

.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; align-items: center;
    padding: clamp(96px, 15vh, 180px) var(--gutter) 120px;
    text-align: center;
}
.hero__float { width: min(100%, 940px); display: flex; flex-direction: column; align-items: center; will-change: transform; }

/* El logo flota (levitate + puntero en tour3d.js), sin sombras: la bruma del
   velo (.tour__veil) es la que lo separa del cielo y del dosel */
.hero__logo { position: relative; animation: levitate 6s ease-in-out infinite; }
.logo {
    display: grid; grid-template-columns: auto auto; align-items: center; justify-content: center;
    column-gap: clamp(10px, 1.6vw, 22px); color: #1E3822;
}
.logo__mark { width: clamp(64px, 11vw, 136px); height: auto; }
.logo__word {
    font-weight: 800; text-transform: uppercase; letter-spacing: -.045em; line-height: .86;
    font-size: clamp(4.4rem, 15vw, 11.5rem);
    /* blanco al 80 %: deja ver la luz del atardecer a través de la palabra; una sombra muy difusa la separa de la bruma */
    color: rgba(255, 255, 255, .8);
    text-shadow: 0 2px 30px rgba(30, 56, 34, .35), 0 1px 3px rgba(30, 56, 34, .18);
}
.logo__sub {
    grid-column: 1 / -1; margin-top: .55em;
    font-size: clamp(1rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: .42em; text-transform: uppercase;
    padding-left: .42em; color: #1E3822;
}
.logo__sub b { color: var(--teal-ink); }
@keyframes levitate {
    0%, 100% { transform: translateY(0) rotate(-.4deg); }
    50% { transform: translateY(-18px) rotate(.4deg); }
}

/* Tarjeta breve "¿Qué es PyCon?" bajo el logo */
.hero__intro {
    max-width: 640px; margin-top: clamp(18px, 3vh, 26px); padding: 16px 24px 18px;
    border-radius: 22px; text-align: center; color: var(--ink);
}
.hero__intro p { margin: 0; font-size: .98rem; line-height: 1.55; }
.hero__intro .hero__intro-title {
    margin-bottom: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink);
}
@media (max-width: 720px) {
    /* en el móvil todo el inicio (logo, tarjeta, datos y botones) cabe en la primera pantalla */
    .hero { padding-top: 76px; padding-bottom: 96px; }
    .hero__intro { margin-top: 14px; padding: 12px 16px 14px; }
    .hero__intro p { font-size: .88rem; line-height: 1.5; }
    .hero__chips { margin-top: 20px !important; gap: 8px; }
    .hero__ctas { margin-top: 16px; gap: 10px; }
}

.hero__chips {
    width: 100%; margin-top: clamp(36px, 6vh, 60px);
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.chip {
    display: inline-flex; align-items: center; gap: 12px; margin: 0;
    padding: 10px 22px 10px 14px; border-radius: var(--radius-pill); text-align: left;
    font-weight: 600; font-size: 1rem; line-height: 1.25; color: var(--ink);
}
.chip svg { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--teal-btn); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chip small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

.scroll-hint {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px 8px 20px; border-radius: var(--radius-pill);
    font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink);
}
.scroll-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* =========================================================================
   SECCIONES
   ========================================================================= */
.section {
    /* más angostas que la cabecera: deja una franja de paisaje a cada lado */
    --section-max: 1060px;
    max-width: calc(var(--section-max) + var(--gutter) * 2); margin: 0 auto;
    /* aire entre secciones: en ese tramo la cámara pasa de un hito al siguiente y se ve solo el paisaje */
    --air: clamp(110px, 32vh, 340px);
    padding: var(--air) var(--gutter) 0;
    /* los enlaces del menú llevan al contenido, no al aire que hay encima */
    scroll-margin-top: calc(var(--header-h) + 28px - var(--air));
}
.section--narrow { max-width: calc(760px + var(--gutter) * 2); }
/* al pasar, cada sección se difumina (main.js escribe --pass: 1 en el centro → 0 fuera de pantalla) */
#landing > .section { opacity: var(--pass, 1); }
#landing > .section.is-gone { pointer-events: none; }

/* Pausas de paisaje: una pantalla casi vacía con una frase sobre el recorrido */
.pause {
    min-height: 88vh; min-height: 88svh; padding: 0 var(--gutter);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    color: rgba(255, 255, 255, .92); text-shadow: 0 2px 24px rgba(10, 26, 16, .6), 0 1px 3px rgba(10, 26, 16, .5);
}
.pause__line {
    margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.05;
    font-size: clamp(2rem, 5.4vw, 4.2rem);
}
.pause__sub { margin: .7em 0 0; max-width: 34ch; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 500; }
/* Títulos de sección directamente sobre la escena, sin tarjeta (lo que se lee o se toca
   sí va en tarjeta). Una sombra difusa oscurece apenas el paisaje detrás para que el
   blanco se lea igual sobre el cielo claro */
.section-head {
    position: relative; isolation: isolate; margin-bottom: 28px; max-width: 900px;
    color: #fff; text-shadow: 0 2px 22px rgba(10, 26, 16, .55), 0 1px 3px rgba(10, 26, 16, .45);
}
.section-head::before {
    content: ""; position: absolute; z-index: -1; inset: -40px -60px -30px -80px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(12, 30, 18, .42), rgba(12, 30, 18, 0));
}
.section-head .eyebrow { color: #F6E5D3; }
.section-head .title { margin-bottom: .2em; color: #fff; }
.section-head .title--xl span { color: #D6E8B4; }
.section-head p:last-child { margin-bottom: 0; color: rgba(255, 255, 255, .92); font-size: 1.08rem; font-weight: 500; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Acerca ---------- */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.about__text p:last-child { margin-bottom: 0; }
.inset__label { font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: .6em; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.countdown div { background: var(--cream); border: 1.5px solid var(--orange); border-radius: var(--radius-inner); padding: 12px 4px; }
.countdown b { display: block; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown small { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.stats { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--aqua); border-radius: var(--radius-inner); padding: 18px 20px; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1; color: var(--teal-ink); letter-spacing: -.02em; }
.stat span { font-size: .92rem; color: var(--muted); }

/* ---------- Ponentes (tarjeta del Figma) ---------- */
.speakers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.speaker {
    position: relative; display: flex; flex-direction: column;
    padding: 7% 7% 6%; text-align: center;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.speaker:hover, .speaker:focus-within { transform: translateY(-6px); box-shadow: 0 40px 70px -30px rgba(27, 42, 23, .6); }
.speaker__panel { padding: 7% 7% 8%; margin-bottom: 16px; }
.speaker__photo { aspect-ratio: 690 / 641; margin-bottom: 14px; }
.speaker h3 { font-size: 1.12rem; font-weight: 500; line-height: 1.25; margin-bottom: .3em; }
.speaker__role { font-size: .88rem; color: var(--muted); font-weight: 500; line-height: 1.4; margin: 0; }
/* bio completa, recortada a 4 líneas para que todas las tarjetas midan igual (el perfil la muestra entera) */
.speaker__bio {
    font-size: .88rem; color: var(--muted); line-height: 1.55; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
/* la charla de la persona, para que la tarjeta no se vea vacía */
.speaker__talk { flex: 1; text-align: left; background: var(--inset-fill); border-radius: var(--radius-inner); padding: 12px 14px; margin-bottom: 16px; }
.speaker__talk p { margin: 0; }
.speaker__talk-label { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.speaker__talk-title { font-weight: 600; font-size: .95rem; line-height: 1.35; margin: 4px 0 !important; }
.speaker__talk-meta { font-size: .8rem; color: var(--muted); }
.speaker__open { position: absolute; inset: 0; z-index: 1; border: 0; background: none; cursor: pointer; border-radius: var(--radius-card); }
.speaker .social { justify-content: center; position: relative; z-index: 2; gap: 6px; flex-wrap: wrap; }
.speaker__cta { position: relative; z-index: 2; align-self: center; margin-top: 16px; }

/* Keynotes: las 5 en una fila en pantallas anchas */
/* La sección de keynotes es más ancha que las demás: las 5 tarjetas caben con sus 5 redes en fila */
#keynotes.section { --section-max: 1260px; }
.speakers--keynotes { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }
/* (doble clase en el enlace: le gana a .speaker .social a, que va después) */
.speakers--keynotes .speaker .social { gap: 4px; flex-wrap: wrap; }
.speakers--keynotes .speaker .social a { width: 32px; height: 32px; }
.speakers--keynotes .speaker .social svg { width: 16px; height: 16px; }

/* Ponentes: una sola fila con exactamente --per tarjetas visibles (4 en escritorio),
   sin tarjetas cortadas; las flechas pasan de a una "página" de tarjetas */
.carousel { position: relative; }
.speakers--row {
    --per: 4; --gap: clamp(16px, 2vw, 24px);
    display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 4px; padding: 10px 4px 22px; margin: -10px -4px 0;
    scrollbar-width: none;   /* sin barra: se navega con las flechas (o deslizando en pantallas táctiles) */
}
.speakers--row::-webkit-scrollbar { display: none; }
/* ancho = (fila − huecos) / tarjetas visibles · padding fijo: en un flex el % se calcularía sobre toda la fila */
.speakers--row > .speaker { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; scroll-snap-align: start; padding: 20px 18px 18px; }
@media (max-width: 1080px) { .speakers--row { --per: 3; } }
@media (max-width: 820px) { .speakers--row { --per: 2; } }
@media (max-width: 540px) { .speakers--row { --per: 1; } }
.speakers--row:focus-visible { outline-offset: 6px; }
.carousel__btn {
    position: absolute; top: 42%; z-index: 3; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; border: 1.5px solid var(--orange);
    background: var(--cream); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(27, 42, 23, .6);
    transition: opacity .2s, transform .2s;
}
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__btn--prev { left: -20px; }
.carousel__btn--next { right: -20px; }
.carousel__btn:hover:not(:disabled) { transform: scale(1.06); }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
    /* en el móvil las flechas quedan dentro del borde para no salirse de la pantalla */
    .carousel__btn { width: 40px; height: 40px; top: 30%; }
    .carousel__btn--prev { left: -6px; }
    .carousel__btn--next { right: -6px; }
}
.speaker .social a { width: 36px; height: 36px; }
.speaker--tba .avatar span { font-size: 4rem; }

.avatar {
    --hue: 100;
    position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius-inner);
    display: grid; place-items: center;
    background:
        radial-gradient(60% 50% at 20% 105%, hsl(calc(var(--hue) + 40) 45% 52% / .9), transparent 70%),
        radial-gradient(55% 45% at 95% 90%, hsl(calc(var(--hue) - 30) 50% 45% / .8), transparent 70%),
        radial-gradient(40% 40% at 78% 18%, hsl(42 95% 75% / .9), transparent 70%),
        linear-gradient(160deg, hsl(var(--hue) 55% 88%), hsl(var(--hue) 40% 70%));
}
.avatar::after {
    /* silueta de hojas, eco de la ilustración */
    content: ""; position: absolute; inset: auto -10% -18% -10%; height: 55%;
    background:
        radial-gradient(30% 60% at 15% 80%, hsl(calc(var(--hue) - 40) 40% 32% / .55), transparent 70%),
        radial-gradient(28% 55% at 85% 85%, hsl(calc(var(--hue) - 40) 40% 30% / .5), transparent 70%);
}
.avatar span { position: relative; z-index: 1; font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; letter-spacing: -.02em; text-shadow: 0 4px 18px rgba(27, 42, 23, .45); }
.avatar--md { width: 88px; height: 88px; flex: none; }
.avatar--md span { font-size: 1.6rem; }
/* Con foto de la persona: la imagen llena el marco y se quitan las hojas decorativas */
.avatar--photo::after { display: none; }
.avatar--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.avatar--md.avatar--photo { border-radius: 50%; }

.social { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.social a {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    color: var(--ink); background: var(--cream); border: 1.5px solid rgba(27, 42, 23, .14);
    transition: background-color .2s, color .2s, transform .2s;
}
.social a:hover { background: var(--teal-btn); color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* ---------- Charla destacada ---------- */
.talk .title { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.talk__desc { font-size: 1.05rem; max-width: 70ch; }
.mini-speaker { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.mini-speaker__body { flex: 1 1 260px; }
.mini-speaker h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: .2em; }
.mini-speaker p { margin: 0; font-size: .92rem; }

/* ---------- Agenda (vista "Schedule" del Figma) ---------- */
.schedule-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.schedule-head .title { margin-bottom: 0; }
.schedule-head__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.schedule-head__actions .tag { padding: .7em 1.2em; font-weight: 600; }
.count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: var(--radius-pill); background: var(--orange); color: var(--ink); font-size: .8em; padding: 0 .4em; }

.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.day {
    text-decoration: none; color: var(--ink);
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px;
    background: var(--cream); border: 1.5px solid var(--orange); border-radius: var(--radius-inner); cursor: pointer;
    font-weight: 500; transition: background-color .2s, color .2s, transform .2s;
}
.day b { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1; }
.day small { font-size: .75rem; font-weight: 500; opacity: .85; }
.schedule__mix { margin: -.3em 0 .8em; font-size: .9rem; font-weight: 600; color: var(--teal-ink); }
.events__alt { margin-top: 6px; }
.events__alt .events__empty { margin: 4px 0 14px; text-align: left; font-weight: 500; color: var(--ink); }
.events__alt .eyebrow { margin-top: 4px; }
.events__alt .btn-row { margin-top: 14px; }
.cal-note { margin: 0; font-size: .85rem; }
.event-page__when .cal-note[hidden], .events__alt[hidden] { display: none; }
.stat__link { display: block; text-decoration: none; color: inherit; border-radius: var(--radius-inner); }
.stat:has(.stat__link):hover { box-shadow: inset 0 0 0 1.5px var(--teal); }
.day:hover { background: var(--aqua); }
.day[aria-selected="true"], .day[aria-current="page"] { background: var(--teal-btn); border-color: var(--teal-btn); color: #fff; }

.schedule__summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.schedule__summary h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; margin-bottom: .6em; }
.schedule__summary p { margin: 0 0 .8em; font-size: .9rem; }

.search {
    display: flex; align-items: center; gap: 10px; padding: 0 18px; margin-bottom: 14px;
    background: var(--cream); border: 1.5px solid var(--teal); border-radius: var(--radius-pill);
}
.search svg { width: 22px; height: 22px; fill: none; stroke: var(--teal-ink); stroke-width: 2.2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 14px 0; font: inherit; color: var(--ink); outline: none; }
.search:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.search input::placeholder { color: var(--muted); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter { cursor: pointer; transition: background-color .2s, color .2s; }
.filter[aria-pressed="true"] { background: var(--teal-btn); border-color: var(--teal-btn); color: #fff; }

.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.event {
    display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: start;
    padding: 16px 18px; background: var(--cream); border: 1.5px solid rgba(227, 145, 58, .55); border-radius: var(--radius-inner);
}
.event--keynote { border-color: var(--orange); border-width: 2px; }
.event--break { background: transparent; border-style: dashed; border-color: rgba(77, 110, 60, .5); }
.event time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.05rem; color: var(--teal-ink); line-height: 1.3; }
.event time small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); }
.event h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.35; margin-bottom: .3em; }
.event h3 a { text-decoration: none; }
.event h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.event p { margin: 0; font-size: .88rem; color: var(--muted); }
.event .tags { margin: .6em 0 0; gap: 6px; }
.event .tag { font-size: .75rem; padding: .25em .8em; }
.star {
    width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--teal); background: var(--cream);
    display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .2s;
}
.star svg { width: 20px; height: 20px; fill: none; stroke: var(--teal-ink); stroke-width: 2; stroke-linejoin: round; }
.btn .ico, .crumbs .ico { width: 1.15em; height: 1.15em; }
.star:hover { transform: scale(1.08); }
.star[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); }
.star[aria-pressed="true"] svg { fill: var(--ink); stroke: var(--ink); }
.events__empty { margin: 12px 0 0; text-align: center; color: var(--muted); }

/* ---------- Boletas ---------- */
/* Una sola boleta: precio | qué incluye | botón de compra */
/* precio | qué incluye; el botón de compra va siempre abajo a la izquierda */
.ticket--single {
    display: grid; grid-template-columns: minmax(200px, 1fr) 1.3fr; gap: clamp(20px, 3vw, 40px); align-items: center;
    background: linear-gradient(110deg, rgba(238, 242, 225, .9), var(--card-fill) 45%); border-width: 2.5px;
}
.ticket h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: .3em; }
.ticket__price { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.02em; color: var(--teal-ink); margin-bottom: .3em; line-height: 1.1; }
.ticket__price small { font-size: .45em; font-weight: 600; color: var(--muted); }
.ticket__main .muted { margin: 0; font-size: .92rem; }
.ticket .checks { margin: 0; font-size: .97rem; }
/* Boleta general (ancha) + becas (angosta, a la derecha) */
.tickets-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(14px, 1.8vw, 24px); align-items: stretch; }
.ticket--grant { display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 32px); }
.ticket--grant .eyebrow { margin-bottom: .6em; }
.ticket--grant h3 { font-size: 1.15rem; }
.ticket--grant .muted { flex: 1; font-size: .92rem; margin-bottom: 18px; }
.ticket--grant .btn { align-self: flex-start; }
.ticket--single > .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 860px) {
    .tickets-row { grid-template-columns: 1fr; }
    .ticket--single { grid-template-columns: 1fr; align-items: start; }
}
.field__hint { margin: 0; font-size: .82rem; color: var(--muted); }
.grant__covers { margin: 4px 0 8px; }

/* ---------- Patrocinadores (vista "Trusted by" del Figma) ---------- */
.sponsors { text-align: center; }
.sponsors .title { max-width: 16ch; margin-inline: auto; }
.sponsors__lead { max-width: 62ch; margin: 0 auto 1.6em; color: var(--muted); font-size: 1.05rem; }
.tier {
    display: flex; align-items: center; gap: 18px; justify-content: center;
    margin: clamp(36px, 5vw, 56px) auto 18px; max-width: 560px;
    font-size: .95rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-ink);
}
.tier::before, .tier::after { content: ""; flex: 1; height: 1.5px; background: var(--ink); opacity: .35; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 14px; justify-content: center; }
.logos--venue { grid-template-columns: minmax(0, 420px); }
.logos--platinum { grid-template-columns: repeat(2, minmax(0, 340px)); }
.logos--silverplus { grid-template-columns: repeat(2, minmax(0, 220px)); }
.sponsor-card {
    position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 22px 16px 18px; text-decoration: none; color: var(--ink);
    border: 1.5px solid transparent; transition: background-color .2s, border-color .2s, transform .25s, box-shadow .25s;
}
.sponsor-card:hover, .sponsor-card:focus-visible { background: var(--cream); border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(27, 42, 23, .5); }
.sponsor-card__name { font-weight: 600; font-size: 1.05rem; }
.sponsor-card__more { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--teal-ink); }
.sponsor-card__more svg { width: 14px; height: 14px; transition: transform .2s; }
.sponsor-card:hover .sponsor-card__more svg { transform: translateX(3px); }
.sponsor-logo {
    display: grid; place-items: center; width: 72px; aspect-ratio: 1; border-radius: 18px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 78%, white), var(--brand));
    color: #fff; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), 0 8px 16px -10px var(--brand);
}
.sponsor-logo b { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.logos--venue .sponsor-logo, .logos--platinum .sponsor-logo { width: 92px; }
.sponsor-logo--big { width: clamp(120px, 18vw, 180px); border-radius: 32px; }
.sponsor-logo--big b { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- Lugar ---------- */
.venue { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.venue__map { padding: 10px; min-height: 340px; }
.venue__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: 2px; display: block; }

/* ---------- CFP + Comunidad ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.duo .card { display: flex; flex-direction: column; }
.duo .card p { flex: 1; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
/* Aire mínimo entre un botón y lo que tiene encima (etiquetas, textos, listas) en todo el sitio */
.tags + :is(.btn, .btn-row) { margin-top: 18px; }
.tags + .room-btn { margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--aqua); border-radius: var(--radius-inner); border: 1.5px solid transparent; transition: border-color .2s; }
.faq details[open] { border-color: var(--orange); background: var(--cream); }
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
    background: var(--teal-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 60% no-repeat;
    transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter__row { display: flex; gap: 16px; max-width: 520px; margin: 0 auto; }
.newsletter input {
    flex: 1; min-width: 0; padding: 0 22px; min-height: 52px; font: inherit; color: var(--ink);
    background: var(--aqua); border: 1.5px solid var(--teal); border-radius: var(--radius-pill);
}
.newsletter input:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.newsletter__msg { min-height: 1.6em; margin: 12px 0 0; font-weight: 500; color: var(--teal-ink); }
.newsletter__msg.is-error { color: #A3271B; }

/* ---------- Pie de página (versión anterior: franja oscura a todo el ancho) ---------- */
.site-footer { position: relative; z-index: 1; background: #1E3822; color: var(--cream); padding: 56px var(--gutter) 28px; margin-top: clamp(56px, 12vh, 140px); }
.site-footer__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__brand { font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.site-footer__h { font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; color: #B9D38A; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; color: rgba(251, 246, 236, .88); }
.site-footer a:hover { color: #F3B53A; }
.social--footer { display: flex; gap: 10px; flex-wrap: wrap; }
.social--footer li { margin: 0; }
.social--footer a { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: var(--cream); }
.social--footer a:hover { background: var(--orange); color: var(--ink); }
.site-footer__legal { max-width: var(--max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(251, 248, 234, .15); font-size: .9rem; color: rgba(251, 246, 236, .72); }

/* ---------- Volver arriba ---------- */
.to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; color: var(--ink);
    opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Modal de ponente ---------- */
.speaker-modal { padding: 0; border: 0; background: none; max-width: min(1000px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 32px); overflow: visible; }
.speaker-modal::backdrop { background: rgba(27, 42, 23, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.speaker-modal[open] .speaker-modal__card { animation: pop .35s cubic-bezier(.2, .9, .25, 1.1); }
.speaker-modal__card { max-height: calc(100vh - 32px); overflow: auto; }
.speaker-modal__grid { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(20px, 3vw, 40px); }
.speaker-modal__photo { padding: 14px; align-self: start; aspect-ratio: 1018 / 1229; }
.avatar--xl span { font-size: clamp(3rem, 8vw, 5rem); }
.speaker-modal .title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: .25em; padding-right: 40px; }
.speaker-modal .social { margin: 14px 0 6px; }
.speaker-modal__h { font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 .5em; }
.speaker-modal__talk { font-weight: 600; font-size: 1.1rem; }
.speaker-modal__session { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.speaker-modal__session > *, .speaker-modal__session .tags { margin: 0; }
.speaker-modal__session > .btn { margin-top: 4px; }   /* 18px de gap + 4px = aire claro entre etiquetas y botón */
.speaker-modal__close {
    position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid var(--teal); background: var(--cream); cursor: pointer; display: grid; place-items: center;
}
.speaker-modal__close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1120px) {
    .nav-toggle { display: flex; }
    .site-header__bar { padding-right: 104px; }
    .nav-toggle { margin-left: auto; }
    .main-nav {
        position: absolute; top: calc(100% + 10px); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
        border-radius: 24px;
        /* menú desplegado totalmente opaco: no deja ver el texto de la página detrás.
           (Dentro de la barra de vidrio un backdrop-filter anidado no desenfoca la página,
           por eso antes se transparentaba) */
        background: var(--cream);
        border: 1.5px solid var(--orange); box-shadow: 0 24px 50px -18px rgba(27, 42, 23, .6);
        max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
        opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s .25s;
    }
    .is-open .main-nav { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .25s; }
    .is-open .site-header__bar.glass { --glass-fill: var(--cream); }
    .main-nav a:not(.btn) { padding: 12px 16px; font-size: 1rem; }
    .main-nav__cta { margin: 6px 0 0; }
    /* el desplegable se abre dentro de la lista, con sangría */
    .nav-group__toggle { width: 100%; justify-content: space-between; padding: 12px 16px; font-size: 1rem; }
    .nav-group__menu {
        position: static; min-width: 0; padding: 0 0 0 14px; margin: 2px 0 2px 16px; border: 0; border-left: 2px solid var(--orange);
        border-radius: 0; box-shadow: none; background: none; display: none; transform: none;
    }
    .nav-group.is-open .nav-group__menu { display: grid; }
}

@media (max-width: 960px) {
    .about, .venue, .duo { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .speaker-modal__grid { grid-template-columns: 1fr; }
    .speaker-modal__photo { max-width: 260px; aspect-ratio: 1; }
}

@media (max-width: 720px) {
    :root { --header-h: 58px; }
    .site-header { top: 8px; }
    .lang-toggle { top: calc((var(--header-h) - 44px) / 2); }
    .brand__text { font-size: 1.05rem; }

    .logo { grid-template-columns: 1fr; row-gap: 6px; }
    .logo__mark { justify-self: center; }
    .logo__sub { letter-spacing: .3em; }
    .hero__chips { justify-content: center; }
    .chip { width: 100%; max-width: 320px; }
    .hero__ctas { width: 100%; flex-direction: column; align-items: center; }
    .hero__ctas .btn { width: 100%; max-width: 320px; }

    .stats { grid-template-columns: repeat(2, 1fr); }
    .countdown { gap: 6px; }
    .logos, .logos--platinum, .logos--silverplus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logos--venue { grid-template-columns: 1fr; }
    .event { grid-template-columns: 1fr auto; gap: 6px 12px; }
    .event time { grid-column: 1; }
    .event time small { display: inline; margin-left: 6px; }
    .event time small:first-child { margin: 0 8px 0 0; }
    .event > div { grid-column: 1 / -1; grid-row: 2; }
    .event .star { grid-column: 2; grid-row: 1; }
    .newsletter__row { flex-direction: column; }
    .schedule-head__actions { width: 100%; }
}

@media (max-width: 420px) {
    .days { gap: 6px; }
    .day { font-size: .85rem; }
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   PÁGINAS INTERNAS (agenda, mi agenda, evento + mapa, charla, patrocinador,
   código de conducta, reporte y voluntariado)
   ========================================================================= */
.in-view .site-footer { margin-top: clamp(48px, 8vh, 96px); }
.view { position: relative; z-index: 1; outline: none; min-height: 100vh; }
.count[hidden] { display: none; }
.view-wrap {
    max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
    padding: calc(var(--header-h) + 40px) var(--gutter) 0;
    display: grid; gap: clamp(18px, 2.4vw, 28px);
    animation: view-in .45s cubic-bezier(.2, .8, .2, 1);
}
.view-wrap > *, .event-page__grid > *, .map-card__grid > *, .recommend__grid > * { min-width: 0; }
.view-wrap--narrow { max-width: calc(880px + var(--gutter) * 2); }
@keyframes view-in { from { opacity: 0; transform: translateY(18px); } }
.view h1:focus { outline: none; }

.crumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs .btn--glass { color: var(--ink); }
.view-foot { justify-content: center; }
.btn-row--center { justify-content: center; }
.sub-h { font-size: 1.15rem; font-weight: 600; margin: 1.2em 0 .6em; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--xl { width: 48px; height: 48px; color: var(--orange); fill: var(--orange); }
.eyebrow .ico { width: 1.3em; height: 1.3em; }
.eyebrow--center { justify-content: center; }
.tag--lg { padding: .6em 1.3em; font-size: .95rem; }
.link-btn { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--teal-ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(77, 110, 60, .45); text-underline-offset: 3px; }
.link-btn:hover { text-decoration-color: var(--orange); }

/* Botón de sala (como en el Figma): lleva al mapa del evento */
.room-btn {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: .45em 1em .45em .8em;
    border-radius: var(--radius-pill); background: var(--teal-btn); color: #fff; text-decoration: none;
    font-size: .85rem; font-weight: 600; transition: background-color .2s, transform .2s;
}
.room-btn:hover { background: var(--teal-btn-h); transform: translateY(-1px); }
.room-btn .ico { width: 16px; height: 16px; }

/* ---------- Teaser de la agenda en la landing ---------- */
.teaser { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.teaser .title { margin-bottom: .3em; }
.teaser p:last-child { margin: 0; max-width: 60ch; }

/* ---------- Agenda: recomendación ---------- */
.recommend { margin-bottom: 20px; border: 1.5px solid var(--orange); }
.recommend .eyebrow { margin-bottom: .6em; }
.recommend__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.recommend__title { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; margin-bottom: .2em; }
.recommend__title a { text-decoration: none; }
.recommend__title a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.recommend p { margin: 0 0 .6em; font-size: .9rem; }
.recommend .tags { margin: 0; }
.recommend__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.recommend__actions .room-btn { margin: 0; }

/* ---------- Agenda: búsqueda + filtro ---------- */
.search-row { display: flex; gap: 10px; margin-bottom: 14px; }
.search-row .search { flex: 1; margin: 0; min-width: 0; }
.search input { width: 100%; }
.search .ico { width: 22px; height: 22px; color: var(--teal-ink); }
.filter-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; min-height: 50px;
    border-radius: var(--radius-pill); border: 1.5px solid var(--teal); background: var(--cream); color: var(--teal-ink);
    font-weight: 600; cursor: pointer; transition: background-color .2s;
}
.filter-btn:hover, .filter-btn[aria-expanded="true"] { background: var(--teal-btn); color: #fff; border-color: var(--teal-btn); }
.filter-btn .ico { width: 20px; height: 20px; }
.filter-panel {
    margin: -4px 0 16px; padding: 18px 20px; background: var(--cream); border: 1.5px solid var(--orange); border-radius: var(--radius-inner);
    box-shadow: 0 20px 40px -24px rgba(27, 42, 23, .45); animation: view-in .25s ease;
}
.filter-panel__title { font-weight: 600; margin-bottom: .6em; }
.filter-group { border: 0; padding: 0; margin: 0 0 14px; }
.filter-group legend { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 8px; padding: 0; }
.filter-group div { display: flex; flex-wrap: wrap; gap: 8px; }
.tag--removable { cursor: pointer; }
.tag--removable:hover { border-color: var(--orange); }

/* ---------- Paginación ---------- */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 18px; }
.pager > :last-child { justify-self: end; }
.pager__nums { display: flex; gap: 6px; }
.pager__num {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; font-weight: 600;
    border: 1.5px solid var(--teal); color: var(--teal-ink); background: var(--cream);
}
.pager__num[aria-current="page"] { background: var(--teal-btn); border-color: var(--teal-btn); color: #fff; }
.pager__num:hover:not([aria-current]) { background: var(--aqua); }

.empty-state { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 36px 20px; }
.empty-state p { max-width: 42ch; margin: 0; color: var(--muted); }

/* ---------- Página de evento + mapa ---------- */
.event-page__grid { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: clamp(20px, 3vw, 40px); align-items: start; }
.event-page__grid > div > p { font-size: 1.04rem; }
.event-page__when { display: grid; gap: 16px; }
.event-page__when .sub-h { margin: 0 0 4px; }
.event-page__when p { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: 500; }
.event-page__when p .ico { width: 20px; height: 20px; margin-top: 3px; color: var(--teal-ink); }
.event-page__when .room-btn { margin: 0; justify-self: start; }
.event-page__when .btn { justify-self: start; }
.btn.is-saved { border-color: var(--orange); background: rgba(227, 145, 58, .12); }
.btn.is-saved svg { fill: var(--orange); }
.agenda-list { padding-left: 1.3em; display: grid; gap: 6px; }
.agenda-list li::marker { color: var(--orange); font-weight: 700; }
.mini-speaker { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.mini-speaker__body { flex: 1 1 220px; }
.mini-speaker h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: .2em; }
.mini-speaker p { margin: 0; font-size: .92rem; }

.map-card__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.map-card__head .title { margin: 0; }
.select { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.select select, .field select {
    font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 500;
    min-height: 48px; padding: 0 44px 0 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--teal); appearance: none; cursor: pointer;
    background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324575B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}
.map-card__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(18px, 3vw, 36px); align-items: start; }
.map-card__map { padding: 10px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 32px; line-height: 1.45; }
.steps li::before {
    content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--aqua); border: 1.5px solid var(--teal); color: var(--teal-ink);
}
.steps li:last-child::before { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* Mapa ilustrado del campus */
.campus { width: 100%; height: auto; display: block; border-radius: 2px; font-family: var(--font); }
.campus__bg { fill: #EAF6EC; }
.campus__road { fill: #C9D3CF; }
.campus__roadlabel { font-size: 11px; font-weight: 600; fill: #4C5E60; text-anchor: middle; letter-spacing: .2em; }
.campus__lake { fill: #BFE3EC; stroke: #9CCFDB; stroke-width: 2; }
.campus .tree { fill: #9CCB8A; opacity: .75; }
.campus__park { fill: #DDE4E1; stroke: #B9C6C2; }
.campus__small { font-size: 12px; font-weight: 700; fill: #4C5E60; text-anchor: middle; }
.campus__path { stroke: #fff; stroke-width: 12; stroke-linecap: round; }
.campus__plaza { fill: var(--aqua); stroke: #fff; stroke-width: 3; }
.bld rect { fill: #CFE7E6; stroke: var(--teal); stroke-width: 1.5; }
.bld text { font-size: 12px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.bld .bld__sub { font-size: 10px; font-weight: 500; fill: var(--muted); }
.bld--target rect { fill: var(--cream); stroke: var(--orange); stroke-width: 3; }
.campus__route-bg { fill: none; stroke: rgba(227, 145, 58, .25); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.campus__route { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.campus__start circle { fill: var(--teal-btn); stroke: #fff; stroke-width: 3; }
.campus__start text { font-size: 9px; font-weight: 700; fill: #fff; text-anchor: middle; }
.campus__target circle { fill: var(--orange); stroke: #fff; stroke-width: 3; }
.campus__target .pulse { fill: rgba(227, 145, 58, .35); stroke: none; transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-out infinite; }
.campus__walker { fill: #fff; stroke: var(--teal-btn); stroke-width: 4; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

/* ---------- Página de charla (vista "talk" del Figma) ---------- */
.talk .title--xl { font-size: clamp(2rem, 4.6vw, 3.6rem); margin: .2em 0 .4em; }
.talk__desc p { font-size: 1.05rem; }
.talk__speaker-h { margin-top: 28px; }
.speaker-strip { display: grid; grid-template-columns: 150px 1fr auto; gap: clamp(16px, 2.4vw, 28px); align-items: center; }
.speaker-strip__photo { aspect-ratio: 434 / 444; }
.speaker-strip h2 { font-size: 1.35rem; font-weight: 500; margin-bottom: .15em; }
.speaker-strip p { margin: 0 0 .6em; font-size: .94rem; }
.speaker-strip .social { gap: 6px; flex-wrap: wrap; }

/* ---------- Página de patrocinador (vista "sponsor" del Figma) ---------- */
.sponsor-page { text-align: center; display: grid; justify-items: center; }
.sponsor-page__tier {
    padding: .5em 1.6em; margin-bottom: 16px; border-radius: var(--radius-pill); background: var(--teal-btn); color: #fff;
    font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem;
}
.sponsor-page__logo { width: min(100%, 420px); aspect-ratio: 16 / 9; display: grid; place-items: center; margin-bottom: 18px; border: 1.5px solid var(--orange); }
.sponsor-page .title--xl { margin-bottom: .6em; }
.sponsor-page .title { margin-bottom: .4em; }
.sponsor-page__lead, .sponsor-page__more { max-width: 68ch; font-size: 1.05rem; }
.sponsor-page__more { margin: 28px 0 8px; color: var(--muted); }
.videos { list-style: none; padding: 0; margin: 0 0 28px; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.video button {
    width: 100%; aspect-ratio: 16 / 9; border: 1.5px solid var(--orange); border-radius: var(--radius-inner); cursor: pointer; display: grid; place-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 25%, var(--aqua)), color-mix(in srgb, var(--brand) 55%, var(--aqua)));
}
.video .ico { width: 54px; height: 54px; padding: 14px; border-radius: 50%; background: rgba(251, 246, 236, .92); color: var(--teal-btn); box-shadow: 0 8px 20px -8px rgba(27, 42, 23, .5); transition: transform .2s; }
.video button:hover .ico { transform: scale(1.1); }

/* ---------- Código de conducta ---------- */
.doc .title--xl { margin-bottom: .4em; }
.doc__intro { font-size: 1.1rem; max-width: 70ch; }
.doc section { padding: 18px 0; border-top: 1px solid rgba(27, 42, 23, .12); }
.doc section h2 { display: flex; align-items: baseline; gap: 14px; font-size: 1.25rem; font-weight: 600; margin-bottom: .5em; }
.doc section h2 span { font-size: .9rem; font-weight: 700; color: var(--orange); }
.doc section p { margin: 0 0 .8em; max-width: 72ch; }
.doc section p:last-child { margin-bottom: 0; }
.doc__list { margin: 0 0 .8em; padding-left: 1.3em; display: grid; gap: .45em; max-width: 72ch; }
.doc__list li::marker { color: var(--orange); }

/* ---------- Ficha completa de una charla ---------- */
.talk__learn { margin-bottom: 1.2em; }
.facts { margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { background: var(--card-fill); border-radius: 12px; padding: 10px 12px; }
.facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; }
/* ---------- Red social no habilitada ---------- */
.account { text-align: center; display: grid; justify-items: center; }
.account__head { position: relative; margin-bottom: 18px; }
.account__photo { width: 120px; height: 120px; }
.account__photo .avatar { border-radius: 50%; }
.account__net {
    position: absolute; right: -6px; bottom: -6px; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; background: var(--teal-btn); color: #fff; border: 3px solid var(--cream);
}
.account__net .ico { width: 22px; height: 22px; }
.account__lead { max-width: 52ch; margin: 0 auto 1.4em; font-size: 1.05rem; }

.doc__cta { margin-top: 18px; border: 1.5px solid var(--orange); text-align: center; display: grid; justify-items: center; }
.doc__cta h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: .4em; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; margin-top: 10px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row[hidden] { display: none; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; }
.field input, .field textarea {
    font: inherit; color: var(--ink); width: 100%; padding: 12px 18px; min-height: 50px;
    background: var(--aqua); border: 1.5px solid var(--teal); border-radius: 16px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.field [aria-invalid="true"], .field--checks[aria-invalid="true"] { border-color: #A3271B; }
.field__err { margin: 0; color: #A3271B; font-size: .88rem; font-weight: 500; }
.field--checks > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.field--checks .check { padding: .45em 1em; border: 1.5px solid var(--teal); border-radius: var(--radius-pill); background: var(--cream); font-size: .92rem; }
.field--checks .check:has(input:checked) { background: var(--teal-btn); color: #fff; border-color: var(--teal-btn); }
.check input { width: 18px; height: 18px; accent-color: var(--teal-btn); margin: 0; }
.check--box { font-weight: 500; }
.check a { color: var(--teal-ink); }
.notice { margin: 0; padding: 12px 16px; border-radius: var(--radius-inner); background: rgba(227, 145, 58, .14); border-left: 4px solid var(--orange); font-weight: 500; }
.notice--days { display: flex; gap: 12px; align-items: flex-start; }
.notice--days .ico { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--teal-ink); }
.form-ok { border: 1.5px solid var(--teal); font-weight: 500; outline: none; }
.form-ok p { margin-bottom: 1em; }

@media (max-width: 960px) {
    .event-page__grid, .map-card__grid { grid-template-columns: 1fr; }
    .recommend__grid { grid-template-columns: auto 1fr; }
    .recommend__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .speaker-strip { grid-template-columns: 110px 1fr; }
    .speaker-strip > .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 720px) {
    .view-wrap { padding-top: calc(var(--header-h) + 28px); }
    .search-row { flex-wrap: wrap; }
    .search-row .search { flex-basis: 100%; }
    .filter-btn { width: 100%; justify-content: center; }
    .form__row { grid-template-columns: 1fr; }
    .videos { grid-template-columns: 1fr; }
    .pager { grid-template-columns: 1fr 1fr; }
    .pager__nums { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
    .recommend__grid > .avatar { display: none; }
    .recommend__grid { grid-template-columns: 1fr; }
    .teaser .btn-row { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
