/* =============================================================================
   LUMBRE · TU ESTANCIA — Encuentro de Diseño y Decoración
   Variante editorial.

   Reparto de responsabilidades:
     · ESTRUCTURA y COMBINACIÓN DE COLOR → frame de Figma "Tu Estancia ·
       Variante editorial" (45:2): 1440px de ancho, 72px de margen lateral,
       1296px de columna de contenido.
     · FORMA (radios), ESCALA TIPOGRÁFICA, ESPACIADO y ELEVACIÓN → sistema de
       diseño propio (componentes.html / design-system.css). Nada queda con
       esquinas a 90°: tarjetas e imágenes a --radius, campos a --radius-sm,
       botones y chips pill.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1 · TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* --- Paleta (de Figma) --------------------------------------------------- */
  --crema:      #F6F2EC;
  --arena:      #E9E1D5;
  --arcilla:    #8F4A31;
  --grafito:    #39382F;
  --oliva:      #777A60;
  --oliva-900:  #414535;   /* portada e inscripción */
  --grafito-900:#2E3028;   /* pie de página */

  --campo:      #FCFAF6;   /* fondo de los campos del formulario */
  --linea:      #CFC5B6;   /* separadores */
  --linea-pie:  #6F715F;   /* separador del pie */

  --texto:        #39382F;
  --texto-suave:  #645E53;
  --texto-invert: #F6F2EC;
  --texto-invert-suave: #DDD6C7;

  --error:        #9E422F;
  --error-bg:     #FBF0ED;
  --error-linea:  #EBD3CC;

  /* --- Paleta extendida del sistema de diseño ------------------------------
     No la usa la landing, pero design-system.css (componentes.html) lee estos
     tokens para mapear los roles de Material. Si faltan, esa página se cae a
     los valores por defecto de Google. */
  --hueso:        #FBF9F7;
  --arena-suave:  #F1EBE1;
  --linea-fuerte: #CFC3B1;
  --texto-tenue:  #8C8779;
  --tierra:       #B9A58B;
  --arcilla-700:  #9D6241;
  --oliva-700:    #5F6450;

  /* --- Familias ------------------------------------------------------------ */
  --font-sans:  "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  /* Alias cortos que usa esta hoja */
  --sans:  var(--font-sans);
  --serif: var(--font-serif);

  /* --- Escala tipográfica fluida (sistema de diseño) -----------------------
     clamp() en vez de tamaños fijos: se achica sola en mobile. Los valores de
     referencia van en el comentario (mínimo → máximo). */
  --fs-eyebrow: .6875rem;                                     /* 11 · label small */
  --fs-small:   .8125rem;                                     /* 13 */
  --fs-label:   .875rem;                                      /* 14 · botones */
  --fs-body:    clamp(1rem, .96rem + .18vw, 1.0625rem);       /* 16 → 17 */
  --fs-body-lg: clamp(1.0625rem, 1rem + .3vw, 1.125rem);      /* 17 → 18 */
  --fs-lead:    clamp(1.125rem, 1.04rem + .36vw, 1.3125rem);  /* 18 → 21 · title large */
  --fs-h5:      clamp(1.0625rem, 1rem + .3vw, 1.25rem);       /* 17 → 20 */
  --fs-h4:      clamp(1.1875rem, 1.1rem + .42vw, 1.4375rem);  /* 19 → 23 */
  --fs-h3:      clamp(1.5rem, 1.3rem + .85vw, 2rem);          /* 24 → 32 */
  --fs-h2:      clamp(1.875rem, 1.45rem + 1.8vw, 2.875rem);   /* 30 → 46 */
  --fs-h1:      clamp(2.25rem, 1.72rem + 2.2vw, 3.5rem);      /* 36 → 56 */
  --fs-xl:      clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem);        /* 40 → 72 */
  --fs-hero:    clamp(2.75rem, 1.6rem + 4.9vw, 5.25rem);      /* 44 → 84 */

  /* --- Forma (sistema de diseño) ------------------------------------------ */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* --- Elevación ---------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(57, 56, 47, .05), 0 6px 16px -10px rgba(57, 56, 47, .18);
  --shadow:    0 2px 6px rgba(57, 56, 47, .06), 0 24px 48px -28px rgba(57, 56, 47, .28);

  /* --- Medidas del frame + espaciado del sistema -------------------------- */
  --frame: 1440px;
  --pad: 72px;
  --maxw: 1240px;
  --maxw-narrow: 920px;
  --gutter: clamp(1.25rem, .8rem + 1.6vw, 2.5rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 86px;
}

/* -----------------------------------------------------------------------------
   2 · RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

hr { border: 0; margin: 0; height: 1px; width: 100%; background: var(--linea); }

/* Varios bloques usan display:flex, que gana sobre el display:none del UA.
   Sin esto el panel de éxito del formulario quedaría siempre visible. */
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--arcilla); outline-offset: 3px; }
::selection { background: var(--arena); color: var(--grafito); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* -----------------------------------------------------------------------------
   3 · UTILIDADES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: var(--pad); z-index: 200;
  background: var(--grafito); color: var(--texto-invert);
  padding: .7rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Rótulo chico versalita — label small del sistema */
.eyebrow {
  font-size: var(--fs-eyebrow);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--arcilla);
}
.eyebrow--light { color: var(--texto-invert-suave); }

/* Titulares — Lora regular sobre la escala fluida del sistema */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.12;
  color: var(--texto);
}
.display--xl { font-size: var(--fs-xl); line-height: 1.08; }
.display--invert { color: var(--texto-invert); font-size: var(--fs-xl); line-height: 1.12; }

.display-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.18;
  color: var(--texto);
}

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-h4);
  line-height: 1.42;
  color: var(--texto);
}

.body { font-size: var(--fs-body); line-height: 1.62; }

/* Iconografía: Material Symbols Outlined, la misma familia que documenta el
   sistema de diseño. El contenido del span es el nombre literal del ícono
   (ligadura), por eso text-transform y letter-spacing van neutralizados: si el
   botón pasara el nombre a mayúsculas, la ligadura no resolvería. */
.icon {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  flex: none;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

/* El subrayado vive en .link__text y no en el <a>: si estuviera en el <a>, la
   decoración se propagaría también al ícono y le dibujaría una rayita debajo. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-label);
  line-height: 1.5;
  font-weight: 600;
  color: var(--arcilla);
  text-decoration: none;
}
.link__text { text-decoration: underline; text-underline-offset: 2px; }
.link__icon { font-size: 16px; }
.link:hover { color: var(--grafito); }

/* Reveal en scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* -----------------------------------------------------------------------------
   4 · BOTONES
   Pill + "label large" del sistema de diseño: 14px / 600 / tracking .04em en
   versalita, con el ícono de Material Symbols al lado de la etiqueta.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--arcilla);
  color: var(--texto-invert);
  font-family: var(--sans);
  font-size: var(--fs-label);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.btn:hover { background: #7C3F29; }

.btn__arrow {
  font-size: 18px;
  transition: transform .22s var(--ease);
}
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

/* Se centra en vez de estirarse: .form es flex-column (align-items: stretch
   por defecto), así que hace falta este align-self para que el botón no
   ocupe todo el ancho del formulario. */
.btn--submit {
  align-self: center;
  padding: 15px 24px;
}

.btn--ghost {
  background: none;
  color: var(--arcilla);
  padding: 10px 0;
  gap: 0;
}
.btn--ghost:hover { background: none; color: var(--grafito); }

.spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2px solid rgba(246, 242, 236, .35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
[data-submit][aria-busy="true"] .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -----------------------------------------------------------------------------
   5 · IMÁGENES
   Radio --radius, como las tarjetas del sistema de diseño. El marcador de
   posición solo aparece si el archivo no existe en assets/img/.
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--arena);
}
.media img { width: 100%; height: 100%; object-fit: cover; }

.media.is-empty img { display: none; }
.media.is-empty {
  background: linear-gradient(0deg, var(--arena) 0%, var(--arena-suave) 100%);
  border: 1px solid var(--linea);
}
.media__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem; padding: 1.25rem; text-align: center;
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--texto-tenue);
}
.media__ph svg { width: 30px; height: 30px; opacity: .55; }

/* -----------------------------------------------------------------------------
   6 · NAVEGACIÓN (45:3)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--crema);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 24px -18px rgba(57, 56, 47, .6); }

.site-header__inner {
  max-width: var(--frame);
  margin-inline: auto;
  padding: 19px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { height: 20px; width: auto; fill: var(--arcilla); flex: none; }
.brand__mark--lg { height: 30px; }
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__name {
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grafito);
}
.brand__tagline {
  font-size: var(--fs-eyebrow);
  line-height: 1.4;
  font-weight: 500;
  color: var(--grafito);
}

/* En el frame la barra reparte marca · secciones · botón con space-between,
   así que en escritorio el <nav> no forma caja propia. */
.nav { display: contents; }
.nav__list { display: flex; align-items: center; gap: 29px; }
.nav__link {
  position: relative;
  font-size: var(--fs-small);
  line-height: 1.55;
  font-weight: 600;
  color: var(--grafito);
  padding-block: 2px;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--arcilla);
  transform: scaleX(0); transform-origin: left;
  transition: transform .26s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--arcilla); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle__box { position: relative; display: block; width: 22px; height: 12px; }
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute; left: 0;
  width: 22px; height: 1.5px;
  background: var(--grafito);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bar { top: 5px; }
.nav-toggle__bar::before { content: ""; top: -5px; }
.nav-toggle__bar::after  { content: ""; top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { top: 0; transform: rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(46, 48, 40, .4);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav-scrim.is-open { opacity: 1; }

/* -----------------------------------------------------------------------------
   7 · PORTADA (45:4)
   Columna de texto de 640px (padding 57/52/57/72) + foto de 800×658.
   -------------------------------------------------------------------------- */
.portada { background: var(--oliva-900); }

.portada__inner {
  max-width: var(--frame);
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.portada__text {
  flex: 0 1 640px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  padding: 57px 52px 57px var(--pad);
}

.portada__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1.14;
  color: var(--texto-invert);
  white-space: nowrap;   /* en Figma el título va en una sola línea */
}
.portada__subtitle {
  font-size: var(--fs-lead);
  line-height: 1.45;
  font-weight: 500;
  color: var(--texto-invert);
}
.portada__rule { background: var(--oliva); }
.portada__lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.32;
  color: var(--texto-invert);
}
.portada__body { font-size: var(--fs-body); line-height: 1.6; color: var(--texto-invert); }
.portada__cta { display: flex; }
.portada__note { font-size: var(--fs-small); line-height: 1.5; color: #DED8C7; }

.portada__media { flex: 1 1 800px; aspect-ratio: 800 / 658; }

/* -----------------------------------------------------------------------------
   8 · DATOS DEL ENCUENTRO (45:5)
   -------------------------------------------------------------------------- */
.datos { background: var(--arena); }
.datos__inner { display: flex; gap: 44px; padding-block: 27px; }

.dato { flex: 1 1 0; min-width: 0; display: flex; gap: 19px; align-items: flex-start; }
.dato__num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.15;
  color: var(--arcilla);
}
.dato__text { display: flex; flex-direction: column; gap: 3px; }
.dato__label {
  font-size: var(--fs-eyebrow);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--arcilla);
}
.dato__value { font-size: var(--fs-body); line-height: 1.5; font-weight: 600; color: var(--grafito); }

/* -----------------------------------------------------------------------------
   9 · EL ENCUENTRO (45:6)
   -------------------------------------------------------------------------- */
.encuentro { background: var(--crema); }
.encuentro__inner {
  display: flex;
  gap: 92px;
  align-items: center;
  padding-block: 94px;
}

.encuentro__figura { flex: 0 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.encuentro__figura .media { aspect-ratio: 600 / 412; }
.encuentro__pie {
  font-size: var(--fs-eyebrow);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--arcilla);
}

.encuentro__texto { flex: 0 1 604px; min-width: 0; display: flex; flex-direction: column; gap: 21px; }

/* -----------------------------------------------------------------------------
   10 · INTRODUCCIÓN A MATERIA (45:7)
   -------------------------------------------------------------------------- */
.materia { background: var(--arena); }
.materia__inner {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-block: 74px 82px;
}

/* El título y el copy van apilados, el copy ocupando todo el ancho de .head
   (no en columnas como en Figma): por eso .head pasa a flex-column y el copy
   no lleva flex-basis — así hereda el 100% de ancho por el stretch de la
   cross-axis en vez de compartir la fila con el título. */
.materia__head { display: flex; flex-direction: column; gap: 20px; }
.materia__title { display: flex; flex-direction: column; gap: 6px; }
.materia__body { font-size: var(--fs-body); line-height: 1.62; }

.trio { display: flex; gap: 24px; }
.trio__item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 11px; }
.trio__item .media { aspect-ratio: 416 / 235; }
.trio__caption {
  font-size: var(--fs-eyebrow);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--arcilla);
}

/* -----------------------------------------------------------------------------
   11 · PROGRAMA (45:8)
   -------------------------------------------------------------------------- */
.programa { background: var(--crema); }
.programa__inner { display: flex; gap: 92px; align-items: flex-start; padding-block: 92px; }

.programa__head { flex: 0 1 376px; min-width: 0; display: flex; flex-direction: column; gap: 15px; }
.programa__body { max-width: 319px; font-size: var(--fs-body-lg); line-height: 1.6; }

.cronograma { flex: 1 1 0; min-width: 0; }

.agenda__item {
  display: flex;
  gap: 27px;
  padding-block: 16px;
  border-top: 1px solid var(--linea);
}
.agenda__time {
  flex: 0 0 102px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.25;
  color: var(--arcilla);
}
.agenda__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.agenda__tag {
  font-size: var(--fs-eyebrow);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--arcilla);
}
.agenda__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h4);
  line-height: 1.3;
  color: var(--texto);
}
.agenda__desc { font-size: var(--fs-small); line-height: 1.6; color: var(--texto); }
.agenda__who { font-size: var(--fs-small); line-height: 1.55; font-weight: 600; color: var(--arcilla); }

.agenda__foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 19px;
  border-top: 1px solid var(--linea);
  font-size: var(--fs-eyebrow);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--arcilla);
}

/* -----------------------------------------------------------------------------
   12 · INVITADOS (45:9)
   -------------------------------------------------------------------------- */
.invitados { background: var(--arena); }
.invitados__inner { display: flex; flex-direction: column; gap: 32px; padding-block: 78px 88px; }

.invitados__head { display: flex; flex-direction: column; gap: 20px; }
.invitados__title { display: flex; flex-direction: column; gap: 9px; }
.invitados__body { font-size: var(--fs-body-lg); line-height: 1.6; }

.speakers { display: flex; gap: 24px; align-items: stretch; }
/* Tarjeta del sistema de diseño: --radius + overflow hidden, así la foto
   superior se recorta con las esquinas de la tarjeta. */
.speaker {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--crema);
  border-radius: var(--radius);
  overflow: hidden;
}
.speaker .media { aspect-ratio: 416 / 286; border-radius: 0; }

.speaker__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 26px;
}
.speaker__name { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.18; }
.speaker__role { font-size: var(--fs-eyebrow); line-height: 1.5; font-weight: 600; color: var(--arcilla); }
.speaker__bio { font-size: var(--fs-small); line-height: 1.6; min-height: 100px; }
.speaker__rule { background: var(--linea); }
.speaker__talk-label {
  font-size: var(--fs-eyebrow);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--arcilla);
}
.speaker__talk-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h5); line-height: 1.35; }

/* -----------------------------------------------------------------------------
   13 · COLECCIÓN (45:10)
   -------------------------------------------------------------------------- */
.coleccion { background: var(--crema); }
.coleccion__inner { display: flex; flex-direction: column; gap: 34px; padding-block: 90px; }

.coleccion__head { display: flex; flex-direction: column; gap: 20px; }
.coleccion__title { display: flex; flex-direction: column; gap: 6px; }
.coleccion__body { font-size: var(--fs-body); line-height: 1.62; }

.mosaico { display: flex; gap: 24px; align-items: flex-start; }
.mosaico__item--lead { flex: 0 1 770px; min-width: 0; }
.mosaico__item--lead .media { aspect-ratio: 770 / 646; }
.mosaico__col { flex: 0 1 502px; min-width: 0; display: flex; flex-direction: column; gap: 23px; }
.mosaico__col .media { aspect-ratio: 502 / 273; }

.pie { display: flex; gap: 12px; align-items: flex-start; padding-top: 15px; }
.pie__num {
  font-size: var(--fs-eyebrow);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--arcilla);
}
.pie__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pie__title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h4); line-height: 1.25; }
.pie__desc { font-size: var(--fs-small); line-height: 1.55; }

/* -----------------------------------------------------------------------------
   14 · INSCRIPCIÓN (45:11)
   -------------------------------------------------------------------------- */
.inscripcion { background: var(--oliva-900); color: var(--texto-invert); }
.inscripcion__inner { display: flex; gap: 100px; align-items: center; padding-block: 87px; }

.invitacion {
  flex: 0 1 618px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
}
.invitacion__claim {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.3;
  color: var(--texto-invert);
}
.invitacion__body { max-width: 465px; font-size: var(--fs-body-lg); line-height: 1.62; color: var(--texto-invert); }
.invitacion__fine { font-size: var(--fs-small); line-height: 1.55; color: var(--texto-invert-suave); }

/* Etiqueta: el patrón ".tag" del sistema de diseño (componentes.html → 03
   Patrones propios · Etiquetas), que documenta este caso exacto. Forma y
   tipografía copiadas de design-system.css: pill, 12px / 600 / tracking .04em,
   en caja de oración, inline-flex con hueco para un ícono opcional. Los
   colores son los de Figma. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .85rem;
  background: var(--crema);
  color: var(--arcilla);
  border-radius: var(--radius-full);
  font-family: var(--sans);
  font-size: .75rem;     /* = el .75rem de .tag; no hay token --fs- de 12px */
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .04em;
}
.chip .icon { font-size: 15px; }

.formulario {
  flex: 0 1 578px;
  min-width: 0;
  background: var(--crema);
  color: var(--texto);
  padding: 34px 39px;
  border-radius: var(--radius);
}

.form { display: flex; flex-direction: column; gap: 16px; }
.form__title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.3; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field__label { font-size: var(--fs-small); line-height: 1.55; font-weight: 600; color: var(--grafito); }
.field__input {
  width: 100%;
  padding: 10px 14px;
  background: var(--campo);
  border: 1px solid var(--linea);
  border-radius: var(--radius-sm);
  font-size: var(--fs-label);
  line-height: 1.7;
  font-weight: 500;
  color: var(--grafito);
  transition: border-color .2s var(--ease);
}
.field__input::placeholder { color: var(--texto-suave); opacity: 1; }
.field__input:focus { outline: 0; border-color: var(--arcilla); box-shadow: inset 0 0 0 1px var(--arcilla); }
.field__input[aria-invalid="true"] { border-color: var(--error); }

.field__error { font-size: var(--fs-small); line-height: 1.5; color: var(--error); }
.field__error:empty { display: none; }

.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__help { font-size: var(--fs-small); line-height: 1.5; color: var(--texto-suave); }
.form__status {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid var(--error-linea);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.form__status:empty { display: none; }

.form__success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.form__success-icon { width: 48px; height: 48px; color: var(--oliva); }
.form__success-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.2; }
.form__success-text { font-size: var(--fs-small); line-height: 1.6; color: var(--texto); }

/* -----------------------------------------------------------------------------
   15 · INFORMACIÓN PRÁCTICA (45:12)
   -------------------------------------------------------------------------- */
.visita { background: var(--crema); }
.visita__inner { display: flex; flex-direction: column; gap: 30px; padding-block: 83px; }

.visita__head { display: flex; flex-direction: column; gap: 8px; }
.visita__intro { font-size: var(--fs-body); line-height: 1.6; }

.visita__cuerpo { display: flex; gap: 60px; align-items: flex-start; }
.visita__data { flex: 0 1 532px; min-width: 0; }

.visita__row {
  display: flex;
  gap: 17px;
  padding-block: 15px;
  border-top: 1px solid var(--linea);
}
.visita__row dt {
  flex: 0 0 119px;
  font-size: var(--fs-eyebrow);
  line-height: 1.8;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--arcilla);
}
/* Bloque, no flex: los <br> de los datos tienen que quedar como saltos de
   línea normales y no como ítems separados por el gap. */
.visita__row dd {
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--texto);
}
.visita__row dd .link { margin-top: 6px; }

/* Tarjeta del mapa: Google Maps embebido + franja con la dirección.
   overflow hidden para que el iframe se recorte con el radio de la tarjeta. */
.mapa {
  flex: 0 1 704px;
  min-width: 0;
  background: var(--arena);
  border-radius: var(--radius);
  overflow: hidden;
}
.mapa__embed {
  position: relative;
  aspect-ratio: 704 / 271;
  background: var(--arena);
}
.mapa__embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.mapa__ref {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 19px;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.mapa__dir { font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--arcilla); }
.mapa__zona { font-weight: 500; color: var(--grafito); }

/* -----------------------------------------------------------------------------
   16 · PIE DE PÁGINA (45:13)
   -------------------------------------------------------------------------- */
.site-footer { background: var(--grafito-900); color: var(--texto-invert); }
.site-footer__inner { display: flex; flex-direction: column; gap: 20px; padding-block: 49px 40px; }

.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.site-footer__brand .brand__mark { fill: var(--crema); }
.site-footer__name {
  font-size: var(--fs-h3);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--texto-invert);
}
.site-footer__tagline { font-size: var(--fs-small); line-height: 1.55; color: var(--texto-invert-suave); }

.site-footer__event { flex: 0 1 385px; display: flex; flex-direction: column; gap: 5px; }
.site-footer__event-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.2;
  color: var(--texto-invert);
}
.site-footer__event-sub { font-size: var(--fs-small); line-height: 1.55; color: var(--texto-invert); }
.site-footer__event-meta { font-size: var(--fs-small); line-height: 1.55; color: var(--texto-invert-suave); }

.site-footer__rule { background: var(--linea-pie); }

.site-footer__bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.site-footer__links { display: flex; gap: 24px; font-size: var(--fs-small); line-height: 1.55; font-weight: 600; }
.site-footer__links a { transition: opacity .2s var(--ease); }
.site-footer__links a:hover { opacity: .7; }

/* Instagram y Contacto: ícono + handle/mail en línea. El ícono de Instagram
   es un SVG propio (Material Symbols no trae logos de marca); el de Contacto
   usa "mail" de Material Symbols, como el resto del sitio. */
.footer-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-link__icon { flex: none; width: 17px; height: 17px; font-size: 17px; }
.site-footer__copy { font-size: var(--fs-eyebrow); line-height: 1.6; color: var(--texto-invert-suave); }

/* -----------------------------------------------------------------------------
   17 · RESPONSIVE
   El frame de Figma es de 1440px. De ahí para abajo las columnas se encogen
   proporcionalmente y, bajo 940px, todo pasa a una sola columna.
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  :root { --pad: 48px; }

  /* Los tamaños de texto los resuelve la escala fluida (clamp) de :root.
     Acá solo se ajusta el layout. */
  .portada__title { white-space: normal; }

  .encuentro__inner { gap: 56px; padding-block: 72px; }
  .programa__inner { gap: 56px; padding-block: 72px; }
  .inscripcion__inner { gap: 56px; padding-block: 72px; }
  .visita__cuerpo { gap: 40px; }
  .speaker__content { padding: 20px 20px 22px; }
}

/* --- ≤ 940px: menú móvil y una sola columna --- */
@media (max-width: 940px) {
  :root { --pad: 32px; --header-h: 72px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0 0 auto auto;
    z-index: 95;
    width: min(340px, 86vw);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-left: 0;
    padding: calc(var(--header-h) + 24px) 28px 32px;
    background: var(--crema);
    border-left: 1px solid var(--linea);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: -24px 0 60px -40px rgba(57, 56, 47, .7);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .34s var(--ease), visibility .34s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--linea); }
  .nav__link { display: block; font-size: var(--fs-body); padding-block: 16px; }
  .nav__link::after { display: none; }
  .nav__cta { margin: 28px 0 0; justify-content: space-between; }

  .site-header__inner { padding-block: 14px; }

  .portada__inner { flex-direction: column; align-items: stretch; }
  .portada__text { flex: none; padding: 48px var(--pad); gap: 16px; }
  .portada__media { flex: none; width: 100%; aspect-ratio: 16 / 11; }

  .datos__inner { flex-direction: column; gap: 20px; }

  .encuentro__inner { flex-direction: column; align-items: stretch; gap: 32px; }
  .encuentro__figura, .encuentro__texto { flex: none; }

  /* .materia__head / .invitados__head / .coleccion__head ya son flex-column
     a cualquier ancho (título + copy apilados), así que acá no hace falta
     ningún override. */

  .trio { flex-direction: column; gap: 24px; }

  .programa__inner { flex-direction: column; align-items: stretch; gap: 32px; }
  .programa__head { flex: none; }
  .programa__body { max-width: none; }
  .cronograma { flex: none; }

  .speakers { flex-direction: column; gap: 24px; }

  .mosaico { flex-direction: column; }
  .mosaico__item--lead, .mosaico__col { flex: none; width: 100%; }

  .inscripcion__inner { flex-direction: column; align-items: stretch; gap: 36px; }
  .invitacion, .formulario { flex: none; }
  .formulario { padding: 28px 24px; }

  .visita__cuerpo { flex-direction: column; gap: 32px; }
  .visita__data, .mapa { flex: none; width: 100%; }

  .site-footer__top { flex-direction: column; gap: 32px; }
  .site-footer__event { flex: none; }
}

/* --- ≤ 720px --- */
@media (max-width: 720px) {
  :root { --pad: 24px; }

  .agenda__item { flex-direction: column; gap: 6px; }
  .agenda__time { flex: none; }
  .agenda__foot { flex-direction: column; gap: 8px; }

  .visita__row { flex-direction: column; gap: 6px; }
  .visita__row dt { flex: none; line-height: 1.5; }

  .mapa__embed { aspect-ratio: 4 / 3; }
  .mapa__ref { flex-direction: column; gap: 6px; }

  .site-footer__bottom { flex-direction: column; gap: 16px; }
}

/* -----------------------------------------------------------------------------
   18 · IMPRESIÓN
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .nav-toggle, .nav-scrim, .btn { display: none !important; }
  body { background: #fff; }
  section { padding-block: 1.5rem; page-break-inside: avoid; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
