/* ==========================================================================
   PhenomeNaS-V — estilos
   Tema claro por defecto; el modo oscuro se activa con el botón (data-theme="dark").
   ========================================================================== */

:root {
  --ink: #0b1426;
  --ink-2: #13203a;
  --celeste: #74acdf;
  --coral: #e2553a;

  --paper: #f7f5f0;
  --paper-alt: #efece4;
  --surface: #ffffff;
  --text: #141a27;
  --muted: #5c6577;
  --line: #e0dcd2;
  --accent: #2c6aa3;
  --accent-soft: #e4eef8;
  --warm-soft: #fbe7e2;
  --break: #e9e5db;
  --sel-bg: #0b1426;
  --sel-fg: #ffffff;
  --sel-num: #74acdf;

  --map-land: #eef0ea;
  --map-water-a: #d9e9f5;
  --map-water-b: #c7ddef;
  --map-road: #ffffff;
  --map-hwy: #c9cdd2;
  --map-bldg: #ffffff;
  --map-text: #5a6272;
  --map-court: #e6eadf;
  --plan-court: #d4e4c8;
  --plan-line: #b9c0c9;
  --map-bus: #7c4dde;
  --map-alt: #2d6fd6;
  --map-car: #4b5567;

  --f-logo: "Fraunces", Georgia, "Times New Roman", serif;
  --f-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --f-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Chivo Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r: 14px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 64px;
  --shadow: 0 1px 2px rgba(11, 20, 38, .05), 0 10px 30px -14px rgba(11, 20, 38, .22);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0d1424; --paper-alt: #111a2d; --surface: #162036; --text: #e8ebf1; --muted: #9aa3b5;
  --line: #26314a; --accent: #8fc2ef; --accent-soft: #1b2b47; --warm-soft: #3a2026; --break: #182237;
  --sel-bg: #8fc2ef; --sel-fg: #0b1426; --sel-num: #0b1426;
  --map-land: #17223a; --map-water-a: #15304d; --map-water-b: #112840; --map-road: #2a3755; --map-hwy: #3a4868;
  --map-bldg: #24324f; --map-text: #b9c2d4; --map-court: #1c2843; --plan-court: #24402f; --plan-line: #4a5a7a; --map-bus: #8b5cf6; --map-alt: #6aa4ff; --map-car: #e3e8f0; --map-car-glyph: #17223a; --map-car-ring: #17223a;
  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 10px 30px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a, button, [role="tab"] { -webkit-tap-highlight-color: transparent; }
/* en pantallas táctiles, el contorno de foco aparece solo con teclado */
@media (hover: none) { :focus:not(:focus-visible) { outline: none; } }
:focus-visible { outline: 2px solid var(--celeste); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; transition: background .3s, box-shadow .3s; }
.topbar__inner { display: flex; align-items: center; gap: 20px; height: var(--header); }
.topbar.is-solid {
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; }
.brand__mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--celeste); background: radial-gradient(circle, var(--coral) 0 4px, transparent 4.5px); }
.brand__name { font: 400 20px/1 var(--f-logo); letter-spacing: -.01em; white-space: nowrap; }
.brand__name b { font-weight: 600; color: var(--celeste); }
.brand__ed { display: inline-block; margin-left: 6px; padding: 2px 6px 3px; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; border: 1px solid currentColor; border-radius: 4px; vertical-align: 3px; opacity: .85; }
.nav { display: flex; gap: 26px; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 15px; position: relative; padding: 6px 0; }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--celeste); border-radius: 2px; }
.lang { position: relative; display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px; }
.lang button { position: relative; z-index: 1; transition: color .3s; border: 0; background: none; color: rgba(255,255,255,.75); cursor: pointer; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; padding: 7px 10px; border-radius: 999px; }
@media (hover: hover) { .lang button:hover { color: #fff; } }
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang .pill { background: #fff; }
.theme { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: none; color: rgba(255,255,255,.85); cursor: pointer; display: grid; place-items: center; }
@media (hover: hover) { .theme:hover { color: #fff; border-color: rgba(255,255,255,.6); } }
.theme .ico--sun { display: none; }
:root[data-theme="dark"] .theme .ico--sun { display: block; }
:root[data-theme="dark"] .theme .ico--moon { display: none; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, top .25s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .topbar__inner { gap: 8px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--ink); box-shadow: 0 20px 30px -20px rgba(0,0,0,.5);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
  .nav a.is-active::after { display: none; }
  .topbar.menu-open { background: var(--ink); }
}
@media (max-width: 700px) {
  .brand__mark { display: none; }
  .lang button { padding: 7px 8px; }
  .theme { width: 32px; height: 32px; }
}
/* teléfonos angostos (360 px): que entren logo, idiomas, tema y menú */
.theme, .burger, .lang { flex: none; }
@media (max-width: 390px) {
  .topbar__inner { gap: 6px; }
  .brand__name { font-size: 18px; }
  .brand__ed { margin-left: 4px; padding: 2px 5px 3px; font-size: 11px; }
  .lang button { padding: 7px 6px; }
  .theme { width: 30px; height: 30px; }
  .burger { width: 34px; }
  .burger span:not(.sr) { left: 7px; right: 7px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 92svh);
  background: radial-gradient(120% 90% at 85% 30%, #172a4d 0%, var(--ink) 60%);
  color: #fff; display: flex; align-items: center;
  padding: 110px 0 90px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; touch-action: pan-y; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,20,38,.92) 0%, rgba(11,20,38,.72) 38%, rgba(11,20,38,.08) 78%),
    linear-gradient(0deg, rgba(11,20,38,.75) 0%, transparent 30%);
}
.hero__content { width: 100%; position: relative; }
.kicker { margin: 0 0 18px; font: 500 13px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--celeste); }
.hero__title {
  margin: 0; display: flex; align-items: flex-start; flex-wrap: wrap; gap: .1em .25em;
  font: 300 clamp(56px, 11vw, 150px)/.92 var(--f-logo); letter-spacing: -.035em; font-variation-settings: "opsz" 144;
}
.hero__word em { font-style: normal; font-weight: 600; color: var(--celeste); }
.hero__roman { font-variation-settings: "opsz" 48; font-weight: 400; font-size: .5em; line-height: 1; margin-top: .12em; margin-left: .08em; padding: .06em .28em .12em; border: 2px solid var(--coral); color: var(--coral); border-radius: .14em; letter-spacing: 0; }
.hero__tagline { max-width: 34em; margin: 26px 0 34px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: rgba(255,255,255,.82); }
.hero__meta { margin-bottom: 34px; }
.hero__meta p { margin: 0; }
.hero__meta svg { width: 18px; height: 18px; flex: none; }
.mv1__d { font: 500 15px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--celeste); }
.mv1__h { margin-top: 10px !important; font: 400 13.5px/1.4 var(--f-mono); color: rgba(255,255,255,.7); }
.mv1__v { margin-top: 14px !important; display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.4; color: rgba(255,255,255,.9); }
.mv1__v svg { color: var(--coral); margin-top: 2px; }
.mv1__v > span { display: flex; flex-direction: column; }
.mv1__s { font-size: 14px; color: rgba(255,255,255,.6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.countdown { margin: 28px 0 0; display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.countdown::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(226,85,58,.25); }
.countdown:empty { display: none; }
.countdown.is-live::before { animation: pulse 1.6s infinite; }
@media (max-width: 700px) {
  .hero__meta { margin-bottom: 28px; }
  /* celular: el texto ocupa todo el ancho, así que la portada llena la pantalla y deja
     una franja inferior libre donde viven los skyrmiones (nunca detrás del texto) */
  .hero { min-height: 100svh; align-items: flex-start; padding: calc(var(--header) + 26px) 0 170px; }
  .hero__veil { background: linear-gradient(180deg, rgba(11,20,38,.55) 0%, rgba(11,20,38,.25) 60%, rgba(11,20,38,0) 100%); }
  .hero__title { flex-wrap: nowrap; font-size: calc((100vw - 2 * var(--gutter)) / 7.2); font-weight: 400; font-variation-settings: "opsz" 40; letter-spacing: -.025em; }
  .hero__roman { font-weight: 500; font-variation-settings: "opsz" 24; border-width: 2.5px; }
}

/* calendario: menú con los dos días */
.calwrap { position: relative; }
.ico--caret { width: 16px; height: 16px; margin-left: -2px; opacity: .8; transition: transform .2s; }
#calBtn[aria-expanded="true"] .ico--caret { transform: rotate(180deg); }
.calmenu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 5; min-width: 100%; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.calmenu[hidden] { display: none; }
.calmenu a { padding: 11px 14px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; display: flex; justify-content: space-between; gap: 18px; }
.calmenu a small { font: 500 12.5px/1.6 var(--f-mono); color: #2c6aa3; }
.calmenu a:hover, .calmenu a:focus-visible { background: #eef3f9; }
.calmenu__row { display: flex; align-items: center; gap: 4px; }
.calmenu__row > a:first-child { flex: 1; }
.calmenu a.calmenu__day { padding: 6px 10px; border: 1px solid #d6e0ec; border-radius: 999px; font: 500 12.5px/1.2 var(--f-mono); color: #2c6aa3; }
.calmenu a.calmenu__day:hover, .calmenu a.calmenu__day:focus-visible { background: #eef3f9; border-color: #2c6aa3; }
.calmenu__day + .calmenu__day { margin-right: 6px; }
#calBtn.is-direct .ico--caret { display: none; }
.calmenu--up { top: auto; bottom: calc(100% + 8px); }

@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(226,85,58,0); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; cursor: pointer; font: 500 15px/1 var(--f-sans); text-decoration: none; white-space: nowrap; transition: transform .15s, background .2s, border-color .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--celeste); color: var(--ink); border: 1px solid var(--celeste); }
@media (hover: hover) { .btn--solid:hover { background: #fff; border-color: #fff; } }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
@media (hover: hover) { .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); } }
.btn--line { background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 10px 16px; font-size: 14px; }
@media (hover: hover) { .btn--line:hover { border-color: var(--accent); color: var(--accent); } }

/* ---------- sections ---------- */
.section {
  --pad: clamp(64px, 9vw, 110px);
  padding: var(--pad) 0;
  /* al navegar con el menú, el título queda justo debajo de la barra */
  scroll-margin-top: calc(var(--header) + 28px - var(--pad));
}
.section--alt { background: var(--paper-alt); }
.h2 { margin: 0 0 18px; font: 600 clamp(32px, 4.2vw, 50px)/1.08 var(--f-display); letter-spacing: -.015em; }
.h4 { margin: 0 0 10px; font: 600 14px/1.3 var(--f-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.note { margin: 0 0 32px; color: var(--muted); max-width: 46em; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head .h2 { margin-bottom: 18px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__text p { margin: 0 0 18px; max-width: 38em; }
.lead { font-size: clamp(18px, 1.7vw, 20px); line-height: 1.55; }
.phd-note { display: flex; gap: 12px; align-items: baseline; padding: 16px 18px; background: var(--warm-soft); border-radius: 12px; font-weight: 500; }
.phd-note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); flex: none; transform: translateY(-1px); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { padding: 18px 0 16px; text-align: center; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font: 400 44px/1 var(--f-display); color: var(--text); }
.facts dd { margin: 6px 0 0; font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* celular: 2 × 2 para que las palabras largas (doctorandos, doctorant·e·s) entren completas */
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div + div { border-left: 0; }
  .facts > div:nth-child(even) { border-left: 1px solid var(--line); }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.topics li { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.topics svg { width: 32px; height: 32px; flex: none; color: var(--accent); background: var(--accent-soft); border-radius: 9px; padding: 6px; }
@media (max-width: 420px) { .topics { grid-template-columns: 1fr; } }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } }

/* ---------- program ---------- */
.tz { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 22px; }
.tz__label { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 8px 0 10px; }
.tz button { position: relative; z-index: 1; transition: color .3s; border: 0; background: none; cursor: pointer; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.tz button small { font-family: var(--f-mono); font-size: 11px; opacity: .7; }
.tz button[aria-pressed="true"] { color: var(--sel-fg); }
.tz .pill { background: var(--sel-bg); }
/* píldora que se desliza detrás del botón elegido (tz e idiomas) */
.pill { position: absolute; z-index: 0; top: 0; left: 0; width: 0; height: 0; border-radius: 999px; pointer-events: none; opacity: 0;
  transition: transform .42s cubic-bezier(.3,.9,.25,1), width .42s cubic-bezier(.3,.9,.25,1), opacity .2s; }
.pill.is-on { opacity: 1; }
.pill.no-anim { transition: none; }
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } }
/* respuesta táctil suave en vez del recuadro del navegador */
.btn, .day-tab, .tz button, .lang button, .theme, .maptabs button, .cnav__btn, .burger, .gmap__zoom button { -webkit-user-select: none; user-select: none; }
.day-tab:active, .theme:active, .cnav__btn:active, .maptabs button:active { transform: scale(.98); }

.days { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.day-tab { display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer; padding: 16px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, background-color .3s, color .3s, transform .15s; }
@media (hover: hover) { .day-tab:hover { border-color: var(--accent); } }
.day-tab[aria-selected="true"] { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-fg); box-shadow: var(--shadow); }
.day-tab__num { font: 300 46px/1 var(--f-display); transition: color .3s; }
.day-tab[aria-selected="true"] .day-tab__num { color: var(--sel-num); }
.day-tab__txt { display: flex; flex-direction: column; }
.day-tab__txt b { font-weight: 600; font-size: 17px; }
.day-tab__wd { display: none; }
.day-tab__txt small { font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

.day-panel { background: var(--surface); border-radius: 18px; padding: 6px 28px; box-shadow: var(--shadow); }
.slots { list-style: none; margin: 0; padding: 0; }
.slot { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); position: relative; scroll-margin-top: 90px; }
.day-panel > .slots > li:first-child { border-top: 0; }
.slot__time { font: 500 15px/1.45 var(--f-mono); color: var(--text); white-space: nowrap; }
.slot__who { font-weight: 600; font-size: 17px; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.slot__tags { display: inline-flex; flex-wrap: nowrap; gap: 6px; }
.slot__tags:empty { display: none; }
.slot__title { margin: 3px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.slot__title--tba { font-style: italic; opacity: .85; }
.slot--talk.is-phd .slot__time { border-left: 3px solid var(--coral); padding-left: 12px; margin-left: -15px; }
.slot--break { background: var(--paper); margin: 0 -28px; padding: 10px 28px; border-top-color: transparent; }
.slot--break + .slot { border-top-color: transparent; }
.slot--key + .slot:not(.slot--k-dinner) { border-top-color: var(--line); }
.slot--break .slot__time { color: var(--muted); font-size: 14px; }
.slot--break .slot__who { font-weight: 400; font-size: 14.5px; letter-spacing: .02em; color: var(--muted); }
.slot__who svg { width: 18px; height: 18px; opacity: .8; }
.slot--break.slot--key { background: none; border-top-color: var(--line); }
.slot--k-dinner { margin-top: 10px; }
.slot--k-dinner, .slot--k-welcome { background: var(--warm-soft); border-top-color: transparent; }
.slot--k-dinner .slot__time, .slot--k-welcome .slot__time { color: var(--coral); font-size: 15px; font-weight: 500; }
.slot--k-dinner .slot__who, .slot--k-welcome .slot__who { color: var(--text); font-weight: 600; font-size: 16.5px; letter-spacing: 0; }
.slot--k-dinner .slot__who svg, .slot--k-welcome .slot__who svg { width: 22px; height: 22px; color: var(--coral); opacity: 1; }
.slot--k-welcome { padding-top: 14px; padding-bottom: 14px; }
.slot__sub { margin: 3px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.slot__wrap { display: flex; gap: 10px; align-items: flex-start; }
.slot__ico { display: flex; flex: none; padding-top: 1px; }
.slot__ico svg { width: 18px; height: 18px; opacity: .8; }
.slot--k-dinner .slot__ico svg, .slot--k-welcome .slot__ico svg { width: 22px; height: 22px; color: var(--coral); opacity: 1; }
@media (max-width: 640px) { .slot__wrap { align-items: center; } .slot__ico { padding-top: 0; } }
/* aviso al principio de la jornada (miércoles: almuerzo de bienvenida) */
.day-intro { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 16px 0 14px; font-size: 15px; line-height: 1.5; color: var(--text); }
.day-intro svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--coral); }
.day-intro + .slots > li:first-child { border-top: 0; }
/* una franja de color como primera fila llega hasta el borde superior del recuadro */
.day-panel > .slots > .slot--break:first-child { margin-top: -6px; border-radius: 18px 18px 0 0; }
@media (max-width: 640px) { .day-panel > .slots > .slot--break:first-child { margin-top: -4px; border-radius: 14px 14px 0 0; } }
/* aula de la jornada, arriba del programa de cada día */
.day-room { display: flex; gap: 8px; align-items: center; margin: 0; padding: 14px 0 12px; font-size: 15px; font-weight: 600; color: var(--text); }
.day-room svg { width: 18px; height: 18px; flex: none; color: var(--coral); }
.day-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 0; }
.day-head .day-room { padding: 0; }
.btn--live { padding: 8px 14px; font-size: 14px; gap: 7px; }
.btn--live svg { width: 18px; height: 18px; color: var(--coral); }
.day-panel > .day-head + .slots > .slot--break:first-child { margin-top: 0; border-radius: 12px 12px 0 0; }
.day-head + .slots > li:first-child { border-top: 0; }
/* cambio de aula a mitad del día (jueves después del almuerzo): mismo estilo que la línea de arriba */
.room-line { padding: 14px 0 4px; }
.room-line .day-room { padding: 0; }
.room-line + .slot { border-top-color: transparent; }
.slot--key .slot__time { color: var(--text); font-size: 15px; }
.slot--key .slot__who { font-weight: 500; font-size: 16px; letter-spacing: 0; color: var(--text); }
.slot.is-flash { animation: flash 1.8s ease-out; }
.slot.is-now { box-shadow: inset 3px 0 0 var(--coral); }
/* charla en curso: la fila llega hasta el borde del recuadro (como los cortes), así la franja queda en el borde y no pegada al texto */
.slot--talk.is-now { margin: 0 -28px; padding-left: 28px; padding-right: 28px; background: color-mix(in srgb, var(--coral) 6%, transparent); }
@media (max-width: 640px) { .slot--talk.is-now { margin: 0 -16px; padding-left: 16px; padding-right: 16px; } }
@keyframes flash { 0%, 40% { background-color: var(--accent-soft); } 100% { background-color: transparent; } }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid currentColor; font: 500 11.5px/1.2 var(--f-sans); white-space: nowrap; }
.tag svg { width: 13px; height: 13px; flex: none; }
.tag--virtual { color: var(--accent); }
.tag--phd { color: var(--coral); }
.tag--tbc { color: var(--muted); border-style: dashed; }
.tag--now { background: var(--coral); border-color: var(--coral); color: #fff; }

.session { list-style: none; border-top: 1px solid var(--line); padding-top: 26px; }
.session__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 10px; }
.session__name { font: 600 21px/1.2 var(--f-display); color: var(--text); }
.session__time { font: 500 12.5px/1 var(--f-mono); letter-spacing: .06em; color: var(--coral); }

@media (max-width: 640px) {
  .days { gap: 8px; }
  /* días: misma forma en los tres idiomas (número, día, franja), centrados */
  .day-tab { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding: 14px 10px; }
  .day-tab__num { font-size: 38px; }
  .day-tab__txt { align-items: center; }
  .day-tab__txt b { display: none; }
  .day-tab__txt b.day-tab__wd { display: block; font-size: 15px; }
  .day-tab__txt small { font-size: 11px; white-space: nowrap; }
  /* zona horaria: dos botones iguales a todo el ancho */
  .tz { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tz__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
  .tz button { white-space: nowrap; padding: 9px 6px; }
  .slot--talk .slot__who { display: block; }
  .slot--break .slot__who { flex-wrap: nowrap; }
  .session__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .slot__tags { display: flex; margin-top: 6px; }
  .day-panel { padding: 4px 16px; border-radius: 14px; }
  .slot { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .slot--break { margin: 0 -16px; padding: 10px 16px; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
  .slot--k-discussion, .slot--k-closing { grid-template-columns: 1fr; gap: 4px; padding-top: 12px; padding-bottom: 12px; }
  .slot--talk.is-phd .slot__time { margin-left: -16px; padding-left: 13px; }
}

/* ---------- speakers (carousel) ---------- */
.section-head--spk { align-items: flex-end; }
.section-head--spk .note { margin-bottom: 0; }
.cnav { display: flex; gap: 10px; margin-bottom: 4px; }
.cnav__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text); transition: border-color .2s, color .2s, opacity .2s; }
.cnav__btn svg { width: 20px; height: 20px; }
@media (hover: hover) { .cnav__btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); } }
.cnav__btn:disabled { opacity: .35; cursor: default; }
/* El ancho de cada tarjeta lo calcula app.js para que entren tarjetas completas: siempre simétrico. */
.spk-track {
  --gap: 40px;
  list-style: none; margin: 40px 0 0; padding: 10px 0 12px;
  display: flex; gap: var(--gap);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.spk-track.is-drag { cursor: grabbing; }
.spk-track.is-drag .spk { pointer-events: none; }
.spk-track::-webkit-scrollbar { display: none; }
.spk-track > li { flex: 0 0 auto; width: var(--cw, 240px); display: flex; justify-content: center; }
.spk { width: 100%; max-width: 260px; display: flex; flex-direction: column; align-items: center; text-align: center; background: none; border: 0; padding: 0; cursor: inherit; color: inherit; }
.spk img { -webkit-user-drag: none; }
.spk__photo {
  position: relative; width: clamp(160px, 17vw, 184px); aspect-ratio: 1; border-radius: 50%;
  padding: 6px; background: conic-gradient(from 210deg, var(--celeste), var(--accent), var(--coral), var(--celeste));
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.spk:hover .spk__photo, .spk:focus-visible .spk__photo { transform: translateY(-4px) scale(1.02); }
.spk__photo img, .spk__ph { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; border: 4px solid var(--paper); }
.spk__ph { display: grid; place-items: center; background: var(--av, var(--ink)); color: #fff; font: 300 50px/1 var(--f-display); letter-spacing: .02em; position: relative; overflow: hidden; }
.spk__ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.3), transparent 55%); }
.spk__name { margin-top: 20px; font-weight: 600; font-size: 18.5px; line-height: 1.25; }
.spk__aff { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); min-height: 2.9em; }
.spk__country { margin-top: 4px; font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.spk__slot { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; font: 400 12.5px/1 var(--f-mono); color: var(--muted); }
.spk__slot .tag { flex: none; }
.spk__phd { margin-top: 8px; display: flex; justify-content: center; }
.spk-progress { margin-top: 18px; height: 32px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.spk-progress__track { position: relative; flex: 1; height: 3px; border-radius: 99px; background: var(--line); transition: height .2s ease; }
.spk-progress:hover .spk-progress__track, .spk-progress.is-drag .spk-progress__track { height: 10px; }
.spk-progress span { display: block; height: 100%; width: 20%; border-radius: 99px; background: var(--accent); }
.spk-progress.is-drag { cursor: grabbing; }
@media (max-width: 640px) {
  .cnav { display: none; }
  .spk-track { --gap: 16px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-inline: 21vw; scroll-snap-type: x mandatory; scroll-padding-inline: 21vw; cursor: auto; }
  .spk-track > li { width: 58vw; scroll-snap-align: center; }
  .spk__photo { width: 156px; }
}

/* ---------- venue ---------- */
.venue-place { margin: 0 0 32px; font-size: 18px; line-height: 1.5; }
.venue-place .muted { font-size: 15.5px; }
.venue { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 26px; }
.steps li { position: relative; padding-left: 54px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -6px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 18px/1 var(--f-display); background: var(--ink); color: var(--celeste); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18.5px; top: 40px; bottom: -20px; width: 1px; background: var(--line); }
.steps .h4 { color: var(--text); font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.transport { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.transport > div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; font-size: 15px; }
.transport dt { font: 500 11.5px/1.9 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.transport dd { margin: 0; color: var(--muted); }
@media (max-width: 960px) { .venue { grid-template-columns: 1fr; } }

.mapbox { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); min-width: 0; }
.maptabs { display: flex; gap: 4px; padding: 2px 2px 10px; flex-wrap: wrap; }
.maptabs button { transition: background-color .25s, color .25s, transform .15s; border: 0; background: none; cursor: pointer; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); }
.maptabs button:hover { color: var(--text); }
.maptabs button[aria-selected="true"] { background: var(--sel-bg); color: var(--sel-fg); }
.mappanel { border-radius: 12px; overflow: hidden; }
.mapscroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.map { display: block; width: 100%; height: auto; }
.gmap { position: relative; aspect-ratio: 960 / 450; background: var(--map-land); }
.gmap__frame, .gmap iframe { width: 100%; height: 100%; border: 0; display: block; }
.gmap__zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.gmap__zoom button { width: 38px; height: 38px; border: 0; background: #fff; color: #444; cursor: pointer; display: grid; place-items: center; }
.gmap__zoom button + button { border-top: 1px solid #e6e6e6; }
.gmap__zoom button:hover { background: #f2f2f2; color: #111; }
.gmap__zoom button:disabled { color: #bbb; cursor: default; background: #fff; }
.gmap__zoom svg { width: 18px; height: 18px; }
.maplinks { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 2px 4px; }
.legend { list-style: none; margin: 0; padding: 12px 6px 2px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.lg--main { background: #fff; box-shadow: inset 0 0 0 3.5px var(--coral); }
.lg--alt { background: var(--map-alt); }
.lg--bus { background: var(--map-bus); border-radius: 4px; }
.lg--car { background: var(--map-car); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(127,127,127,.35); }
/* celular: los planos entran enteros (se recortan a la zona útil con data-vb-mobile)
   y las referencias "fuera del mapa" van debajo como chips completos */
.mapedges { display: none; }
@media (max-width: 700px) {
  .gmap { aspect-ratio: 4 / 5; }
  .map .m-pill { display: none; }
  .map .m-bl { font-size: 21px; }
  .map .p-pab1 { transform: translate(14px, 32px); } /* más abajo, lejos del recorrido punteado */
  .map .m-lbl { font-size: 22px; }
  .map .m-target-lbl { font-size: 46px; }
  .map .m-tag text { font-size: 27px; }
  .mapedges { list-style: none; margin: 0; padding: 10px 2px 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .mapedges li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12.5px; line-height: 1.3; color: var(--map-text); }
  .mapedges li:last-child { margin-left: auto; }
  .mapedges svg { width: 13px; height: 13px; flex: none; }
}

/* SVG map styles */
.m-land { fill: var(--map-land); }
.g-water-a { stop-color: var(--map-water-a); }
.g-water-b { stop-color: var(--map-water-b); }
.m-water-lbl { font: italic 400 34px var(--f-display); fill: var(--accent); opacity: .55; letter-spacing: .01em; }
.m-roads path, .m-roads circle { fill: none; stroke: var(--map-road); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.m-roads .m-hwy { stroke: var(--map-hwy); stroke-width: 13; }
.m-roads .m-rb { fill: var(--map-land); stroke-width: 8; }
.m-bldgs > * { fill: var(--map-bldg); }
.m-bldgs--faint > * { opacity: .7; }
.m-bl { font: 600 16px var(--f-mono); letter-spacing: .1em; fill: var(--map-text); text-anchor: middle; }
.m-court { fill: var(--map-court); }
.m-glow { fill: var(--coral); opacity: .35; }
.m-target-lbl { font: 500 38px var(--f-display); fill: var(--coral); text-anchor: middle; }
.m-mk--main circle { fill: #fff; stroke: var(--coral); stroke-width: 4; }
.m-mk--main .m-mk__core { fill: var(--coral); stroke: none; }
.m-mk--alt circle { fill: var(--map-alt); stroke: #fff; stroke-width: 2.5; }
.m-mk--bus rect { fill: var(--map-bus); }
.m-mk--car circle { fill: var(--map-car); stroke: var(--map-car-ring, #fff); stroke-width: 2; }
.m-mk--car .m-mk__glyph { fill: none; stroke: var(--map-car-glyph, #fff); stroke-width: 1.8; stroke-linejoin: round; }
.m-mk--bus .m-mk__glyph { fill: none; stroke-width: 1.7; stroke-linejoin: round; }
.m-mk__glyph { stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.m-pin__body { fill: var(--ink); }
:root[data-theme="dark"] .m-pin__body { fill: #fff; }
.m-pin__hole { fill: var(--coral); }
.m-pin__shadow { fill: #0b1426; opacity: .25; }
.m-leader { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .55; }
:root[data-theme="dark"] .m-leader { stroke: #fff; }
.m-tag rect { fill: var(--ink); }
.m-tag text { font: 600 23px var(--f-sans); fill: #fff; text-anchor: middle; }
:root[data-theme="dark"] .m-tag rect { fill: #fff; }
:root[data-theme="dark"] .m-tag text { fill: var(--ink); }
.m-pill rect { fill: var(--surface); stroke: var(--line); }
.m-pill text { font: 500 19px var(--f-sans); fill: var(--map-text); }
.m-pill__arrow { fill: none; stroke: var(--map-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m-compass__ring { fill: var(--surface); stroke: var(--line); }
.m-compass__needle { fill: var(--coral); }
.m-compass__n { font: 600 15px var(--f-mono); fill: var(--map-text); }
.m-lbl { font: 500 17px var(--f-sans); fill: var(--map-text); }
.m-lbl--note { font: 400 12px var(--f-mono); opacity: .7; }
.p-bldg { fill: var(--map-bldg); stroke: var(--plan-line); stroke-width: 1.5; }
.p-court { fill: var(--plan-court); stroke: color-mix(in srgb, var(--coral) 45%, transparent); stroke-width: 1.5; }
.p-target { fill: color-mix(in srgb, var(--coral) 16%, var(--map-bldg)); stroke: var(--coral); stroke-width: 2; }
.p-main { fill: #fff; stroke: var(--coral); stroke-width: 4; }
.p-alt { fill: var(--map-alt); stroke: #fff; stroke-width: 2.5; }
.p-route { fill: none; stroke: var(--coral); stroke-width: 3; stroke-dasharray: 7 6; stroke-linecap: round; stroke-linejoin: round; animation: march 1.2s linear infinite; }
.p-route__head { fill: var(--coral); }
.p-bridge { fill: var(--map-bldg); opacity: .55; }
.p-room { fill: var(--coral); stroke: #fff; stroke-width: 1.5; }
.p-room-lbl { font: 600 16px var(--f-mono); fill: var(--coral); }
@media (max-width: 700px) { .map .p-room-lbl { font-size: 19px; } }
@keyframes march { to { stroke-dashoffset: -13; } }
@media (prefers-reduced-motion: reduce) { .p-route { animation: none; } }

/* ---------- organisation ---------- */
.org { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); margin-top: 14px; align-items: start; }
.people { list-style: none; margin: 0; padding: 0; }
.person { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.person:first-child { border-top: 1px solid var(--line); }
.person__av { width: 72px; height: 72px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 400 24px/1 var(--f-display); color: #fff; background: var(--av, var(--ink)); overflow: hidden; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line); }
.person__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person__name { font-weight: 600; font-size: 18px; line-height: 1.3; }
.person__mail { font: 400 14px/1.4 var(--f-mono); color: var(--accent); text-decoration: none; word-break: break-all; }
.person__mail:hover { text-decoration: underline; }
.person__txt { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.person__aff { font-size: 14px; line-height: 1.4; color: var(--muted); margin-bottom: 2px; }
.org__sub { margin-top: 30px; }
.person--sm { gap: 16px; padding: 14px 0; }
.person--sm .person__av { width: 52px; height: 52px; font-size: 18px; }
.person--sm .person__name { font-size: 16.5px; }
.person--sm .tag { margin-top: 5px; }
.org__credits { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.credit { padding-left: 18px; border-left: 2px solid var(--celeste); }
.credit__k { display: block; margin-bottom: 6px; font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.credit__v { margin: 0; font-size: 17px; line-height: 1.5; }
.flags { display: flex; gap: 8px; margin-top: 12px; }
.flag { width: 36px; height: 24px; border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.contact {
  margin-top: 12px; padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 32px);
  border-radius: 20px; background: var(--ink); color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  position: relative; overflow: hidden; isolation: isolate;
}
.contact::before {
  content: ""; position: absolute; right: -90px; top: -170px; width: 300px; height: 300px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(226,85,58,.35) 0 14%, rgba(116,172,223,.12) 15% 46%, transparent 47%);
}
.contact h3 { margin: 0 0 6px; font: 600 24px/1.15 var(--f-display); }
.contact p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.5; }
@media (max-width: 820px) { .org { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 36px 0; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.brand__name--foot { color: #fff; }
