/* STORYCRAFTERS — landing. Secciones en el mismo orden que index.html. */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --bg-deep: #050505;
  --surface: #1c1c1c;
  --text: #EFE7DA;
  --text-soft: #cfcfcf;
  --text-muted: #b3b3b3;
  --text-dim: #9a9a9a;
  --accent: #F2B33D;
  --accent-hover: #FFD27A;
  --tan: #C9A56A;
  --rec: #E5533D;
  --line: #262626;
  --line-soft: rgba(239, 231, 218, .14);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --pad-section: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 48px);
  --header-h: 64px;

  /* Escala tipográfica fluida: clamp(mínimo, ideal fluido, máximo).
     Los pasos bajos (meta, mono, etiquetas) casi no varían para conservar
     densidad; cuerpo y titulares interpolan con el ancho del viewport
     (~360px → ~1440px), y los display escalan más agresivamente. */
  --step--2: clamp(10px, 9px + 0.3vw, 12px);
  --step--1: clamp(11px, 11px + 0.2vw, 13px);
  --step-0:  clamp(12px, 11.5px + 0.35vw, 15px);
  --step-1:  clamp(13px, 12px + 0.4vw, 15px);
  --step-2:  clamp(14px, 13px + 0.35vw, 16px);
  --step-3:  clamp(15px, 14px + 0.45vw, 18px);
  --step-4:  clamp(16px, 15px + 0.55vw, 19px);
  --step-5:  clamp(17px, 15px + 0.7vw, 21px);
  --step-6:  clamp(18px, 16px + 0.9vw, 24px);
  --step-7:  clamp(20px, 17px + 1.1vw, 28px);
  --step-8:  clamp(24px, 20px + 1.5vw, 32px);
  --step-9:  clamp(28px, 22px + 2vw, 40px);
  --step-10: clamp(30px, 24px + 2.4vw, 44px);

  /* Titulares display (Barlow Condensed 300, mayúsculas) */
  --disp-sm:   clamp(32px, 3.6vw, 52px);
  --disp-md:   clamp(40px, 6.4vw, 96px);
  --disp-lg:   clamp(56px, 8vw, 120px);
  --disp-xl:   clamp(56px, 9vw, 140px);
  --disp-hero: clamp(28px, min(4.6vw, 6.4vh), 60px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-4);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-wrap: balance;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: var(--bg); }
img { display: block; max-width: 100%; }
input, textarea, select { text-wrap: wrap; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: var(--header-h); }

/* Grano de película (decorativo) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Piezas reutilizables ---------- */
.container { max-width: 1240px; margin: 0 auto; }
.container--narrow { max-width: 1000px; }

.section { padding: var(--pad-section); background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--stack { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.stack { display: flex; flex-direction: column; gap: 20px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step-0);
  letter-spacing: .25em;
  color: var(--accent);
}
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--step-0);
  color: var(--accent);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--disp-md);
  line-height: .98;
  text-transform: uppercase;
  text-wrap: balance;
}
.h2--xl { font-size: var(--disp-xl); line-height: .9; }
.h2--lg { font-size: var(--disp-lg); line-height: .9; }
.h2--sm { font-size: var(--disp-sm); }
.h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-9);
  text-transform: uppercase;
}
.hl { color: var(--accent); }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: var(--step-4);
  padding: 16px 28px;
  border-radius: 2px;
  cursor: pointer;
}
.btn--sm { font-size: var(--step-2); padding: 10px 18px; letter-spacing: .02em; }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn--ghost { border: 1px solid rgba(239, 231, 218, .35); color: var(--text); font-weight: 600; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Contenido pendiente de definir: se ve punteado para que no pase desapercibido */
.pending {
  display: inline-block;
  border: 1px dashed var(--tan);
  color: var(--tan);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  padding: 2px 8px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(10, 10, 10, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(239, 231, 218, .08);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.brand__name { font-family: var(--font-display); font-size: var(--step-7); letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: var(--step-2); font-weight: 500; letter-spacing: .02em; }
.nav a { color: var(--text-soft); }
.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.hero__bg, .hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__bg { background: url('../assets/hero-mirada-web.webp') 62% 40% / cover no-repeat; }
.hero__shade {
  background:
    linear-gradient(180deg, rgba(10,10,10,.65) 0%, rgba(10,10,10,.15) 28%, rgba(10,10,10,.2) 55%, rgba(10,10,10,.85) 82%, #0a0a0a 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(10,10,10,.6) 100%);
}
.hero__stage { position: relative; flex: 1 1 auto; min-height: 300px; }
.hero__date {
  position: absolute;
  right: clamp(10px, 2.5vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .35em;
  color: var(--tan);
  z-index: 4;
}
.hero__presents {
  position: absolute;
  top: clamp(24px, 5vh, 56px);
  left: clamp(20px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  z-index: 4;
}
.hero__presents-row { display: flex; align-items: center; gap: 12px; }
.hero__presents-row img { height: 26px; width: auto; filter: invert(1); opacity: .95; }
.hero__presents-row span {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__tagline { font-size: var(--step-1); letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.hero__logo-wrap { margin: 0; line-height: 0; }
.hero__logo { width: clamp(150px, min(22vw, 30vh), 340px); height: auto; display: block; opacity: .86; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55)); }
.hero__info {
  position: relative;
  z-index: 4;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(20px, 3vh, 36px) clamp(20px, 5vw, 48px) clamp(24px, 4vh, 48px);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero__lead { display: flex; flex-direction: column; gap: clamp(10px, 2vh, 20px); }
.hero__lead h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--disp-hero);
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__lead p {
  font-size: var(--step-4);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 560px;
  text-wrap: balance;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__side { display: flex; flex-direction: column; gap: 22px; }

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  font-size: var(--step-3);
  border-top: 1px solid rgba(239, 231, 218, .15);
  padding-top: 20px;
}
.facts dt { font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent); padding-top: 3px; }
.facts dd { margin: 0; }

.countdown {
  background: var(--bg-deep);
  border: 1px solid #2a2a2a;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
}
.countdown__head { display: flex; justify-content: space-between; font-size: var(--step--2); letter-spacing: .2em; color: var(--text-dim); }
.countdown__rec { color: var(--rec); }
.countdown__time { font-size: var(--step-10); font-weight: 500; color: var(--accent); letter-spacing: .04em; }
.countdown__units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: var(--step--2);
  letter-spacing: .2em;
  color: var(--text-dim);
  max-width: 300px;
}

/* ---------- Qué es ---------- */
.about { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.about__head { max-width: 980px; }
.about__text {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(24px, 4vw, 56px);
  font-size: var(--step-4);
  line-height: 1.7;
  color: var(--text-soft);
}
.about__text p { text-wrap: balance; }
.about__text strong { color: var(--text); }

/* Rejilla de celdas separadas por una línea de 1px (Qué es, Qué incluye) */
.cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cell { background: var(--bg); display: flex; flex-direction: column; }
.cell--pillar { padding: clamp(24px, 3vw, 36px); gap: 14px; }
.cell--pillar p { color: var(--text-soft); line-height: 1.6; }
.cell--pillar .mono-label { letter-spacing: .2em; }
.cell--include { padding: 28px; gap: 18px; min-height: 170px; }
.cell--include span:last-child { font-size: var(--step-5); font-weight: 600; line-height: 1.35; }
.cell--accent { background: var(--accent); color: var(--bg); }
.cell--accent .mono-label { color: var(--bg); }
.cell--accent span:last-child { font-weight: 700; }

/* ---------- Para quién ---------- */
.audience { position: relative; overflow: hidden; background: var(--bg-alt); }
.audience__bg, .audience__shade { position: absolute; inset: 0; pointer-events: none; }
.audience__bg {
  background: url('../assets/bg-playa-web.webp') center 40% / cover no-repeat;
  opacity: .26;
  filter: grayscale(1);
  mix-blend-mode: luminosity;
}
.audience__shade { background: linear-gradient(90deg, #121212 0%, rgba(18,18,18,.55) 55%, rgba(18,18,18,.2) 100%); }
.audience__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.audience__note {
  margin-top: 12px;
  background: var(--accent);
  color: var(--bg);
  padding: 20px 24px;
  font-weight: 600;
  font-size: var(--step-4);
  line-height: 1.45;
  max-width: 420px;
}
.audience__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.audience__list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  font-size: var(--step-5);
  line-height: 1.45;
}
.audience__list li:last-child { border-bottom: 1px solid var(--line-soft); }
.audience__list .mono-label { padding-top: 5px; }

/* ---------- Expositores ---------- */
.speakers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.speaker { display: flex; flex-direction: column; gap: 16px; }
.speaker__photo { position: relative; aspect-ratio: 4 / 5; background: var(--bg-alt); }
.speaker__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.speaker__photo-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.badge {
  position: absolute;
  top: 12px; left: 12px;
  pointer-events: none;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: .12em;
  padding: 5px 9px;
}
.badge--zoom { background: var(--text); }
.speaker__id { display: flex; flex-direction: column; gap: 6px; }
.speaker__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-7);
  text-transform: uppercase;
  line-height: 1.05;
}
.speaker__role { font-size: var(--step-2); color: var(--tan); font-weight: 600; }
.speaker__sessions {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  line-height: 1.6;
  border-top: 1px solid #2a2a2a;
  padding-top: 12px;
}
.speaker__bio { font-size: var(--step-2); line-height: 1.6; color: var(--text-muted); text-wrap: balance; }
.speaker__ig {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--tan);
}
.speaker__ig:hover { color: var(--accent); }

/* ---------- Agenda ---------- */
.agenda { display: flex; flex-direction: column; gap: 10px; }
.agenda__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
  margin-bottom: 8px;
}
.agenda__head h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-10);
  text-transform: uppercase;
}
.agenda__head > span:last-child { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-dim); letter-spacing: .15em; }
.agenda__note { font-size: var(--step-1); color: var(--text-dim); }

.row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: stretch; }
.row__time { font-family: var(--font-mono); font-size: var(--step-1); color: #555; padding-top: 16px; }
.row__time--set { color: var(--accent); }
.row__body {
  background: var(--surface);
  border: 1px solid #333;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.row__body strong { font-weight: 600; }
.row__who { color: var(--text-muted); }
.row__dur { font-family: var(--font-mono); font-size: var(--step--1); color: var(--tan); }
.row__body--break { background: none; border: 1px dashed #3d3d3d; color: var(--text-soft); }
.row__body--break strong { color: var(--text); }
.row__body--practice { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.row__body--practice strong { font-weight: 700; }
.row__body--practice .row__dur { color: var(--bg); }
.row__body--column { flex-direction: column; gap: 4px; }
.row__body--column span { font-size: var(--step-2); }

/* ---------- Después de la masterclass ----------
   Escritorio (>= 1180px): foto de fondo a la izquierda, texto a la derecha.
   Menor: la foto va arriba y el texto debajo. */
.after {
  position: relative;
  overflow: hidden;
  min-height: clamp(480px, 56.25vw, 100svh);
  background: #000;
  display: flex;
  align-items: center;
}
.after__img, .after__shade { position: absolute; inset: 0; pointer-events: none; }
.after__img {
  background: url('../assets/despues-retrato-web.webp') 0% 50% / auto 90% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 3%, #000 12%, #000 88%, transparent 97%);
  mask-image: linear-gradient(180deg, transparent 3%, #000 12%, #000 88%, transparent 97%);
}
.after__shade { background: linear-gradient(270deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.4) 24%, rgba(0,0,0,0) 42%); }
.after__content {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 96px) clamp(20px, 4vw, 56px);
  display: flex;
  justify-content: flex-end;
}
.after__text { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.after__text p { font-size: var(--step-4); line-height: 1.65; color: var(--text-soft); text-wrap: balance; }

/* ---------- Sede ---------- */
.venue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.venue__lead { font-size: var(--step-5); line-height: 1.6; text-wrap: balance; }
.venue__address {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  align-items: baseline;
  border-top: 1px solid rgba(239, 231, 218, .15);
  padding-top: 20px;
  font-size: var(--step-3);
  line-height: 1.5;
}
.venue__code { font-family: var(--font-mono); font-size: var(--step-1); color: var(--tan); }
.venue .btn { align-self: flex-start; font-size: var(--step-3); padding: 14px 22px; }
.venue__nav { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Inversión + inscripción ---------- */
.signup { background: var(--accent); color: var(--bg); }
.signup__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.signup__col { display: flex; flex-direction: column; gap: 24px; }

.tiers { display: flex; flex-direction: column; border-top: 2px solid var(--bg); }
.tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(10, 10, 10, .25);
}
.tier__name { font-weight: 700; font-size: var(--step-4); }
.tier__price { font-family: var(--font-display); font-weight: 500; font-size: var(--step-9); line-height: 1; }
.tier__when { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .06em; opacity: .8; }
.tier__tag { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .15em; font-weight: 500; }
/* El script marca la tarifa vigente y las cerradas según la fecha (data-end);
   las cerradas desaparecen de la lista (p. ej. Early Bird desde el 6 de nov). */
.tier.is-current { background: var(--bg); color: var(--accent); }
.tier.is-closed { display: none; }

.tiers__cierre { margin: 14px 0 10px; font-size: var(--step--1); line-height: 1.5; }
.notice { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: var(--step-3); }
.notice[hidden] { display: none; }
.notice__tag {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  background: var(--bg);
  color: var(--accent);
  padding: 4px 8px;
  letter-spacing: .12em;
}
.pay-note { font-family: var(--font-mono); font-size: var(--step--1); line-height: 1.6; }

.spots { background: var(--bg); color: var(--text); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.spots__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.spots__label { font-family: var(--font-display); font-size: var(--step-9); text-transform: uppercase; }
.spots__of { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-dim); }
.spots__bar { height: 6px; background: #2a2a2a; }
.spots__bar > div { height: 100%; background: var(--accent); }

.panel {
  background: var(--bg);
  color: var(--text);
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.panel h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-10);
  text-transform: uppercase;
  line-height: 1;
}
.panel > p { font-size: var(--step-4); line-height: 1.6; color: var(--text-soft); }
.panel .btn { text-align: center; font-size: var(--step-4); padding: 18px; min-height: 56px; }
.panel__small { font-size: var(--step-1); line-height: 1.5; color: var(--text-dim); }
.pay {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  align-items: baseline;
  border-top: 1px solid #2a2a2a;
  padding-top: 16px;
  font-size: var(--step-3);
}
.pay dt { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .15em; color: var(--tan); }
.pay dd { margin: 0; justify-self: start; }

/* Formulario de inscripción en 3 pasos (js/inscripcion.js) */
.insc [hidden] { display: none !important; }
.insc__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.insc__steps li {
  border-top: 3px solid #2a2a2a;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.insc__steps li.is-active, .insc__steps li.is-done { border-color: var(--accent); color: var(--accent); }
.insc__steps li.is-done::after { content: " ✓"; }
.insc__view { display: flex; flex-direction: column; gap: 24px; }
.insc__view > p, .insc__view > div > p { font-size: var(--step-4); line-height: 1.6; color: var(--text-soft); }
.insc__view > [data-estado] { display: flex; flex-direction: column; gap: 24px; }
.insc__view a { color: var(--accent); text-decoration: underline; }

.insc__choice { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #333; }
.insc__choice label { position: relative; cursor: pointer; }
.insc__choice input { position: absolute; opacity: 0; }
.insc__choice span {
  display: block;
  padding: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.insc__choice input:checked + span { background: var(--accent); color: var(--bg); font-weight: 500; }
.insc__choice input:focus-visible + span { outline: 2px solid var(--text); outline-offset: -4px; }

.insc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 22px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tan);
}
.field label small { color: var(--text-dim); letter-spacing: .08em; text-transform: none; font-size: var(--step--2); }
.field input, .field select {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid #555;
  border-radius: 0;
  padding: 8px 0 10px;
  font: 400 var(--step-4) var(--font-body);
  outline: none;
}
.field select { background: #141414; border: 1px solid #555; padding: 10px; }
.field input:focus { border-bottom-color: var(--accent); }
.field select:focus { border-color: var(--accent); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--rec); }
.insc__file { font-size: var(--step-2) !important; border-bottom: 0 !important; }
.insc__file::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(239, 231, 218, .35);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font: 600 var(--step-2) var(--font-body);
  cursor: pointer;
}
.insc__hint { font-size: var(--step-1); color: var(--text-dim); }
.insc__check { display: flex; gap: 12px; align-items: center; font-size: var(--step-3); cursor: pointer; }
.insc__check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.insc__check.is-invalid { color: var(--rec); }
.insc__note { font-size: var(--step-2) !important; border-left: 3px solid var(--accent); padding-left: 14px; }
.insc__submit { width: 100%; border: 0; font: 700 var(--step-4) var(--font-body); padding: 18px; min-height: 56px; }
.insc__view a.insc__wa { display: flex; justify-content: center; text-align: center; width: 100%; color: var(--text); text-decoration: none; }
.insc__view a.insc__wa:hover { color: var(--accent); }
.insc__submit:disabled { opacity: .6; cursor: wait; }
.insc__error { color: var(--rec); font-size: var(--step-3); line-height: 1.5; }
.insc__error:empty { display: none; }
.insc__back {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.insc__back:hover { color: var(--text); }
.insc__total { font-family: var(--font-display); font-weight: 500; font-size: var(--step-8); color: var(--accent); }
.insc__paypal { min-height: 56px; background: #fff; padding: 12px; }
.insc__paypal:has(> .btn) { background: none; padding: 0; }
.insc__paypal:empty { display: none; }
.insc__paypal.is-busy { opacity: .4; pointer-events: none; }

/* Ventana de pago con el botón guardado en PayPal */
.pp-modal {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid var(--line-soft);
  background: var(--bg-alt);
  color: var(--text);
}
.pp-modal[open] { display: flex; flex-direction: column; gap: 20px; }
.pp-modal::backdrop { background: rgba(0, 0, 0, .75); }
.pp-modal > h3 { margin: 0; padding-right: 32px; font-family: var(--font-display); font-weight: 300; font-size: var(--step-9); text-transform: uppercase; line-height: 1; }
.pp-modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  border: 0; background: none; color: var(--text-muted);
  font-size: 28px; line-height: 1; cursor: pointer;
}
.pp-modal__close:hover { color: var(--text); }
.pp-modal__paso { margin: 0; font-size: var(--step-3); }
.pp-modal__wa { justify-content: center; text-align: center; }
.pp-modal__metodo { width: 100%; justify-content: center; text-align: center; margin-top: 8px; }
.pp-modal__banco { margin: 0; }
.pp-modal__banco dt { font-weight: 700; font-size: var(--step-2); color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.pp-modal__banco dd { margin: 0 0 8px; font-size: var(--step-1); }
.pp-modal .insc__paypal { min-height: 120px; color: #111; font-family: var(--font-body); }
/* El botón de PayPal se pinta dentro de la página: que no herede los títulos oscuros del sitio */
.pp-modal .insc__paypal h3 { font: 600 18px/1.3 var(--font-body); text-transform: none; color: #111; }
.insc__loading, .insc__rec {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--step--1) !important;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim) !important;
}
.insc__loading { color: var(--accent) !important; }
.insc__loading::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: insc-rec 1s infinite; }
.insc__rec b { color: var(--rec); font-weight: 400; }
@keyframes insc-rec { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .insc__loading::before { animation: none; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  min-height: 64px;
  font-size: var(--step-5);
  font-weight: 600;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: var(--step-6); color: var(--accent); flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 48px 24px 0; font-size: var(--step-4); line-height: 1.65; color: var(--text-soft); text-wrap: balance; }

/* ---------- Cierre ---------- */
.closing {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 56.25vw, 100svh);
  background: var(--bg) url('../assets/bg-mascara-web.webp') 50% 35% / cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.closing__shade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.85) 100%);
  pointer-events: none;
}
.closing__content {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.closing h2 {
  max-width: 440px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-9);
  line-height: 1.05;
  text-transform: uppercase;
  text-wrap: balance;
}
.closing .btn { font-size: var(--step-3); padding: 15px 24px; }

/* ---------- Footer ---------- */
.footer { padding: 48px clamp(20px, 5vw, 48px) 120px; background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__brand-name { font-family: var(--font-display); font-size: var(--step-7); letter-spacing: .05em; }
.footer__by { display: flex; align-items: center; gap: 12px; font-size: var(--step-2); color: var(--text-dim); }
.footer__by img { height: 22px; width: auto; filter: invert(1); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 40px; font-size: var(--step-2); }
.footer__col { display: flex; flex-direction: column; gap: 8px; color: var(--text-soft); }
.footer__col-title { font-family: var(--font-mono); font-size: var(--step--2); color: var(--tan); letter-spacing: .15em; }
.footer__legal { max-width: 1240px; margin: 36px auto 0; font-size: var(--step--1); color: #7a7a7a; }

/* ---------- Chat de WhatsApp ----------
   Mismo comportamiento que el plugin WP WhatsApp Chatbox: botón flotante
   abre una caja estilo WhatsApp; al enviar, el mensaje se pasa a
   wa.me/<data-wa-number>?text=… (config en index.html). */
.chat {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 55;
}
.chat__fab {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50% 50% 50% 8px;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: transform .2s ease, background .2s ease;
}
.chat__fab:hover { background: #1ebe5b; transform: translateY(-2px); }

.chat__popup {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(360px, calc(100vw - 32px));
  /* No pasar del borde superior en pantallas bajas (celular acostado) */
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #111b21;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(.9);
  transform-origin: bottom right;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .3s ease, visibility .3s;
}
.chat__popup[aria-hidden="false"] { opacity: 1; visibility: visible; transform: none; }

.chat__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 44px 14px 14px;
  background: #008069;
  color: #fff;
}
.chat__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.chat__avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-3);
  font-weight: 700;
}
.chat__status {
  margin: 2px 0 0;
  font-size: var(--step-1);
  opacity: .9;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #25d366; }
.chat__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}
.chat__close:hover { opacity: 1; }

.chat__messages {
  padding: 16px;
  overflow-y: auto;
  background: #efeae2 url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm63 31c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM34 90c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.chat__bubble {
  max-width: 85%;
  background: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.chat__bubble p { font-size: var(--step-2); line-height: 1.45; color: #111b21; }
.chat__quick { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.chat__quick a {
  display: block;
  border: 1px solid #00a884;
  border-radius: 20px;
  color: #00a884;
  padding: 8px 12px;
  font-size: var(--step-2);
  font-weight: 600;
  text-align: center;
}
.chat__quick a:hover { background: #00a884; color: #fff; }

.chat__form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f0f2f5;
  border-top: 1px solid rgba(0, 0, 0, .05);
}
.chat__input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  padding: 10px 14px;
  font: 400 var(--step-4) var(--font-body);
  color: #111b21;
  outline: none;
}
.chat__input::placeholder { color: #8696a0; }
.chat__send {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: #00a884;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.chat__send:hover { opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  .chat__popup, .chat__fab { transition: none; }
}

/* ---------- Barra fija para móvil ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 54;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 5, 5, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  align-items: center;
  gap: 12px;
}
.sticky-cta__info {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  line-height: 1.4;
  color: var(--tan);
  flex-shrink: 0;
}
.sticky-cta__info span:last-child { color: var(--text-dim); }
.sticky-cta .btn { flex: 1; text-align: center; padding: 15px; }

/* ---------- Responsive ---------- */
/* Pantallas anchas pero bajas (laptops): compacta el hero para que quepa en una sola pantalla */
@media (min-width: 860px) and (max-height: 760px) {
  .hero__stage { min-height: 250px; }
  .hero__lead p { display: none; }
  .hero__side { gap: 12px; }
  .facts { gap: 6px 18px; padding-top: 12px; font-size: 14px; }
  .countdown__time { font-size: 30px; }
}

@media (max-width: 1179px) {
  .after { flex-direction: column; align-items: stretch; min-height: 0; }
  .after__img {
    position: static;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: url('../assets/despues-retrato-web.webp') 45% 50% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
  }
  .after__shade { display: none; }
  .after__content { padding: 8px clamp(20px, 5vw, 48px) clamp(56px, 8vw, 96px); max-width: 620px; margin: 0; justify-content: flex-start; }
  .after__text { max-width: none; }
}
@media (max-width: 859px) {
  .nav { display: none; }
  .sticky-cta { display: flex; }
  .chat { bottom: 84px; }
  /* En celular la barra inferior ya tiene "Inscribirme": se quita el duplicado del encabezado */
  .header .btn { display: none; }
  /* La fecha vertical choca con el logo; la fecha ya aparece en los datos del hero */
  .hero__date { display: none; }
  .cell--include { min-height: 0; }
  .speaker__photo { aspect-ratio: 1 / 1; }
  .speaker__photo img { object-position: 50% 25%; }
  /* Agenda: subtítulo bajo el título y duración siempre en su propia línea */
  .agenda__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .row__body { flex-direction: column; gap: 6px; }
  .footer__col a { display: block; }
  .footer__sep { display: none; }
  /* Que la barra inferior no tape el final de la página */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sticky-cta, .chat { transition: transform .25s ease, opacity .25s ease; }
  .hero-cta-visible .sticky-cta { transform: translateY(100%); opacity: 0; pointer-events: none; }
  .hero-cta-visible .chat { opacity: 0; pointer-events: none; }
  .hero__actions .btn { flex: 1 1 0; text-align: center; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
}
