/* ==========================================================================
   Genivs · Barcelona4Impact Week 2026
   Presentación de Genivs Insulae — Vivienda social e inversión de impacto
   ========================================================================== */

@font-face {
  font-family: "Source Serif";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Source Serif";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  /* Paleta corporativa Genivs */
  --green-950: #00221e;
  --green-900: #002d28;
  --green-800: #003933;   /* verde logotipo */
  --green-700: #0b4a42;
  --green-600: #1c5e54;
  --mint: #92c79e;        /* "s." del logotipo */
  --mint-soft: #d9ecdd;
  --burgundy: #82030b;    /* titulares invitación */
  --burgundy-700: #6a020a;
  --red: #d4070c;         /* Barcelona4Impact */
  --paper: #fffefc;
  --cream: #f7f3ec;
  --sand: #ece5d8;
  --ink: #161816;
  --ink-soft: #3f4441;
  --muted: #6c716d;
  --line: rgba(22, 24, 22, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);

  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 30px 60px -30px rgba(0, 34, 30, 0.35);
  --shadow-sm: 0 10px 30px -15px rgba(0, 34, 30, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--mint); color: var(--green-900); }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--burgundy);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--mint); }
.eyebrow--plain::before { display: none; }

.display, .h2, .h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.display { font-size: clamp(42px, 6.2vw, 86px); line-height: .98; font-variation-settings: "opsz" 60; }
.h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; font-variation-settings: "opsz" 48; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.accent { color: var(--burgundy); }
.italic { font-style: italic; font-weight: 400; }
.lead { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--ink-soft); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--green-800); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), background .35s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--burgundy); transform: translateY(101%); border-radius: inherit;
  transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:hover::after { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--mint { --bg: var(--mint); --fg: var(--green-900); }
.btn--mint::after { background: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--green-800); border-color: currentColor; }
.btn--ghost::after { background: var(--green-800); }
.btn--ghost:hover { color: #fff; }
.btn--ghost-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost-light::after { background: #fff; }
.btn--ghost-light:hover { color: var(--green-900); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  background: linear-gradient(90deg, var(--mint), var(--burgundy));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 254, 252, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand__genivs { height: 38px; width: auto; border-radius: 6px; }
.brand__sep { width: 1px; height: 32px; background: var(--line); }
.b4i {
  font-family: var(--sans); font-weight: 700; color: var(--red);
  font-size: 13px; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase;
  display: grid; grid-template-columns: auto auto; column-gap: 12px; row-gap: 2px;
}
.b4i span:first-child { grid-column: 1 / -1; }
.b4i--lg { font-size: clamp(22px, 2.4vw, 30px); column-gap: 28px; }

.nav { display: flex; align-items: center; gap: 4px; }
/* Enlaces de texto del menú (el botón «Inscríbete» usa el efecto común de .btn) */
.nav a:not(.btn) {
  position: relative; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; transition: color .25s; white-space: nowrap;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px;
  background: var(--burgundy); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover, .nav a:not(.btn).is-active { color: var(--burgundy); }
.nav a:not(.btn):hover::after, .nav a:not(.btn).is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: 10px; white-space: nowrap; }
@media (min-width: 1181px) and (max-width: 1360px) { .nav a:not(.btn) { padding: 8px 9px; } .nav a:not(.btn)::after { left: 9px; right: 9px; } }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; z-index: 120;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--green-800);
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110; flex-direction: column; justify-content: center; gap: 6px;
    background: var(--paper); padding: 90px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 30px; color: var(--ink); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 20px 0 0; font-size: 16px; padding: 14px 26px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .brand__sep, .site-header .b4i { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 60px;
  display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(146, 199, 158, .18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(130, 3, 11, .06), transparent 60%),
    var(--paper);
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero__kicker { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.hero__presenta {
  margin: 0; font-family: var(--sans); font-weight: 700; color: var(--burgundy);
  font-size: clamp(15px, 1.35vw, 19px); letter-spacing: .2em; text-transform: uppercase; line-height: 1.35;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--mint-soft); color: var(--green-800); font-size: 13px; font-weight: 600;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); position: relative; }
.pill .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green-600);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero .display .line { display: block; overflow: hidden; padding-bottom: .06em; }
@media (min-width: 901px) { .hero .display .line { white-space: nowrap; } }
.hero .display .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero .display .line:nth-child(2) > span { animation-delay: .12s; }
.hero .display .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero__tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.3vw, 30px); color: var(--ink-soft);
  margin: 26px 0 18px;
}
.hero__intro { max-width: 560px; color: var(--ink-soft); margin: 0 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; }
.d1 { animation-delay: .35s; } .d2 { animation-delay: .5s; } .d3 { animation-delay: .65s; } .d4 { animation-delay: .8s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__media { position: relative; aspect-ratio: 4 / 5; }
.hero__frame {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); clip-path: inset(100% 0 0 0 round 18px);
  animation: reveal 1.4s .2s var(--ease) forwards;
}
@keyframes reveal { to { clip-path: inset(0 0 0 0 round 18px); } }
.hero__frame img { width: 100%; height: 115%; object-fit: cover; object-position: center 35%; will-change: transform; }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 34, 30, .55));
}
.hero__rings { position: absolute; inset: -6% -10% auto auto; width: 70%; aspect-ratio: 1; pointer-events: none; }
.hero__rings span {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(130, 3, 11, .25);
  animation: spin 30s linear infinite;
}
.hero__rings span:nth-child(2) { inset: 12%; border-color: rgba(0, 57, 51, .2); border-style: dashed; animation-duration: 45s; animation-direction: reverse; }
.hero__rings span:nth-child(3) { inset: 26%; border-color: rgba(146, 199, 158, .6); animation-duration: 22s; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__badge {
  position: absolute; left: -28px; bottom: 34px; z-index: 2;
  background: var(--paper); border-radius: var(--radius-sm); padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; gap: 14px; align-items: flex-start; opacity: 0; animation: fadeUp 1s 1s var(--ease) forwards;
}
.hero__badge strong { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--burgundy); font-variant-numeric: tabular-nums; }
.hero__badge small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.hero__badge .sep { width: 1px; align-self: stretch; background: var(--line); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 20px;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--burgundy); animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 440px; width: 100%; margin: 10px auto 0; }
  .hero__badge { left: 12px; }
  .hero__scroll { display: none; }
}

/* ---------- Franja de datos clave ---------- */
.facts { background: var(--green-800); color: #fff; position: relative; overflow: hidden; }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr) auto; }
.fact { padding: 34px 28px; border-right: 1px solid var(--line-light); }
.fact:first-child { padding-left: 0; }
.fact__label { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--mint); margin-bottom: 8px; }
.fact__value { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; }
.fact__sub { font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 4px; }
.facts__cta { display: flex; align-items: center; padding-left: 28px; }
@media (max-width: 900px) {
  .facts__grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line-light); padding: 22px 0; }
  .facts__cta { padding: 24px 0 30px; }
}

/* ---------- Cuenta atrás ---------- */
.countdown { display: flex; gap: 10px; margin-top: 34px; }
.countdown__unit {
  min-width: 76px; padding: 12px 10px 10px; border-radius: var(--radius-sm); text-align: center;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px -14px rgba(0, 0, 0, .3);
}
.countdown__num { display: block; font-family: var(--serif); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--green-800); }
.countdown__lbl { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.countdown--done { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--burgundy); }
@media (max-width: 420px) { .countdown__unit { min-width: 0; flex: 1; } .countdown__num { font-size: 26px; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--green-900); color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .78); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.section__head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.section__head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section__head .lead { margin: 0; }
@media (max-width: 800px) { .section__head { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- La operación ---------- */
.operation { max-width: 860px; margin: 0 auto; }
.operation__list { list-style: none; margin: 30px 0 0; padding: 0; counter-reset: obj; }
.operation__list li {
  counter-increment: obj; position: relative; padding: 20px 0 20px 64px; border-top: 1px solid var(--line);
}
.operation__list li:last-child { border-bottom: 1px solid var(--line); }
.operation__list li::before {
  content: counter(obj, decimal-leading-zero); position: absolute; left: 0; top: 18px;
  font-family: var(--serif); font-size: 28px; color: var(--burgundy); line-height: 1;
}
.operation__list strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.operation__list p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; gap: 1px; background: var(--line-light); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--green-900); padding: clamp(28px, 3.5vw, 44px) clamp(20px, 2.5vw, 32px); position: relative; transition: background .5s var(--ease); }
.stat:hover { background: var(--green-800); }
.stat__num {
  font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: 1; letter-spacing: -0.03em;
  color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__num .unit { color: var(--mint); }
.stat__title { font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--mint); margin: 18px 0 10px; }
.stat__text { font-size: 15px; color: rgba(255, 255, 255, .72); margin: 0; }
.stat__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.is-visible .stat__bar { transform: scaleX(1); }
.cities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; justify-content: center; }
.cities span {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-light); font-family: var(--serif); font-size: 18px;
  transition: background .3s, color .3s, border-color .3s;
}
.cities span:hover { background: var(--mint); color: var(--green-900); border-color: var(--mint); }
.stats-note { text-align: center; max-width: 780px; margin: 30px auto 0; color: rgba(255, 255, 255, .6); font-size: 15px; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Barcelona4Impact Week ---------- */
.week { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.week__art { position: sticky; top: calc(var(--header-h) + 30px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.week__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.week__art .b4i-badge {
  position: absolute; left: 20px; bottom: 20px; background: rgba(255, 254, 252, .94); border-radius: var(--radius-sm); padding: 16px 20px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.week__days { list-style: none; margin: 34px 0 0; padding: 0; }
.week__day {
  display: grid; grid-template-columns: 86px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); align-items: center;
  transition: padding .35s var(--ease), background .35s;
}
.week__day:last-child { border-bottom: 1px solid var(--line); }
.week__date { font-family: var(--serif); line-height: 1; }
.week__date b { display: block; font-size: 38px; font-weight: 500; }
.week__date small { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.week__events { display: flex; flex-direction: column; gap: 6px; }
.week__event { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 16px; }
.week__event em { font-style: normal; font-size: 13px; color: var(--muted); }
.week__day--main { background: var(--mint-soft); border-radius: var(--radius-sm); padding: 20px 18px; border-color: transparent; }
.week__day--main + .week__day { border-top-color: transparent; }
.week__day--main .week__date b { color: var(--burgundy); }
.week__event--main { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--green-800); }
.venue-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.venue-fact { padding: 20px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.venue-fact h3 { margin: 0 0 6px; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--burgundy); }
.venue-fact p { margin: 0; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .week { grid-template-columns: 1fr; }
  .week__art { position: relative; top: 0; aspect-ratio: 16 / 11; }
  .venue-facts { grid-template-columns: 1fr; }
}

/* ---------- Programa (timeline) ---------- */
.agenda { position: relative; max-width: 940px; margin: 0 auto; }
.agenda__line { position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.agenda__line span { position: absolute; inset: 0; background: linear-gradient(var(--burgundy), var(--green-800)); transform-origin: top; transform: scaleY(0); }
.agenda__item { display: grid; grid-template-columns: 100px 40px 1fr; gap: 0; padding: 0 0 38px; position: relative; }
.agenda__time { font-family: var(--serif); font-size: 28px; line-height: 1.1; color: var(--burgundy); font-variant-numeric: tabular-nums; text-align: right; padding-right: 4px; }
.agenda__dot { position: relative; }
.agenda__dot::before {
  content: ""; position: absolute; left: 12px; top: 10px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--burgundy); transition: background .4s, transform .4s var(--ease);
}
.agenda__item.is-visible .agenda__dot::before { background: var(--burgundy); transform: scale(1.15); }
.agenda__body { padding: 0 0 0 16px; }
.agenda__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.agenda__card:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); border-color: transparent; }
.agenda__card h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 0 0 4px; line-height: 1.25; }
.agenda__card .who { margin: 0; color: var(--ink-soft); font-size: 16px; }
.agenda__card .who b { color: var(--ink); font-weight: 600; }
.agenda__tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green-700); background: var(--mint-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.agenda__item--featured .agenda__card { background: var(--green-800); color: #fff; border-color: transparent; }
.agenda__item--featured .agenda__card .who { color: rgba(255, 255, 255, .78); }
.agenda__item--featured .agenda__card .who b { color: #fff; }
.agenda__item--featured .agenda__tag { background: rgba(146, 199, 158, .18); color: var(--mint); }
.panelists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.panelist {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 14px 8px 8px; text-align: left;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .06);
  color: #fff; font: inherit; font-size: 15px; font-weight: 500; line-height: 1.3; cursor: pointer;
  transition: background .35s var(--ease), transform .35s var(--ease), border-color .35s;
}
.panelist__photo { position: relative; flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.panelist__photo img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05);
  transform: scale(1.02); transition: filter .6s var(--ease), transform .8s var(--ease);
}
.panelist__photo::after {
  content: "+"; position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); color: var(--green-800); display: grid; place-items: center;
  font-size: 15px; font-weight: 400; line-height: 1; transform: scale(.6); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s;
}
.panelist__text { min-width: 0; overflow-wrap: anywhere; }
.panelist small { display: block; font-size: 12.5px; font-weight: 400; color: rgba(255, 255, 255, .65); line-height: 1.3; margin-top: 2px; }
.panelist:hover, .panelist:focus-visible { background: rgba(255, 255, 255, .12); border-color: rgba(146, 199, 158, .5); transform: translateY(-2px); }
.panelist:hover .panelist__photo img, .panelist:focus-visible .panelist__photo img { filter: none; transform: scale(1.1); }
.panelist:hover .panelist__photo::after, .panelist:focus-visible .panelist__photo::after { transform: scale(1); opacity: 1; }
.panelist:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
@media (max-width: 520px) {
  .panelists { grid-template-columns: 1fr; }
  .panelist__photo { width: 64px; height: 64px; }
}
.agenda__note { max-width: 940px; margin: 10px auto 0; text-align: center; color: var(--muted); font-size: 15px; font-style: italic; font-family: var(--serif); }
.agenda__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 640px) {
  .agenda__line { left: 7px; }
  .agenda__item { grid-template-columns: 1fr; padding-left: 36px; padding-bottom: 28px; }
  .agenda__time { text-align: left; font-size: 22px; margin-bottom: 10px; }
  .agenda__dot { position: absolute; left: 0; top: 0; }
  .agenda__dot::before { left: 1px; top: 6px; }
  .agenda__body { padding: 0; }
  .agenda__card { padding: 18px 20px; }
}

/* ---------- Ponentes ---------- */
.speakers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); }
.speaker { position: relative; text-align: left; perspective: 1200px; }
.speaker__btn { all: unset; display: block; width: 100%; cursor: pointer; border-radius: var(--radius); }
.speaker__btn:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.speaker__photo { position: relative; aspect-ratio: 1 / 1.08; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.speaker__photo img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05);
  transform: scale(1.02); transition: filter .6s var(--ease), transform .8s var(--ease);
}
.speaker__photo img.zoom { transform: scale(1.14); }
.speaker__photo::after {
  content: "+"; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); color: var(--green-800); display: grid; place-items: center;
  font-size: 24px; font-weight: 300; line-height: 1; transform: scale(.7); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s;
}
.speaker__btn:hover .speaker__photo img, .speaker__btn:focus-visible .speaker__photo img { filter: none; transform: scale(1.08); }
.speaker__btn:hover .speaker__photo img.zoom, .speaker__btn:focus-visible .speaker__photo img.zoom { transform: scale(1.2); }
.speaker__btn:hover .speaker__photo::after, .speaker__btn:focus-visible .speaker__photo::after { transform: scale(1); opacity: 1; }
.speaker__role-tag {
  position: absolute; left: 12px; top: 12px; z-index: 1; font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  background: rgba(255, 254, 252, .92); color: var(--green-800); padding: 5px 10px; border-radius: 999px;
}
.speaker__role-tag--mod { background: var(--burgundy); color: #fff; }
.speaker__name { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 16px 0 4px; line-height: 1.2; }
.speaker__role { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.45; }
.speaker__org { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--burgundy); }
@media (max-width: 1000px) { .speakers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .speakers { grid-template-columns: repeat(2, 1fr); } .speaker__name { font-size: 18px; } .speaker__role { font-size: 13.5px; } }

/* Modal ponente */
.modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 34, 30, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__dialog {
  position: relative; width: 100%; max-width: 760px; max-height: calc(100svh - 32px); overflow: auto;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 280px 1fr; transform: translateY(30px) scale(.98); transition: transform .45s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.modal__body { padding: 36px 34px; }
.modal__body h3 { font-family: var(--serif); font-size: 32px; font-weight: 600; margin: 0 0 6px; line-height: 1.1; }
.modal__body .role { color: var(--burgundy); font-weight: 500; margin: 0 0 18px; }
.modal__body p { color: var(--ink-soft); }
.modal__logo { max-height: 46px; width: auto; margin-top: 18px; }
.modal__close {
  position: absolute; right: 14px; top: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--paper); box-shadow: var(--shadow-sm); cursor: pointer; font-size: 22px; line-height: 1;
  transition: transform .3s var(--ease);
}
.modal__close:hover { transform: rotate(90deg); }
@media (max-width: 680px) {
  .modal__dialog { grid-template-columns: 1fr; }
  .modal__img { height: 260px; min-height: 0; }
  .modal__body { padding: 26px 22px; }
}

/* ---------- Palau Macaya (galería) ---------- */
.venue-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 50px; }
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 14vw, 190px); gap: clamp(10px, 1.4vw, 18px);
}
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: #0d2a26; border: 0; padding: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.06); }
.gallery__item figcaption, .gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; text-align: left;
  background: linear-gradient(transparent, rgba(0, 20, 18, .75)); color: #fff; font-size: 14px;
  transform: translateY(8px); opacity: 0; transition: transform .45s var(--ease), opacity .45s;
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { transform: none; opacity: 1; }
.g1 { grid-column: span 7; grid-row: span 2; }
.g2 { grid-column: span 5; grid-row: span 3; }
.g3 { grid-column: span 3; grid-row: span 2; }
.g4 { grid-column: span 4; grid-row: span 2; }
.g5 { grid-column: span 5; grid-row: span 2; }
.g6 { grid-column: span 7; grid-row: span 2; }
@media (max-width: 800px) {
  .venue-intro { grid-template-columns: 1fr; gap: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g1, .g6 { grid-column: span 2; grid-row: span 2; }
  .g2 { grid-column: span 1; grid-row: span 2; }
  .g3, .g4, .g5 { grid-column: span 1; grid-row: span 1; }
  .g5 { grid-row: span 1; }
  .gallery__cap { opacity: 1; transform: none; font-size: 12px; padding: 30px 12px 10px; }
}

.lightbox { position: fixed; inset: 0; z-index: 320; background: rgba(0, 14, 12, .92); display: grid; place-items: center; padding: 60px 16px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100svh - 140px); width: auto; border-radius: var(--radius-sm); box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.lightbox__cap { color: rgba(255, 255, 255, .8); text-align: center; margin-top: 14px; font-family: var(--serif); font-style: italic; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; font-size: 22px; cursor: pointer; transition: background .3s; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Cobertura / streaming ---------- */
.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cov {
  position: relative; padding: 32px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-light); overflow: hidden; transition: transform .45s var(--ease), background .45s;
}
.cov:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .07); }
.cov__num { font-family: var(--serif); font-size: 15px; color: var(--mint); letter-spacing: .1em; }
.cov__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(146, 199, 158, .14); display: grid; place-items: center; margin: 18px 0 20px; color: var(--mint); }
.cov__icon svg { width: 26px; height: 26px; }
.cov h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 0 0 10px; }
.cov p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15.5px; }
.live {
  margin-top: 40px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center;
  border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); background: linear-gradient(120deg, var(--green-800), var(--green-700));
}
.live__player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000 center / cover no-repeat;
  display: grid; place-items: center; text-align: center; padding: 20px;
}
.live__player::before { content: ""; position: absolute; inset: 0; background: rgba(0, 20, 18, .62); }
.live__player > * { position: relative; }
.live__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live__player p { font-size: 14px; color: rgba(255, 255, 255, .8); max-width: 420px; margin: 0 auto 14px; }
.live__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: var(--red); padding: 6px 12px; border-radius: 6px; margin-bottom: 14px; }
.live__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
@media (max-width: 900px) { .coverage, .live { grid-template-columns: 1fr; } }

/* ---------- Entidades (marquee) ---------- */
.partners { padding: clamp(60px, 8vw, 100px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.partners__title { text-align: center; }
.marquee { position: relative; margin-top: 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: clamp(40px, 6vw, 90px); width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 64px; width: auto; max-width: 220px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .4s, opacity .4s; mix-blend-mode: multiply; }
.marquee__track img:hover { filter: none; opacity: 1; }
.marquee__track .tall { height: 84px; }
.marquee__track .boxed { height: 46px; border-radius: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Inscripción ---------- */
.register { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.register__aside { position: sticky; top: calc(var(--header-h) + 30px); }
.register__aside ul { list-style: none; margin: 30px 0 0; padding: 0; }
.register__aside li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.register__aside li:last-child { border-bottom: 1px solid var(--line); }
.register__aside li svg { flex: none; width: 22px; height: 22px; color: var(--burgundy); margin-top: 2px; }
.register__aside li b { display: block; font-weight: 600; }
.register__aside li span { color: var(--ink-soft); font-size: 15px; }
.capacity { margin-top: 26px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--mint-soft); color: var(--green-800); font-size: 15px; }
.capacity b { font-family: var(--serif); font-size: 20px; }

.form {
  background: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.form__steps { display: flex; gap: 8px; margin-bottom: 30px; }
.form__steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--sand); position: relative; overflow: hidden; }
.form__steps span::after { content: ""; position: absolute; inset: 0; background: var(--green-800); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.form__steps span.is-done::after { transform: scaleX(1); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--burgundy); }
.field .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--sand); background: var(--paper);
  font-size: 16px; transition: border-color .25s, box-shadow .25s, background .25s; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23003933' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d8cfbf; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-800); background: #fff; box-shadow: 0 0 0 4px rgba(146, 199, 158, .35); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); background: #fff8f8; }
.field .error { display: none; font-size: 13px; color: var(--red); font-weight: 500; }
.field.has-error .error { display: block; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--sand);
  background: var(--paper); font-size: 15px; font-weight: 500; transition: border-color .25s, background .25s, color .25s;
}
.choice span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #bdb4a4; background: #fff;
  transition: border .25s, box-shadow .25s;
}
.choice input:checked + span { border-color: var(--green-800); background: var(--mint-soft); color: var(--green-900); }
.choice input:checked + span::before { border: 5px solid var(--green-800); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(146, 199, 158, .45); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.check input {
  flex: none; appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px;
  border: 1.5px solid #bdb4a4; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s;
}
.check input::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform .25s var(--ease); }
.check input:checked { background: var(--green-800); border-color: var(--green-800); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check a { color: var(--burgundy); }
.field.has-error .check input { border-color: var(--red); }

.conditional { display: none; }
.conditional.is-shown { display: flex; animation: fadeUp .5s var(--ease) forwards; }

.legal-box { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.55; color: var(--muted); background: var(--cream); border-radius: 12px; padding: 16px 18px; }
.legal-box p { margin: 0 0 6px; }
.legal-box p:last-child { margin: 0; }
.legal-box a { color: var(--green-800); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form__footer small { color: var(--muted); font-size: 13px; }
.form__alert { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #fff3f3; color: var(--burgundy); font-size: 15px; }
.form__alert.is-shown { display: block; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.is-loading .spinner { display: block; }
.is-loading .btn-arrow { display: none; }

.success { display: none; text-align: center; padding: 30px 10px; }
.success.is-shown { display: block; animation: fadeUp .7s var(--ease) forwards; }
.success__icon { width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 50%; background: var(--mint-soft); display: grid; place-items: center; }
.success__icon svg { width: 44px; height: 44px; stroke: var(--green-800); stroke-width: 2.5; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .9s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h3 { font-family: var(--serif); font-size: 34px; font-weight: 500; margin: 0 0 10px; }
.success p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 24px; }
.success .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 900px) { .register { grid-template-columns: 1fr; } .register__aside { position: static; } }
@media (max-width: 600px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Mapa / cómo llegar ---------- */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.location__info { padding: clamp(28px, 4vw, 48px); }
.location__info address { font-style: normal; font-family: var(--serif); font-size: 22px; line-height: 1.4; margin: 12px 0 20px; }
.location__info ul { margin: 0 0 24px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 15.5px; }
.location__info li { padding: 8px 0; border-top: 1px solid var(--line); }
.location__map { position: relative; min-height: 340px; background: var(--green-800) center / cover no-repeat; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; }
.location__map::before { content: ""; position: absolute; inset: 0; background: rgba(0, 34, 30, .65); }
.location__map > * { position: relative; }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location__map p { max-width: 360px; margin: 0 auto 14px; font-size: 14px; color: rgba(255, 255, 255, .85); }
@media (max-width: 800px) { .location { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.final-cta { position: relative; overflow: hidden; background: var(--burgundy); color: #fff; text-align: center; }
.final-cta .h2 { max-width: 900px; margin: 0 auto 26px; }
.final-cta p { color: rgba(255, 255, 255, .8); margin: 0 auto 34px; max-width: 560px; }
.final-cta__rings { position: absolute; inset: 0; pointer-events: none; }
.final-cta__rings span { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); transform: translate(-50%, -50%); animation: pulse 6s var(--ease) infinite; }
.final-cta__rings span:nth-child(1) { width: 400px; height: 400px; }
.final-cta__rings span:nth-child(2) { width: 700px; height: 700px; animation-delay: 1s; }
.final-cta__rings span:nth-child(3) { width: 1000px; height: 1000px; animation-delay: 2s; }
@keyframes pulse { 0%, 100% { opacity: .4; transform: translate(-50%, -50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); } }
.final-cta .btn--mint::after { background: #fff; }

/* ---------- Pie ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .72); padding: 70px 0 30px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 42px; width: auto; border-radius: 6px; margin-bottom: 18px; }
.footer__brand p { max-width: 320px; margin: 0; }
.site-footer h4 { color: #fff; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; margin: 0 0 16px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: var(--mint); }
.footer__hashtag { font-family: var(--serif); font-size: clamp(40px, 8vw, 110px); line-height: 1; color: rgba(255, 255, 255, .06); margin: 50px 0 20px; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; font-size: 13px; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__bottom button { background: none; border: 0; padding: 0; color: rgba(255, 255, 255, .72); cursor: pointer; font-size: 13px; }
.footer__bottom button:hover { color: var(--mint); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 400; max-width: 560px;
  background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
  border: 1px solid var(--line); padding: 24px; transform: translateY(140%); transition: transform .6s var(--ease);
}
.cookie-banner.is-shown { transform: none; }
.cookie-banner h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.cookie-banner p { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; }
.cookie-banner p a { color: var(--burgundy); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner__actions .btn { flex: 1 1 auto; padding: 12px 16px; font-size: 14px; }
.cookie-prefs { display: none; margin: 0 0 16px; border-top: 1px solid var(--line); }
.cookie-prefs.is-shown { display: block; }
.cookie-pref { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cookie-pref b { display: block; font-size: 14.5px; }
.cookie-pref small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfc8bb; transition: background .3s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--green-800); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(146, 199, 158, .6); }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--scale { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Páginas legales ---------- */
.legal-hero { padding: calc(var(--header-h) + 70px) 0 50px; background: var(--cream); border-bottom: 1px solid var(--line); }
.legal-hero .h2 { max-width: 900px; }
.legal-hero p { color: var(--muted); margin: 18px 0 0; font-size: 15px; }
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(30px, 5vw, 70px); padding-top: 60px; padding-bottom: 100px; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 14px; }
.legal__toc h2 { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--burgundy); margin: 0 0 12px; }
.legal__toc ol { margin: 0; padding: 0 0 0 18px; color: var(--muted); }
.legal__toc li { margin-bottom: 8px; }
.legal__toc a { text-decoration: none; color: var(--ink-soft); }
.legal__toc a:hover { color: var(--burgundy); }
.legal__content { max-width: 780px; }
.legal__content h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 48px 0 14px; line-height: 1.2; }
.legal__content h2:first-child { margin-top: 0; }
.legal__content h3 { font-size: 18px; margin: 28px 0 8px; }
.legal__content p, .legal__content li { color: var(--ink-soft); }
.legal__content a { color: var(--burgundy); }
.legal__content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.legal__content th, .legal__content td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal__content th { background: var(--cream); font-weight: 600; white-space: nowrap; }
.legal__content .callout { background: var(--mint-soft); border-radius: var(--radius-sm); padding: 18px 20px; color: var(--green-900); margin: 20px 0; }
.legal__content .callout p { color: inherit; margin: 0; }
.pending { background: #fff4c7; color: #6b5200; padding: 0 4px; border-radius: 4px; font-weight: 600; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__frame { clip-path: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

@media print {
  .site-header, .cookie-banner, .scroll-progress, .hero__scroll, .final-cta, .form { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .speaker__role-tag { font-size: 9.5px; letter-spacing: .08em; padding: 4px 8px; left: 8px; top: 8px; max-width: calc(100% - 16px); }
}

/* ---------- Selector de idioma ---------- */
.lang { display: flex; align-items: center; gap: 2px; margin-left: 14px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
.lang a {
  display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-decoration: none; color: var(--ink-soft);
  transition: background .25s, color .25s;
}
.lang a:hover { color: var(--burgundy); }
.lang a[aria-current="true"] { background: var(--green-800); color: #fff; }
.site-header .container > .lang { margin-left: auto; }
@media (min-width: 1181px) { .site-header .container > .lang { order: 3; margin-left: 14px; } .site-header .nav { margin-left: auto; } }
@media (max-width: 1180px) { .site-header .container > .lang { margin-right: 6px; } }
.site-header--legal .container > .lang { order: 0; margin-left: auto; margin-right: 10px; }
@media (max-width: 420px) { .site-header--legal .btn--sm { display: none; } }
@media (max-width: 1180px) { .site-header .container { gap: 6px; } }
@media (max-width: 900px) { .reveal--left, .reveal--right { transform: translateY(40px); } }

/* ---------- Ajustes responsive (auditoría) ---------- */
/* Pie: hashtag decorativo sin cortes en móviles pequeños */
.footer__hashtag { font-size: clamp(26px, 8vw, 110px); }

/* Directo: en móvil el recuadro crece con su contenido hasta que se carga el vídeo */
@media (max-width: 600px) {
  .live__player { aspect-ratio: auto; min-height: 220px; padding: 28px 18px; }
  .live__player[data-loaded] { aspect-ratio: 16 / 9; min-height: 0; padding: 0; }
}
.live__player[data-loaded] > div, .location__map[data-loaded] > div { display: none; }

/* Páginas legales: el contenido nunca empuja el ancho de la página */
.legal > * { min-width: 0; }
.legal__content { overflow-wrap: break-word; }
.legal__content a { overflow-wrap: anywhere; }
.legal__content table { display: table; overflow: visible; }
@media (max-width: 640px) {
  .legal__content table, .legal__content tbody, .legal__content tr, .legal__content th, .legal__content td { display: block; width: 100%; }
  .legal__content thead { display: none; }
  .legal__content tr { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: #fff; }
  .legal__content th, .legal__content td { border-bottom: 0; white-space: normal; padding: 10px 14px; }
  .legal__content tr > * + * { border-top: 1px solid var(--line); }
  .legal__content td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 4px; }
}

/* Galería móvil sin huecos: el patio ocupa todo el ancho */
@media (max-width: 800px) { .g5 { grid-column: span 2; } }

/* Casillas del formulario: texto en peso normal */
.field label.check { font-weight: 400; }
.field label.check a { font-weight: 500; }

/* Móviles pequeños */
@media (max-width: 400px) {
  .brand__genivs { height: 32px; }
  .lang a { min-width: 30px; padding: 0 6px; height: 28px; font-size: 11px; }
  .live__badge { letter-spacing: .1em; font-size: 11px; }
  .field select { font-size: 15px; padding-left: 12px; padding-right: 34px; background-position: right 12px center; }
  .form { padding: 22px 16px; }
  .choice span { padding: 12px 12px; }
}

/* Aviso de cookies: nunca más alto que la pantalla */
.cookie-banner { max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 400px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 18px 16px; max-height: calc(100svh - 20px); }
  .cookie-banner h2 { font-size: 19px; }
  .cookie-banner p { font-size: 13px; }
}
.cookie-banner__actions { position: sticky; bottom: -24px; margin: 0 -24px -24px; padding: 12px 24px 24px; background: var(--paper); }
@media (max-width: 400px) { .cookie-banner__actions { bottom: -18px; margin: 0 -16px -18px; padding: 10px 16px 18px; } }

/* Tablet: ponentes en 4 columnas (sin huecos) y 2 en móvil; tarjetas de cobertura en 3 columnas */
@media (max-width: 1000px) { .speakers { grid-template-columns: repeat(4, 1fr); } .speaker__name { font-size: 19px; } .speaker__role { font-size: 13.5px; } }
@media (max-width: 720px) { .speakers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) and (min-width: 701px) { .coverage { grid-template-columns: repeat(3, 1fr); gap: 14px; } .cov { padding: 24px 20px; } .cov h3 { font-size: 21px; } }
@media (max-width: 1000px) and (min-width: 721px) { .speaker__role-tag { font-size: 9.5px; letter-spacing: .08em; padding: 4px 8px; left: 8px; top: 8px; max-width: calc(100% - 16px); } }
.form__alert, .footer__grid a, .success p { overflow-wrap: anywhere; }
