/* Invitación · Círculos WecoLabs — el cartel de acuarela cobra vida.
   Los colores llegan del evento como variables en <html style="--papel:…">. */

:root {
  --papel: #F0EFED; --crema: #F8F7E3; --tinta: #3B3733; --oro: #A8834E;
  --coral: #EE8C78; --durazno: #F4B48E; --salvia: #9CB07D; --lavanda: #B9A3C9;
  --oro-hondo: #7A5C30;      /* oro con contraste AA sobre crema para letra chica */
  --tinta-suave: #5C554E;
  --hueso: #FFFDF4;
  --falla: #9A2B1C;
  --linea: rgba(59, 55, 51, .26);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --suave: cubic-bezier(.16, 1, .3, 1);
  --escena-w: 100vw;
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --oro-hondo: color-mix(in srgb, var(--oro) 58%, var(--tinta));
    --tinta-suave: color-mix(in srgb, var(--tinta) 82%, var(--crema));
    --linea: color-mix(in srgb, var(--tinta) 26%, transparent);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--oro) var(--papel); }
body {
  margin: 0; min-height: 100vh; background: var(--papel); color: var(--tinta);
  font: 400 1.0625rem/1.55 var(--sans); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  caret-color: var(--oro-hondo); -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--durazno); color: var(--tinta); }
h1, h2, h3, p, ul, dl, dd, fieldset, legend { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg, canvas { display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; border-radius: 4px; }
.oculto { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.centro { text-align: center; }
.salto { position: fixed; left: 12px; top: -80px; z-index: 30; padding: .8rem 1.1rem; background: var(--tinta); color: var(--crema); border-radius: 999px; }
.salto:focus { top: 12px; }

.estrella { width: 1em; height: 1em; fill: var(--oro); flex: none; }

/* ───────────── La escena: el cartel fijo ───────────── */
.papel { display: none; }
.escena {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; overflow: hidden; z-index: 0;
  background: var(--papel);
  --ov-x: 50vw; --ov-y: 34.4vh; --ov-w: 33.75vh; --ov-h: 56vh;
}
@supports (height: 100lvh) { .escena { --ov-y: 34.4lvh; --ov-w: 33.75lvh; --ov-h: 56lvh; } }
.escena__zoom { position: absolute; inset: 0; transform-origin: var(--ov-x) var(--ov-y); transition: transform 3s var(--suave); }
.js:not(.dentro) .escena__zoom { transform: scale(1.13); }
.directo .escena__zoom { transition: none; }
.directo .escena, .directo .camino, .directo .pie { transition-duration: .4s !important; transition-delay: 0s !important; }
.lienzo {
  position: absolute; top: 0; left: calc(50vw - 32.34vh); height: 100%; aspect-ratio: 9 / 16;
  background: var(--papel) center / cover no-repeat; transform-origin: 0 0;
}
.lienzo picture, .lienzo__arte { position: absolute; inset: 0; width: 100%; height: 100%; }
.lienzo__vivo { position: absolute; inset: 0; }
.velo { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(7px); opacity: 0; transition: opacity 2.4s ease; pointer-events: none; }
.js:not(.dentro) .velo { opacity: 1; }
html:not(.js) .velo { display: none; }

.capa { position: absolute; animation: 7s ease-in-out infinite alternate paused; }
.capa--mujeres { transform-origin: 50% 92%; animation-name: mece; animation-duration: 5.6s; }
.capa--ave { animation-name: flota; animation-duration: 4.4s; }
.capa--peonia { transform-origin: 0 50%; animation-name: respira; animation-duration: 6.8s; }
.dentro .capa, .dentro .destello .estrella, .dentro .astro .estrella { animation-play-state: running; }
.pausa .capa, .pausa .destello .estrella, .pausa .astro .estrella, .pausa .umbral__sigue svg { animation-play-state: paused !important; }
@keyframes mece { from { transform: rotate(-.6deg) translate3d(-.3%, 0, 0); } to { transform: rotate(.6deg) translate3d(.3%, -.4%, 0); } }
@keyframes flota { from { transform: translate3d(0, 1.5%, 0) rotate(.6deg); } to { transform: translate3d(2.4%, -4.5%, 0) rotate(-1.6deg); } }
@keyframes respira { from { transform: scale(1); } to { transform: scale(1.022); } }

.destello, .astro { position: absolute; width: calc(var(--t, 1) * 3.6%); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.destello .estrella, .astro .estrella { width: 100%; height: 100%; fill: #FFF3CF; opacity: 0; animation: titila 3.8s ease-in-out var(--d, 0s) infinite paused; }
@keyframes titila { 0%, 100% { opacity: 0; transform: scale(.35) rotate(0deg); } 50% { opacity: .95; transform: scale(1.2) rotate(24deg); } }

.petalos { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ───────────── Umbral: el título dentro del óvalo ───────────── */
.umbral {
  position: absolute; left: var(--ov-x); top: calc(var(--ov-y) + var(--ov-h) * .06); width: calc(var(--ov-w) * .88);
  --u: calc(var(--ov-w) / 100);
  transform: translate(-50%, -50%); text-align: center; color: var(--tinta); opacity: var(--umbral-o, 1);
}
.umbral > * { animation: llega 1.1s var(--suave) both; }
.umbral > :nth-child(2) { animation-delay: .12s; }
.umbral > :nth-child(3) { animation-delay: .24s; }
.umbral > :nth-child(4) { animation-delay: .36s; }
.umbral > :nth-child(5) { animation-delay: .5s; }
@keyframes llega { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
.umbral__invita { max-width: 86%; margin-inline: auto; font: 600 clamp(.625rem, calc(var(--u) * 3.6), .8125rem)/1.4 var(--sans); letter-spacing: .2em; padding-left: .2em; text-transform: uppercase; color: var(--oro-hondo); text-wrap: balance; }
.umbral__titulo { margin: calc(var(--u) * 2.6) 0 calc(var(--u) * 3); font: 500 calc(var(--u) * 17.4 * var(--escala-titulo, 1))/.9 var(--serif); letter-spacing: -.012em; }
.umbral__titulo span { display: block; text-align: left; padding-left: 14%; }
.umbral__titulo span + span { text-align: right; padding: 0 1% 0 0; }
.umbral__titulo span:only-child { text-align: center; padding: 0; }
.umbral__lema { display: flex; align-items: center; justify-content: center; gap: .45em; font: italic 500 clamp(.875rem, calc(var(--u) * 5.5), 1.25rem)/1.15 var(--serif); color: var(--oro-hondo); text-wrap: balance; }
.umbral__lema .estrella { width: .7em; height: .7em; }
.umbral__fecha { margin-top: calc(var(--u) * 3.6); }
.trio { display: flex; align-items: center; justify-content: center; font: 600 clamp(.625rem, calc(var(--u) * 3.6), .8125rem)/1 var(--sans); letter-spacing: .3em; }
.trio span { flex: 1; padding-left: .3em; }
.trio span:first-child { text-align: right; padding: 0 .9em 0 0; }
.trio span:last-child { text-align: left; padding-left: .9em; }
.trio b { flex: none; font: 500 calc(var(--u) * 11.5)/1 var(--serif); letter-spacing: 0; padding: .05em .42em .12em; border-inline: 1px solid var(--linea); }
.umbral__hora { display: block; margin-top: calc(var(--u) * 2.4); font: 500 clamp(.6875rem, calc(var(--u) * 3.9), .875rem)/1.2 var(--sans); letter-spacing: .16em; color: var(--tinta-suave); }
.umbral__pie { position: relative; margin-top: calc(var(--u) * 4.4); }
.umbral__acciones { display: grid; justify-items: center; gap: .1rem; transition: opacity .5s ease, visibility 0s .5s; }
.dentro .umbral__acciones { opacity: 0; visibility: hidden; }
html:not(.js) .umbral__acciones { visibility: hidden; }
.umbral__sigue {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: inline-grid; justify-items: center; gap: .3rem; padding: .5rem 1rem;
  font: 600 .75rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; text-decoration: none; color: var(--oro-hondo);
  opacity: 0; visibility: hidden; transition: opacity .8s ease 1.2s, visibility 0s 1.2s;
}
.umbral__sigue svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; animation: baja 2.2s ease-in-out infinite; }
@keyframes baja { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
.dentro .umbral__sigue, html:not(.js) .umbral__sigue { opacity: 1; visibility: visible; }

/* ───────────── Botones ───────────── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.25rem; padding: .7rem 1.5rem;
  border: 1.5px solid var(--tinta); border-radius: 999px; background: var(--tinta); color: var(--crema);
  font: 600 1rem/1.15 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .35s var(--suave), background-color .25s ease, color .25s ease, box-shadow .35s ease;
  box-shadow: 0 10px 22px -14px rgba(59, 55, 51, .7);
}
.boton svg { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .boton:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -16px rgba(59, 55, 51, .75); }
  .boton--linea:hover { background: var(--tinta); color: var(--crema); }
  }
.boton:active { transform: translateY(0) scale(.98); }
.boton:focus-visible { outline-offset: 4px; border-radius: 999px; }
.boton[disabled] { opacity: .62; cursor: progress; transform: none; }
.boton--linea { background: transparent; color: var(--tinta); box-shadow: none; }

.boton--chico { min-height: 2.75rem; font-size: .9375rem; padding: .5rem 1.15rem; }
.boton--ancho { width: 100%; }
.boton--entrar { min-height: clamp(2.75rem, calc(var(--u) * 16), 3.25rem); padding: .5rem clamp(.9rem, calc(var(--u) * 6), 1.5rem); font-size: clamp(.875rem, calc(var(--u) * 5.2), 1rem); white-space: nowrap; }
.boton--entrar svg path:first-child { fill: currentColor; stroke: none; }
.enlace { min-height: 2.5rem; padding: .35rem .9rem; border: 0; background: none; cursor: pointer; font: italic 500 clamp(1rem, calc(var(--u) * 5.6), 1.15rem)/1 var(--serif); color: var(--tinta-suave); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.enlace:hover { color: var(--tinta); }
.botones { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }

/* ───────────── El camino: hojas crema con arco ───────────── */
.camino { position: relative; z-index: 2; pointer-events: none; padding: 100vh 14px 0; }
@supports (height: 100svh) { .camino { padding-top: 100svh; } }
/* --alto lo fija invitacion.js con innerHeight y NO cambia con el teclado: con vh/svh, en Safari la página
   se encogía al abrir el teclado y el formulario brincaba ~600 px (QA de usabilidad, 12-nov). */
.js .camino { padding-top: var(--alto, 100svh); }
.camino > * { pointer-events: auto; }
.hoja {
  max-width: 30rem; margin: 0 auto calc(var(--alto, 100vh) * .38); padding: 5.25rem 1.5rem 2.5rem; text-align: center; scroll-margin-top: 1rem;
  background: rgba(248, 247, 227, .93);
  -webkit-backdrop-filter: blur(9px) saturate(1.1); backdrop-filter: blur(9px) saturate(1.1);
  border-radius: 50% 50% 20px 20px / 8.5rem 8.5rem 20px 20px;
  box-shadow: 0 26px 46px -30px rgba(59, 55, 51, .55);
}
@supports (color: color-mix(in srgb, red, blue)) { .hoja { background: color-mix(in srgb, var(--crema) 93%, transparent); } }
.hoja:last-child { margin-bottom: calc(var(--alto, 100vh) * .3); }
/* En tableta el desenfoque sobre el escenario grande traba el deslizado: la hoja va casi opaca y sin desenfoque. */
@media (min-width: 600px) {
  .hoja { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(248, 247, 227, .97); }
}

.rotulo { font: 600 1.1875rem/1.25 var(--serif); letter-spacing: .26em; text-transform: uppercase; color: var(--oro-hondo); padding-left: .26em; text-wrap: balance; }
.rotulo::after { content: ""; display: block; width: 4.5rem; height: 1px; margin: 1rem auto 0; background: var(--oro); }
.rotulo:focus { outline: none; }

/* Revelados (solo con JS; sin JS todo está a la vista) */
.js [data-r] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .9s ease, transform 1.1s var(--suave); transition-delay: calc(var(--i, 0) * 140ms); }
.js [data-r].visto { opacity: 1; transform: none; }
.js .frase[data-r] { opacity: 1; transform: none; }
.js .frase span { display: inline-block; opacity: 0; transform: translate3d(0, .45em, 0); transition: opacity .8s ease, transform 1s var(--suave); transition-delay: calc(var(--i) * 95ms + 150ms); }
.js .frase.visto span { opacity: 1; transform: none; }

/* Nuestra intención */
.frase { margin-top: 1.7rem; font: italic 500 1.75rem/1.22 var(--serif); text-wrap: balance; }
.pilares { margin-top: 2.2rem; display: grid; gap: 1.5rem; }
.pilar h3 { font: 500 1.55rem/1.1 var(--serif); letter-spacing: .15em; text-transform: uppercase; padding-left: .15em; }
.pilar p { margin-top: .4rem; font: 600 .75rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--oro-hondo); padding-left: .2em; }
.cierre { margin-top: 2.2rem; font: italic 500 1.4rem/1.25 var(--serif); text-wrap: balance; }
.hoja--intencion .centro { margin-top: 1.4rem; }

/* Juntas viviremos */
.entrada { margin: 1.6rem auto 0; max-width: 26rem; color: var(--tinta-suave); text-wrap: pretty; }
.actividades { margin-top: 1rem; }
.actividad { padding: 1.9rem 0; }
.actividad + .actividad { border-top: 1px solid var(--linea); }
.actividad:last-child { padding-bottom: .4rem; }
.icono { width: 4.25rem; height: 4.25rem; margin: 0 auto .8rem; fill: none; stroke: var(--oro-hondo); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.js .trazo { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.9s cubic-bezier(.5, 0, .2, 1) .15s; }
.js .visto .trazo { stroke-dashoffset: 0; }
.actividad h3 { font: 600 1.5rem/1.15 var(--serif); text-wrap: balance; }
.actividad__detalle { margin-top: .35rem; font: italic 500 1.2rem/1.3 var(--serif); color: var(--tinta-suave); text-wrap: balance; }
.actividad__con { margin-top: .7rem; font: 600 .75rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--oro-hondo); }

/* La tarde */
.datos { margin-top: 1.8rem; display: grid; gap: 1.35rem; }
.datos dt, .incluye h3, .aportacion h3 { font: 600 .9375rem/1.2 var(--serif); letter-spacing: .26em; text-transform: uppercase; color: var(--oro-hondo); padding-left: .26em; }
.datos dd { margin-top: .25rem; font: 500 1.45rem/1.22 var(--serif); text-wrap: balance; }
.datos small { display: block; margin-top: .3rem; font: 400 .9375rem/1.4 var(--sans); color: var(--tinta-suave); }
.hoja--tarde .botones { margin-top: 1.6rem; }
.incluye, .aportacion { margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--linea); }
.incluye ul { display: inline-grid; gap: .55rem; margin-top: .9rem; text-align: left; }
.incluye li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: baseline; line-height: 1.35; }
.incluye .estrella { width: .7rem; height: .7rem; transform: translateY(.02rem); }
.aportacion ul { max-width: 17rem; margin: .7rem auto 0; }
.aportacion li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.aportacion li + li { border-top: 1px dashed var(--linea); }
.aportacion b { font: 600 1.6rem/1 var(--serif); font-variant-numeric: lining-nums; }
.nota { margin-top: .9rem; font-size: .9375rem; line-height: 1.45; color: var(--tinta-suave); text-wrap: pretty; }
.dudas { margin: 1.6rem 0 .6rem; font-size: .9375rem; color: var(--tinta-suave); }

/* Aparta tu lugar */
.cupo { margin-top: 1.1rem; font: italic 500 1.3rem/1.2 var(--serif); }
.cupo b { font-style: normal; font-weight: 600; font-size: 1.25em; font-variant-numeric: lining-nums; }
.form { margin-top: 1.7rem; display: grid; gap: 1.35rem; text-align: left; }
.campo label, .campo legend { display: block; margin-bottom: .45rem; font: 600 .9688rem/1.3 var(--sans); }
.opcional { white-space: nowrap; font-weight: 400; font-size: .8125rem; color: var(--tinta-suave); }
.campo input[type="text"], .campo input[type="tel"], .campo input[type="email"] {
  display: block; width: 100%; min-height: 3.25rem; padding: .7rem .95rem; font-size: 1.0625rem;
  border: 1.5px solid var(--linea); border-radius: 14px; background: var(--hueso); appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.campo input::placeholder { color: #6E675F; opacity: 1; }
.campo input[type="text"]:hover, .campo input[type="tel"]:hover, .campo input[type="email"]:hover { border-color: var(--tinta-suave); }
.campo input[type="text"]:focus, .campo input[type="tel"]:focus, .campo input[type="email"]:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(244, 180, 142, .6); }
.campo input[aria-invalid="true"] { border-color: var(--falla); }
.ayuda { margin-top: .4rem; font-size: .875rem; line-height: 1.4; color: var(--tinta-suave); }
.error { margin-top: .4rem; font-size: .9375rem; font-weight: 500; line-height: 1.35; color: var(--falla); }
.error--general { margin: 0; padding: .8rem 1rem; border: 1px solid var(--falla); border-radius: 14px; background: var(--hueso); }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.opciones--pila { grid-template-columns: 1fr; }
.opcion { position: relative; margin: 0 !important; cursor: pointer; }
.opcion input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opcion__cara {
  position: relative; display: grid; align-content: center; justify-items: center; gap: .2rem; height: 100%; min-height: 6.4rem; padding: .85rem .6rem;
  border: 1.5px solid var(--linea); border-radius: 16px; background: var(--hueso); text-align: center;
  transition: border-color .2s ease, background-color .25s ease, transform .35s var(--suave);
}
.opciones--pila .opcion__cara { min-height: 3.5rem; justify-items: start; padding: .8rem 3rem .8rem 1.1rem; text-align: left; }
.opcion__cara::after { content: ""; order: -1; margin-bottom: .2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1.5px solid var(--linea); background: var(--hueso); transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.opciones--pila .opcion__cara::after { position: absolute; top: 50%; right: 1rem; margin: -.575rem 0 0; }
.opcion__titulo { font: 600 1rem/1.25 var(--sans); }
.opcion__monto { font: 600 1.7rem/1 var(--serif); font-variant-numeric: lining-nums; }
.opcion:hover .opcion__cara { border-color: var(--tinta-suave); }
.opcion input:checked + .opcion__cara { border-color: var(--tinta); background: #FCE9D8; }
.opcion input:checked + .opcion__cara::after { border-color: var(--tinta); background: var(--tinta); box-shadow: inset 0 0 0 3px #FCE9D8; }
.opcion input:focus-visible + .opcion__cara { outline: 2px solid var(--tinta); outline-offset: 3px; }
.campo--casillas { display: grid; gap: .9rem; }
.casilla { display: grid !important; grid-template-columns: auto 1fr; gap: .8rem; align-items: center; min-height: 44px; padding: .35rem 0; margin: 0 !important; font-weight: 400 !important; font-size: .9688rem !important; line-height: 1.4 !important; cursor: pointer; }
.casilla input { width: 1.6rem; height: 1.6rem; margin: 0; accent-color: var(--tinta); cursor: pointer; }
.casilla a { font-weight: 600; }
.casilla--chica { min-height: 36px; font-size: .8125rem !important; opacity: .78; }
.casilla--chica input { width: 1.25rem; height: 1.25rem; }
.campo--casillas .error { margin-top: -.4rem; }
.trampa { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form .nota { margin-top: -.5rem; }

/* Listo */
.listo { text-align: center; }
.listo:focus { outline: none; }
.listo h2 { font: 500 2.15rem/1.08 var(--serif); text-wrap: balance; }
.listo__flor { width: 3.6rem; height: 3.6rem; margin: 0 auto 1rem; fill: none; stroke: var(--oro-hondo); stroke-width: 1.15; }
.listo__texto { margin-top: 1rem; text-wrap: pretty; }
.listo__dato { margin-top: 1.2rem; font: italic 500 1.3rem/1.3 var(--serif); }
.listo__acciones { display: grid; gap: .75rem; margin-top: 1.8rem; }
.listo__aviso:empty { display: none; }
.listo__aviso { margin-top: .7rem; font-size: .9375rem; color: var(--tinta-suave); }
.listo .enlace { margin-top: .6rem; font-size: 1.05rem; }
.js .listo > * { animation: llega .9s var(--suave) both; }
.js .listo > :nth-child(2) { animation-delay: .1s; }
.js .listo > :nth-child(3) { animation-delay: .2s; }
.js .listo > :nth-child(4) { animation-delay: .3s; }
.js .listo > :nth-child(n+5) { animation-delay: .4s; }

/* Datos para transferir */
.pago { margin-top: 1.6rem; padding: 1.4rem 1.1rem 1.3rem; border: 1px solid var(--linea); border-radius: 16px; background: var(--hueso); text-align: left; }
.pago h3 { font: 600 1.35rem/1.15 var(--serif); text-align: center; text-wrap: balance; }
.pago__de { margin-top: .3rem; font-size: .9375rem; color: var(--tinta-suave); text-align: center; }
.pago dl { margin-top: 1rem; }
.pago__fila { padding: .7rem 0; }
.pago__fila + .pago__fila { border-top: 1px dashed var(--linea); }
.pago dt { font: 600 .75rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--oro-hondo); }
.pago dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; margin-top: .2rem; overflow-wrap: anywhere; }
.mono { font: 500 1.0625rem/1.4 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; letter-spacing: .02em; font-variant-numeric: tabular-nums lining-nums; }
.copiar { flex: none; min-height: 2.75rem; padding: .4rem .95rem; border: 1.5px solid var(--tinta); border-radius: 999px; background: transparent; font: 600 .875rem/1 var(--sans); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.copiar:focus-visible { border-radius: 999px; }
@media (hover: hover) { .copiar:hover { background: var(--tinta); color: var(--crema); } }
.pago .nota { margin-top: .8rem; }
.pago .boton { width: 100%; margin-top: 1.1rem; }
.incluye--pago { margin-top: 2.2rem; }

/* Pie */
.pie { position: relative; z-index: 2; padding: 4.5rem 1.5rem calc(7rem + env(safe-area-inset-bottom)); text-align: center; background: var(--papel); border-radius: 50% 50% 0 0 / 4.5rem 4.5rem 0 0; }
.pie__colectivo { font: italic 500 1.9rem/1.1 var(--serif); }
.pie__evento { margin-top: .4rem; font: 600 .75rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--oro-hondo); }
.pie__casas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem 2.5rem; margin-top: 2rem; }
.pie__casas li { display: flex; flex-direction: column; align-items: center; }
.pie__red a, .pie__weco a { display: inline-block; padding: .55rem .6rem; color: var(--tinta-suave); }
.pie__red { margin-top: .3rem; font-size: .9688rem; }
.pie__weco { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--tinta) 12%, transparent); display: inline-block; }
.pie__weco .pie__hecho a { padding: .3rem .15rem; text-decoration: underline; text-underline-offset: 3px; }
.pie__weco-ligas { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .8rem; font-size: .8125rem; }
.pie__weco-ligas a { font-weight: 600; color: var(--tinta); }
.pie__marca { display: block; font: 600 1.3rem/1.2 var(--serif); }
.pie__casas a { display: inline-block; padding: .55rem .6rem; font-size: .9688rem; color: var(--tinta-suave); }
.pie__casas a:hover { color: var(--tinta); }
.pie__legal { margin-top: 1.6rem; font-size: .9375rem; }
.pie__legal a { display: inline-block; padding: .6rem; }
.pie__hecho { margin-top: .6rem; font-size: .8125rem; color: var(--tinta-suave); }

/* Controles fijos */
.sonido, .atajo { position: fixed; z-index: 10; }
.atajo { bottom: calc(14px + env(safe-area-inset-bottom)); }
.sonido { top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid var(--linea); border-radius: 50%; background: var(--crema); color: var(--tinta); cursor: pointer; box-shadow: 0 10px 20px -12px rgba(59, 55, 51, .6); animation: llega .8s var(--suave) .6s both; transition: transform .35s var(--suave); }
.sonido:focus-visible { border-radius: 50%; }
.sonido svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sonido svg path:first-child { fill: currentColor; stroke: none; }
.sonido[aria-pressed="true"] .sonido__tache, .sonido[aria-pressed="false"] .sonido__ondas { display: none; }
.atajo { left: 14px; display: inline-flex; align-items: center; min-height: 3rem; padding: .5rem 1.25rem; border-radius: 999px; background: var(--tinta); color: var(--crema); font: 600 .9375rem/1 var(--sans); text-decoration: none; box-shadow: 0 12px 22px -12px rgba(59, 55, 51, .75); animation: llega .7s var(--suave) both; }
.atajo:focus-visible { border-radius: 999px; outline-offset: 4px; }

/* Cifras alineadas (la serif trae cifras antiguas por omisión y el 1 se lee como I) */
.trio b, .datos dd, .cupo, .cupo b, .listo h2, .listo__dato, .aportacion b, .opcion__monto, .umbral__titulo { font-variant-numeric: lining-nums; }

/* ───────────── Escritorio: dos páginas ───────────── */
@media (min-width: 960px) {
  :root { --escena-w: min(56.25vh, 42vw); }
  .papel { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; }
  .astro { width: calc(var(--t, 1) * 1.15rem); }
  .astro .estrella { fill: var(--oro); }
  .escena {
    width: var(--escena-w); height: 100vh; z-index: 1; background: none;
    --ov-x: 57.5%; --ov-y: 34.4vh; --ov-w: calc(var(--escena-w) * .6); --ov-h: 56vh;
    transition: transform 2s var(--suave);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 93%, transparent 100%);
  }
  .js:not(.dentro) .escena { transform: translate3d(calc(50vw - 50%), 0, 0); }
  .lienzo { left: 0; }
  .umbral { opacity: 1; }
  .umbral__sigue { display: none; }
  .camino { margin-left: var(--escena-w); padding: 0 clamp(2rem, 6vw, 6rem); transition: opacity 1.4s ease .7s, transform 1.8s var(--suave) .6s, visibility 0s; }
  .js:not(.dentro) .camino { opacity: 0; visibility: hidden; transform: translate3d(2.5rem, 0, 0); transition: none; }
  .hoja, .hoja:last-child {
    max-width: 34rem; margin: 0 auto; padding: 0 0 clamp(5rem, 13vh, 8rem); scroll-margin-top: 12vh;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; box-shadow: none;
  }
  .hoja:first-child { padding-top: clamp(5rem, 17vh, 10rem); }
  .hoja + .hoja::before { content: ""; display: block; width: 1px; height: 4.5rem; margin: 0 auto clamp(3.5rem, 9vh, 5.5rem); background: linear-gradient(transparent, var(--oro)); }
  .rotulo { font-size: 1.3rem; }
  .frase { font-size: 2.5rem; line-height: 1.16; margin-top: 2.2rem; }
  .pilares { margin-top: 3rem; gap: 1.7rem; }
  .pilar h3 { font-size: 1.7rem; }
  .cierre { font-size: 1.7rem; margin-top: 3rem; }
  .actividad { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.6rem; align-items: center; text-align: left; padding: 2.1rem 0; }
  .icono { width: 5.5rem; height: 5.5rem; margin: 0; }
  .actividad h3 { font-size: 1.75rem; }
  .datos dd { font-size: 1.65rem; }
  .hoja--apartar { max-width: 29rem; }
  .listo h2 { font-size: 2.6rem; }
  .pie { margin-left: var(--escena-w); background: none; border-radius: 0; padding: 2rem 2rem 4rem; transition: opacity 1.2s ease 1s; }
  .js:not(.dentro) .pie { opacity: 0; visibility: hidden; }
  .pie__casas { gap: 1.1rem 2.5rem; }
  .sonido { top: 1.25rem; right: 1.25rem; }
  .atajo { display: none; }
}

/* ───────────── Movimiento reducido ───────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .capa, .destello .estrella, .astro .estrella, .umbral__sigue svg, .umbral > *, .sonido, .atajo, .js .listo > * { animation: none !important; }
  .destello .estrella, .astro .estrella { opacity: .55; }
  .petalos { display: none; }
  .escena__zoom, .js:not(.dentro) .escena__zoom { transform: none; transition: none; }
  .escena, .camino { transition-duration: .01s !important; transition-delay: 0s !important; }
  .velo { transition-duration: .6s; }
  .js [data-r], .js .frase span { transform: none !important; transition: opacity .6s ease !important; transition-delay: 0s !important; }
  .js .trazo { stroke-dashoffset: 0; transition: none; }
  .boton, .opcion__cara, .sonido { transition: none; }
  .boton:hover, .sonido:hover { transform: none; }
}

/* Video de la escena: entra encima del arte cuando ya está corriendo; mientras tanto se ve el arte quieto. */
.lienzo__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.con-video .lienzo__video { opacity: 1; }
.con-video .capa { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .lienzo__video { display: none; } }
/* El video en su propia sección: ventana en arco, como las fotos de las anfitrionas. */
.ventana {
  position: relative; width: min(100%, 15.5rem); aspect-ratio: 9 / 16; margin: 1.75rem auto 2.25rem;
  border-radius: 50% 50% 22px 22px / 28% 28% 22px 22px; overflow: hidden; isolation: isolate;
  -webkit-mask-image: linear-gradient(#000, #000); background: #CDBB92;
  box-shadow: 0 26px 44px -26px rgba(59, 55, 51, .6), 0 0 0 1px rgba(168, 131, 78, .45);
}
.ventana::after { content: ""; position: absolute; inset: 7px; border-radius: inherit; border: 1px solid rgba(248, 247, 227, .55); pointer-events: none; }
.ventana__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ventana__otra { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); z-index: 1; min-height: 44px; white-space: nowrap;
  background: rgba(248, 247, 227, .92); }
/* Mientras corre el video el título se aparta: sobre gente bailando no se lee (12-nov). Al terminar regresa
   sobre una luz crema, encima del último cuadro. !important porque la entrada «llega» deja opacity fija. */
.umbral > * { transition: opacity .8s ease; }
.video-sonando .umbral > * { opacity: 0 !important; }
.video-fin .umbral::before {
  content: ""; position: absolute; inset: -16% -14%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(248, 247, 227, .95) 60%, rgba(248, 247, 227, .75) 78%, rgba(248, 247, 227, 0) 100%);
  animation: llega 1s var(--suave) both;
}

/* ══════════════ 12-nov · apertura, música de tres estados, pase, anfitrionas, ramos e iconos vivos ══════════════ */
:root { --coral-hondo: #B4513F; --muesca: var(--crema); }
@supports (color: color-mix(in srgb, red, blue)) { :root { --coral-hondo: color-mix(in srgb, var(--coral) 58%, var(--tinta)); } }

/* ───────────── La apertura: la escena nítida se abre desde el óvalo ───────────── */
.apertura { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.abriendo .velo { opacity: 1 !important; transition: none !important; }
.apertura-aro {
  position: absolute; left: var(--ov-x); top: var(--ov-y); width: var(--ov-w); height: var(--ov-h);
  margin: calc(var(--ov-h) / -2) 0 0 calc(var(--ov-w) / -2); border-radius: 50%;
  border: 2px solid var(--oro); box-shadow: 0 0 0 6px rgba(255, 243, 207, .55), inset 0 0 0 2px rgba(255, 243, 207, .6);
  opacity: 0; pointer-events: none;
}
.chispas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; }

/* ───────────── Música: parada · cargando · sonando ───────────── */
.sonido { transition: transform .35s var(--suave), background-color .3s ease; }
.sonido__carga { position: absolute; inset: -1px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--coral-hondo); border-right-color: var(--durazno); opacity: 0; pointer-events: none; }
.sonido[data-estado="cargando"] { cursor: progress; }
.sonido[data-estado="cargando"] svg { opacity: .45; }
.sonido[data-estado="cargando"] .sonido__carga { opacity: 1; animation: gira .9s linear infinite; }
.sonido[data-estado="sonando"] { background: #FCE9D8; }
.sonido[data-estado="sonando"] .sonido__ondas { animation: pulsa 1.8s ease-in-out infinite; }
.pausa .sonido__carga, .pausa .sonido__ondas { animation-play-state: paused !important; }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes pulsa { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* ───────────── El pase que se llena y se sella ───────────── */
.pase {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; text-align: left;
  border: 1px solid var(--linea); border-radius: 16px; box-shadow: 0 16px 26px -22px rgba(59, 55, 51, .7);
  background: linear-gradient(118deg, rgba(244, 180, 142, .34), rgba(238, 140, 120, .1) 46%, rgba(156, 176, 125, .2)) var(--hueso);
  transition: opacity .4s ease;
}
html:not(.js) .pase { display: none; }
.pase__cuerpo { min-width: 0; padding: .9rem .9rem .95rem 1.1rem; }
.pase__ceja { font: 600 .6875rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--oro-hondo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pase__nombre { margin-top: .25rem; font: 600 1.95rem/1.08 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pase[data-sin-nombre] .pase__nombre { font-style: italic; font-weight: 500; color: var(--tinta-suave); }
.pase__fila { display: flex; align-items: center; gap: .55rem; min-height: 1.6rem; margin-top: .5rem; }
.pase__gente { display: inline-flex; gap: .22rem; }
.pase__gente:empty { display: none; }
.pase__persona { width: 1.7rem; height: 1.7rem; fill: var(--hueso); animation: persona-entra .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.pase__persona-fondo { fill: var(--coral-hondo); }
.pase__persona + .pase__persona { margin-left: -.45rem; animation-delay: .08s; }
.pase__persona circle:not(.pase__persona-fondo), .pase__persona path { fill: #FFF6EA; }
@keyframes persona-entra { 0% { opacity: 0; transform: translateY(8px) scale(.3) rotate(-25deg); } 100% { opacity: 1; transform: none; } }
.pase__cuantos { font: 600 .8125rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); }
.pase__talon { position: relative; display: grid; align-content: center; justify-items: center; gap: .12rem; min-width: 5.3rem; max-width: 7rem; padding: .8rem .8rem; border-left: 1.5px dashed var(--linea); text-align: center; }
.pase__talon::before, .pase__talon::after { content: ""; position: absolute; left: -.5rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--muesca); }
.pase__talon::before { top: -.55rem; }
.pase__talon::after { bottom: -.55rem; }
.pase__talon span { font: 600 .6875rem/1 var(--sans); letter-spacing: .26em; padding-left: .26em; text-transform: uppercase; color: var(--oro-hondo); }
.pase__talon b { font: 500 2.3rem/1 var(--serif); font-variant-numeric: lining-nums; }
.pase__talon small { font: 500 .6875rem/1.25 var(--sans); color: var(--tinta-suave); text-wrap: balance; }
.pase__sello {
  position: absolute; left: 1.05rem; bottom: .7rem; padding: .34rem .6rem .3rem; border: 2px solid var(--coral-hondo); border-radius: 8px;
  background: rgba(255, 253, 244, .82); color: var(--coral-hondo); font: 700 .6875rem/1.1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transform: rotate(-8deg); opacity: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255, 253, 244, .9), inset 0 0 0 3px var(--coral-hondo);
}
.pase[data-estado="apartado"] .pase__sello, .pase[data-estado="espera"] .pase__sello { opacity: .94; }
/* Sellado, el pase crece un renglón para que el sello no tape sus lugares */
.pase[data-estado="apartado"] .pase__cuerpo, .pase[data-estado="espera"] .pase__cuerpo { padding-bottom: 3.1rem; }
.pase[data-estado="espera"] .pase__sello { border-color: var(--oro-hondo); color: var(--oro-hondo); box-shadow: inset 0 0 0 2px rgba(255, 253, 244, .9), inset 0 0 0 3px var(--oro-hondo); }
.pase[data-animar] .pase__sello { animation: sella .6s cubic-bezier(.2, 1.3, .4, 1) .3s both; }
.pase[data-va="no"] { opacity: .6; }
.listo .pase { margin-bottom: 1.5rem; }
.listo .pase__nombre { font-size: 2.1rem; }
@keyframes brota { from { opacity: 0; transform: translate3d(0, 6px, 0) scale(.5); } }
@keyframes sella {
  0% { opacity: 0; transform: rotate(-24deg) scale(2.4); }
  55% { opacity: 1; transform: rotate(-5deg) scale(.92); }
  100% { opacity: .94; transform: rotate(-8deg) scale(1); }
}

/* ───────────── Quiénes te reciben ───────────── */
.anfitrionas { margin-top: 2rem; display: grid; gap: 1.7rem; text-align: left; }
.anfitriona { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.arco {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 14px 14px;
  background: radial-gradient(120% 90% at 30% 12%, #FCE9D8, var(--durazno) 52%, var(--coral));
  box-shadow: 0 0 0 3px var(--hueso), 0 0 0 4px var(--oro), 0 16px 22px -16px rgba(59, 55, 51, .75);
}
.arco::after { content: ""; position: absolute; inset: 4px; border-radius: 999px 999px 10px 10px; border: 1px solid rgba(255, 253, 244, .8); pointer-events: none; }
.arco__inicial { font: 500 2.5rem/1 var(--serif); letter-spacing: .04em; color: var(--hueso); }
.arco__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.anfitriona h3 { font: 600 1.6rem/1.1 var(--serif); }
.anfitriona__marca { margin-top: .25rem; font: 600 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--oro-hondo); }
.anfitriona__taller { margin-top: .3rem; font: italic 500 1.15rem/1.22 var(--serif); color: var(--tinta-suave); text-wrap: balance; }
.anfitriona a { display: inline-flex; align-items: center; min-height: 44px; margin-top: .1rem; padding: .3rem 0; font-size: .9688rem; color: var(--tinta-suave); overflow-wrap: anywhere; }
.anfitriona a:hover { color: var(--tinta); }
@media (min-width: 960px) {
  .anfitrionas { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1.6rem 1rem; text-align: center; }
  .anfitriona { grid-template-columns: 1fr; justify-items: center; align-content: start; gap: 1rem; }
  .anfitriona a { justify-content: center; font-size: .9375rem; overflow-wrap: normal; white-space: nowrap; }
}

/* ───────────── Ramos de acuarela que abrazan cada hoja ───────────── */
/* Los ramos se asoman por fuera de la hoja: el camino recorta lo que pase del borde de la pantalla. */
.camino { overflow-x: clip; }
.hoja { position: relative; isolation: isolate; }
.hoja > :not(.flores):not(.oculto) { position: relative; z-index: 1; }
.flores { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.flor { position: absolute; width: var(--w); transform: translate3d(0, calc(var(--py, 0px) * var(--f, 1)), 0); transition: opacity 1.4s ease; }
.js .flor { opacity: 0; }
.js .florecida .flor { opacity: 1; }
.flor__giro { display: block; transform: rotate(var(--giro, 0deg)) scaleX(var(--espejo, 1)); }
.flor img { width: 100%; height: auto; animation: mece-ramo var(--dur, 7s) ease-in-out infinite alternate paused; }
.a-la-vista .flor img { animation-play-state: running; }
.pausa .flor img { animation-play-state: paused !important; }
@keyframes mece-ramo { from { transform: rotate(-2.2deg) translate3d(0, 0, 0); } to { transform: rotate(2.4deg) translate3d(0, -3px, 0); } }
/* hi/hd: hombros del arco · bi/bd: la base, medio ramo por fuera de la hoja */
/* (12-nov) Pegadas a la orilla de la PANTALLA, no de la tarjeta: el borde cortado del ramo queda fuera de la
   vista. --sube = cuánto asoma por encima de la tarjeta (lo calcula la plantilla con la proporción del ramo). */
.flor { width: max(var(--w), 17vw); max-width: 15rem; top: calc(-1 * var(--sube, 3rem)); }
.flor--hi { left: calc((100% - 100vw) / 2); }
.flor--hi img { transform-origin: 0 60%; }
.flor--hd { right: calc((100% - 100vw) / 2); }
.flor--hd img { transform-origin: 100% 60%; }

/* Piezas de la entrada (transparencia real). --baja la escribe el scroll (0→1); --fuera las aparta antes de
   entrar. El porcentaje es del tamaño de cada pieza: a 1, las laterales quedan asomando un tercio. */
.pieza { position: absolute; will-change: transform;
  transform: translate3d(calc(var(--dx, 0) * (var(--baja, 0) + var(--fuera, 0)) * 1%), calc(var(--dy, 0) * (var(--baja, 0) + var(--fuera, 0)) * 1%), 0); }
.pieza img { display: block; width: 100%; height: 100%; animation: 7s ease-in-out infinite alternate paused; }
.pieza--izq { --dx: -64; } .pieza--der { --dx: 64; } .pieza--arr { --dy: -78; } .pieza--aba { --dy: 62; }
.pieza--izq img { transform-origin: 0 50%; animation-name: respira; animation-duration: 6.8s; }
.pieza--der img { transform-origin: 100% 50%; animation-name: respira; animation-duration: 7.6s; }
.pieza--arr img { animation-name: flota-poco; animation-duration: 5.2s; }
.pieza--aba img { transform-origin: 50% 92%; animation-name: mece; animation-duration: 5.6s; }
@keyframes flota-poco { from { transform: translate3d(0, .8%, 0); } to { transform: translate3d(.6%, -1.6%, 0); } }
.js:not(.dentro) .lienzo { --fuera: .5; }
.llegando .pieza { transition: transform 2.8s var(--suave); }
.dentro .pieza img { animation-play-state: running; }
.pausa .pieza img { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .pieza img { animation: none !important; } .js:not(.dentro) .lienzo { --fuera: 0; } }

/* ───────────── Iconos vivos (botones) ───────────── */
.juego {
  position: relative; display: block; width: 5.75rem; height: 5.75rem; margin: 0 auto .35rem; padding: .7rem; border: 0; border-radius: 50%;
  background: none; color: inherit; cursor: pointer; touch-action: manipulation;
}
.juego:focus-visible { border-radius: 50%; outline-offset: 0; }
.juego .icono { width: 100%; height: 100%; margin: 0; transition: transform .5s var(--suave), stroke .35s ease; }
.juego::before { content: ""; position: absolute; inset: .15rem; border-radius: 50%; border: 1px solid var(--oro); opacity: 0; pointer-events: none; }
.a-la-vista .juego::before { animation: late 3.4s ease-out infinite; }
.a-la-vista .actividad:nth-child(2) .juego::before { animation-delay: 1.1s; }
.a-la-vista .actividad:nth-child(3) .juego::before { animation-delay: 2.2s; }
.pausa .juego::before { animation-play-state: paused !important; }
@keyframes late { 0% { opacity: 0; transform: scale(.8); } 25% { opacity: .55; } 70%, 100% { opacity: 0; transform: scale(1.1); } }
@media (hover: hover) { .juego:hover .icono { transform: scale(1.07) rotate(-3deg); } }
.juego:active .icono { transform: scale(.93); }
/* Corona: gira y se pinta de coral mientras vuelan los pétalos */
.juego.florece .icono { stroke: var(--coral-hondo); animation: corona 1.2s var(--suave); }
@keyframes corona { 0% { transform: rotate(0) scale(1); } 30% { transform: rotate(-14deg) scale(1.12); } 65% { transform: rotate(9deg) scale(1.04); } 100% { transform: rotate(0) scale(1); } }
/* Cuenco: ondas que salen del borde y un golpecito */
.juego__ondas i { position: absolute; left: 50%; top: 55%; width: 62%; height: 62%; margin: -31% 0 0 -31%; border-radius: 50%; border: 1.5px solid var(--coral-hondo); opacity: 0; pointer-events: none; }
.juego.suena .juego__ondas i { animation: onda 2.3s ease-out both; }
.juego.suena .juego__ondas i:nth-child(2) { animation-delay: .28s; }
.juego.suena .juego__ondas i:nth-child(3) { animation-delay: .56s; }
.juego.suena .icono { stroke: var(--coral-hondo); animation: golpe .55s ease-out; }
@keyframes onda { 0% { opacity: .85; transform: scale(.4); } 100% { opacity: 0; transform: scale(2); } }
@keyframes golpe { 0% { transform: rotate(0); } 25% { transform: rotate(-5deg) translate3d(0, 2px, 0); } 60% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
/* Pastel: la velita se enciende (y se queda encendida hasta que la apaguen) */
.llama { transform-box: fill-box; transform-origin: 50% 100%; transition: fill .3s ease, stroke .3s ease; }
.juego[aria-pressed="true"] .llama { fill: #F6B43C; stroke: var(--coral-hondo); stroke-dashoffset: 0; }
.a-la-vista .juego[aria-pressed="true"] .llama { animation: flama .42s ease-in-out infinite alternate; }
.pausa .llama { animation-play-state: paused !important; }
.juego.festeja .icono { animation: brinca .7s var(--suave); }
@keyframes flama { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(.88, 1.14) rotate(4deg); } }
@keyframes brinca { 0% { transform: translate3d(0, 0, 0); } 35% { transform: translate3d(0, -7px, 0) scale(1.05); } 100% { transform: translate3d(0, 0, 0); } }

/* Pilares que se encienden al tocarlos */
.pilar__toque { min-height: 44px; margin: -.5rem 0; padding: .5rem 1rem; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; touch-action: manipulation; transition: color .4s ease; }
.pilar__toque:focus-visible { border-radius: 999px; }
.pilar p { transition: color .5s ease, letter-spacing .9s var(--suave); }
.pilar.encendido .pilar__toque { color: var(--coral-hondo); }
.pilar.encendido p { color: var(--coral-hondo); letter-spacing: .27em; }
/* Estrellas del cartel que brillan más fuerte al tocarlas */
.destello.brilla .estrella { animation: fulgor 1.25s ease-out !important; }
@keyframes fulgor { 0% { opacity: .5; transform: scale(.6) rotate(0deg); } 35% { opacity: 1; transform: scale(2.2) rotate(40deg); } 100% { opacity: 0; transform: scale(.4) rotate(70deg); } }

@media (min-width: 960px) {
  :root { --muesca: var(--papel); }
  .actividad { grid-template-columns: 6.75rem 1fr; }
  .juego { width: 6.75rem; height: 6.75rem; margin: 0; }
  .anfitrionas { margin-top: 2.6rem; }
  .arco { width: 8rem; }
  /* Sin tarjeta: los ramos acompañan el rótulo desde los lados y la base no lleva flores */
  .flor { width: min(calc(var(--w) * 1.35), 16vw - 3rem); }
  .flor--hi { left: calc(-1 * clamp(2rem, 6vw, 6rem)); top: 1.2rem; }
  .flor--hd { right: calc(-1 * clamp(2rem, 6vw, 6rem)); top: 3.4rem; }
  .hoja:first-child .flor--hi { top: clamp(6rem, 18vh, 11rem); }
  .hoja:first-child .flor--hd { top: clamp(8rem, 21vh, 13rem); }
  .flor--bi, .flor--bd { display: none; }
  .hoja:has(.flor--bi), .hoja:has(.flor--bd) { padding-bottom: clamp(5rem, 13vh, 8rem); }
}

@media (prefers-reduced-motion: reduce) {
  .flor { transform: none; transition: none; }
  .flor img, .juego::before, .juego .icono, .juego__ondas i, .llama, .pase__persona, .pase__sello, .sonido__carga, .sonido__ondas, .destello.brilla .estrella { animation: none !important; }
  .juego .icono, .pilar p, .pilar__toque, .pase { transition: none; }
  .juego:hover .icono, .juego:active .icono { transform: none; }
  /* Estados quietos en lugar de la animación */
  .juego.suena .juego__ondas i { opacity: .55; transform: scale(1); }
  .juego.suena .juego__ondas i:nth-child(2) { transform: scale(1.35); opacity: .35; }
  .juego.suena .juego__ondas i:nth-child(3) { transform: scale(1.7); opacity: .2; }
  .pilar.encendido p { letter-spacing: .2em; }
  .destello.brilla .estrella { opacity: 1; }
}
/* En celular la primera sección no lleva ramos: asomarían sobre la entrada, que ya tiene sus piezas. */
@media (max-width: 959px) { .hoja:first-child > .flores { display: none; } }
/* Al separarse, el corte recto de abajo de las piezas laterales se desvanece (en su lugar no hay corte que tapar). */
.pieza--izq, .pieza--der {
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 calc(var(--baja, 0) * 14%));
  mask-image: linear-gradient(to top, transparent 0, #000 calc(var(--baja, 0) * 14%));
}

/* ───────────── Escritorio (12-nov): la segunda página empieza junto al cartel ───────────── */
@media (min-width: 960px) {
  /* Sin esto, el hueco de una pantalla que el celular necesita dejaba la página derecha en blanco al entrar. */
  .js .camino { padding-top: 0; }
  /* Primera pantalla centrada frente al cartel */
  .hoja:first-child { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 4rem; }
  /* Ramos pegados a las orillas reales de la página derecha: el corte recto queda fuera de la vista
     (a la derecha, fuera de la pantalla; a la izquierda, se desvanece junto al cartel). */
  .flor { --orilla: calc((100vw - var(--escena-w) - 100%) / -2); width: min(calc(var(--w) * 1.5), 15vw); max-width: 14rem; }
  .flor--hi { left: var(--orilla); }
  .flor--hd { right: var(--orilla); }
  .flor--hi { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%); mask-image: linear-gradient(90deg, transparent 0, #000 32%); }
  /* En la primera pantalla la peonía del cartel ya está al lado: repetirla tapaba la frase. */
  .hoja:first-child .flor--hi { display: none; }
}

/* ───────────── Boleto (13-nov): en celular «Tu nombre aquí» y la ceja salían cortados ───────────── */
.pase__ceja { white-space: normal; letter-spacing: .12em; }
.pase[data-sin-nombre] .pase__nombre { font-size: clamp(1.2rem, 5.6vw, 1.6rem); white-space: normal; }

/* ───────────── Mapa del lugar (23-nov, ceremonia de Alan): papel tostado inclinado, con la fogata marcando el sitio ───────────── */
.mapa { position: relative; display: block; margin: 1.6rem auto 0; max-width: 26rem; aspect-ratio: 1200 / 760; perspective: 900px; color: var(--tinta); text-decoration: none; }
.mapa__mesa { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; transform: rotateX(28deg) scale(.94); transform-origin: 50% 80%;
  box-shadow: 0 30px 40px -26px rgba(59, 46, 38, .65), inset 0 0 0 1px rgba(168, 122, 62, .35); transition: transform 1.1s var(--suave); }
.mapa__papel { width: 100%; height: 100%; object-fit: cover; display: block; }
.mapa__luz { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 52%, transparent 40%, rgba(58, 46, 38, .28) 100%); }
.mapa__marca { position: absolute; left: 50%; top: 52%; display: grid; justify-items: center; transform: translate(-50%, -88%); pointer-events: none; }
.mapa__marca img { width: 3.1rem; height: auto; filter: drop-shadow(0 6px 6px rgba(58, 46, 38, .4)); animation: flota-poco 3.2s ease-in-out infinite alternate; }
.mapa__marca svg { width: 2.4rem; height: 2.4rem; fill: var(--coral); }
.mapa__halo { position: absolute; left: 50%; bottom: 1.35rem; width: 4.2rem; height: 1.3rem; margin-left: -2.1rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 103, 63, .55), transparent); animation: late 2.8s ease-out infinite; }
.mapa__nombre { margin-top: .15rem; padding: .3rem .75rem; border-radius: 999px; background: var(--crema); font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); box-shadow: 0 6px 14px -8px rgba(59, 46, 38, .6); white-space: nowrap; }
.mapa__credito { position: absolute; right: .8rem; bottom: .2rem; font: 500 .625rem/1 var(--sans); color: var(--tinta-suave); opacity: .8; }
@media (hover: hover) { .mapa:hover .mapa__mesa { transform: rotateX(14deg) scale(.97); } }
.mapa:focus-visible { outline-offset: 6px; border-radius: 18px; }

/* ───────────── Escritorio con ambiente: el desierto se extiende a los lados, desenfocado ───────────── */
.papel__fondo { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(38px) saturate(1.05); opacity: .55; transform: scale(1.05); }
@media (min-width: 960px) {
  .papel:has(.papel__fondo)::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 45%, transparent 30%, color-mix(in srgb, var(--papel) 70%, transparent) 100%); }
  .papel:has(.papel__fondo) .astro { z-index: 1; }
  /* El cartel deja de ser una tira con bordes duros: sombra suave en lugar del recorte */
  .papel:has(.papel__fondo) ~ .escena { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .papel:has(.papel__fondo) ~ .camino .hoja { background: color-mix(in srgb, var(--crema) 82%, transparent); border-radius: 28px; padding: 3.5rem 2.5rem clamp(4rem, 10vh, 6rem); margin-bottom: 3rem; box-shadow: 0 30px 60px -40px rgba(59, 46, 38, .5); }
  .papel:has(.papel__fondo) ~ .camino .hoja:first-child { min-height: auto; margin-top: 8vh; }
  .papel:has(.papel__fondo) ~ .camino .hoja + .hoja::before { display: none; }
  .papel:has(.papel__fondo) ~ .pie { background: none; }
}

/* ───────────── El corredor: cruza la página de lado a lado al final ───────────── */
.corredor { position: relative; z-index: 2; height: var(--alto-corredor, clamp(9.5rem, 34vw, 15rem)); overflow: hidden; pointer-events: none; }
.corredor__pista { position: absolute; inset: 0; }
.corredor__cuerpo { position: absolute; bottom: 0; left: 0; height: 100%; aspect-ratio: 3 / 2; animation: cruza 7s linear infinite; }
.corredor__cuadro { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0;
  animation-duration: calc(var(--n) * var(--ms)); animation-timing-function: steps(1, end); animation-iteration-count: infinite; animation-delay: calc(var(--i) * var(--ms)); }
@keyframes cruza { from { transform: translate3d(-110%, 0, 0); } to { transform: translate3d(calc(100vw + 10%), 0, 0); } }
@media (min-width: 960px) { .corredor { margin-left: var(--escena-w); } @keyframes cruza { from { transform: translate3d(-110%, 0, 0); } to { transform: translate3d(calc(100vw - var(--escena-w) + 10%), 0, 0); } } }
@media (prefers-reduced-motion: reduce) {
  .mapa__mesa { transform: none; transition: none; } .mapa__marca img, .mapa__halo { animation: none; }
  .corredor__cuerpo { animation: none; left: 50%; transform: translateX(-50%); } .corredor__cuadro { animation: none !important; } .corredor__cuadro:first-child { opacity: 1; }
}

/* ───────────── Entrada nítida (23-nov, ceremonia de Alan): desde el primer cuadro se ve todo, sin velo ni piezas apartadas ───────────── */
.entrada-nitida .velo { display: none; }
.entrada-nitida.js:not(.dentro) .lienzo { --fuera: 0; }
.entrada-nitida.js:not(.dentro) .escena__zoom { transform: none; }

/* Fogata viva: al tocarla suelta chispas */
.pieza--adorno-fuego { cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent; }
.pieza--adorno-fuego img { transition: filter .3s ease; }
.pieza--adorno-fuego.aviva img { filter: brightness(1.25) drop-shadow(0 0 14px rgba(255, 170, 60, .85)); }
.chispa { position: absolute; width: var(--t, 6px); height: var(--t, 6px); border-radius: 50%; pointer-events: none; z-index: 3;
  background: radial-gradient(circle, #FFF6C8 0%, #FFC14D 45%, rgba(255, 110, 30, 0) 75%);
  box-shadow: 0 0 8px 2px rgba(255, 160, 50, .65); }

/* Mapa antiguo (23-nov): la maqueta 3D de Casa Hangar pasada a tinta sobre pergamino. Casi plano, como carta sobre la mesa;
   la fogata flota arriba de la casa sin taparla. */
.mapa--antiguo .mapa__mesa { border-radius: 6px; transform: rotateX(10deg) scale(.97); box-shadow: 0 26px 34px -22px rgba(74, 47, 23, .6); }
.mapa--antiguo .mapa__luz { display: none; }
.mapa--antiguo .mapa__marca { left: 69%; top: 58%; }
.mapa--antiguo .mapa__marca img { width: 2.5rem; }
.mapa--antiguo .mapa__nombre { background: #f3e6c6; border: 1px solid rgba(74, 47, 23, .45); font: italic 500 .95rem/1 var(--serif); letter-spacing: .04em; text-transform: none; color: #4a2f17; }
@media (hover: hover) { .mapa--antiguo:hover .mapa__mesa { transform: rotateX(0deg) scale(1); } }

/* Un solo anfitrión (24-nov, ceremonia de Alan): foto grande arriba, todo centrado debajo. Va al final para ganarle a las medidas de escritorio. */
.anfitrionas--una { display: block; text-align: center; }
.anfitrionas--una .anfitriona { grid-template-columns: 1fr; justify-items: center; gap: 1.3rem; }
.anfitrionas--una .arco { width: min(15rem, 72vw); }
.anfitrionas--una .anfitriona h3 { font-size: 2rem; }
.anfitrionas--una .anfitriona a { justify-content: center; }

/* Huellitas de peyote que deja el venado al pasar (24-nov, ceremonia de Alan). Las pone invitacion.js. */
.huella { position: absolute; z-index: 0; width: 15px; height: 15px; margin-left: -7.5px; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'><g fill='%237f9163'><circle r='4.4'/><circle cy='-4.6' r='3.3'/><circle cx='4' cy='-2.3' r='3.3'/><circle cx='4' cy='2.3' r='3.3'/><circle cy='4.6' r='3.3'/><circle cx='-4' cy='2.3' r='3.3'/><circle cx='-4' cy='-2.3' r='3.3'/></g><g fill='%23f6ead0'><circle r='1.3'/><circle cy='-5' r='.8'/><circle cx='4.3' cy='-2.5' r='.8'/><circle cx='4.3' cy='2.5' r='.8'/><circle cy='5' r='.8'/><circle cx='-4.3' cy='2.5' r='.8'/><circle cx='-4.3' cy='-2.5' r='.8'/></g></svg>") center / contain no-repeat; animation: huella 3.4s ease-out forwards; }
@keyframes huella { 0% { opacity: 0; transform: scale(.3) rotate(-20deg); } 12% { opacity: .9; transform: scale(1) rotate(0); } 65% { opacity: .65; } 100% { opacity: 0; transform: scale(.9); } }

/* ── Boleto con vida (24-nov) ──
   Brillo que lo recorre, sello de agua con el icono del evento, la línea punteada que «corre»
   y, al apartar, el talón que se desprende por la línea punteada. */
.pase__cuerpo { position: relative; overflow: hidden; border-radius: 16px 0 0 16px; }
.pase__cuerpo::after { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 253, 244, .55), transparent); transform: skewX(-18deg);
  animation: brillo-pase 5.5s ease-in-out 1.2s infinite; }
@keyframes brillo-pase { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.pase__agua { position: absolute; right: -.6rem; bottom: -.9rem; width: 5.6rem; height: 5.6rem; color: var(--oro); opacity: .2; pointer-events: none; animation: agua-gira 6s ease-in-out infinite alternate; }
.pase__agua .icono { width: 100%; height: 100%; margin: 0; stroke-width: 2; }
.pase__agua .trazo { stroke-dashoffset: 0 !important; }
@keyframes agua-gira { from { transform: translateY(3px) rotate(-5deg); } to { transform: translateY(-3px) rotate(5deg); } }
.pase__talon { border-left: 0; transform-origin: 0 100%; transition: transform .5s ease; }
.pase__talon > :first-child { position: relative; }
.pase__talon { background-image: linear-gradient(var(--linea) 55%, transparent 0); background-size: 1.5px 9px; background-repeat: repeat-y; background-position: 0 0; animation: perfora 1.6s linear infinite; }
@keyframes perfora { to { background-position: 0 9px; } }
.pase[data-estado="apartado"] .pase__talon, .pase[data-estado="espera"] .pase__talon { animation: none; transform: translateX(.35rem) rotate(2.5deg); }
.pase[data-animar] .pase__talon { animation: desprende 1s cubic-bezier(.3, 1.4, .5, 1) .75s both; }
@keyframes desprende {
  0% { transform: none; }
  25% { transform: translateX(.15rem) rotate(-1.5deg); }
  55% { transform: translateX(.6rem) rotate(5deg); }
  100% { transform: translateX(.35rem) rotate(2.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pase__cuerpo::after, .pase__agua, .pase__talon { animation: none !important; }
}

/* ?vista=muestra (24-nov-2026): el ejemplo que abre wecolabs.mx/crea. Aviso fijo arriba a la izquierda (abajo va «Apartar mi
   lugar» y arriba a la derecha el sonido); el formulario no aparta lugar. */
.muestra-aviso {
  position: fixed; left: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 60;
  display: flex; align-items: center; gap: .75rem; width: max-content; max-width: calc(100vw - 84px); padding: .45rem .45rem .45rem 1rem;
  border-radius: 999px; background: #0B0C0E; color: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .25);
  font: 500 .875rem/1.3 Figtree, system-ui, sans-serif;
}
.muestra-aviso p { margin: 0; }
.muestra-aviso a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; background: #D1FE17; color: #0B0C0E; font-weight: 600; text-decoration: none; }
.muestra-aviso a:focus-visible { outline: 3px solid #FF1F7A; outline-offset: 2px; }
.muestra-aviso--brinca { animation: muestra-brinca .45s ease; }
@keyframes muestra-brinca { 0%, 100% { transform: none; } 30% { transform: translateX(-6px); } 60% { transform: translateX(6px); } }
@media (max-width: 420px) { .muestra-aviso { font-size: .8125rem; gap: .5rem; } .muestra-aviso a { padding: 0 .8rem; } }
@media (prefers-reduced-motion: reduce) { .muestra-aviso--brinca { animation: none; } }
