/* =========================================================
   Tema Seminar — Marxismo y Cuestión de la Mujer
   Diseño editorial cálido, rojo y papel. Claro/oscuro.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #faf9f7;
  --bg-2: #f1ece3;
  --surface: #ffffff;
  --text: #181818;
  --muted: #6b6560;
  --border: #e4ddd2;
  --accent: #b22222;
  --accent-dark: #8f1a1a;
  --accent-soft: #f6e7e5;
  --gold: #b8860b;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(40, 20, 10, .06);
  --shadow: 0 14px 34px -20px rgba(60, 25, 15, .45);
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.4rem; }
.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: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Section headers ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.4rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .15em; }
.section-head .lead { margin: 0; }
.lead { text-align: justify; color: var(--muted); max-width: 80ch; }
.kicker {
  display: inline-block; font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 .7rem;
}
.link-more { font-weight: 600; font-size: .9rem; white-space: nowrap; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block; background: var(--accent); color: #fff; padding: .68rem 1.35rem;
  border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid var(--accent); cursor: pointer;
  transition: background .2s, transform .15s var(--ease), color .2s, border-color .2s;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }
.button-ghost { background: transparent; color: var(--text); border-color: currentColor; }
.button-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

.ics-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: .35rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-body); transition: .2s;
}
.ics-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1rem; }
.brand-text small { color: var(--muted); font-size: .72rem; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: .95rem; position: relative; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1.55rem; height: 2px; background: var(--accent);
}
#theme-toggle {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: .95rem;
  display: grid; place-items: center; transition: .2s;
}
#theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle-moon { display: none; }
[data-theme="dark"] .theme-toggle-moon { display: inline; }
[data-theme="dark"] .theme-toggle-sun { display: none; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* ---------- Frieze (edition pages) ---------- */
.hero-friso {
  display: flex; justify-content: center; align-items: flex-end; gap: .6rem;
  padding: 1rem; overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-friso img {
  height: 72px; width: auto; border-radius: 4px;
  filter: grayscale(100%) sepia(22%) contrast(.9); opacity: .88;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.hero-friso img:hover { filter: none; opacity: 1; transform: translateY(-3px); }
[data-theme="dark"] .hero-friso { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
[data-theme="dark"] .hero-friso img { filter: grayscale(100%) brightness(.8); }

/* ---------- Hero ---------- */
.hero-fx {
  position: relative; margin: 2rem 0; padding: 3.2rem 2.2rem; border-radius: var(--radius);
  overflow: hidden; color: #fff; min-height: 340px; background: #0d0b0a;
  display: flex; align-items: center;
}
.hero-fx-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; overflow: hidden; z-index: 0; }
.hero-fx-bg img {
  position: absolute; top: 0; right: 0; height: 101%; width: auto;
  filter: sepia(38%) contrast(1.08) brightness(.9);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%);
  mask-image: linear-gradient(to right, transparent 0%, #000 16%);
}
.hero-fx-bg::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 150px; z-index: 1;
  background: linear-gradient(90deg, #0d0b0a 0%, rgba(13,11,10,0) 100%);
}
.hero-fx::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(13,11,10,.92) 0%, rgba(13,11,10,.62) 42%, rgba(13,11,10,.15) 100%);
}
.hero-fx-content { position: relative; z-index: 2; max-width: 54ch; }
.hero-fx .kicker { color: #f0b98a; }
.hero-fx h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); color: #fff; margin-bottom: .5rem; }
.hero-fx .lead { color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 0; }
.hero-fx .button-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero-fx .button-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* ---------- Próxima sesión ---------- */
.proxima {
  margin: 1.5rem 0; padding: 1rem 1.2rem; border: 1px solid var(--border);
  border-left: 4px solid var(--accent); background: var(--surface); border-radius: var(--radius-sm);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem;
  box-shadow: var(--shadow-sm);
}
.proxima-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.proxima .etiqueta { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
a.proxima-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; color: inherit; }
a.proxima-main:hover { text-decoration: none; }
a.proxima-main:hover strong { color: var(--accent); }
.proxima strong { font-family: var(--font-display); font-weight: 700; }
.proxima-meta { color: var(--muted); font-size: .85rem; }
.proxima .cuenta { margin-left: auto; font-family: ui-monospace, monospace; font-weight: 700; color: var(--accent); font-size: .95rem; }

/* ---------- Registration ---------- */
.registration {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--accent); border-radius: var(--radius);
  padding: 1.8rem; margin: 2rem 0; box-shadow: var(--shadow);
}
.registration-grid { display: grid; grid-template-columns: 1fr 220px; gap: 1.8rem; align-items: center; }
.registration-texto { min-width: 0; }
.registration h2 { margin-top: 0; }
.registration-edition { color: var(--accent); }
.deadline { font-size: .95rem; color: var(--muted); margin: 0 0 1rem; }
.deadline strong { color: var(--text); }
.countdown-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .2rem; }
.countdown { font-size: 1.7rem; font-weight: 700; color: var(--accent); font-family: ui-monospace, monospace; margin: 0 0 1rem; letter-spacing: .01em; }
.registration-cta { margin: 0; }
.registration-imagen {
  width: 100%; aspect-ratio: 3 / 4; background: url('/images/ambiente/biro.jpg') center/contain no-repeat;
  border-radius: var(--radius-sm); filter: sepia(18%) contrast(1.02); opacity: .95;
}
.registration-closed {
  margin: 1.2rem 0; padding: .9rem 1.1rem; border-left: 4px solid var(--border);
  background: var(--bg-2); border-radius: var(--radius-sm); color: var(--muted); font-size: .95rem;
}

/* Home mini card */
.registration-mini { max-width: 460px; margin: 1.5rem auto 2.5rem; text-align: center; }
.registration-mini .registration-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: .8rem; box-shadow: var(--shadow-sm);
}
.registration-mini h2 { font-size: 1.2rem; }
.registration-mini .countdown { font-size: 1.4rem; }
.registration-mini .registration-cta .button { font-size: .88rem; padding: .5rem 1.1rem; }

/* ---------- Retratos ---------- */
.marxistas { margin: 3rem 0; }
.retratos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.25rem; }
.retrato {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1rem 1.3rem; margin: 0; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.retrato:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.retrato img {
  width: 128px; height: 128px; margin: 0 auto; object-fit: cover; object-position: center top;
  border-radius: 50%; filter: grayscale(100%) contrast(1.03); transition: filter .35s; background: var(--bg-2);
}
.retrato:hover img { filter: none; }
.retrato figcaption { display: flex; flex-direction: column; gap: .1rem; margin-top: .8rem; }
.retrato .nombre { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.retrato .nombre a { color: inherit; }
.retrato .nombre a:hover { color: var(--accent); text-decoration: none; }
.retrato .nombre .ext { font-size: .72em; opacity: .55; margin-left: .12em; }
.retrato .vida { color: var(--muted); font-size: .78rem; }
.retrato .rol { font-size: .84rem; margin-top: .25rem; }
.retrato.sin-foto::before {
  content: ""; display: block; width: 128px; height: 128px; margin: 0 auto; border-radius: 50%;
  background: repeating-linear-gradient(45deg, #d8cfc2, #d8cfc2 8px, #e6ddd0 8px, #e6ddd0 16px);
}

/* ---------- Edition list (home) ---------- */
.ediciones { margin: 3rem 0; }
.edition-list { list-style: none; padding: 0; margin: 0; }
.edition-list li { border-bottom: 1px solid var(--border); }
.edition-list li:first-child { border-top: 1px solid var(--border); }
.edition-list a {
  display: flex; align-items: center; gap: 1.2rem; padding: 1rem .4rem;
  text-decoration: none; color: var(--text); transition: background .2s, padding .2s;
}
.edition-list a:hover { background: var(--bg-2); padding-left: .8rem; text-decoration: none; }
.edition-year { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--accent); min-width: 3.5rem; }
.edition-info { display: flex; flex-direction: column; }
.edition-info strong { font-weight: 600; }
.edition-info .subtitle { color: var(--muted); font-size: .85rem; font-style: italic; }
.edition-status {
  margin-left: auto; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .28rem .65rem; border-radius: 999px; white-space: nowrap;
}
.status-open { background: #e3f2e3; color: #1f6b2e; }
.status-closed { background: var(--bg-2); color: var(--muted); }

/* ---------- Timeline (/ediciones/) ---------- */
.timeline { position: relative; padding-left: 2rem; margin-top: 1.8rem; }
.timeline::before { content: ""; position: absolute; left: .5rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 2rem; }
.tl-item::before {
  content: ""; position: absolute; left: -1.75rem; top: .5rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.tl-item.active::before { background: var(--accent); }
.tl-year { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.tl-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-top: .5rem; box-shadow: var(--shadow-sm); }
.tl-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tl-head a { color: var(--text); }
.tl-head a strong { font-family: var(--font-display); font-size: 1.1rem; }
.tl-body p { margin: .4rem 0 .6rem; color: var(--muted); }
.tl-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--muted); }
.tl-meta span::before { content: "·"; margin-right: .4rem; color: var(--accent); }
.tl-friso { display: flex; gap: .4rem; margin-top: .6rem; }
.tl-friso img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; filter: grayscale(100%); }

/* ---------- Carrusel ---------- */
.carrusel { position: relative; margin: 3rem 0 1rem; padding: 1.6rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.carrusel-head { align-items: center; }
.carrusel-nav-group { display: flex; gap: .4rem; }
.carrusel-viewport { overflow: hidden; }
.carrusel-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity;
  scroll-behavior: smooth; padding: .3rem .2rem .8rem; scrollbar-width: none; -ms-overflow-style: none;
}
.carrusel-track::-webkit-scrollbar { display: none; }
.carrusel-card {
  flex: 0 0 auto; width: 250px; margin: 0; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s;
}
.carrusel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.carrusel-card img {
  width: 100%; height: 210px; object-fit: contain; background: var(--bg-2); padding: .7rem;
  filter: sepia(48%) contrast(.94); transition: filter .35s;
}
.carrusel-card:hover img { filter: none; }
.carrusel-card figcaption { padding: .65rem .85rem .8rem; display: flex; flex-direction: column; gap: .1rem; border-top: 1px solid var(--border); }
.carrusel-card strong { font-size: .9rem; line-height: 1.3; font-family: var(--font-body); font-weight: 600; }
.carrusel-card span { font-size: .76rem; color: var(--muted); }
.carrusel-nav {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: .2s;
}
.carrusel-nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.carrusel-dots { display: flex; gap: .4rem; justify-content: center; margin-top: 1rem; }
.carrusel-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--border); cursor: pointer; transition: .2s; }
.carrusel-dots button.is-active { background: var(--accent); width: 22px; border-radius: 999px; }

/* ---------- Edición header ---------- */
.edicion-header { margin: 2rem 0 1.5rem; }
.back-link { display: inline-block; font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.back-link:hover { color: var(--accent); }
.edicion-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.edicion-meta { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 1.6rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.edicion-meta li { display: flex; flex-direction: column; }
.edicion-meta strong { font-family: var(--font-display); font-size: 1.05rem; }
.edicion-meta span { color: var(--muted); font-size: .85rem; }

/* ---------- Acciones y programa de la edición ---------- */
.edicion-actions { margin: 1.2rem 0 0; }
.programa {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin: 1.6rem 0 2rem; box-shadow: var(--shadow-sm);
}
.programa h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.programa-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.programa-lista a { display: flex; gap: .8rem; align-items: baseline; padding: .55rem .5rem; border-radius: 6px; color: var(--text); }
.programa-lista a:hover { background: var(--bg-2); text-decoration: none; }
.programa-num { font-family: var(--font-display); color: var(--accent); font-weight: 700; flex: none; }
.programa-txt { display: flex; flex-direction: column; min-width: 0; }
.programa-txt span { color: var(--muted); font-size: .8rem; }

/* ---------- Quote ---------- */
.destacado {
  border-left: 4px solid var(--accent); background: var(--surface); padding: 1.1rem 1.3rem;
  margin: 1.5rem 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow-sm);
}
.destacado p { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; margin: 0; }
.destacado cite { display: block; margin-top: .5rem; font-family: var(--font-body); font-size: .88rem; color: var(--muted); font-style: normal; }

/* ---------- Progreso ---------- */
.progreso {
  display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 1.2rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin: 2rem 0; box-shadow: var(--shadow-sm);
}
.progreso .kicker { margin-bottom: .2rem; }
.progreso-count { margin: 0; font-weight: 600; }
.progreso-hint { margin: 0; font-size: .78rem; color: var(--muted); }
.progress { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 999px; transition: width .5s var(--ease); }
.progreso-buttons { display: flex; gap: .5rem; }

/* ---------- Sessions ---------- */
.sessions-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2.5rem 0 1.4rem; }
.sessions-title { margin: 0; }
.sessions { display: flex; flex-direction: column; gap: 1.4rem; }
.session {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; transition: box-shadow .25s, opacity .25s, border-color .25s;
  scroll-margin-top: 92px;
}
.session:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.session-anchor { color: var(--border); font-weight: 400; margin-left: .25rem; opacity: 0; transition: opacity .2s, color .2s; }
.session:hover .session-anchor, .session-anchor:focus-visible { opacity: 1; }
.session-anchor:hover { color: var(--accent); }
.session:hover { box-shadow: var(--shadow-sm); }
.session.is-done { opacity: .68; }
.session.is-done .session-num { background: var(--accent); color: #fff; }
.session-head { display: flex; gap: 1rem; align-items: flex-start; }
.session-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.session-headings { min-width: 0; }
.session h3 { font-size: 1.25rem; margin: 0 0 .2rem; }
.meta { color: var(--muted); font-size: .88rem; margin: 0; }
.session-desc { color: var(--muted); margin: .8rem 0 1rem; }
.readings { background: var(--bg-2); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1.1rem; }
.readings h4 { font-family: var(--font-body); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.lecturas { list-style: none; padding: 0; margin: 0; }
.lecturas li { margin: .35rem 0; }
.lecturas label { display: flex; align-items: flex-start; gap: .55rem; cursor: pointer; font-size: .92rem; }
.lecturas input { margin-top: .35rem; accent-color: var(--accent); }
.lecturas input:checked + a { text-decoration: line-through; color: var(--muted); }

/* Video */
.video { position: relative; margin: 0 0 1.1rem; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); }
.video-play {
  width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1a1512, #2a211c); color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-body); font-size: .9rem; transition: filter .25s;
}
.video-play:hover { filter: brightness(1.2); }
.video-play-icon {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.14);
  display: grid; place-items: center; font-size: 1.1rem; border: 1px solid rgba(255,255,255,.3);
}
.video-pending { color: var(--muted); font-style: italic; font-size: .9rem; }

/* Session actions */
.session-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.visto { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .88rem; font-weight: 600; user-select: none; }
.visto input { position: absolute; opacity: 0; width: 0; height: 0; }
.visto-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border); display: grid; place-items: center; transition: .2s; flex: none; }
.visto-box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); opacity: 0; }
.visto input:checked + .visto-box { background: var(--accent); border-color: var(--accent); }
.visto input:checked + .visto-box::after { opacity: 1; }
.session-buttons { display: flex; gap: .5rem; }
.cal { position: relative; }
.cal summary {
  list-style: none; cursor: pointer; border: 1px solid var(--border); color: var(--muted);
  padding: .35rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; transition: .2s;
}
.cal summary::-webkit-details-marker { display: none; }
.cal summary:hover, .cal[open] summary { border-color: var(--accent); color: var(--accent); }
.cal-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column;
  min-width: 175px; padding: .35rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.cal-menu button {
  text-align: left; background: none; border: 0; padding: .5rem .6rem; border-radius: 4px;
  font-family: var(--font-body); font-size: .85rem; color: var(--text); cursor: pointer;
}
.cal-menu button:hover { background: var(--bg-2); color: var(--accent); }

/* ---------- Edition nav ---------- */
.edicion-nav { display: flex; justify-content: space-between; gap: 1.2rem; margin: 3rem 0 1rem; }
.edicion-nav-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.2rem; max-width: 46%; text-decoration: none; color: var(--text); transition: .25s;
}
.edicion-nav-item:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.edicion-nav-item span { display: block; font-size: .76rem; color: var(--muted); margin-bottom: .25rem; }
.edicion-nav-item strong { font-family: var(--font-display); font-size: .98rem; }
.edicion-nav-item.right { text-align: right; margin-left: auto; }

/* ---------- Prose (Sobre) ---------- */
.prose { max-width: 68ch; margin: 2rem auto 3rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose p, .prose li { font-size: 1.05rem; }
.prose ul { padding-left: 1.3rem; }
.prose .org-logo { max-width: 300px; background: #fff; padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 2.4rem 0 0; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem 2rem; padding-bottom: 1.6rem; }
.footer-col h4 { font-family: var(--font-body); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .6rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin: .25rem 0; }
.footer-col a { color: var(--text); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-desc, .footer-credits { color: var(--muted); font-size: .88rem; margin: 0; max-width: 36ch; }
.footer-org { display: inline-block; background: #fff; padding: .5rem .7rem; border-radius: 8px; margin-top: .9rem; }
.footer-org img { display: block; height: 42px; width: auto; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.1rem 0; text-align: center; }
.footer-quote { font-family: var(--font-display); font-style: italic; color: var(--muted); margin: 0 0 .2rem; }
.footer-meta { color: var(--muted); font-size: .8rem; margin: 0; }

/* ---------- Dark mode ---------- */
[data-theme="dark"] {
  --bg: #14120f;
  --bg-2: #201c17;
  --surface: #1c1915;
  --text: #ece7df;
  --muted: #a39b8c;
  --border: #2e2a24;
  --accent: #e0443d;
  --accent-dark: #c8302a;
  --accent-soft: #2a1c19;
  --gold: #d9a441;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
  --shadow: 0 18px 40px -22px rgba(0,0,0,.9);
}
[data-theme="dark"] .hero-fx-bg img { filter: sepia(35%) hue-rotate(-18deg) saturate(1.3) contrast(1.05) brightness(.6); }
[data-theme="dark"] .retratos-grid .retrato img { filter: grayscale(100%) brightness(.92); }
[data-theme="dark"] .carrusel-card img { background: #100e0c; filter: sepia(22%) brightness(.78); }
[data-theme="dark"] .status-open { background: #1f3320; color: #8fd19b; }
[data-theme="dark"] .button-ghost { color: #fff; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-fx { min-height: 300px; padding: 2.2rem 1.3rem; }
  .hero-fx-bg { width: 72%; }
  .progreso { grid-template-columns: 1fr; }
  .progreso-buttons { justify-content: flex-start; }
  .registration-grid { grid-template-columns: 1fr; }
  .registration-imagen { max-width: 190px; margin: 0 auto; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; order: 2; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: .6rem 1.4rem 1.2rem;
    transform: translateY(-140%); transition: transform .35s var(--ease); box-shadow: var(--shadow); z-index: 40;
  }
  body.nav-open .site-nav { transform: translateY(0); }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--border); }
  .site-nav a.is-active::after { display: none; }
  #theme-toggle { margin-top: .8rem; align-self: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .edicion-nav { flex-direction: column; }
  .edicion-nav-item { max-width: 100%; }
  .edicion-nav-item.right { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .carrusel-card { width: 200px; }
  .carrusel-card img { height: 170px; }
  .hero-friso img { height: 52px; }
}
@media (max-width: 640px) {
  .hero-fx { display: block; padding: 0; min-height: 0; }
  .hero-fx-bg { position: relative; top: auto; right: auto; bottom: auto; width: 100%; height: 240px; }
  .hero-fx-bg::before { display: none; }
  .hero-fx::after { background: linear-gradient(180deg, rgba(13, 11, 10, 0) 42%, rgba(13, 11, 10, .96) 100%); }
  .hero-fx-content { position: relative; padding: 1.5rem 1.3rem 1.9rem; max-width: 100%; }
}

@media (max-width: 520px) {
  .registration { padding: 1.4rem; }
  .session { padding: 1.2rem; }
  .session-head { gap: .7rem; }
  .edition-list a { flex-wrap: wrap; }
  .edition-status { margin-left: 0; }
}

/* ---------- Aviso de almacenamiento local ---------- */
.storage-notice {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 100;
  width: min(92vw, 540px); margin: 0;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--text); color: var(--bg);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, .65);
  opacity: 0; transform: translate(-50%, 22px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.storage-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }
.storage-notice p { margin: 0; flex: 1 1 240px; font-size: .9rem; line-height: 1.45; }
.storage-notice button {
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: .5rem 1.05rem; font-family: var(--font-body); font-weight: 600;
  font-size: .85rem; cursor: pointer;
}
.storage-notice button:hover { background: var(--accent-dark); }
@media (prefers-reduced-motion: reduce) {
  .storage-notice { transition: none; }
}
