/* =========================================================
   Mundo de peluche rosa · Baby shower Jessica & Sebastián
   Paleta: peluche #F7C9D3 · empolvado #F4B6C2 · intenso #E88FA6
           crema #FFF4EC · champán #D9B26F · perla #FFFBF8
   Texto: rosa profundo #B4506F (títulos) y #7A3B4E (cuerpo) para
   que se lea nítido sobre el rosa (criterio propio, contraste AA).
   ========================================================= */
:root {
  --peluche: #F7C9D3; --empolvado: #F4B6C2; --intenso: #E88FA6; --crema: #FFF4EC;
  --oro: #D9B26F; --oro-claro: #F6E2B6; --oro-osc: #A8793C; --perla: #FFFBF8;
  --titulo: #B4506F; --tinta: #7A3B4E; --madera: #8B4C45;
  --serif: "Fredoka", "Nunito", system-ui, sans-serif; --sans: "Nunito", system-ui, sans-serif; --lila: #B79AE0; --lila-osc: #8A63C7;
  --seguro-arr: max(env(safe-area-inset-top), 14px); --seguro-ab: max(env(safe-area-inset-bottom), 14px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--peluche); overflow: hidden; }
body { font-family: var(--sans); color: var(--tinta); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overscroll-behavior: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; user-select: none; -webkit-user-drag: none; }

#peluche, #fondoCss, #confeti { position: fixed; inset: 0; width: 100%; height: 100%; }
#peluche { z-index: 0; display: block; }
#fondoCss { z-index: -1; background: url(assets/fondo.jpg) center / cover no-repeat, var(--peluche); }
body.adentro #fondoCss { background-image: url(assets/fondo.jpg); }
body.sin-gl #fondoCss { z-index: 0; }
#confeti { z-index: 60; pointer-events: none; }

/* ---------- botones ---------- */
.btn-perla {
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  min-height: 50px; padding: 0 30px; border-radius: 999px; text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: .02em; color: #fff;
  background: linear-gradient(180deg, #FFA9C2 0%, #F58AAE 55%, #EC7AA0 100%); text-shadow: 0 1px 0 rgba(190,70,110,.45);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #F9C5D6, 0 10px 22px rgba(200,80,120,.32), inset 0 3px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(190,60,100,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-perla span { position: relative; z-index: 1; }
.btn-perla::after {             /* reflejo lento */
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.85), rgba(255,255,255,0));
  transform: skewX(-18deg); animation: reflejo 4.2s ease-in-out infinite;
}
.btn-perla:active { transform: scale(.95); }
.btn-perla.chico { min-height: 40px; padding: 0 22px; font-size: 16px; }
@keyframes reflejo { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }

/* ---------- portada: osito interactivo ---------- */
#portada {
  position: fixed; inset: 0; z-index: 5; overflow: hidden; display: flex; flex-direction: column;
  padding: max(var(--seguro-arr), 112px) 14px calc(var(--seguro-ab) + 6px);
  background: none; touch-action: none;
  transition: opacity 1.1s ease, filter 1.1s ease;
}
#portada.abriendo { opacity: 0; filter: blur(8px); pointer-events: none; }
.colgantes { position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 82%, transparent 100%); }
.colgante { position: absolute; top: 0; width: var(--w); height: calc(var(--cuerda) + var(--w)); padding: 0; transform-origin: 50% 0; pointer-events: auto;
  animation: colgar 4.6s ease-in-out var(--d) infinite; -webkit-tap-highlight-color: transparent; }
.colgante .hilo { position: absolute; left: 50%; top: -4px; width: 2px; height: calc(var(--cuerda) + 4px); margin-left: -1px; background: linear-gradient(#F6E2B6, #D9B26F); border-radius: 2px; }
.colgante img { position: absolute; left: 0; bottom: 0; width: var(--w); height: var(--w); object-fit: contain; filter: drop-shadow(0 4px 5px rgba(180,80,111,.25)); }
.colgante.mece { animation: mece 1.1s cubic-bezier(.3,1.5,.5,1) 1; }
@keyframes colgar { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes mece { 0% { transform: rotate(0); } 15% { transform: rotate(-24deg); } 40% { transform: rotate(17deg); } 65% { transform: rotate(-8deg); } 85% { transform: rotate(3deg); } 100% { transform: rotate(0); } }

.portada-titulo { position: relative; z-index: 3; margin: 0; text-align: center; font-family: var(--serif); font-weight: 700; line-height: 1.02; color: #EF6F9A;
  -webkit-text-stroke: 7px #fff; paint-order: stroke fill; text-shadow: 0 5px 14px rgba(200,80,125,.28); pointer-events: none; }
.portada-titulo span { display: block; }
.portada-titulo .t1, .portada-titulo .t3 { font-size: clamp(22px, 6.6vw, 30px); }
.portada-titulo .t2 { font-size: clamp(38px, 12.4vw, 54px); letter-spacing: .01em; margin: 1px 0; }

.escenario { position: relative; flex: 1 1 auto; min-height: 0; margin-top: 4px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.burbuja-texto { position: absolute; left: 50%; top: 2px; z-index: 4; margin: 0; max-width: 92%; padding: 7px 16px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--titulo); background: #fffaf6; box-shadow: 0 0 0 2.5px #fff, 0 0 0 4px #F9C5D6, 0 6px 14px rgba(180,80,111,.22);
  opacity: 0; transform: translate(-50%, 8px) scale(.85); transition: opacity .25s ease, transform .35s cubic-bezier(.3,1.6,.5,1); }
.burbuja-texto.ver { opacity: 1; transform: translate(-50%, 0) scale(1); }
.burbuja-texto::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; margin-left: -6px; background: #fffaf6; transform: rotate(45deg); border-radius: 0 0 4px 0; box-shadow: 3px 3px 0 -1px #fff; }
.osito-caja { position: absolute; left: 50%; transform-origin: 50% -6%; animation: columpio 5.2s ease-in-out infinite; }
@keyframes columpio { 0%, 100% { transform: rotate(-1.3deg); } 50% { transform: rotate(1.3deg); } }
.osito-i { position: relative; width: 100%; height: 100%; transform-origin: var(--ox, 50%) var(--oy, 60%); -webkit-mask-image: none; }
.osito-img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 4%); mask-image: linear-gradient(to bottom, transparent 0, #000 4%); }
.pelito { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: url(assets/osito.webp); mask-image: url(assets/osito.webp); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.brillos { position: absolute; left: -24px; top: -24px; pointer-events: none; }
.osito-i.squish { animation: squish .62s cubic-bezier(.3,1.5,.5,1) 1; }
@keyframes squish {
  0% { transform: none; } 22% { transform: translateY(var(--ty, 0)) rotate(var(--rot, 0)) scale(var(--sx, 1.05), var(--sy, .94)); }
  48% { transform: scale(calc(2 - var(--sx, 1.05) * 1), calc(2 - var(--sy, .94) * 1 - .04)); } 72% { transform: scale(1.012, .992); } 100% { transform: none; }
}
.globos { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%); }
.globo { position: absolute; left: 0; top: 0; padding: 0; pointer-events: auto; will-change: transform; filter: drop-shadow(0 6px 6px rgba(200,80,120,.2)); }
.pum { position: fixed; z-index: 70; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; border: 3px solid #fff; box-shadow: 0 0 14px rgba(255,160,195,.9), inset 0 0 8px rgba(255,255,255,.9); animation: pum .45s ease-out forwards; }
@keyframes pum { to { transform: scale(5.5); opacity: 0; } }

.tarjeta-bienvenida { position: relative; z-index: 3; flex: 0 0 auto; margin-top: 8px; padding: 14px 18px 16px; text-align: center; border-radius: 26px;
  background: linear-gradient(180deg, #FFFDFB, #FFF1EA); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #F9C5D6, 0 12px 26px rgba(190,80,120,.26); }
.tarjeta-bienvenida::before { content: ""; position: absolute; inset: 7px; border-radius: 20px; border: 2px dashed #F3B7CA; pointer-events: none; }
.bienvenida-corta { position: relative; margin: 2px 6px 12px; font-family: var(--serif); font-weight: 500; font-size: 16px; line-height: 1.3; color: var(--tinta); }
#abrir { position: relative; animation: latido 2.4s ease-in-out infinite; }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
body:not(.listo) .osito-caja, body:not(.listo) .globos { opacity: 0; }
.osito-caja, .globos { transition: opacity .8s ease; }

/* ---------- escenas (pantalla completa, una por gesto) ---------- */
#escenas {
  position: fixed; inset: 0; z-index: 2; overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none;
}
#escenas.escribiendo { scroll-snap-type: none; }
#escenas::-webkit-scrollbar { display: none; }
.escena {
  position: relative; height: 100vh; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--seguro-arr) 18px var(--seguro-ab); overflow: hidden;
}
.aparece { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 1s ease var(--d, 0s), transform 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0s), filter 1s ease var(--d, 0s); }
.escena.vista .aparece { opacity: 1; transform: none; filter: none; }
.filtros { position: absolute; width: 0; height: 0; }

/* títulos redonditos e inflados */
.titulo { margin: 0 0 14px; font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 9.4vw, 44px); line-height: 1.02; text-align: center; color: #fff; letter-spacing: .005em;
  text-shadow: 0 2px 0 #F4A7BD, 0 4px 0 #E58AA5, 0 5px 0 #D9718F, 0 8px 14px rgba(170,60,100,.35); }
.pre { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--lila-osc); }
.pista, .sub { margin: 12px 0 0; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; text-align: center; color: var(--titulo);
  background: linear-gradient(180deg, rgba(255,251,248,.96), rgba(255,240,244,.93)); box-shadow: 0 0 0 1.5px rgba(244,182,194,.9), 0 6px 14px rgba(180,80,111,.16); transition: opacity .5s, transform .5s; }
.sub { max-width: 330px; border-radius: 20px; line-height: 1.45; font-weight: 700; }
.escena.vista .pista.fuera, .pista.fuera { opacity: 0; transform: translateY(8px); pointer-events: none; }

/* letras esponjosas (nube blanca alrededor + peluche rosa) */
.esponjoso { position: relative; margin: 0; isolation: isolate; font-family: var(--serif); font-weight: 700; line-height: .95; text-align: center; color: #F6789F; }
.esponjoso::before { content: attr(data-t); position: absolute; inset: 0; z-index: -1; color: #fff; -webkit-text-stroke: .28em #fff; paint-order: stroke fill;
   }
.esponjoso span { display: inline-block; 
  text-shadow: 0 -2px 0 #FFC2D4, 0 3px 0 #E0628A, 0 0 1px #E0628A; }

/* ---------- bienvenida ---------- */
.guirnalda { position: absolute; left: 0; top: 0; width: 100%; height: 34%; z-index: 3; pointer-events: none; }
#e-bienvenida { justify-content: flex-end; padding-bottom: calc(var(--seguro-ab) + 40px); gap: 12px; }
.letrero { position: relative; z-index: 2; text-align: center; }
.te-invitamos, .de-nuestra { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.05; }
.te-invitamos { font-size: clamp(22px, 6.4vw, 28px); color: var(--lila-osc); text-shadow: 0 2px 0 #fff, 0 0 12px rgba(255,255,255,.9); margin-bottom: 6px; }
.letrero .esponjoso { font-size: clamp(48px, 14.6vw, 70px); white-space: nowrap; }
.de-nuestra { font-size: clamp(25px, 7.4vw, 32px); color: #fff; margin-top: 10px;
  text-shadow: 0 2px 0 #C9A6EE, 0 4px 0 #A985D6, 0 7px 12px rgba(120,70,170,.3); }
.placa {
  position: relative; z-index: 1; width: min(92vw, 410px); padding: 18px 18px 16px; text-align: center; border-radius: 34px;
  background: radial-gradient(120% 80% at 50% 0%, #FFFFFF 0%, #FFF8F6 55%, #FFEFF3 100%);
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px #F7C9D3, 0 18px 34px rgba(170,70,105,.26);
}
.placa::after { content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(232,143,166,.55); border-radius: 26px; pointer-events: none; }
.nombres { margin: 0 0 6px; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 8.6vw, 38px); line-height: 1; color: #F06D97; }
.nombres i { font-style: normal; font-weight: 500; color: var(--lila); font-size: .8em; }
.bienvenida { margin: 0 auto 12px; max-width: 330px; font-size: clamp(14px, 3.85vw, 16px); line-height: 1.5; font-weight: 700; color: var(--tinta); }
.cuenta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 0 auto 10px; max-width: 320px; }
.burbuja-num { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.burbuja-num b {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 42% 42% 40% 40% / 46% 46% 38% 38%;
  font-family: var(--serif); font-weight: 700; font-size: clamp(25px, 7.4vw, 33px); color: #fff; font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 35% 28%, #FFE3EC 0 14%, var(--c, #F59AB7) 55%, var(--c2, #E7789C) 100%);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.08), inset 0 4px 0 rgba(255,255,255,.5), 0 6px 12px rgba(180,80,111,.25);
  text-shadow: 0 2px 0 rgba(160,50,90,.35);
}
.burbuja-num b::after { content: ""; position: absolute; inset: 5px; border-radius: inherit; border: 1.5px dashed rgba(255,255,255,.7); }
.burbuja-num:nth-child(2) b { --c: #C9A6EE; --c2: #A985D6; text-shadow: 0 2px 0 rgba(100,60,150,.35); }
.burbuja-num:nth-child(3) b { --c: #F7C08F; --c2: #EAA06D; text-shadow: 0 2px 0 rgba(160,90,40,.3); }
.burbuja-num:nth-child(4) b { --c: #F59AB7; --c2: #E7789C; }
.burbuja-num b span { position: relative; z-index: 1; display: inline-block; animation: salta-num .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes salta-num { from { transform: translateY(-30%) scale(.8); opacity: .3; } }
.burbuja-num small { font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--titulo); }
.fecha { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--lila-osc); }
.desliza { position: absolute; bottom: calc(var(--seguro-ab) + 2px); left: 0; right: 0; margin: 0; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #fff; text-shadow: 0 1px 3px rgba(150,60,90,.6); --d: 1.6s; }
.desliza::after { content: ""; display: block; width: 9px; height: 9px; margin: 4px auto 0; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; border-radius: 2px; transform: rotate(-135deg); animation: subir 1.6s ease-in-out infinite; }
@keyframes subir { 50% { transform: translateY(-5px) rotate(-135deg); } }

/* ---------- cámara ---------- */
.estudio { position: relative; width: min(74vw, 310px); --cw: min(74vw, 310px); height: calc(var(--cw) * 1.62); }
.camara { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .9s ease, filter .9s; }
.camara-img { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 16px 22px rgba(160,60,95,.32)); }
.camara.dispara .camara-img { animation: sacudon .35s ease; }
@keyframes sacudon { 30% { transform: scale(.97) translateY(3px); } 60% { transform: scale(1.01); } }
.obturador { position: absolute; z-index: 4; left: 50%; top: 14.5%; width: 26%; aspect-ratio: 1.6; transform: translate(-50%, -50%); border-radius: 50%; }
.obturador::before, .obturador::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,255,255,.95); box-shadow: 0 0 12px rgba(255,255,255,.9), 0 0 0 1px rgba(232,143,166,.7); animation: aro 2.2s ease-out infinite; }
.obturador::after { animation-delay: 1.1s; }
.obturador:disabled::before, .obturador:disabled::after { display: none; }
@keyframes aro { 0% { transform: scale(.8); opacity: .95; } 100% { transform: scale(1.5); opacity: 0; } }
.salida { position: absolute; z-index: 3; left: 20.5%; width: 59%; top: calc(var(--cw) * .874); height: calc(var(--cw) * .9); overflow: hidden; pointer-events: none; }
.salida.libre .foto { pointer-events: auto; cursor: pointer; }
.salida.libre { overflow: visible; }
.foto { position: relative; transform: translateY(-101%); transform-origin: 50% 30%; transition: transform 1.7s cubic-bezier(.45,.05,.3,1); }
.foto img { display: block; width: 100%; filter: drop-shadow(0 10px 16px rgba(120,60,140,.3)) blur(6px) saturate(.4) brightness(1.2); transition: filter 5s ease; }
.foto::before {  /* película sin revelar */
  content: ""; position: absolute; z-index: 1; left: 15.6%; right: 15.4%; top: 14%; height: 56.5%; border-radius: 3px;
  background: linear-gradient(160deg, #EDE5EE, #DCD2DE 60%, #E8DEE8); opacity: 1; transition: opacity 5s ease;
}
.foto.sale { transform: translateY(0); }
.foto.arriba { transform: translate(0, calc(var(--cw) * -.64)) scale(1.5) rotate(-3deg); transition: transform 1.3s cubic-bezier(.2,.8,.2,1); }
.foto.revela img { filter: drop-shadow(0 10px 16px rgba(120,60,140,.3)) blur(0) saturate(1) brightness(1); }
.foto.revela::before { opacity: 0; }
.nota { position: absolute; z-index: 2; left: 6%; right: 6%; top: 73.6%; margin: 0; text-align: center; font-family: var(--serif); font-weight: 600;
  font-size: calc(var(--cw) * .0305); line-height: 1.2; color: #fff; text-shadow: 0 1px 0 #7E58B5, 0 0 4px rgba(110,70,170,.6);
  opacity: 0; transform: translateY(4px); transition: opacity 2.2s ease .2s, transform 2.2s ease .2s; }
.nota span span { display: block; white-space: nowrap; }
.nota em { display: block; margin-top: 2px; font-style: normal; font-weight: 700; font-size: .95em; color: #FFE1EC; }
.nota em::after { content: " \2661"; }
.foto.escrita .nota { opacity: 1; transform: none; }
.camara.atras { transform: translateY(calc(var(--cw) * .9)) scale(.62); opacity: .9; }
.flash { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 35%, #fff 0%, rgba(255,255,255,.96) 40%, rgba(255,240,245,.85) 100%); }
.flash.on { animation: flash .75s ease-out; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: .95; } 100% { opacity: 0; } }

/* ---------- tren de peluche ---------- */
.via { position: relative; width: 100vw; margin: 6px -18px 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.via::-webkit-scrollbar { display: none; }
.tren { position: relative; display: flex; align-items: flex-end; width: max-content; padding: 196px 40px 26px 20px; transform: translateX(110vw); }
.tren.llega { transform: none; transition: transform 2.6s cubic-bezier(.2,.75,.25,1); }
.tren.llega:not(.quieto) .vagon:not(.es-loco) .carro-img { animation: traqueteo .22s ease-in-out infinite alternate; }
@keyframes traqueteo { to { transform: translateY(-2px) rotate(.6deg); } }
.tren.llega:not(.quieto) .es-loco .carro-img { animation: traqueteo-loco .22s ease-in-out infinite alternate; }
@keyframes traqueteo-loco { from { transform: scaleX(-1); } to { transform: scaleX(-1) translateY(-2px) rotate(-.6deg); } }
.rieles { position: absolute; left: 0; right: 0; bottom: 10px; height: 20px; z-index: 0; border-radius: 10px;
  background: linear-gradient(#F3D9B8, #F3D9B8) 0 3px / 100% 4px no-repeat, linear-gradient(#E9C49B, #E9C49B) 0 13px / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 16px, #F7C9D3 16px 30px) 0 0 / 100% 100%; }
.vagon { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 164px; margin-right: -12px; }
.vagon.es-loco { width: 178px; margin-right: -4px; }
.carro-img { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 8px 8px rgba(150,60,90,.25)); }
.es-loco .carro-img { transform: scaleX(-1); }
.es-loco.pita .carro-img { animation: pita .5s ease; }
@keyframes pita { 40% { transform: scaleX(-1) translateY(-6px) scale(1.04); } }
.hora-tag { position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 72px); transform: translateX(-50%); width: 132px; padding: 7px 6px 8px; text-align: center; border-radius: 18px; pointer-events: none;
  background: linear-gradient(180deg, #fff, #FFF2F5); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c-tag, #F7C9D3), 0 8px 14px rgba(150,60,90,.2); }
.hora-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 3px; height: 14px; margin-left: -1.5px; background: repeating-linear-gradient(180deg, #F4A7BD 0 5px, #fff 5px 8px); border-radius: 2px; }
.es-loco .hora-tag { bottom: calc(100% + 4px); }
.es-loco .hora-tag::after { height: 6px; }
.vagon:nth-child(2) .hora-tag, .vagon:nth-child(4) .hora-tag { --c-tag: #D7B8EE; }
.hora-tag .hora { display: inline; font-family: var(--serif); font-weight: 700; font-size: 29px; line-height: 1; color: #F06D97; }
.hora-tag .ampm { display: inline; margin-left: 4px; font-size: 12px; font-weight: 900; letter-spacing: .06em; color: var(--lila-osc); }
.hora-tag .que { display: block; margin-top: 3px; font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.1; color: var(--tinta); }
.bloque {
  position: absolute; z-index: 1; left: 50%; bottom: 72%; width: 76px; height: 76px; margin-left: -38px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  box-shadow: inset 0 5px 0 rgba(255,255,255,.55), inset 0 -7px 0 rgba(0,0,0,.08), 0 6px 10px rgba(150,60,90,.22);
  animation: menea 3.2s ease-in-out infinite;
}
.bloque::before { content: ""; position: absolute; inset: 7px; border-radius: 11px; border: 2px dashed rgba(255,255,255,.7); }
.bloque svg { width: 44px; height: 44px; position: relative; filter: drop-shadow(0 1px 0 rgba(255,255,255,.6)); }
.es-loco .bloque { display: none; }
.vagon:nth-child(3) .bloque { animation-delay: -.8s; } .vagon:nth-child(4) .bloque { animation-delay: -1.6s; } .vagon:nth-child(5) .bloque { animation-delay: -2.4s; }
@keyframes menea { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-3px); } }
.bloque.salta { animation: salta-bloque .6s cubic-bezier(.3,1.5,.5,1); }
@keyframes salta-bloque { 35% { transform: translateY(-34px) rotate(-10deg) scale(1.08); } 70% { transform: translateY(4px) scale(1.06, .92); } }
.salta-peluche { position: absolute; z-index: 4; left: 50%; bottom: 70%; width: 66px; margin-left: -33px; pointer-events: none; animation: sale-peluche 1.6s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes sale-peluche { 0% { transform: translate(0, 30px) scale(.2); opacity: 0; } 25% { opacity: 1; } 45% { transform: translate(var(--x), -96px) scale(1.1) rotate(-8deg); } 75% { transform: translate(var(--x), -88px) scale(1) rotate(6deg); opacity: 1; } 100% { transform: translate(var(--x), -120px) scale(.7); opacity: 0; } }
.vapor { position: absolute; z-index: 3; left: 22%; top: 4%; width: 22px; height: 22px; pointer-events: none; }
.vapor i { position: absolute; left: 0; bottom: 0; width: 22px; height: 18px; opacity: 0; background: radial-gradient(circle at 30% 35%, #fff, #FFE6EE 70%); border-radius: 50%; animation: vapor 2.6s ease-out infinite; }
.vapor i:nth-child(2) { animation-delay: .85s; } .vapor i:nth-child(3) { animation-delay: 1.7s; }
@keyframes vapor { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 15% { opacity: .95; } 100% { transform: translate(26px, -70px) scale(1.8); opacity: 0; } }
#e-tren .pista .flecha { display: inline-block; animation: flecha 1.4s ease-in-out infinite; }
@keyframes flecha { 50% { transform: translateX(5px); } }

/* ---------- lugar: casita de fieltro colgante ---------- */
#e-lugar { gap: 20px; }
.cartel-colgado { position: relative; width: min(86vw, 360px); padding-top: 104px; transform-origin: 50% 0; transform: rotate(var(--a, 0deg)); }
.cuerdas { position: absolute; left: 0; right: 0; top: 0; height: 120px; }
.cuerdas i { position: absolute; left: 50%; top: 6px; width: 8px; height: 150px; margin-left: -4px; border-radius: 6px; transform-origin: 50% 0;
  background: repeating-linear-gradient(35deg, #F7C9D3 0 5px, #F59AB7 5px 8px, #FFF0F4 8px 11px); box-shadow: 0 2px 4px rgba(150,60,90,.2); }
.cuerdas i:first-child { transform: rotate(42deg); } .cuerdas i:last-child { transform: rotate(-42deg); }
.cuerdas::before { content: ""; position: absolute; z-index: 1; left: 50%; top: -16px; width: 44px; height: 40px; margin-left: -22px;
  background: radial-gradient(circle at 30% 30%, #FFE3EC, #F59AB7 60%, #E7789C); clip-path: path("M22 38 C 8 28 0 20 0 11 C 0 4 6 0 11 0 C 16 0 20 3 22 7 C 24 3 28 0 33 0 C 38 0 44 4 44 11 C 44 20 36 28 22 38 Z"); }
.cartel-peluche { position: absolute; z-index: 3; right: -10px; top: 46px; width: 30%; transform: rotate(8deg); filter: drop-shadow(0 6px 8px rgba(120,60,140,.3)); pointer-events: none; }
.cartel {
  position: relative; padding: 26px 22px 22px; text-align: center; border-radius: 30px; color: var(--tinta);
  background: radial-gradient(130% 90% at 50% 0%, #FFFFFF, #FFF8F3 55%, #FFEFF0);
  box-shadow: 0 0 0 6px #F7C9D3, 0 0 0 8px #fff, 0 0 0 10px #E8D9F7, 0 22px 36px rgba(140,60,100,.28);
}
.cartel::after { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(201,166,238,.75); border-radius: 22px; pointer-events: none; }
.techo { position: absolute; left: 50%; top: -40px; width: 130px; height: 48px; margin-left: -65px;
  background: radial-gradient(circle at 50% 72%, #fff 0 6px, transparent 7px), linear-gradient(180deg, #F9B6CA, #F28FAE); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cartel .pre { color: var(--lila-osc); }
.cartel h2 { margin: 2px 0 4px; font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 10.4vw, 46px); line-height: 1; color: #F06D97; text-shadow: 0 2px 0 #FFD3E0; }
.lugar-detalle { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--lila-osc); }
.lugar-dir { margin: 4px 0 0; font-weight: 800; font-size: 17px; }
.separa { display: flex; justify-content: center; gap: 10px; margin: 12px auto 10px; }
.separa i { width: 12px; height: 11px; background: #F59AB7; clip-path: path("M6 11 C 2 8 0 6 0 3.2 C 0 1.2 1.6 0 3.2 0 C 4.6 0 5.5 .8 6 1.8 C 6.5 .8 7.4 0 8.8 0 C 10.4 0 12 1.2 12 3.2 C 12 6 10 8 6 11 Z"); }
.separa i:nth-child(2) { background: var(--lila); transform: translateY(-3px); }
.lugar-fecha { margin: 0; font-weight: 800; font-size: 15px; line-height: 1.45; color: var(--titulo); }
.pin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -1px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: radial-gradient(circle at 50% 50%, #fff 0 25%, #F06D97 28%); }

/* ---------- nombres: cielo mágico ---------- */
#e-nombres { justify-content: center; padding-bottom: calc(var(--seguro-ab) + 9vh);
  background: radial-gradient(90% 50% at 50% 0%, rgba(255,255,255,.12), transparent 70%), linear-gradient(180deg, #5E4BA8 0%, #8F6CC9 28%, #D58DC0 60%, #F7C1D2 85%, #FFE6EE 100%); }
.cielo { position: absolute; inset: 0; width: 100%; height: 100%; }
.luna-peluche { position: absolute; left: -16px; top: calc(var(--seguro-arr) + 66px); width: 84px; opacity: .95; animation: flotar 5s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(255,230,240,.55)); pointer-events: none; }
@keyframes flotar { 50% { transform: translateY(-8px) rotate(4deg); } }
.nombres-caja { position: relative; z-index: 1; width: min(92vw, 400px); display: flex; flex-direction: column; align-items: center; }
.titulo-cielo { font-size: clamp(34px, 9.8vw, 46px); max-width: 360px; line-height: 1.04; }
.titulo-cielo::before { filter: url(#esponja) drop-shadow(0 0 16px rgba(255,220,236,.55)); }
.saludo { margin: 12px 0 36px; max-width: 320px; text-align: center; font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.3; color: #fff; text-shadow: 0 1px 3px rgba(70,40,120,.6); }
.nube-form { width: 100%; display: grid; justify-items: center; gap: 10px; }
.nube-input { position: relative; z-index: 0; width: 100%; padding: 22px 18px 18px; border-radius: 60px 70px 56px 64px / 52px 48px 58px 50px;
  background: radial-gradient(circle at 30% 25%, #fff, #FFF7FB 60%, #F8E8F6);
  box-shadow: 0 0 0 6px rgba(255,255,255,.55), 0 14px 30px rgba(70,40,130,.35), inset 0 -6px 0 rgba(201,166,238,.25); }
.nube-input::before { content: ""; position: absolute; z-index: -1; width: 80px; height: 52px; left: 14%; top: -18px; border-radius: 50%; background: #FFFCFE; box-shadow: 118px 6px 0 -4px #FFFCFE, 60px -8px 0 2px #FFFCFE; }
#nSugerido { position: relative; width: 100%; border: 0; outline: 0; background: transparent; text-align: center; caret-color: #F06D97;
  font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 9vw, 40px); line-height: 1.1; color: #F06D97; text-shadow: 0 2px 0 #FFD3E0, 0 3px 0 #E7B8F2; }
#nSugerido::placeholder { color: #D9BDEB; text-shadow: none; font-weight: 600; font-size: .7em; }
#nSugerido:disabled { opacity: 1; -webkit-text-fill-color: #F06D97; }
.nube-form.no .nube-input { animation: no .4s ease; }
@keyframes no { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.nombre-vuela { position: absolute; left: 0; right: 0; top: 20px; text-align: center; pointer-events: none; opacity: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 9vw, 40px); color: #F06D97; text-shadow: 0 0 10px #fff, 0 0 24px #FFD3E0; }
.nombre-vuela.vuela { animation: vuela-nombre 1.6s cubic-bezier(.5,0,.3,1) forwards; }
@keyframes vuela-nombre { 0% { opacity: 1; transform: none; } 40% { opacity: 1; transform: translateY(-60px) scale(1.25); } 100% { opacity: 0; transform: translateY(-34vh) scale(.15); color: #fff; } }
.nube-form .nota-form { color: #fff; text-shadow: 0 1px 3px rgba(70,40,120,.55); }
.nota-form { margin: 0; min-height: 1.3em; text-align: center; font-size: 14px; font-weight: 800; color: var(--titulo); }
.ranking { width: 100%; margin-top: 8px; padding: 10px 12px; border-radius: 24px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); --d: .35s; }
.ranking-titulo { margin: 0 0 8px; text-align: center; font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(70,40,120,.5); }
#listaRanking { list-style: none; margin: 0; padding: 4px; max-height: min(26svh, 220px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
#listaRanking li { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: linear-gradient(180deg, #fff, #FFF0F6); box-shadow: 0 0 12px rgba(255,220,236,.75), 0 4px 10px rgba(70,40,130,.2); }
#listaRanking .pos { width: 22px; height: 22px; display: grid; place-items: center; font-size: 10px; font-weight: 900; color: #fff; background: #F59AB7;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
#listaRanking li:first-child .pos { background: #F3C56B; }
#listaRanking .nom { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.1; color: #F06D97; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#listaRanking .votos { font-size: 12px; font-weight: 900; color: var(--lila-osc); white-space: nowrap; }
#listaRanking .barra { display: none; }
#listaRanking li.nuevo { animation: nuevo 1.4s cubic-bezier(.3,1.6,.5,1); }
@keyframes nuevo { 0% { transform: scale(.3); box-shadow: 0 0 40px #fff; } }
#listaRanking .vacio { display: block; padding: 8px 12px; border-radius: 18px; text-align: center; font-size: 14px; font-weight: 800; color: var(--tinta); }

/* ---------- lluvia de sobres ---------- */
#e-sobres { justify-content: flex-start; padding-top: calc(var(--seguro-arr) + 22px); }
.caen { position: absolute; inset: 0; z-index: 0; }
.sobre-caer { position: absolute; left: 0; top: 0; width: 84px; height: auto; will-change: transform; cursor: pointer; filter: drop-shadow(0 8px 10px rgba(110,70,170,.32)); touch-action: manipulation; }
#e-sobres .titulo, #e-sobres .sub { position: relative; z-index: 2; pointer-events: none; }
.sobre-abrir { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(255,244,236,.86), rgba(247,201,211,.66)); animation: entra .5s ease; }
@keyframes entra { from { opacity: 0; } }
.sobre3d { position: relative; width: min(88vw, 370px); aspect-ratio: 760 / 538; margin-top: 24vh; perspective: 900px; }
.sobre3d > div { position: absolute; inset: 0; }
.s-fondo { border-radius: 10px; background: linear-gradient(180deg, #D9809A, #EBA3B6); box-shadow: inset 0 0 0 2px var(--oro); }
.s-frente { background: url(assets/sobre.webp) center / 100% 100% no-repeat; clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%); z-index: 3; }
.s-solapa { z-index: 4; transform-origin: 50% 0; transition: transform 1s cubic-bezier(.4,.1,.3,1); }
.s-solapa::before { content: ""; position: absolute; inset: 0; background: url(assets/sobre.webp) center / 100% 100% no-repeat; clip-path: polygon(0 0, 100% 0, 50% 56%); }
.s-sello { position: absolute; inset: 0; background: url(assets/sobre.webp) center / 100% 100% no-repeat; clip-path: circle(13.4% at 50% 55.5%); transition: transform .7s cubic-bezier(.3,0,.6,1), opacity .7s; }
.sobre3d.rompe .s-sello { transform: translate(18%, 70%) rotate(80deg) scale(.7); opacity: 0; }
.sobre3d.abre .s-solapa { transform: rotateX(180deg); }
.sobre3d.abre .s-solapa::before { background: linear-gradient(180deg, #B99AE0, #DCC8F2); }
.sobre3d.detras .s-solapa { z-index: 1; }
.s-tarjeta { z-index: 2; left: 4% !important; right: 4% !important; top: -14% !important; bottom: 5% !important; border-radius: 18px; padding: 12px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #FFFFFF, #FFF4F2); box-shadow: 0 0 0 4px #fff, 0 0 0 6px #F7C9D3, 0 10px 22px rgba(150,60,90,.25);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.sobre3d.sale .s-tarjeta { transform: translateY(-74%); z-index: 5; }
.s-efectivo, .s-llave-caja { display: flex; flex-direction: column; align-items: center; animation: entra .5s ease; }
.s-tit { margin: 0 0 4px; font-family: var(--serif); font-weight: 700; font-size: 24px; color: #F06D97; }
.s-txt { margin: 0 0 8px; font-size: 15px; line-height: 1.38; font-weight: 700; color: var(--tinta); }
.s-txt b { color: #F06D97; }
.s-otra { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--lila-osc); background: #F3E9FF; box-shadow: 0 0 0 1.5px #D7B8EE; }
.s-llave { margin: 0; font-weight: 900; font-size: 13px; letter-spacing: .4em; text-transform: uppercase; color: var(--lila-osc); }
.s-num { margin: 0 0 8px; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 9vw, 40px); letter-spacing: .03em; color: #F06D97; user-select: all; -webkit-user-select: all; }
.cerrar-sobre { position: absolute; top: calc(var(--seguro-arr) + 6px); right: 16px; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--titulo);
  background: linear-gradient(180deg, #fff, #FDE4EA); box-shadow: 0 0 0 1.5px #F4B6C2, 0 6px 12px rgba(150,60,90,.25); }

/* ---------- confirmación: etiqueta de regalo ---------- */
#e-confirmar { perspective: 1200px; }
.etiqueta { position: relative; width: min(90vw, 390px); transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.3,.1,.2,1), opacity 1s, filter 1s; }
.etiqueta::before { content: ""; position: absolute; left: 50%; top: -60px; width: 4px; height: 70px; margin-left: -2px; background: repeating-linear-gradient(180deg, #F59AB7 0 6px, #FBD3DD 6px 10px); border-radius: 2px; }
.etiqueta.volteada, .escena.vista .etiqueta.volteada { transform: rotateY(180deg); }
.cara { padding: 32px 20px 16px; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  background: radial-gradient(130% 60% at 50% 0%, #FFFFFF, #FFF8F5 50%, #FDEDF2); border-radius: 0 0 28px 28px; }
.cara::after { content: ""; position: absolute; inset: 8px; clip-path: inherit; border: 2px dashed rgba(232,143,166,.6); pointer-events: none; border-radius: 0 0 22px 22px; }
.reverso { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ojal { position: absolute; z-index: 3; left: 50%; top: 10px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle, #F7C9D3 0 38%, #fff 42%, #F4B6C2 70%); box-shadow: 0 1px 2px rgba(150,60,90,.4); }
.etiqueta .titulo { font-size: clamp(32px, 8.8vw, 40px); margin-bottom: 8px; color: #F06D97; text-shadow: 0 2px 0 #FFD3E0, 0 3px 0 #F7B8CB; }
.linea { display: grid; gap: 2px; text-align: left; }
.linea span { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--lila-osc); padding-left: 6px; }
.linea input, .linea textarea { width: 100%; border: 0; outline: 0; resize: none; padding: 8px 12px; font-family: var(--serif); font-size: 20px; font-weight: 600; color: #F06D97; border-radius: 16px;
  background: #fff; box-shadow: inset 0 2px 4px rgba(180,80,111,.1), 0 0 0 2px #F7D7E1; transition: box-shadow .2s; }
.linea textarea { font-size: 17px; }
.linea input:focus, .linea textarea:focus { box-shadow: inset 0 2px 4px rgba(180,80,111,.1), 0 0 0 2.5px #F59AB7, 0 0 12px rgba(245,154,183,.45); }
.linea + .linea, .ositos + .linea { margin-top: 8px; }
.pregunta { margin: 12px 0 4px; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--tinta); }
.pregunta b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; margin-left: 4px; border-radius: 50%; color: #fff; font-size: 16px; background: linear-gradient(145deg, #F59AB7, #E7789C); }
.ositos { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.osito { width: 50px; height: 50px; border-radius: 50%; background: center / contain no-repeat; transition: transform .35s cubic-bezier(.3,1.7,.5,1), filter .3s, opacity .3s; filter: saturate(.7) brightness(1.12); opacity: .5; transform: scale(.88); }
.osito.si { filter: none; opacity: 1; transform: scale(1.06); }
.osito.brinca { animation: brinca .45s cubic-bezier(.3,1.7,.5,1); }
@keyframes brinca { 40% { transform: translateY(-10px) scale(1.12); } }
.corazon-btn { position: relative; width: 170px; height: 148px; margin: 10px auto 0; display: grid; place-items: center; background: center / contain no-repeat;
  filter: drop-shadow(0 10px 14px rgba(170,60,95,.35)); animation: palpita 1.5s ease-in-out infinite; }
@keyframes palpita { 0%, 40%, 100% { transform: scale(1); } 14% { transform: scale(1.07); } 26% { transform: scale(.98); } 33% { transform: scale(1.05); } }
.corazon-btn span { position: relative; z-index: 1; margin-top: -8px; font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1; color: #fff; text-shadow: 0 2px 0 #D9608A, 0 0 10px rgba(170,50,90,.45); }
.corazon-btn .latido { position: absolute; inset: 14% 12%; border-radius: 50%; animation: onda 1.5s ease-out infinite; }
@keyframes onda { 0% { box-shadow: 0 0 0 0 rgba(245,154,183,.6); } 100% { box-shadow: 0 0 0 26px rgba(245,154,183,0); } }
.corazon-btn.late { animation: late 1.1s cubic-bezier(.3,1.5,.5,1); }
@keyframes late { 0% { transform: scale(1); } 10% { transform: scale(.82, .76); } 22% { transform: scale(1.18); } 34% { transform: scale(.95); } 46% { transform: scale(1.12); } 70% { transform: scale(1); } }
.corazon-btn:disabled { opacity: .75; }
.no-puedo { margin: 4px auto 0; padding: 8px 14px; font-size: 14px; font-weight: 800; color: var(--lila-osc); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201,166,238,.9); }
.gracias-osito { width: 120px; margin-bottom: 8px; filter: drop-shadow(0 8px 10px rgba(110,70,170,.32)); }
.etiqueta.volteada .gracias-osito { animation: sellar .8s cubic-bezier(.3,1.6,.5,1) .6s both; }
@keyframes sellar { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.reverso p { margin: 0 0 8px; max-width: 290px; font-size: 17px; line-height: 1.5; font-weight: 700; }

/* ---------- cierre: cuarto de peluches ---------- */
#e-final { padding-bottom: calc(var(--seguro-ab) + 20px); }
.peluches-final { position: absolute; left: 0; right: 0; top: var(--seguro-arr); bottom: var(--seguro-ab); z-index: 1; }
.pel { position: absolute; display: block; opacity: 0; transform: translateY(30px) scale(.6); transition: opacity .8s ease var(--d), transform .9s cubic-bezier(.3,1.5,.5,1) var(--d); }
.peluches-final.vivo .pel { opacity: 1; transform: none; }
.pel img { width: 100%; filter: drop-shadow(0 8px 10px rgba(150,60,90,.28)); animation: flotar 4.5s ease-in-out infinite; animation-delay: var(--d); }
.pel.brinca img { animation: brinca-pel .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes brinca-pel { 30% { transform: translateY(-26px) scale(1.12, .92) rotate(-6deg); } 60% { transform: translateY(0) scale(.94, 1.06); } }
.final { position: relative; z-index: 2; padding: 30px 22px 22px; text-align: center; border-radius: 36px; width: min(82vw, 340px);
  background: radial-gradient(120% 70% at 50% 0%, #FFFFFF, #FFF7F5 50%, #FDECF1); box-shadow: 0 0 0 5px #fff, 0 0 0 7px #F7C9D3, 0 20px 36px rgba(170,70,105,.28); }
.final::after { content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(232,143,166,.55); border-radius: 28px; pointer-events: none; }
.final-corona { position: absolute; left: 50%; top: -50px; width: 92px; margin-left: -46px; filter: drop-shadow(0 6px 8px rgba(150,60,90,.3)); animation: flotar 4s ease-in-out infinite; }
.firma { margin: 4px 0 6px; font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 9.2vw, 42px); line-height: 1.02; color: #F06D97; text-shadow: 0 2px 0 #FFD3E0; }
.firma i { font-style: normal; font-weight: 500; color: var(--lila); font-size: .78em; }
.final-txt { margin: 0 0 18px; font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.25; color: var(--lila-osc); }
.final .btn-perla { position: relative; z-index: 1; }
.marca { position: absolute; z-index: 2; bottom: calc(var(--seguro-ab) + 2px); margin: 0; font-size: 10px; font-weight: 800; letter-spacing: .34em; color: rgba(255,255,255,.95); text-shadow: 0 1px 3px rgba(150,60,90,.55); }

/* ---------- navegación, sonido, avisos ---------- */
#puntos { position: fixed; z-index: 20; right: 7px; top: 50%; transform: translateY(-50%); display: grid; gap: 9px; }
#puntos button { width: 8px; height: 8px; border-radius: 6px; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px #F4B6C2, 0 1px 3px rgba(150,60,90,.3); transition: height .35s, background .35s; }
#puntos button.activo { height: 22px; background: linear-gradient(180deg, #fff, #F59AB7); }
#mudo { position: fixed; z-index: 21; top: calc(var(--seguro-arr) + 2px); right: 12px; width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FFF0F4, #F4B6C2 55%, #E07D98); box-shadow: 0 0 0 2px #fff, 0 6px 12px rgba(150,60,90,.3); display: grid; place-items: center; }
#mudo i { width: 16px; height: 18px; position: relative; }
#mudo i::before { content: ""; position: absolute; left: 3px; bottom: 0; width: 9px; height: 7px; border-radius: 50%; background: #fff; }
#mudo i::after { content: ""; position: absolute; left: 10px; top: 0; width: 6px; height: 14px; border-left: 2px solid #fff; border-top: 2px solid #fff; border-top-right-radius: 4px; }
#mudo.apagado { filter: saturate(.3); }
#mudo.apagado::after { content: ""; position: absolute; width: 26px; height: 2.5px; background: #fff; transform: rotate(-45deg); border-radius: 2px; }
#aviso { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--seguro-ab) + 20px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 20px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--titulo); white-space: nowrap;
  background: linear-gradient(180deg, #fff, #FFF0F4); box-shadow: 0 0 0 1.5px #F4B6C2, 0 10px 22px rgba(150,60,90,.28); transition: opacity .35s, transform .35s; }
#aviso.ver { opacity: 1; transform: translate(-50%, 0); }

/* pantallas bajitas (iPhone SE, 667 px) */
@media (max-height: 700px) {
  .guirnalda { height: 26%; }
  #e-bienvenida { gap: 6px; padding-bottom: calc(var(--seguro-ab) + 30px); }
  .letrero .esponjoso { font-size: clamp(48px, 14.5vw, 64px); }
  .te-invitamos { font-size: 20px; margin-bottom: 2px; } .de-nuestra { font-size: 22px; margin-top: 6px; }
  .placa { padding: 12px 14px 12px; }
  .nombres { font-size: 28px; }
  .bienvenida { font-size: 13px; line-height: 1.4; margin-bottom: 8px; }
  .cuenta { max-width: 270px; gap: 7px; }
  .burbuja-num b { font-size: 22px; }
  .fecha { font-size: 16px; }
  .titulo-cielo { font-size: 36px; }
  .saludo { font-size: 16px; margin: 6px 0 24px; }
  #e-nombres { padding-bottom: calc(var(--seguro-ab) + 4vh); }
  .nube-input { padding: 16px 14px 12px; }
  .luna-peluche { width: 70px; }
  .osito { width: 42px; height: 42px; }
  .corazon-btn { width: 138px; height: 120px; }
  .corazon-btn span { font-size: 20px; }
  .cara { padding-top: 24px; }
  .etiqueta .titulo { font-size: 32px; }
  .cartel-colgado { padding-top: 76px; }
  .tren { padding-top: 176px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
}

/* =========================================================
   PARADA 2 · todo en rosa pastel + dorado, sin filtros SVG,
   campos sin transform/filter en ningún ancestro.
   ========================================================= */
:root { --lila: #F4A7BD; --lila-osc: #B4506F; --rosa-vivo: #EF6F9A; }
.filtros { display: none; }
.aparece { filter: none; transition: opacity 1s ease var(--d, 0s), transform 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }

/* títulos: rosa vivo con borde blanco limpio */
.titulo, .titulo-grande { margin: 0 0 12px; font-family: var(--serif); font-weight: 700; line-height: 1.04; text-align: center; color: var(--rosa-vivo);
  -webkit-text-stroke: 7px #fff; paint-order: stroke fill; text-shadow: 0 5px 14px rgba(200,80,125,.26); }
.titulo { font-size: clamp(30px, 9vw, 40px); }
.titulo-grande { font-size: clamp(44px, 13.4vw, 60px); margin: 0; white-space: nowrap; }
.pre { color: var(--titulo); }
.pista, .sub { color: var(--titulo); }

/* bienvenida */
.guirnalda { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 100%); }
.te-invitamos { color: var(--titulo); font-size: clamp(22px, 6.4vw, 28px); margin-bottom: 4px; -webkit-text-stroke: 5px #fff; paint-order: stroke fill; text-shadow: none; }
.de-nuestra { color: var(--rosa-vivo); font-size: clamp(19px, 5.6vw, 24px); margin-top: 8px; -webkit-text-stroke: 5px #fff; paint-order: stroke fill; text-shadow: none; }
.nombres i { color: var(--lila); }
.burbuja-num b, .burbuja-num:nth-child(n) b { --c: #FFB3CB; --c2: #F27FA6; text-shadow: 0 2px 0 rgba(170,50,90,.35); }
.burbuja-num:nth-child(even) b { --c: #FFC9A9; --c2: #F59AB7; }
.fecha { color: var(--titulo); }

/* cámara */
.nota { color: #fff; text-shadow: 0 1px 0 #C84877, 0 0 4px rgba(200,70,120,.6); }
.nota em { color: #FFE9F0; }

/* ---------- tren: bloques de fieltro con hora grande ---------- */
.hora-tag, .bloque { display: none; }
.tren { padding-top: 150px; }
.bloque-hora { position: absolute; z-index: 3; left: 50%; bottom: 66%; width: 124px; margin-left: -62px; padding: 9px 6px 10px; border-radius: 24px; text-align: center; color: var(--rosa-vivo);
  background: radial-gradient(120% 90% at 30% 10%, #FFFFFF, #FFF4EE 60%, #FFE6EC); box-shadow: 0 0 0 3.5px var(--rib), 0 0 0 6px #fff, 0 10px 16px rgba(150,60,90,.24), inset 0 -6px 0 rgba(240,150,180,.14);
  animation: menea 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.bloque-hora::before { content: ""; position: absolute; inset: 6px; border-radius: 18px; border: 2px dashed var(--rib); opacity: .75; pointer-events: none; }
.bloque-hora .hora { position: relative; display: inline-block; font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.bloque-hora .ampm { position: relative; display: inline-block; margin-left: 3px; font-family: var(--serif); font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--titulo); vertical-align: 4px; }
.bloque-hora .que { position: relative; display: block; margin-top: 3px; font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.1; color: var(--tinta); }
.vagon:nth-child(3) .bloque-hora { animation-delay: -.8s; } .vagon:nth-child(4) .bloque-hora { animation-delay: -1.6s; } .vagon:nth-child(5) .bloque-hora { animation-delay: -2.4s; }
.bloque-hora.salta { animation: salta-bloque .6s cubic-bezier(.3,1.5,.5,1); }
.es-loco .bloque-hora { bottom: 62%; left: 58%; }
.salta-peluche { bottom: 72%; }
.vagon:nth-child(2) .hora-tag, .vagon:nth-child(4) .hora-tag { --c-tag: #F7C9D3; }

/* ---------- lugar: panel de peluche ---------- */
#e-lugar { gap: 18px; }
.cartel-colgado { width: min(84vw, 330px); padding-top: 70px; }
.cuerdas { height: 90px; }
.cuerdas i { top: 0; width: 5px; height: 100px; margin-left: 0; border-radius: 4px; transform: none !important;
  background: repeating-linear-gradient(35deg, #E9C26F 0 4px, #B8863C 4px 6px, #FFF1C4 6px 9px); box-shadow: 0 2px 3px rgba(150,60,90,.2); }
.cuerdas i:first-child { left: 24%; } .cuerdas i:last-child { left: 76%; }
.cuerdas::before { display: none; }
.cartel { position: relative; aspect-ratio: 821 / 1100; padding: 17% 15% 13%; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 0; box-shadow: none;
  background: url(assets/peluches/panel.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 16px 18px rgba(150,60,100,.26)); }
.cartel::after, .techo { display: none; }
.cartel .pre { margin: 0 0 4px; color: #fff; font-size: 13px; text-shadow: 0 1px 0 #C84877; }
.cartel h2 { margin: 0 0 6px; font-size: clamp(34px, 10vw, 42px); color: #fff; -webkit-text-stroke: 0; text-shadow: 0 2px 0 #D9608A, 0 4px 8px rgba(170,50,90,.4); }
.lugar-detalle { color: #fff; font-size: 21px; text-shadow: 0 1px 0 #C84877; }
.lugar-dir { color: #fff; font-size: 17px; text-shadow: 0 1px 0 #C84877; }
.separa i:nth-child(2) { background: #FFF1C4; }
.separa i { background: #fff; }
.lugar-fecha { color: #fff; font-size: 15px; text-shadow: 0 1px 0 #C84877; }
.cartel-peluche { position: absolute; z-index: 3; right: -4px; bottom: -16px; width: 36%; transform: rotate(-8deg); filter: drop-shadow(0 6px 8px rgba(150,60,90,.3)); pointer-events: none; }

/* ---------- nombres ---------- */
#e-nombres { background: none; justify-content: flex-start; padding: calc(var(--seguro-arr) + 52px) 16px calc(var(--seguro-ab) + 8px); }
.nombres-caja { width: min(94vw, 400px); height: 100%; display: flex; flex-direction: column; align-items: center; min-height: 0; }
.nombres-caja .titulo { margin-bottom: 6px; font-size: clamp(28px, 8.4vw, 38px); }
.saludo { margin: 0 0 12px; max-width: 320px; text-align: center; font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.25; color: var(--tinta); text-shadow: none; }
.form-nombre { width: 100%; display: grid; gap: 10px; justify-items: center; }
.form-nombre #nSugerido { width: 100%; height: 56px; padding: 0 18px; border: 0; outline: 0; border-radius: 28px; text-align: center; caret-color: var(--rosa-vivo);
  font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--rosa-vivo); text-shadow: none; background: linear-gradient(180deg, #FFFFFF, #FFF4F2);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #F9C5D6, 0 8px 16px rgba(190,80,120,.2), inset 0 2px 4px rgba(180,80,111,.1); }
.form-nombre #nSugerido:focus { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--rosa-vivo), 0 8px 16px rgba(190,80,120,.2), inset 0 2px 4px rgba(180,80,111,.1); }
#nSugerido::placeholder { color: #E7B4C4; font-weight: 600; font-size: 18px; }
#nSugerido:disabled { opacity: 1; -webkit-text-fill-color: var(--rosa-vivo); }
.form-nombre.no #nSugerido { animation: no .4s ease; }
.form-nombre .btn-perla { min-height: 48px; }
.nombres-caja .nota-form { margin-top: 8px; color: var(--titulo); text-shadow: none; }
.ranking { flex: 1 1 auto; min-height: 96px; width: 100%; margin-top: 6px; padding: 10px 10px 8px; border-radius: 26px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,253,251,.95), rgba(255,241,238,.93)); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #F9C5D6, 0 10px 20px rgba(190,80,120,.2); }
.ranking-titulo { margin: 0 0 6px; text-align: center; font-family: var(--serif); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--titulo); text-shadow: none; }
#listaRanking { flex: 1 1 auto; min-height: 0; max-height: none; display: block; padding: 2px 2px 4px; margin: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#listaRanking li { display: block; padding: 0; margin: 0 0 6px; background: none; box-shadow: none; border-radius: 0; }
.fila { position: relative; width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 7px 12px 9px 8px; border-radius: 16px; text-align: left; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 1.5px #F7D7E1; }
.fila:active { transform: scale(.98); }
.fila .pos { width: 28px; height: 26px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 14px; color: #fff; background: #F59AB7; clip-path: path("M14 25 C 5 18 0 13 0 7 C 0 3 3 0 7 0 C 10 0 12.4 1.6 14 4 C 15.6 1.6 18 0 21 0 C 25 0 28 3 28 7 C 28 13 23 18 14 25 Z"); }
.fila .nom { position: relative; z-index: 1; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--rosa-vivo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: none; }
.fila .votos { position: relative; z-index: 1; font-size: 12px; font-weight: 900; color: var(--titulo); white-space: nowrap; }
.fila .barra { display: block !important; position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--p, 0) * 100%); border-radius: 0 4px 4px 0; background: linear-gradient(90deg, #FFC1D4, var(--rosa-vivo)); transition: width 1s cubic-bezier(.2,.8,.2,1); }
#listaRanking li:first-child .pos { background: #E3B76A; }
.fila.nuevo { animation: nuevo 1.2s cubic-bezier(.3,1.6,.5,1); }
.ranking.votado .fila { opacity: .85; pointer-events: none; }
.ranking-pista { margin: 4px 0 0; text-align: center; font-size: 12px; font-weight: 800; color: var(--titulo); }
#listaRanking .vacio { padding: 12px; text-align: center; font-size: 14px; font-weight: 800; color: var(--tinta); }

/* ---------- sobres: texto arriba, lluvia en su propia franja ---------- */
#e-sobres { justify-content: flex-start; padding: calc(var(--seguro-arr) + 52px) 18px calc(var(--seguro-ab) + 10px); }
.caen { position: relative; inset: auto; flex: 1 1 auto; width: 100%; min-height: 160px; margin-top: 6px; overflow: hidden; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%); }
#e-sobres .titulo, #e-sobres .sub { pointer-events: none; }
.sobre-abrir { position: absolute; inset: 0; }
.sobre3d { margin-top: 12vh; }
.s-otra { color: var(--titulo); background: #FFF0F4; box-shadow: 0 0 0 1.5px #F4B6C2; }
.s-llave { color: var(--titulo); }
.s-tarjeta { box-shadow: 0 0 0 4px #fff, 0 0 0 6px #F9C5D6, 0 10px 22px rgba(150,60,90,.25); }

/* ---------- confirmación: etiqueta sin transform ---------- */
#e-confirmar { perspective: none; padding-top: calc(var(--seguro-arr) + 56px); justify-content: flex-start; }
.etiqueta { width: min(90vw, 390px); transform: none; transform-style: flat; transition: none; margin-top: 24px; }
.etiqueta.volteada, .escena.vista .etiqueta.volteada { transform: none; }
.reverso { position: relative; inset: auto; transform: none; min-height: 330px; padding-bottom: 26px; }
.reverso.pop { animation: aparecer-gracias .7s ease both; }
@keyframes aparecer-gracias { from { opacity: 0; } to { opacity: 1; } }
.reverso.pop .gracias-osito { animation: sellar .8s cubic-bezier(.3,1.6,.5,1) .15s both; }
.cara { backface-visibility: visible; -webkit-backface-visibility: visible; }
.etiqueta .titulo { -webkit-text-stroke: 6px #fff; font-size: clamp(30px, 8.6vw, 38px); margin-bottom: 8px; color: var(--rosa-vivo); text-shadow: 0 4px 10px rgba(200,80,125,.22); }
.linea span { color: var(--titulo); }
.linea input, .linea textarea { font-size: 18px; }
.no-puedo { color: var(--titulo); text-decoration-color: #F4B6C2; }

/* ---------- cierre: filas de peluches y globitos (en flujo, sin tapar) ---------- */
#e-final { justify-content: center; gap: 12px; padding-bottom: calc(var(--seguro-ab) + 24px); }
.peluches-final { display: none; }
.fila-pel { position: relative; z-index: 1; width: min(94vw, 400px); display: flex; justify-content: space-around; align-items: center; gap: 4px; }
.fila-pel .pel { position: relative; flex: 1 1 0; max-width: 92px; min-width: 0; padding: 4px; opacity: 0; transform: translateY(24px) scale(.6); }
.fila-pel.vivo .pel { opacity: 1; transform: none; }
.fila-pel .pel img { width: 100%; height: auto; }
.pel.globo-final { max-width: 66px; filter: drop-shadow(0 6px 6px rgba(200,80,120,.2)); animation: sube-baja 4.4s ease-in-out infinite; animation-delay: var(--d); }
.pel.globo-final svg { display: block; width: 100%; height: auto; }
.pel.globo-final.pop { opacity: 0; transform: scale(.2); transition: opacity .2s, transform .25s; }
@keyframes sube-baja { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }
.final { margin-top: 28px; }
.final-txt { color: var(--titulo); }
.firma i { color: var(--lila); }
.final .pre { color: var(--titulo); }
.marca { position: relative; bottom: auto; margin: 4px 0 0; }

@media (max-height: 700px) {
  .titulo-grande { font-size: clamp(40px, 12.6vw, 52px); }
  .tren { padding-top: 138px; }
  .cartel-colgado { padding-top: 46px; width: min(78vw, 290px); }
  .final { padding: 24px 18px 16px; margin-top: 22px; }
  .final-txt { margin-bottom: 12px; font-size: 16px; }
  .fila-pel .pel { max-width: 70px; }
  .reverso { min-height: 280px; }
}

/* ajustes tras la primera revisión */
.pel.globo-final { aspect-ratio: 60 / 96; }
.pel.globo-final svg { width: 100%; height: 100%; }
.titulo-grande { font-size: clamp(34px, 10.4vw, 46px); }
.guirnalda { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%); }
.cartel .pre { color: #8F2D56; text-shadow: none; font-weight: 700; }
.cartel h2 { color: #fff; }
.lugar-detalle { color: #8F2D56; text-shadow: none; }
.lugar-dir { color: #8F2D56; text-shadow: none; font-weight: 800; }
.lugar-fecha { color: #8F2D56; text-shadow: none; font-size: 14px; }
.separa i { background: #fff; }
.ranking { flex: 0 1 auto; max-height: min(52%, 380px); }
.deco-nombres { flex: 0 0 auto; display: flex; justify-content: center; gap: 14px; margin-top: auto; padding-top: 8px; pointer-events: none; }
.deco-nombres img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(150,60,90,.25)); }
@media (max-height: 760px) { .deco-nombres { display: none; } }
@media (max-height: 700px) { .desliza { display: none; } #e-bienvenida { padding-bottom: calc(var(--seguro-ab) + 14px); } }

/* los puntitos de navegación (derecha) nunca tapan contenido: márgenes simétricos de 24px */
.escena { padding-left: 24px; padding-right: 24px; }
.placa, .etiqueta, .nombres-caja, .final, .cartel-colgado, .fila-pel, .sub, .caen { max-width: 100%; }
#e-nombres, #e-sobres, #e-confirmar { padding-left: 24px; padding-right: 24px; }
.via { margin-left: -24px; margin-right: -24px; }
.cerrar-sobre { right: auto; left: 16px; }
#listaRanking .fila .pos { clip-path: path("M14 25 C 5 18 0 13 0 7 C 0 3 3 0 7 0 C 10 0 12.4 1.6 14 4 C 15.6 1.6 18 0 21 0 C 25 0 28 3 28 7 C 28 13 23 18 14 25 Z"); background: #F59AB7; }
#listaRanking li:first-child .fila .pos { background: #E3B76A; }

/* =========================================================
   RONDA 3 · PARADA A: portada con osito nuevo, colgantes por encima,
   globos que salen por arriba, fondo vivo, tipografía script.
   ========================================================= */
:root { --script: "Pacifico", "Fredoka", cursive; --gh: clamp(196px, 31vh, 270px); }

/* colgantes de la portada: por encima de todo, completos */
.colgantes { z-index: 9; height: 150px; -webkit-mask-image: none; mask-image: none; }

/* osito: respira y mueve la cabeza (sin columpio ni cuerdas) */
.osito-caja { transform-origin: 50% 94%; animation: respira 4.8s ease-in-out infinite; }
@keyframes respira { 0%, 100% { transform: scale(1, 1) rotate(-.7deg); } 50% { transform: scale(1.012, 1.024) rotate(.7deg); } }
.osito-img { -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 10px 14px rgba(190,70,115,.26)); }

/* globos: suben y salen por el borde superior de la pantalla */
.globos { z-index: 2; overflow: visible; -webkit-mask-image: none; mask-image: none; }

/* títulos de la portada y de la bienvenida: Fredoka + script de acento */
.portada-titulo .t1, .portada-titulo .t3 { font-family: var(--script); font-weight: 400; line-height: 1.3; font-size: clamp(19px, 5.6vw, 25px);
  -webkit-text-stroke: 5px #fff; stroke-linejoin: round; text-rendering: geometricPrecision; text-shadow: 0 4px 10px rgba(200,80,125,.22); }
.portada-titulo .t2 { stroke-linejoin: round; }
.te-invitamos, .de-nuestra { font-family: var(--script); font-weight: 400; line-height: 1.3; stroke-linejoin: round; text-rendering: geometricPrecision; -webkit-text-stroke: 5px #fff; paint-order: stroke fill; }
.te-invitamos { font-size: clamp(22px, 6.8vw, 29px); margin-bottom: 0; color: var(--titulo); }
.de-nuestra { font-size: clamp(19px, 5.9vw, 25px); margin-top: 2px; color: var(--rosa-vivo); }
.titulo-grande { stroke-linejoin: round; text-rendering: geometricPrecision; }

/* bienvenida: espacio arriba para los juguetes colgantes, enteros y por encima */
.guirnalda { height: var(--gh); z-index: 9; -webkit-mask-image: none; mask-image: none; }
#e-bienvenida { padding-top: calc(var(--gh) + 2px); }

/* fecha protagonista (sin hora: ya está en el tren) */
.fecha { display: flex; flex-direction: column; align-items: center; margin: 2px auto 8px; padding: 5px 18px 8px; border-radius: 22px; line-height: 1;
  background: linear-gradient(180deg, #FFF3F7, #FFE2EC); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #F7C9D3; }
.fecha .dia { font-family: var(--script); font-size: clamp(25px, 7.4vw, 31px); line-height: 1.25; color: var(--rosa-vivo); text-shadow: 0 2px 0 #fff; }
.fecha .num { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 5.9vw, 25px); white-space: nowrap; color: var(--titulo); }

/* contador: solo rosa y lila */
.burbuja-num:nth-child(odd) b { --c: #FFB3CB; --c2: #F27FA6; text-shadow: 0 2px 0 rgba(170,50,90,.35); }
.burbuja-num:nth-child(even) b { --c: #DCC0F8; --c2: #B58BE3; text-shadow: 0 2px 0 rgba(100,60,150,.35); }

/* fondo vivo: luces suaves, destellos y parallax (la textura no cambia) */
#luces { position: fixed; inset: -6%; z-index: 0; pointer-events: none; overflow: hidden; will-change: transform; }
.luz { position: absolute; border-radius: 50%; opacity: .3; animation: luz 9s ease-in-out infinite; }
.luz.l1 { width: 78vw; height: 78vw; left: -16%; top: 2%; background: radial-gradient(circle, rgba(255,238,200,.62), rgba(255,238,200,0) 66%); }
.luz.l2 { width: 90vw; height: 90vw; right: -26%; top: 36%; background: radial-gradient(circle, rgba(255,216,236,.7), rgba(255,216,236,0) 66%); animation-delay: -3s; }
.luz.l3 { width: 70vw; height: 70vw; left: 6%; bottom: -10%; background: radial-gradient(circle, rgba(238,218,255,.6), rgba(238,218,255,0) 66%); animation-delay: -6s; }
@keyframes luz { 0%, 100% { opacity: .22; transform: translate3d(0, 0, 0) scale(1); } 50% { opacity: .85; transform: translate3d(5vw, -3vh, 0) scale(1.14); } }
.chispa { position: absolute; width: var(--s); height: var(--s); background: #fff; opacity: 0; animation: titila var(--t) ease-in-out var(--d) infinite;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.chispa:nth-child(3n) { background: #FFE7A8; }
@keyframes titila { 0%, 100% { opacity: 0; transform: scale(.35) rotate(0); } 50% { opacity: .95; transform: scale(1) rotate(45deg); } }
#portada { padding-top: max(var(--seguro-arr), 106px); }
.portada-titulo .t2 { font-size: clamp(36px, 11.6vw, 52px); }
@media (max-height: 700px) { .tarjeta-bienvenida { padding: 11px 16px 13px; margin-top: 4px; } .bienvenida-corta { margin-bottom: 9px; font-size: 15px; } }

/* RONDA 3 · PARADA B · texto de la ecografía dentro de la franja inferior (72,8%–97,8% de la polaroid) */
.nota { left: 7%; right: 7%; top: 74%; bottom: 3.8%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: "Fredoka", var(--serif); font-weight: 600; font-size: calc(var(--cw) * .0285); line-height: 1.18; letter-spacing: .01em;
  color: #FFF4E2; text-shadow: 0 1px 0 #C46A8E, 0 -1px 0 rgba(255,255,255,.35), 0 2px 3px rgba(150,50,100,.45); }
.nota #notaFoto { display: flex; flex-direction: column; align-items: center; }
.nota #notaFoto span { display: block; white-space: nowrap; }
.nota .fam { font-family: var(--script); font-weight: 400; font-size: 1.22em; line-height: 1; color: #FFFAF0; }
.nota em { margin-top: 1px; font-family: "Fredoka", var(--serif); font-weight: 500; font-size: .8em; color: #FFE6D2; }
