/* Sello de Salvia — boda en verde salvia, rosas durazno y gipsofila.
   Una cinta de satén salvia guarda unos anillos entrelazados. Al desatarla,
   rosas se abren en las esquinas (invitation.js las dibuja en capas y las mece con
   el viento). Adentro, ramas de olivo que brotan, fotos colgadas de un cordel,
   una línea de tiempo de cristal y pétalos que no dejan de caer. */

:root {
  --paper: #fbf8f1;
  --cream: #f8f4ea;
  --linen: #f1eee2;
  --forest: #2c4536;
  --forest-2: #365241;
  --forest-deep: #223629;
  --moss: #46634f;
  --olive: #667f57;
  --sage: #8ea38a;
  --sage-light: #c3cfb6;
  --sage-pale: #e3e9d9;
  --peach: #efb59b;
  --peach-deep: #d98468;
  --blush: #f6d5c5;
  --gold: #c39b4d;
  --gold-light: #e8d3a0;
  --gold-dark: #8a6528;
  --ink: #2b3a2e;
  --muted: #5c6857;
  --line: #8ea38a66;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --script: 'Pinyon Script', cursive;
  --sans: 'Jost', Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .26, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --unfurl: cubic-bezier(.2, 1.35, .45, 1);
  --leaf-shade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E%3Cdefs%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='1.6'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23b)' fill='%2346634f' opacity='.16'%3E%3Cpath d='M100 300 C 96 220 104 140 128 30' fill='none' stroke='%2346634f' stroke-width='3'/%3E%3Cg%3E%3Cellipse cx='84' cy='250' rx='9' ry='24' transform='rotate(-38 84 250)'/%3E%3Cellipse cx='116' cy='236' rx='9' ry='24' transform='rotate(38 116 236)'/%3E%3Cellipse cx='82' cy='196' rx='9' ry='23' transform='rotate(-40 82 196)'/%3E%3Cellipse cx='118' cy='182' rx='9' ry='23' transform='rotate(40 118 182)'/%3E%3Cellipse cx='88' cy='140' rx='8' ry='21' transform='rotate(-38 88 140)'/%3E%3Cellipse cx='124' cy='126' rx='8' ry='21' transform='rotate(38 124 126)'/%3E%3Cellipse cx='98' cy='86' rx='7' ry='18' transform='rotate(-36 98 86)'/%3E%3Cellipse cx='132' cy='72' rx='7' ry='18' transform='rotate(36 132 72)'/%3E%3Cellipse cx='120' cy='30' rx='6' ry='16' transform='rotate(-10 120 30)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --leaf-shade-strong: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 300'%3E%3Cdefs%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='1.6'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23b)' fill='%2346634f' opacity='.62'%3E%3Cpath d='M100 300 C 96 220 104 140 128 30' fill='none' stroke='%2346634f' stroke-width='3'/%3E%3Cg%3E%3Cellipse cx='84' cy='250' rx='9' ry='24' transform='rotate(-38 84 250)'/%3E%3Cellipse cx='116' cy='236' rx='9' ry='24' transform='rotate(38 116 236)'/%3E%3Cellipse cx='82' cy='196' rx='9' ry='23' transform='rotate(-40 82 196)'/%3E%3Cellipse cx='118' cy='182' rx='9' ry='23' transform='rotate(40 118 182)'/%3E%3Cellipse cx='88' cy='140' rx='8' ry='21' transform='rotate(-38 88 140)'/%3E%3Cellipse cx='124' cy='126' rx='8' ry='21' transform='rotate(38 124 126)'/%3E%3Cellipse cx='98' cy='86' rx='7' ry='18' transform='rotate(-36 98 86)'/%3E%3Cellipse cx='132' cy='72' rx='7' ry='18' transform='rotate(36 132 72)'/%3E%3Cellipse cx='120' cy='30' rx='6' ry='16' transform='rotate(-10 120 30)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");

  --cn-rsvp-accent: #2c4536;
  --cn-rsvp-display: var(--display);
  --cn-rsvp-body: var(--sans);
  --music-top: max(14px, env(safe-area-inset-top));
  --music-surface: #fbf8f1e6;
  --music-ink: #2c4536;
  --music-ring: #c39b4d99;

  /* Guía de la invitación (compartida): el tono de esta plantilla. */
  --guide-surface: #fbf8f1ed;
  --guide-line: #c39b4d59;
  --guide-shadow: #2c453629;
  --guide-ink: #2c4536;
  --guide-muted: #5c6857;
  --guide-icon: #6c7663;
  --guide-active: #e3e9d9;
  --guide-active-icon: #2c4536;
  --guide-accent: #2c4536;
  --guide-accent-active: #1d3024;
  --guide-on-accent: #f8f4ea;
  --guide-done: #46634f;
  --guide-rail-done: #c39b4d;
  --guide-rail-now: #2c4536;
  --guide-rail-todo: #dfe4d3;
  --guide-font: var(--sans);
  --guide-radius: 999px;
  --guide-inner-radius: 999px;
  --guide-label-case: uppercase;
  --guide-label-spacing: .14em;
  --guide-label-size: 11px;
  --guide-rsvp-size: 9.5px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--display); -webkit-font-smoothing: antialiased; }
body.locked { height: 100svh; overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, p { overflow-wrap: anywhere; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.flower-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.eyebrow { font: 500 .84rem/1.55 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--moss); }
.forest .eyebrow { color: var(--gold-light); }
h2 { font-family: var(--display); font-size: clamp(2.4rem, 10vw, 3.4rem); font-weight: 300; line-height: 1.04; color: var(--forest); }
h2 em { font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.28em; line-height: .9; color: var(--olive); }
.forest h2 { color: var(--cream); }
.forest h2 em { color: var(--gold-light); }
.copy { max-width: 22rem; margin: 1.1rem auto 0; font: 300 1.08rem/1.7 var(--sans); color: var(--muted); white-space: pre-line; }
.amp { font-family: var(--script); font-style: normal; font-weight: 400; color: var(--gold); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .85rem 1.8rem;
  border: 1px solid var(--forest);
  border-radius: 999px;
  font: 500 .86rem/1.3 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .25s var(--ease), background .25s ease;
}
.button:active { transform: scale(.97); }
.button.solid { background: var(--forest); color: var(--cream); box-shadow: 0 10px 26px #2c453630; }
.button.outline { background: #ffffff80; color: var(--forest); }

/* ------------------------------------------------------------ Flores */

/* Cada capa de la flor gira y crece desde el centro; la de afuera primero. Después
   la flor «respira» un poco, como si la moviera el aire. */
.pl { transform-origin: 0 0; transform: scale(.06) rotate(-85deg); opacity: 0; }
.bloomed .pl { transform: none; opacity: 1; transition: transform 1.5s var(--unfurl) var(--d, 0s), opacity .5s ease var(--d, 0s); }
.bloomed .pl-b { transition-delay: calc(var(--d, 0s) + .14s); }
.bloomed .pl-c { transition-delay: calc(var(--d, 0s) + .28s); }
.bob { transform-origin: 0 0; }
.bloomed .bob { animation: bob var(--sw, 6s) ease-in-out calc(var(--d, 0s) + 1.8s) infinite alternate; }
@keyframes bob { from { transform: rotate(-3.5deg) scale(1); } to { transform: rotate(3.5deg) scale(1.035); } }
/* Las ramitas brotan desde la base y luego se mecen con el viento. */
.grow { transform-origin: 0 0; transform: scale(0); }
.bloomed .grow { transform: none; transition: transform 1.3s var(--ease) var(--d, 0s); }
.baby .grow { opacity: 0; transform: scale(.3); }
.bloomed .baby .grow { opacity: 1; transform: none; transition: transform 1.4s var(--ease) var(--d, 0s), opacity .8s ease var(--d, 0s); }
.sway { transform-origin: 0 0; }
.bloomed .sway { animation: sway var(--sw, 5s) ease-in-out calc(var(--d, 0s) + 1.6s) infinite alternate; }
@keyframes sway { from { transform: rotate(-2.6deg); } to { transform: rotate(2.6deg); } }
svg.bouquet { overflow: visible; }
.paper svg.bouquet, .sage-wash svg.bouquet, .rsvp-panel svg.bouquet, .glass-scene svg.bouquet { filter: drop-shadow(0 3px 4px #2c45282e); }
.forest svg.bouquet { filter: drop-shadow(0 5px 9px #0a160e73); }

/* Pétalos que caen dentro de una sección. */
.falling {
  position: absolute;
  top: -24px;
  left: var(--x, 50%);
  width: var(--s, 10px);
  height: calc(var(--s, 10px) * 1.3);
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, #fde9dc 20%, #efb59b);
  box-shadow: 0 1px 3px #2c453633;
  opacity: 0;
  animation: fall var(--t, 9s) linear var(--dl, 0s) infinite;
}
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); opacity: 0; }
  10% { opacity: .95; }
  50% { transform: translate3d(var(--w, 20px), calc(var(--fall, 100svh) * .5), 0) rotate(calc(var(--r, 0deg) + 200deg)); }
  88% { opacity: .85; }
  100% { transform: translate3d(calc(var(--w, 20px) * -.4), var(--fall, 100svh), 0) rotate(calc(var(--r, 0deg) + 420deg)); opacity: 0; }
}
.petal-rain { position: absolute; inset: -10px 0 0; overflow: hidden; pointer-events: none; --fall: 180px; }

/* Pétalos y polvo dorado que cruzan toda la invitación, muy suaves. */
.petal-drift { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 2s ease 1s; }
body.opened .petal-drift { opacity: 1; }
.petal-drift i {
  position: absolute;
  top: -30px;
  left: var(--x);
  width: var(--s);
  height: calc(var(--s) * 1.28);
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, #fde9dc 15%, #f2bba2);
  box-shadow: 0 1px 3px #2c45282e;
  opacity: 0;
  animation: drift var(--t) linear var(--dl) infinite;
}
.petal-drift i.mote { width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #fff6d6, #e8d3a0 60%, #e8d3a000); box-shadow: 0 0 6px #f3dea0; animation-name: drift-mote; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(var(--r)); opacity: 0; }
  8% { opacity: .85; }
  35% { transform: translate3d(var(--w), 38vh, 0) rotate(calc(var(--r) + 130deg)); }
  70% { transform: translate3d(calc(var(--w) * -.6), 78vh, 0) rotate(calc(var(--r) + 300deg)); }
  92% { opacity: .7; }
  100% { transform: translate3d(calc(var(--w) * .5), 112vh, 0) rotate(calc(var(--r) + 460deg)); opacity: 0; }
}
@keyframes drift-mote {
  0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  20% { opacity: .9; }
  60% { transform: translate3d(var(--w), -30vh, 0) scale(1); opacity: .6; }
  100% { transform: translate3d(calc(var(--w) * -.5), -62vh, 0) scale(.5); opacity: 0; }
}

/* ------------------------------------------------------------ Apertura */

.opening { position: fixed; inset: 0; z-index: 1100; overflow: hidden; color: var(--forest); }
.opening-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 90% 62% at 50% 38%, #62795f 0%, #445d4b 52%, #2c4536 100%); }
.halo { position: absolute; left: 50%; top: 42%; width: 130vmax; height: 130vmax; margin: -65vmax 0 0 -65vmax; background: radial-gradient(circle, #fff3c624 0%, #fff3c600 44%); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.1); opacity: .65; } }
.haze { position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; filter: blur(40px); opacity: .55; }
.haze-a { left: -45vmax; top: -30vmax; background: radial-gradient(circle, #9fb59a 0%, #9fb59a00 65%); animation: haze-a 16s ease-in-out infinite alternate; }
.haze-b { right: -50vmax; bottom: -34vmax; background: radial-gradient(circle, #efb59b66 0%, #efb59b00 62%); animation: haze-b 19s ease-in-out infinite alternate; }
@keyframes haze-a { to { transform: translate(12vmax, 10vmax) scale(1.12); } }
@keyframes haze-b { to { transform: translate(-10vmax, -12vmax) scale(1.1); } }
.motes { position: absolute; inset: 0; overflow: hidden; }
.motes i { position: absolute; left: var(--x); bottom: -12px; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #fff8dc, #e8d3a0 55%, #e8d3a000); box-shadow: 0 0 8px #f3dea0aa; opacity: 0; animation: mote var(--t) ease-in var(--dl) infinite; }
@keyframes mote { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate3d(var(--w), -108svh, 0); opacity: 0; } }

/* La tarjeta cerrada: papel marfil con doble filete dorado. */
.card {
  position: absolute;
  inset: max(16px, 2.6svh) 0;
  width: min(calc(100% - 28px), 440px);
  margin-inline: auto;
  border-radius: 6px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, #ffffff, #ffffff00 70%), var(--paper-noise), linear-gradient(180deg, #fdfbf5, #f6f1e4);
  box-shadow: 0 30px 70px #10241a99, 0 0 0 1px #ffffff40;
  will-change: transform, opacity;
}
.card-frame { position: absolute; inset: 11px; border: 1px solid #c39b4d80; border-radius: 3px; box-shadow: inset 0 0 0 5px #fdfbf5, inset 0 0 0 6px #c39b4d33; pointer-events: none; }
.card-body { position: relative; z-index: 1; display: flex; height: 100%; padding: clamp(28px, 5svh, 46px) 22px clamp(22px, 4svh, 34px); flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.opening .eyebrow { color: var(--moss); font-size: .68rem; letter-spacing: .2em; }

/* Los anillos de la invitación: la ilustración con sus olivos y flores, más rosas alrededor. */
.rings-photo { position: relative; width: min(330px, 90%); aspect-ratio: 3 / 2; margin: clamp(.2rem, 1.6svh, 1rem) 0 0; }
.rings-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 9px #5a43182e); }
body.ready .rings-img { animation: rings-in 1.7s var(--ease) .6s both, rings-float 6s ease-in-out 2.4s infinite alternate; }
@keyframes rings-in { from { opacity: 0; transform: translateY(16px) scale(.86) rotate(-5deg); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rings-float { from { transform: translateY(0) rotate(-.6deg); } to { transform: translateY(-4px) rotate(.8deg); } }
.rings-flora { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rings-flora-back { z-index: 0; }
.rings-flora-front { z-index: 2; }
.rings-spark { position: absolute; z-index: 3; left: 58.6%; top: 56%; width: 34px; height: 34px; margin: -17px 0 0 -17px; fill: #fffbe6; opacity: 0; filter: drop-shadow(0 0 4px #fff3c9); animation: sparkle 3.6s ease-in-out 3s infinite; }
@keyframes sparkle { 0%, 55%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 72% { opacity: 1; transform: scale(1) rotate(45deg); } }
.opening-names { display: flex; flex-direction: column; align-items: center; margin: clamp(.2rem, 1.4svh, .9rem) 0 0; line-height: .9; }
.script-name { font-family: var(--script); font-size: clamp(3.3rem, 14.4vw, 4.5rem); font-weight: 400; color: var(--forest); padding: 0 .16em; transition: color 1.1s ease; }
.opening-names .amp { font-size: 2.3rem; margin: -.15rem 0 -.1rem; }
.opening-date { margin-top: clamp(.5rem, 1.6svh, 1rem); font: 500 .92rem/1.5 var(--sans); letter-spacing: .2em; color: var(--moss); }
.open-button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: clamp(.55rem, 1.5svh, 1rem);
  min-height: 52px;
  padding: .9rem 1.6rem .9rem 1.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font: 500 .84rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px #2c453638, inset 0 0 0 1px #ffffff1f;
  transition: transform .3s var(--ease);
}
.open-button svg { width: 15px; height: 15px; fill: none; stroke: var(--gold-light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.open-button:hover { transform: translateY(-2px); }
.open-button:hover svg { transform: translateX(3px); }

/* El sello: un disco marfil con corona de olivo y las iniciales, sobre un borde salvia festoneado.
   Late suave, invita a presionarlo y, al tocarlo, se hunde y suelta una onda que abre la tarjeta. */
.stamp-button { position: relative; width: clamp(84px, 12.5svh, 108px); aspect-ratio: 1; margin-top: clamp(.5rem, 1.8svh, 1.1rem); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stamp-button:focus-visible, .toss:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 50%; }
.stamp-button::before, .stamp-button::after { content: ''; position: absolute; inset: 3px; border: 1.5px solid #6f8d6a99; border-radius: 50%; opacity: 0; pointer-events: none; }
body.ready .stamp-button::before { animation: ripple 3s ease-out 4.6s infinite; }
body.ready .stamp-button::after { animation: ripple 3s ease-out 5.6s infinite; }
@keyframes ripple { 0% { transform: scale(.9); opacity: .85; } 100% { transform: scale(1.8); opacity: 0; } }
.stamp { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 6px #263c2b55) drop-shadow(0 1px 1px #263c2b59); transition: transform .3s var(--spring); }
.stamp-button:hover .stamp { transform: scale(1.05); }
.stamp-button:active .stamp { transform: scale(.92); transition-duration: .12s; }
body.ready .stamp { animation: stamp-breathe 4s ease-in-out 4.6s infinite; }
@keyframes stamp-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.opening-hint { margin-top: .5rem; font: italic 400 1.08rem var(--display); color: var(--muted); }

.o-1, .o-2, .o-3, .o-4, .o-5, .o-6 { opacity: 0; }
body.ready .o-1 { animation: rise-in 1s var(--ease) .4s forwards; }
body.ready .o-2 { animation: fade .9s ease .7s forwards; }
body.ready .o-3 { animation: fade .3s ease 1.9s forwards; }
body.ready .o-3 .script-name { animation: write 1.8s cubic-bezier(.6, .1, .3, 1) 1.9s both; }
body.ready .o-3 .script-name + .amp + .script-name { animation-delay: 2.7s; }
body.ready .o-3 .amp { animation: rise-in .8s var(--ease) 2.5s both; }
body.ready .o-4 { animation: rise-in .9s var(--ease) 3.4s forwards; }
body.ready .o-5 { animation: rise-in .9s var(--ease) 3.7s forwards; }
body.ready .o-6 { animation: rise-in .9s var(--ease) 4s forwards; }
@keyframes fade { to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
/* La escritura: el nombre se descubre de izquierda a derecha, como a pluma. */
@keyframes write { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -5% -20% 0); } }

/* Los anillos llegan de los lados y se entrelazan. */

/* Al abrir: el sello se hunde y suelta una onda, la tarjeta se eleva y las rosas se abren del todo. */
.opening.is-breaking .stamp { animation: stamp-press 1s ease both; transition: none; }
@keyframes stamp-press { 0% { transform: none; opacity: 1; } 20% { transform: scale(.84); opacity: 1; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.opening.is-breaking .stamp-button::before, .opening.is-breaking .stamp-button::after { animation: none; }
.opening.is-breaking .stamp-button::after { animation: press-wave 1s ease-out .12s both; border-color: #c39b4d99; }
@keyframes press-wave { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(6); opacity: 0; } }
.opening-flora { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.opening.is-breaking .open-button, .opening.is-breaking .opening-hint { animation: leave .5s ease forwards !important; }
@keyframes leave { to { opacity: 0; transform: translateY(10px); } }
.opening.is-opening .card { animation: card-out 1.5s cubic-bezier(.5, 0, .3, 1) .1s forwards; }
@keyframes card-out { 0% { transform: none; opacity: 1; } 40% { transform: translateY(-1.5%) scale(1.02); opacity: 1; } 100% { transform: translateY(-9%) scale(1.14); opacity: 0; } }
.opening.is-opening .opening-flora { animation: swell 2s var(--ease) both; transform-origin: 50% 50%; }
@keyframes swell { 40% { transform: scale(1.05); } 100% { transform: scale(1.14); } }
.opening.is-leaving { animation: fade-away 1s ease forwards; }
@keyframes fade-away { to { opacity: 0; } }
.opening.is-opening .halo { animation: burst-glow 1.8s ease-out both; }
@keyframes burst-glow { 0% { opacity: .6; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.06); background: radial-gradient(circle, #fff3c66b 0%, #fff3c600 46%); } 100% { opacity: .5; transform: scale(1.1); } }
.drift { position: fixed; inset: 0; z-index: 1120; pointer-events: none; overflow: hidden; }
.drift .falling { animation: none; }

/* ------------------------------------------------------------ Invitación */

.invitation { width: min(100%, 540px); margin: 0 auto; background: var(--paper); box-shadow: 0 0 80px #2c453624; }
.page {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: 64px 30px 100px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  scroll-snap-align: start;
  isolation: isolate;
}
.page:focus { outline: none; }
.page > .eyebrow { margin-bottom: .9rem; }

/* Papel marfil con un velo salvia arriba y un toque durazno al pie, y la sombra
   de una rama de olivo en una esquina. */
.paper {
  background:
    var(--leaf-shade) right -34px top -40px / 150px auto no-repeat,
    radial-gradient(ellipse 70% 36% at 0% 0%, #e2e9d7b8, #e2e9d700 72%),
    radial-gradient(ellipse 70% 34% at 100% 100%, #f8dfd1a6, #f8dfd100 72%),
    var(--paper-noise),
    var(--paper);
}
.paper::before { content: ''; position: absolute; left: -30px; bottom: -26px; z-index: -1; width: 138px; height: 208px; background: var(--leaf-shade) center / contain no-repeat; opacity: 1; transform: rotate(38deg); pointer-events: none; }
.sage-wash {
  background:
    var(--leaf-shade) left -38px bottom -30px / 160px auto no-repeat,
    radial-gradient(ellipse 80% 40% at 100% 0%, #f6e3d7a6, #f6e3d700 72%),
    var(--paper-noise),
    linear-gradient(180deg, #e9eee0, #dbe3cf);
}
.sage-wash::before { content: ''; position: absolute; right: -34px; top: -20px; z-index: -1; width: 140px; height: 210px; background: var(--leaf-shade) center / contain no-repeat; opacity: 1; transform: rotate(-150deg); pointer-events: none; }
.paper::before, .sage-wash::before { animation: sway-bg 9s ease-in-out infinite alternate; }
@keyframes sway-bg { to { rotate: 4deg; } }
.forest { background: radial-gradient(ellipse 90% 55% at 50% 18%, #46634f 0%, #46634f00 70%), radial-gradient(ellipse 80% 40% at 0% 100%, #1a2c20b0, #1a2c2000 80%), var(--forest); color: var(--cream); }
.countdown-page.forest { padding-block: 92px 92px; }

/* Revelado: cada pieza sube y se enfoca en cascada al entrar su pantalla. */
body.opened .rise { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity .9s ease, transform 1s var(--ease), filter .9s ease; transition-delay: calc(var(--i, 0) * 110ms + 80ms); }
body.opened .in-view .rise { opacity: 1; transform: none; filter: none; }

/* Portada: la foto en un arco doble, coronado de rosas y ramas. */
.hero { padding-top: 56px; }
.hero > .eyebrow { margin-bottom: 2.5rem; }
.gate { position: relative; width: min(66vw, 260px, 36svh); aspect-ratio: 240 / 320; margin: .5rem 0 1rem; }
.gate::before { content: ''; position: absolute; inset: -2.5% 2% -1.2%; border: 1px solid #c39b4d99; border-radius: 999px 999px 18px 18px; }
.gate::after { content: ''; position: absolute; inset: 0 4.6% 1%; border: 1px solid #c39b4d55; border-radius: 999px 999px 14px 14px; }
.gate-photo { position: absolute; inset: 3.5% 8% 3%; z-index: 1; overflow: hidden; border: 4px solid #fff; border-radius: 999px 999px 12px 12px; background: var(--sage-pale); box-shadow: 0 20px 38px #2c453633; }
.gate-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.14); transition: transform 2.8s var(--ease) .3s; }
.hero.in-view .gate-photo img, html.static .gate-photo img { transform: scale(1); }
.gate-flora { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.names { display: flex; flex-direction: column; align-items: center; line-height: .9; font-weight: 400; }
.names .name { font-family: var(--script); font-size: clamp(3.5rem, 15.4vw, 4.8rem); color: var(--forest); padding: 0 .16em; }
.names .amp { font-size: 2.2rem; margin: -.1rem 0; }
body.opened .write { clip-path: inset(-20% 100% -20% 0); }
body.opened .in-view .write { animation: write 1.6s cubic-bezier(.6, .1, .3, 1) .5s both; }
body.opened .in-view .write + .amp + .write { animation-delay: 1.2s; }
.hero-date { margin-top: 1rem; font: 500 .96rem/1.5 var(--sans); letter-spacing: .2em; color: var(--moss); }
.hero-when { margin-top: .2rem; font: italic 400 1.18rem var(--display); color: var(--muted); }
.next { display: flex; flex-direction: column; align-items: center; gap: .45rem; margin-top: 1.3rem; font: 500 .8rem/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--moss); }
.petal-icon { display: block; width: 10px; height: 13px; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #fde9dc 20%, #efb59b); box-shadow: 0 1px 3px #2c453640; animation: petal-drop 2.6s ease-in-out infinite; }
@keyframes petal-drop { 0% { transform: translateY(-4px) rotate(-20deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px) rotate(40deg); opacity: 0; } }

/* Historia: una carta con su sello de cera, que se estampa al llegar. */
.story { padding-bottom: 100px; }
.letter { position: relative; width: min(100%, 372px); padding: 2.1rem 1.5rem 2.4rem; border-radius: 6px; background: var(--paper-noise), linear-gradient(180deg, #ffffff, #fdfaf3); box-shadow: 0 22px 46px #2c453626, 0 2px 0 #ffffff inset; transform: rotate(-1deg); }
.letter::before { content: ''; position: absolute; inset: 9px; border: 1px solid #c39b4d66; border-radius: 3px; pointer-events: none; }
.letter-flora { position: absolute; width: 112px; height: 112px; pointer-events: none; z-index: 2; }
.letter-flora-a { left: -34px; top: -38px; }
.letter-flora-b { right: -30px; bottom: -22px; width: 92px; height: 92px; z-index: 0; }
.story-monogram { display: flex; align-items: baseline; justify-content: center; gap: .04em; font: 400 clamp(3.6rem, 16vw, 5.2rem)/1 var(--script); color: var(--forest); }
.story-monogram .monogram-amp { font-size: .5em; color: var(--gold); margin-inline: .12em; }
.letter .copy { margin-top: .7rem; }
.parents { position: relative; z-index: 1; margin-top: 1.4rem; }
.parents-label { font: 500 .76rem/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.parents-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: .6rem; }
.parents-grid p { min-width: 0; font: italic 400 1.34rem/1.3 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.parents-grid p + p { padding-left: 1rem; border-left: 1px solid var(--line); }
.parents-grid:has(> [hidden]) { grid-template-columns: 1fr; }
.parents-grid:has(> [hidden]) p + p { padding: 0; border: 0; }
@media (max-width: 440px) { .letter-flora-b { display: none; } }

/* Cuenta regresiva: ramas de olivo que brotan y números que ruedan en ventanas. */
.branch { position: absolute; left: 0; width: 100%; height: auto; z-index: -1; overflow: visible; }
.branch-top { top: 0; }
.branch-bottom { bottom: 0; }
.stem { fill: none; stroke: var(--olive); stroke-width: 1.3; stroke-linecap: round; }
.forest .stem { stroke: var(--sage); }
.draw { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.grown .draw, .grown.draw, .in-view .draw, .bloomed .draw, html.static .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.65, 0, .35, 1) var(--dd, .2s); }
.event-date { margin: 1rem 0 1.8rem; font: italic 400 1.3rem var(--display); color: var(--sage-light); }
.windows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 360px; }
.window { position: relative; display: grid; justify-items: center; gap: .6rem; padding: 1.4rem 0 .95rem; border: 1px solid #c39b4d80; border-radius: 999px 999px 8px 8px; background: linear-gradient(180deg, #ffffff17, #ffffff05); box-shadow: inset 0 0 0 3px #ffffff08, 0 10px 24px #0a160e40; }
.window small { font: 500 .66rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--sage-light); }
.odometer { position: relative; display: inline-flex; height: 1.1em; overflow: hidden; font: 500 clamp(1.7rem, 7.4vw, 2.2rem)/1.1 var(--display); color: var(--gold-light); font-variant-numeric: lining-nums tabular-nums; }
.reel { display: flex; flex-direction: column; transform: translateY(calc(var(--n, 0) * -1.1em)); transition: transform .9s cubic-bezier(.3, 1.3, .5, 1); }
.reel span { height: 1.1em; }
body.opened .windows .window { transform: translateY(18px); opacity: 0; transition: transform .9s var(--ease), opacity .9s ease; }
body.opened .in-view .windows .window { transform: none; opacity: 1; }
body.opened .in-view .windows .window:nth-child(2) { transition-delay: .12s; }
body.opened .in-view .windows .window:nth-child(3) { transition-delay: .24s; }
body.opened .in-view .windows .window:nth-child(4) { transition-delay: .36s; }
.countdown-note { margin-top: 1.7rem; font: italic 400 1.16rem var(--display); color: var(--sage-light); }

/* Galería: tres fotos colgadas de un cordel entre gipsofila, que se mecen. */
.gallery-page h2 { margin-bottom: .2rem; }
/* Galería: tres arcos bajo una guirnalda de rosas; tocar uno de los lados lo trae al centro. */
.arches { position: relative; width: 100%; max-width: 380px; height: min(96vw, 400px, 50svh); margin-top: 1.4rem; }
.frame { position: absolute; bottom: 0; margin: 0; overflow: hidden; border: 4px solid #fff; border-radius: 999px 999px 10px 10px; background: var(--sage-pale); box-shadow: 0 14px 30px #2c453629; cursor: pointer; transition: left .9s var(--ease), width .9s var(--ease), height .9s var(--ease), box-shadow .6s ease, opacity .8s ease, translate 1s var(--ease); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
/* Un video ocupa el arco. El script compartido pone el marco en «relative»; los arcos se colocan con «absolute». */
.arches .frame[data-field-video].cn-has-video { position: absolute; }
.frame .cn-frame-video { border-radius: inherit; }
/* En los arcos laterales, que son angostos, el botón de video queda solo con el ícono y centrado abajo. */
.frame[data-slot="1"] .cn-frame-play, .frame[data-slot="2"] .cn-frame-play { right: 50%; translate: 50% 0; padding: 0.4rem; }
.frame[data-slot="1"] .cn-frame-play span, .frame[data-slot="2"] .cn-frame-play span { display: none; }
.arches[data-count="2"] .frame[data-slot="1"] .cn-frame-play span { display: inline; }
.frame .cn-frame-play { bottom: 0.9rem; }
.frame[data-slot="0"] { z-index: 2; left: 21%; width: 58%; height: 86%; }
.frame[data-slot="1"] { z-index: 1; left: 0; width: 33%; height: 60%; }
.frame[data-slot="2"] { z-index: 1; left: 67%; width: 33%; height: 60%; }
.arches[data-count="2"] .frame[data-slot="0"] { left: 2%; width: 47%; height: 78%; }
.arches[data-count="2"] .frame[data-slot="1"] { left: 51%; width: 47%; height: 78%; }
.arches[data-count="1"] .frame[data-slot="0"] { left: 20%; width: 60%; }
.arch-garland { position: absolute; left: -2%; top: -2%; z-index: 3; width: 104%; height: auto; pointer-events: none; }
body.opened .frame { opacity: 0; translate: 0 26px; }
body.opened .in-view .frame { opacity: 1; translate: 0 0; }
body.opened .in-view .frame[data-slot="1"] { transition-delay: .3s; }
body.opened .in-view .frame[data-slot="2"] { transition-delay: .5s; }
body.opened .in-view .frame[data-slot="0"] { transition-delay: .1s; }
.gallery-hint { margin-top: 1.2rem; font: italic 400 1.05rem var(--display); color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 24px; background: #14231ae6; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .3s ease both; }
.lightbox img { max-width: min(100%, 520px); max-height: 82svh; border: 6px solid #fff; border-radius: 3px; object-fit: contain; box-shadow: 0 30px 70px #00000080; animation: pop .5s var(--spring) both; }
.lightbox-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border: 1px solid #ffffff55; border-radius: 50%; background: #ffffff1f; color: #fff; font-size: 1.6rem; line-height: 1; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }

/* Ceremonia: un arco de flores, con los anillos que se entrelazan al centro. */
.altar { position: relative; width: min(270px, 76%); margin: 2.6rem 0 .8rem; }
.altar-art { display: block; width: 100%; height: auto; }
.altar-arch { stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; }
.altar-arch.inner { stroke: #c39b4d66; stroke-width: 1; }
.rings-mini { position: absolute; left: 50%; top: 44%; width: 44%; margin-left: -22%; height: auto; overflow: visible; }
.rings-mini circle { fill: none; stroke: url(#ss-gold); stroke-width: 3.6; filter: drop-shadow(0 2px 2px #5a43184d); }
.mini-a { transform: translateX(-11px); }
.mini-b { transform: translateX(11px); }
.in-view .mini-a, .in-view .mini-b, html.static .mini-a, html.static .mini-b { transform: none; transition: transform 1.5s var(--ease) .9s; }
.venue-time { margin-top: .9rem; font: 300 clamp(2.5rem, 10.5vw, 3.1rem)/1 var(--display); color: var(--gold-dark); }
.venue-name { margin-top: .6rem; font: italic 500 1.75rem/1.15 var(--display); color: var(--forest); }
.venue-address { max-width: 20rem; margin: .4rem auto 0; font: 300 .92rem/1.6 var(--sans); color: var(--muted); white-space: pre-line; }
.venue-page .button { margin-top: 1.7rem; }
.venue-page .cn-place-actions { margin-top: 1.7rem !important; width: min(100%, 300px); grid-template-columns: minmax(0, 1fr) !important; }
.venue-page .cn-place-actions > a { width: 100%; }
.venue-page .cn-calendar-button { background: #ffffff80 !important; color: var(--forest) !important; border-color: #2c453666 !important; }
body.opened .venue-page .cn-place-actions > .rise { transition-delay: .75s; }

/* Recepción: una guirnalda de focos que se enciende uno por uno. */
.lights-wrap { position: relative; width: calc(100% + 60px); max-width: 560px; margin: .2rem -30px .9rem; }
.lights { display: block; width: 100%; height: auto; overflow: visible; }
.lights-flora { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wire { stroke: #8a6f45; stroke-width: 1.1; }
.bulb { fill: #efe6c8; stroke: #8a6f4580; stroke-width: .8; transition: fill .4s ease, filter .4s ease; }
.in-view .bulb, html.static .bulb { fill: #ffd98a; filter: drop-shadow(0 0 6px #ffcf6b); transition-delay: var(--d, 0s); }
.in-view .bulb { animation: glow 3s ease-in-out calc(var(--d, 0s) + 1s) infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 2px #ffcf6b); fill: #f3d896; } }
.reception { background: radial-gradient(ellipse 80% 28% at 50% 0%, #ffe3a83d, #ffe3a800 80%), var(--leaf-shade) right -40px bottom -34px / 150px auto no-repeat, radial-gradient(ellipse 70% 36% at 0% 100%, #e2e9d7b8, #e2e9d700 72%), var(--paper-noise), var(--paper); }

/* Programa: una línea de tiempo de cristal sobre un fondo de hojas desenfocadas. */
.glass-scene { background: radial-gradient(circle 120px at 18% 30%, #f3b9a0aa, #f3b9a000 100%), radial-gradient(circle 150px at 88% 62%, #f0dcb4cc, #f0dcb400 100%), radial-gradient(circle 90px at 70% 14%, #ffffffaa, #ffffff00 100%), radial-gradient(ellipse 70% 40% at 20% 8%, #f6e3d7, #f6e3d700 70%), radial-gradient(ellipse 80% 50% at 90% 96%, #9fb59a99, #9fb59a00 75%), linear-gradient(165deg, #ebe2d2 0%, #d9dcc7 46%, #b6c5aa 100%); }
.scene-leaf { position: absolute; z-index: -1; width: 210px; height: 315px; background: var(--leaf-shade-strong) center / contain no-repeat; filter: blur(4px); opacity: 1; pointer-events: none; }
.scene-leaf-a { left: -60px; top: 6%; transform: rotate(24deg); animation: sway-bg 9s ease-in-out infinite alternate; }
.scene-leaf-b { right: -70px; top: 30%; width: 250px; height: 375px; transform: rotate(-38deg) scaleX(-1); animation: sway-bg 12s ease-in-out -3s infinite alternate; }
.scene-leaf-c { left: -30px; bottom: -40px; opacity: .7; transform: rotate(-12deg); animation: sway-bg 14s ease-in-out -6s infinite alternate; }
.schedule-page { padding-block: 70px 100px; }
.glass-panel { position: relative; width: min(100%, 368px); padding: 2rem 1rem 2.2rem; border: 1px solid #ffffff99; border-radius: 30px; background: linear-gradient(160deg, #ffffff70, #ffffff2b); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); box-shadow: 0 30px 60px #2c45362e, inset 0 1px 0 #ffffffb3, inset 0 0 0 1px #ffffff26; }
.glass-panel .eyebrow { margin-bottom: .6rem; font-size: .72rem; }
.program-title { display: flex; flex-direction: column; align-items: center; margin-top: .3rem; line-height: 1; }
.program-title span { font: 400 clamp(3rem, 14vw, 4.2rem)/.9 var(--script); color: var(--forest); }
.program-title em { margin-top: .1rem; font: 500 clamp(1.5rem, 7vw, 2rem)/1.1 var(--display); font-style: normal; letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: var(--forest); }
.timeline { position: relative; margin-top: 1.7rem; text-align: left; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 20px; bottom: 20px; width: 1.4px; margin-left: -.7px; background: linear-gradient(var(--forest), var(--forest) 88%, #2c453600); transform: scaleY(0); transform-origin: top; }
body.opened .in-view .timeline::before, html.static .timeline::before { transform: scaleY(1); transition: transform 2.4s cubic-bezier(.65, 0, .35, 1) .5s; }
.moment { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; min-height: 88px; }
.moment-node { grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: var(--gold-light); box-shadow: 0 0 0 5px #ffffff66, 0 8px 18px #2c453640; }
.moment-node svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.moment-time { grid-column: 1; grid-row: 1; padding-right: 12px; text-align: right; }
.moment-text { grid-column: 3; grid-row: 1; padding-left: 12px; }
.moment:nth-child(even) .moment-time { grid-column: 3; padding: 0 0 0 12px; text-align: left; }
.moment:nth-child(even) .moment-text { grid-column: 1; padding: 0 12px 0 0; text-align: right; }
.moment time { font: 500 1.02rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--forest); }
.moment h3 { font: 500 1.28rem/1.15 var(--display); color: var(--forest); }
.moment p { margin-top: .2rem; font: 400 .72rem/1.45 var(--sans); letter-spacing: .02em; color: var(--muted); }
body.opened .moment .moment-time, body.opened .moment .moment-text { opacity: 0; transform: translateY(10px); transition: opacity .7s ease var(--bd, 1s), transform .8s var(--ease) var(--bd, 1s); }
body.opened .moment .moment-node { transform: scale(0); transition: transform .8s var(--spring) var(--bd, 1s); }
body.opened .in-view .moment .moment-time, body.opened .in-view .moment .moment-text { opacity: 1; transform: none; }
body.opened .in-view .moment .moment-node { transform: none; }
.moment-node.pulse { animation: node-pulse 3.6s ease-in-out infinite; }
@keyframes node-pulse { 0%, 100% { box-shadow: 0 0 0 5px #ffffff66, 0 8px 18px #2c453640; } 50% { box-shadow: 0 0 0 9px #ffffff33, 0 8px 18px #2c453640; } }

/* Detalles: los colores sugeridos son los pétalos de una flor. */
.detail-block { width: 100%; max-width: 360px; margin-top: 1.3rem; }
.details-page { justify-content: flex-start; padding-block: 72px 96px; }
.detail-art { display: block; width: 100%; height: auto; object-fit: contain; margin-inline: auto; }
.attire-art { width: min(206px, 66vw); max-height: 188px; margin-bottom: .8rem; }
.detail-flower { display: block; width: 122px; height: 25px; margin: .55rem auto -.25rem; }
.detail-flower:has(+ .palette-flower[hidden]) { display: none; }
.detail-notes { display: grid; width: min(100%, 360px); gap: 10px; margin-top: 1.15rem; }
.detail-note-row { display: flex; align-items: center; min-height: 68px; gap: 14px; padding: 10px 14px; border: 1px solid #c39b4d4d; border-radius: 12px; background: #fdfbf5ba; text-align: left; }
.detail-note-row img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.detail-note-row p { font: 400 .78rem/1.45 var(--sans); color: var(--muted); white-space: pre-line; }
/* Regalos: cuenta, SINPE y efectivo, cada uno en su renglón y con su número a mano para copiarlo. */
.gift-ways { padding: 4px 16px; border: 1px solid #c39b4d4d; border-radius: 12px; background: #fdfbf5ba; text-align: left; }
.gift-ways.is-empty, .gift-way.is-empty, .gift-source { display: none !important; }
.gift-way { padding-block: 12px; }
.gift-way:not(.is-empty):not([hidden]) ~ .gift-way:not(.is-empty):not([hidden]) { border-top: 1px solid #c39b4d40; }
.gift-way-label { display: block; font: 500 .56rem/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); }
.gift-bank:empty { display: none; }
.gift-bank::before { content: ' · '; }
.gift-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; margin-top: 6px; }
.gift-sinpe-list { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.gift-sinpe-list .gift-line { grid-template-columns: minmax(0, 1fr) auto auto; margin-top: 0; }
.gift-name { font: 400 .78rem/1.35 var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.gift-number { font: 500 .88rem/1.35 var(--sans); letter-spacing: .03em; font-variant-numeric: tabular-nums; color: var(--forest); overflow-wrap: anywhere; }
.gift-account-line .gift-number { grid-column: 1 / -1; white-space: nowrap; overflow-wrap: normal; font-size: clamp(.78rem, 4.1vw, .9rem); letter-spacing: .02em; }
.gift-holder { margin: 0; font: 400 .74rem/1.45 var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.gift-holder-label { color: var(--moss); }
.gift-cash-note { margin-top: 4px; font: 400 .78rem/1.45 var(--sans); color: var(--muted); white-space: pre-line; }
.gift-copy { min-width: 64px; min-height: 30px; padding: 0 11px; border: 1px solid #c39b4d99; border-radius: 999px; background: transparent; font: 500 .56rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.gift-copy:hover { border-color: var(--forest); }
.gift-copy:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gift-copy.is-done { border-color: var(--forest); background: var(--forest); color: var(--cream); }
.important-block { border-top: 1px solid var(--line); padding-top: 1.35rem; }
.cocktail-art { width: 70px; height: 84px; margin-top: .55rem; }
.important-block .detail-copy { margin-top: .45rem; }
body.opened .details-page .detail-art, body.opened .details-page .detail-note-row, body.opened .details-page .gift-ways { opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .65s ease, transform .8s var(--ease); }
body.opened .details-page.in-view .detail-art, body.opened .details-page.in-view .detail-note-row, body.opened .details-page.in-view .gift-ways { opacity: 1; transform: none; }
body.opened .details-page.in-view .detail-note-row:nth-child(2) { transition-delay: .12s; }
body.opened .details-page.in-view .detail-note-row:nth-child(3) { transition-delay: .24s; }
body.opened .details-page.in-view .detail-note-row:nth-child(4) { transition-delay: .36s; }
body.opened .details-page.in-view .gift-ways { transition-delay: .48s; }
html.static .details-page .detail-art, html.static .details-page .detail-note-row, html.static .details-page .gift-ways { opacity: 1 !important; transform: none !important; }
.detail-label { font: 500 .58rem/1.6 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-dark); }
.detail-block h3 { margin-top: .2rem; font: italic 500 2.1rem/1.1 var(--display); color: var(--forest); }
.detail-copy { max-width: 21rem; margin: .5rem auto 0; font: 300 .92rem/1.7 var(--sans); color: var(--muted); white-space: pre-line; }
.reserved-colors-note { max-width: 19rem; margin: .65rem auto 0; font: 400 .76rem/1.55 var(--sans); color: var(--moss); }
.palette-flower { position: relative; width: 128px; height: 128px; margin: 1rem auto 0; }
.palette-flower::after { content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff6d6 0 2px, #fff0 2.5px), radial-gradient(circle at 64% 58%, #fff6d6 0 2px, #fff0 2.5px), radial-gradient(circle at 36% 66%, #fff6d6 0 1.6px, #fff0 2px), #d9b464; box-shadow: 0 0 0 3px #fff, 0 2px 8px #2c453633; }
.palette-flower span { position: absolute; left: 50%; top: 50%; width: 33%; height: 45%; margin: -45% 0 0 -16.5%; border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%; transform-origin: 50% 100%; transform: rotate(var(--a)); box-shadow: inset 0 -8px 14px #0000001f, inset 0 0 0 1px #0000001a, 0 3px 8px #2c45281f; }
.palette-flower span:nth-child(1) { --a: -45deg; }
.palette-flower span:nth-child(2) { --a: 45deg; }
.palette-flower span:nth-child(3) { --a: 135deg; }
.palette-flower span:nth-child(4) { --a: 225deg; }
body.opened .palette-flower span { transform: rotate(0deg) scale(.3); opacity: 0; transition: transform 1.2s var(--unfurl), opacity .5s ease; }
body.opened .in-view .palette-flower span { transform: rotate(var(--a)); opacity: 1; }
body.opened .in-view .palette-flower span:nth-child(1) { transition-delay: .8s; }
body.opened .in-view .palette-flower span:nth-child(2) { transition-delay: .95s; }
body.opened .in-view .palette-flower span:nth-child(3) { transition-delay: 1.1s; }
body.opened .in-view .palette-flower span:nth-child(4) { transition-delay: 1.25s; }

/* Confirmación: un prendedor de rosas en la esquina del formulario. */
.rsvp-section { padding-inline: 22px; }
.rsvp-intro { margin: .9rem auto 1.6rem; }
.rsvp-panel { position: relative; width: 100%; max-width: 400px; padding: 26px 20px 22px; border: 1px solid #c39b4d59; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px #2c453617; text-align: left; font-family: var(--sans); color: var(--ink); }
.corsage { position: absolute; top: -52px; right: -34px; width: 132px; height: auto; pointer-events: none; z-index: 2; transform-origin: 70% 30%; }
.corsage.cheer { animation: cheer 1s var(--spring); }
@keyframes cheer { 30% { transform: rotate(-9deg) scale(1.08); } 60% { transform: rotate(5deg); } }
.rsvp-panel .cn-rsvp { width: 100%; font-size: .86rem; }
.rsvp-panel input, .rsvp-panel textarea { font-size: 16px; }
.rsvp-panel .cn-rsvp-field > span { font-size: .6rem; letter-spacing: .14em; }
.rsvp-panel .button { width: 100%; }
.rsvp-actions { display: grid; gap: 8px; }
.rsvp-decline { min-height: 44px; border: 0; background: none; color: var(--forest); font: 400 .78rem var(--sans); text-decoration: underline; text-underline-offset: 4px; }
.guest-counter { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.guest-counter p { font-size: .84rem; }
.guest-counter small { display: block; margin-top: 3px; font-size: .72rem; color: var(--muted); }
.guest-controls { display: flex; align-items: center; gap: 12px; }
.guest-controls button { width: 44px; height: 44px; border: 1px solid #c39b4d88; border-radius: 50%; background: var(--cream); color: var(--forest); font-size: 1.25rem; }
.guest-controls button:disabled { opacity: .4; cursor: default; }
.guest-controls output { min-width: 20px; text-align: center; }
.demo-message { padding-top: 15px; font: 400 .78rem/1.6 var(--sans); color: var(--moss); }
.cn-rsvp-extras { --cn-rsvp-accent: var(--forest); --cn-rsvp-label: var(--gold-dark); --cn-rsvp-date: var(--forest); --cn-rsvp-surface: #f3f1e6; }
.rsvp-panel .cn-rsvp-extras { margin-block: 4px 12px; gap: 12px; }
.rsvp-panel .cn-rsvp-extras .cn-pledge { padding: 12px; gap: 10px; border-radius: 10px; font-size: .78rem; line-height: 1.5; }
.rsvp-panel .cn-rsvp-extras .cn-pledge span { font-size: .78rem; line-height: 1.5; }
.rsvp-panel .cn-rsvp-extras .cn-deadline { padding: 14px 12px; border-radius: 10px; border-style: solid; }
.rsvp-panel .cn-rsvp-extras .cn-deadline-date { font-size: 1.6rem; line-height: 1.1; }
.rsvp-panel .cn-rsvp-extras .cn-deadline-label { font-size: .58rem; }

/* Cierre: un ramo de rosas envuelto en papel salvia. */
.closing { padding-bottom: 36px; }
.closing-rain { inset: 0; z-index: -1; --fall: 110svh; }
/* El ramo se arma flor por flor y se puede lanzar. */
.toss { position: relative; width: min(64vw, 250px, 33svh); aspect-ratio: 1; padding: 0; border: 0; background: none; color: inherit; }
.toss > svg { width: 100%; height: 100%; }
.stems path { fill: none; stroke: #8aa382; stroke-width: 3.2; stroke-linecap: round; }
.wrap { fill: #d8e2cf; stroke: #c4aa75; stroke-width: .8; }
.stems, .wrap { opacity: 0; transition: opacity .8s ease 1.3s; }
.bloomed .stems, .bloomed .wrap, html.static .stems, html.static .wrap { opacity: 1; }
.flying { transform: translate(var(--fx, 0), var(--fy, 0)) scale(.4); opacity: 0; }
.bloomed .flying { transform: none; opacity: 1; transition: transform 1.3s var(--ease) var(--d, 0s), opacity .6s ease var(--d, 0s); }
.toss.is-tossed > svg { animation: toss 1.9s cubic-bezier(.3, .6, .4, 1); }
@keyframes toss {
  0% { transform: none; }
  12% { transform: translateY(10px) scale(.96); }
  48% { transform: translateY(-46svh) rotate(-320deg) scale(.62); }
  58% { transform: translateY(-46svh) rotate(-380deg) scale(.62); }
  90% { transform: translateY(6px) rotate(-720deg) scale(1.03); }
  100% { transform: rotate(-720deg); }
}
.toss-hint { margin-top: 1rem; font: italic 400 1.02rem var(--display); color: var(--sage-light); }
.closing-names { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .25em; margin-top: 1rem; line-height: 1; }
.closing-names .script-name { font-size: clamp(2.8rem, 12vw, 3.6rem); color: var(--cream); padding: 0 .1em; }
.closing-names .amp { font-size: 1.9rem; color: var(--gold-light); }
.closing-message { max-width: 20rem; margin-top: .8rem; font-size: clamp(1.7rem, 7.2vw, 2.2rem); line-height: 1.15; }
.hashtag { margin-top: .9rem; font: 500 .76rem/1.6 var(--sans); letter-spacing: .14em; color: var(--sage-light); }
.closing-date { margin-top: .6rem; font: 400 .7rem/1.6 var(--sans); letter-spacing: .4em; color: var(--gold-light); }
.brand { margin-top: 2.2rem; font: 500 .6rem/2 var(--sans); letter-spacing: .26em; text-decoration: none; color: var(--sage-light); }
.brand span { display: block; font-size: .54rem; letter-spacing: .06em; color: var(--sage); }
.burst { position: fixed; z-index: 1200; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 11px; height: 14px; margin: -7px 0 0 -5px; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #fde9dc 20%, #efb59b); box-shadow: 0 1px 3px #0a160e55; }
.burst i.gold { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: radial-gradient(circle, #fff6d6, #e8d3a0); box-shadow: 0 0 6px #f3dea0; }

body .cn-share-button { border-color: #c39b4d88; background: #fbf8f1ee; color: var(--forest); box-shadow: 0 8px 22px #2c453622; }

/* ------------------------------------------------------------ Modos */

html.static body .rise,
html.static body .moment .moment-time,
html.static body .moment .moment-text,
html.static body .moment .moment-node,
html.static body .windows .window,
html.static body .frame,
html.static body .palette-flower span { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; translate: none !important; }
html.static body .palette-flower span { transform: rotate(var(--a)) !important; }
html.static .write, html.static .o-3 .script-name { clip-path: none !important; animation: none !important; }
html.static .o-1, html.static .o-2, html.static .o-3, html.static .o-4, html.static .o-5, html.static .o-6 { opacity: 1; animation: none; }
html.static .pl, html.static .grow, html.static .sprout { transform: none !important; opacity: 1 !important; transition: none !important; }
html.static .bob, html.static .sway { animation: none !important; }
html.static .draw { transition: none !important; }
html.static .petal-drift { display: none; }
html.static .stamp, html.static .stamp-button::before, html.static .stamp-button::after { animation: none !important; }
html.static { scroll-snap-type: none; }
.editor-mode .page { padding-top: 64px; padding-bottom: 64px; }
.thumb-mode .page { padding-top: 52px; padding-bottom: 52px; }
.thumb-mode .page:not(.is-thumbnail) { display: none !important; }

@media (min-width: 800px) {
  body { background: radial-gradient(ellipse at 20% 20%, #e3e9d9, transparent 60%), var(--paper); }
}
@media (max-width: 360px) {
  .page { padding-inline: 22px; }
  .rsvp-section { padding-inline: 14px; }
  .rsvp-panel { padding: 22px 15px 18px; }
  .windows { gap: 6px; }
  .glass-panel { padding-inline: .7rem; }
  .letter { padding-inline: 1.15rem; }
}
/* Pantallas bajas (iPhone SE, capturas del catálogo): la portada de apertura se compacta para que
   ni la frase de arriba ni el botón queden bajo las flores de las esquinas. */
@media (max-height: 780px) {
  .card-body { padding-block: 40px 30px; }
  .rings-photo { width: min(250px, 70%); margin-top: 0; }
  .script-name { font-size: clamp(3rem, 12.5vw, 3.8rem); }
  .opening-names .amp { font-size: 1.9rem; }
  .opening-date { margin-top: .4rem; }
  .stamp-button { width: clamp(70px, 10.5svh, 88px); margin-top: .5rem; }
  .opening-hint { margin-top: .3rem; font-size: 1rem; }
  .open-button { min-height: 44px; margin-top: .7rem; padding-block: .7rem; }
}
@media (max-height: 700px) {
  .card-body { padding-block: 22px 18px; }
  .rings-photo { width: min(220px, 62%); }
  .script-name { font-size: clamp(2.9rem, 12.5vw, 3.7rem); }
  .opening-names .amp { font-size: 1.8rem; }
  .open-button { min-height: 46px; padding-block: .75rem; }
  .opening-hint { font-size: 1rem; }
  .hero { padding-top: 44px; }
  .gate { width: min(52vw, 200px, 31svh); }
  .names { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .2em; }
  .names .name { font-size: clamp(2.9rem, 12.4vw, 3.6rem); }
  .names .amp { margin: 0; }
  .next { margin-top: .6rem; }
  .copy { font-size: 1.02rem; line-height: 1.55; }
  .detail-block { margin-top: 1rem; }
  .details-page { padding-block: 54px 72px; }
  .attire-art { max-height: 150px; }
  .detail-note-row { min-height: 58px; }
  .palette-flower { width: 96px; height: 96px; }
  .toss { width: min(54vw, 200px, 30svh); }
  .brand { margin-top: 1.4rem; }
  .moment { min-height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .moment .moment-time, .moment .moment-text, .moment .moment-node, .windows .window, .frame, .o-1, .o-2, .o-3, .o-4, .o-5, .o-6 { opacity: 1 !important; transform: none !important; filter: none !important; translate: none !important; }
  .palette-flower span { opacity: 1 !important; transform: rotate(var(--a)) !important; }
  .write, .script-name { clip-path: none !important; }
  .pl, .grow, .sprout { transform: none !important; opacity: 1 !important; }
  .draw { stroke-dashoffset: 0 !important; }
  .details-page .detail-art, .details-page .detail-note-row, .details-page .gift-ways { opacity: 1 !important; transform: none !important; }
  .timeline::before { transform: none; }
  .bulb { fill: #ffd98a; }
  .falling, .petal-drift, .motes { display: none; }
}


/* ========================================================================== */
/* LA CASITA DE VALENTINA · BABY SHOWER                                      */
/* Ositos y caballitos 2D se construyen por piezas SVG desde invitation.js.   */
/* ========================================================================== */
.baby-toy-theme {
  --paper:#fffaf7; --cream:#fff5f7; --linen:#f8edf2;
  --forest:#765467; --forest-2:#8a6277; --forest-deep:#5b3f4e;
  --moss:#9c6d83; --olive:#b985a0; --sage:#d6a7bd; --sage-light:#ecd1dd;
  --sage-pale:#f7e8ef; --peach:#eab4ca; --peach-deep:#c77d9f; --blush:#f8dbe7;
  --gold:#c7a365; --gold-light:#edd9ab; --gold-dark:#9d7741;
  --ink:#654957; --muted:#806a75; --line:#d9b6c766;
  --cn-rsvp-accent:#9a6680; --music-ink:#765467;
  --guide-ink:#765467; --guide-muted:#806a75; --guide-active:#f6e3ec;
  --guide-active-icon:#765467; --guide-accent:#9a6680; --guide-accent-active:#7e5269;
  --guide-done:#bd829e; --guide-rail-now:#9a6680; --guide-rail-todo:#eadce3;
  background:#fffaf7;
}
.baby-toy-theme .opening-bg{background:radial-gradient(ellipse 88% 60% at 50% 38%,#d7a8bd 0%,#b77f99 52%,#765467 100%)}
.baby-toy-theme .card{background:linear-gradient(145deg,#fffdfb,#fff8fa 58%,#f7e8ef);box-shadow:0 30px 90px #4f2e4070}
.baby-toy-theme .card-frame{border-color:#d4b07199;box-shadow:inset 0 0 0 5px #fffaf8,inset 0 0 0 6px #d4b0712e}
.baby-toy-theme .paper{background:radial-gradient(circle 120px at 92% 16%,#f5dce8aa,#f5dce800 70%),radial-gradient(circle 160px at 3% 88%,#eee1f2aa,#eee1f200 72%),var(--paper-noise),#fffaf7}
.baby-toy-theme .sage-wash{background:radial-gradient(circle 150px at 12% 16%,#f1d9e6b8,#f1d9e600 70%),radial-gradient(circle 170px at 94% 82%,#e9def1c7,#e9def100 73%),linear-gradient(165deg,#fff9fb,#f6e9f0)}
.baby-toy-theme .forest{background:radial-gradient(ellipse 90% 55% at 50% 18%,#a9758f 0%,#a9758f00 70%),radial-gradient(ellipse 80% 40% at 0% 100%,#4b2d3ca8,#4b2d3c00 80%),#765467}
.baby-toy-theme .glass-scene{background:radial-gradient(circle 130px at 16% 28%,#f0bfd3b5,#f0bfd300 100%),radial-gradient(circle 160px at 88% 62%,#ead8f0d0,#ead8f000 100%),radial-gradient(circle 90px at 70% 14%,#ffffffc8,#ffffff00 100%),linear-gradient(165deg,#f9edf3 0%,#ede3f0 50%,#d9bdd0 100%)}
.baby-toy-theme .reception{background:radial-gradient(ellipse 80% 28% at 50% 0%,#ffddea66,#ffddea00 80%),radial-gradient(ellipse 70% 36% at 0% 100%,#eadff1b8,#eadff100 72%),var(--paper-noise),#fffaf7}
.baby-toy-theme .petal-drift i:not(.mote),.baby-toy-theme .falling{background:linear-gradient(145deg,#f5bfd5,#d793b3)!important}
.baby-toy-theme .moment-node{background:#9a6680}
.baby-toy-theme .timeline::before{background:linear-gradient(#9a6680,#9a6680 88%,#9a668000)}
.baby-toy-theme .detail-note-row{border-color:#d8b0c45e;background:#fff9fbd1}
.baby-toy-theme .lightbox{background:#513645e8}
.baby-toy-theme .opening-names .amp,.baby-toy-theme .names .amp,.baby-toy-theme .closing-names .amp{font-family:var(--display);font-style:italic;font-size:1.25rem;letter-spacing:.08em;color:var(--gold-dark)}

/* Los juguetes se ensamblan pieza por pieza al aparecer. */
.svg-toy{display:block;overflow:visible;pointer-events:none}
.svg-toy .toy-part{transform-box:fill-box;transform-origin:center;opacity:0;transform:translateY(11px) scale(.06) rotate(-16deg)}
body.ready .opening .svg-toy .toy-part,.page.in-view .svg-toy .toy-part,html.static .svg-toy .toy-part{opacity:1;transform:none;transition:transform 1.05s var(--spring) var(--td,0s),opacity .42s ease var(--td,0s)}
.svg-toy .toy-line{vector-effect:non-scaling-stroke}
.svg-toy .toy-motion{transform-box:fill-box;transform-origin:50% 88%}
.hero-teddy .toy-motion,.closing-teddy .toy-motion,.mini-teddy .toy-motion{animation:teddy-breathe 3.8s ease-in-out 1.8s infinite alternate}
.hero-horse .toy-motion,.mini-horse .toy-motion,.altar-horse .toy-motion{animation:horse-rock-svg 3.2s ease-in-out 1.6s infinite alternate}
.toy-stamp .toy-motion{animation:none}

/* Portada: casita construida por capas y juguetes SVG. */
.toyhouse-opening{display:grid;place-items:center;isolation:isolate}
.mini-house{position:relative;z-index:1;width:210px;height:146px;margin-top:15px;filter:drop-shadow(0 12px 11px #6f45542e);animation:house-float 5s ease-in-out infinite}
.mini-roof{position:absolute;left:21px;top:2px;width:168px;height:62px;background:#d99db8;clip-path:polygon(50% 0,100% 100%,0 100%);border-radius:12px}
.mini-chimney{position:absolute;right:42px;top:21px;width:20px;height:34px;border-radius:3px 3px 0 0;background:#b97c99}
.mini-wall{position:absolute;left:34px;top:50px;width:142px;height:88px;border:4px solid #fff9fb;border-radius:4px 4px 10px 10px;background:linear-gradient(90deg,#f8e8ef 0 49%,#fff8f5 49% 51%,#f8e8ef 51%);box-shadow:inset 0 0 0 1px #c99bad55}
.mini-window{position:absolute;top:72px;width:34px;height:30px;border:3px solid #fff;background:#c9dbe8;border-radius:16px 16px 3px 3px;box-shadow:0 0 0 1px #b3819855}
.mini-window i{position:absolute;left:50%;top:0;width:2px;height:100%;background:#fff;transform:translateX(-50%)}
.mini-window-a{left:49px}.mini-window-b{right:49px}
.mini-door{position:absolute;left:88px;bottom:8px;width:35px;height:54px;border:3px solid #fff7f9;border-radius:17px 17px 2px 2px;background:#a96c89}
.mini-door i{position:absolute;right:6px;top:28px;width:4px;height:4px;border-radius:50%;background:#efd39a}
.mini-teddy{position:absolute;z-index:3;left:6px;bottom:2px;width:58px;height:70px;filter:drop-shadow(0 5px 4px #5f3f4b25)}
.mini-horse{position:absolute;z-index:3;right:0;bottom:2px;width:66px;height:58px;filter:drop-shadow(0 5px 4px #5f3f4b25)}
.mini-block{position:absolute;z-index:4;bottom:4px;display:grid;place-items:center;width:24px;height:24px;border:2px solid #fff9fb;border-radius:4px;color:#765467;font:600 11px var(--sans);box-shadow:0 3px 7px #76546722}.block-a{left:60px;background:#efd0dd;transform:rotate(-8deg)}.block-b{left:74px;bottom:25px;background:#ded2eb;transform:rotate(7deg)}

/* Botón inicial: el viejo sello se convierte en un medallón con osito. */
.stamp-button{display:grid;place-items:center}
.toy-stamp-disc{position:absolute;inset:6px;border-radius:50%;background:radial-gradient(circle at 38% 28%,#fffefb 0 46%,#f5e3ea 72%,#dba8bf 100%);border:2px solid #c7a365;box-shadow:inset 0 0 0 5px #fff9f8,inset 0 0 0 6px #d8b67a80,0 8px 14px #51364535}
.toy-stamp{position:relative;z-index:2;width:74%!important;height:74%!important;filter:drop-shadow(0 4px 3px #51364528)!important}
.baby-toy-theme .stamp-button::before,.baby-toy-theme .stamp-button::after{border-color:#f0c6d999}

/* Hero: habitación de juguetes, sin personajes humanos. */
.toy-room{background:linear-gradient(#f9e8ef 0 74%,#ead5c6 74%);transform:scale(1.08);transition:transform 2.8s var(--ease) .3s;overflow:hidden}
.hero.in-view .toy-room,html.static .toy-room{transform:scale(1)}
.room-wall{position:absolute;inset:0 0 26%;background:repeating-linear-gradient(90deg,#f9e9ef 0 18px,#f6e2ea 18px 20px)}
.room-wall::before{content:'';position:absolute;inset:18px 16px auto;height:1px;background:#c79bab4f;box-shadow:0 24px #c79bab33}
.room-window{position:absolute;left:24px;top:40px;width:76px;height:100px;border:6px solid #fff8f8;border-radius:38px 38px 4px 4px;background:linear-gradient(#c9dce7,#f8e8e8 75%);box-shadow:0 0 0 1px #bb8da055}
.room-window::before,.room-window::after{content:'';position:absolute;background:#fff8f8}.room-window::before{left:50%;top:0;width:4px;height:100%;transform:translateX(-50%)}.room-window::after{left:0;top:50%;width:100%;height:4px;transform:translateY(-50%)}
.curtain{position:absolute;z-index:2;top:-4px;width:25px;height:98px;background:#dca7bf;box-shadow:inset 0 0 0 1px #bd839d55}.curtain-l{left:-17px;border-radius:10px 3px 18px 8px;transform:rotate(5deg)}.curtain-r{right:-17px;border-radius:3px 10px 8px 18px;transform:rotate(-5deg)}
.window-star{position:absolute;z-index:3;color:#fff9d5;font-style:normal;text-shadow:0 0 7px #fff}.star-a{left:14px;top:19px;font-size:10px;animation:sparkle 2s ease-in-out infinite}.star-b{right:11px;top:37px;font-size:7px;animation:sparkle 2.8s ease-in-out -.8s infinite}
.room-shelf{position:absolute;right:21px;top:66px;width:70px;height:6px;border-radius:4px;background:#b78770;box-shadow:0 4px 6px #704d4030}.room-shelf::after{content:'';position:absolute;left:8px;top:7px;width:5px;height:22px;background:#b78770;box-shadow:48px 0 #b78770}.room-shelf i,.room-shelf b,.room-shelf em{position:absolute;bottom:6px;border-radius:5px 5px 2px 2px}.room-shelf i{left:8px;width:14px;height:24px;background:#c895b2}.room-shelf b{left:28px;width:13px;height:18px;background:#d9c7e6}.room-shelf em{right:8px;width:16px;height:28px;background:#e6bf8e}
.room-rug{position:absolute;left:38px;bottom:13px;width:126px;height:45px;border-radius:50%;background:repeating-radial-gradient(ellipse,#ead1dc 0 9px,#f7e8ee 10px 16px);transform:rotate(-4deg)}
.room-cradle{position:absolute;right:16px;bottom:38px;width:72px;height:45px;border:3px solid #b5826c;border-radius:3px 3px 26px 26px;background:#f8edf1;transform:rotate(2deg)}.room-cradle::before{content:'';position:absolute;left:8px;right:8px;top:10px;height:13px;border-radius:50%;background:#dfabc1}.room-cradle::after{content:'';position:absolute;left:50%;top:-45px;width:2px;height:45px;background:#b5826c}.room-cradle i{position:absolute;left:50%;top:-48px;width:44px;height:30px;border:2px solid #b5826c;border-left-color:transparent;border-bottom-color:transparent;border-radius:50%;transform:translateX(-50%) rotate(-10deg)}
.hero-teddy{position:absolute;z-index:4;left:74px;bottom:36px;width:92px;height:112px;filter:drop-shadow(0 7px 5px #76546725)}
.hero-horse{position:absolute;z-index:3;left:4px;bottom:20px;width:98px;height:84px;filter:drop-shadow(0 7px 5px #76546720)}
.toy-blocks{position:absolute;z-index:4;right:21px;bottom:20px;display:flex;align-items:flex-end;gap:2px}.toy-blocks i{display:grid;place-items:center;width:22px;height:22px;border:2px solid #fff9fb;border-radius:4px;background:#e6bfd0;color:#765467;font:600 10px var(--sans);font-style:normal;box-shadow:0 3px 5px #76546720}.toy-blocks i:nth-child(2){transform:translateY(-12px) rotate(5deg);background:#ded0e9}.toy-blocks i:nth-child(3){transform:rotate(-5deg);background:#ead8bd}

/* Caballito SVG del bloque del lugar. */
.altar-horse{position:absolute;z-index:3;left:50%;top:51%;width:112px;height:98px;transform:translate(-50%,-50%);filter:drop-shadow(0 8px 6px #51364524)}

/* Cierre: osito grande interactivo. */
.closing-teddy{width:100%;height:100%;padding:8%;filter:drop-shadow(0 12px 12px #3a1e2d44)}
.toss:hover .closing-teddy{filter:drop-shadow(0 15px 14px #2f17233f)}

@keyframes house-float{50%{transform:translateY(-4px)}}
@keyframes teddy-breathe{0%{transform:translateY(0) rotate(-1deg) scale(1)}100%{transform:translateY(-3px) rotate(1deg) scale(1.018)}}
@keyframes horse-rock-svg{0%{transform:rotate(-3deg)}100%{transform:rotate(3deg)}}
@keyframes sparkle{0%,100%{opacity:.35;transform:scale(.7)}50%{opacity:1;transform:scale(1.3)}}

@media (max-height:720px){.mini-house{transform:scale(.9)}.hero-teddy{width:82px;height:100px}.hero-horse{width:88px;height:76px}.closing-teddy{padding:12%}}
@media (prefers-reduced-motion:reduce){.mini-house,.svg-toy .toy-motion{animation:none!important}.svg-toy .toy-part{transition:none!important}}


/* ========================================================================== */
/* AJUSTES OCT-2026 · versión más clara, GIF central, casitas y WA            */
/* ========================================================================== */
.baby-toy-theme .cn-calendar-button{display:none!important}
.baby-toy-theme #recepcion[hidden],
.baby-toy-theme #detalles[hidden]{display:none!important}

.baby-toy-theme .countdown-soft{background:radial-gradient(circle 180px at 12% 12%,#f5ddea9a,#f5ddea00 72%),radial-gradient(circle 180px at 88% 84%,#eadff0b3,#eadff000 73%),linear-gradient(180deg,#fcf6f8,#f7edf3 62%,#fdf8fa);color:var(--ink)}
.baby-toy-theme .countdown-soft .eyebrow,
.baby-toy-theme .countdown-soft .event-date,
.baby-toy-theme .countdown-soft h2{color:var(--forest)}
.baby-toy-theme .countdown-soft h2 em{color:var(--olive)}
.baby-toy-theme .countdown-soft .windows{max-width:380px;gap:16px;margin-top:1rem}
.baby-toy-theme .countdown-soft .window{padding:1.55rem .35rem 1rem;border:1px solid #dcb4c5; border-radius:0 0 16px 16px;background:linear-gradient(180deg,#fffefd,#f7e7ef 78%);box-shadow:0 12px 24px #c997ae22, inset 0 0 0 4px #fff7fa;overflow:visible}
.baby-toy-theme .countdown-soft .window::before{content:'';position:absolute;left:50%;top:-26px;transform:translateX(-50%);width:0;height:0;border-left:42px solid transparent;border-right:42px solid transparent;border-bottom:28px solid #e7c9d9;filter:drop-shadow(0 3px 4px #b77f9925)}
.baby-toy-theme .countdown-soft .window::after{content:'';position:absolute;left:50%;top:-19px;transform:translateX(-50%);width:52px;height:11px;border-radius:4px 4px 0 0;background:#c487a2}
.baby-toy-theme .countdown-soft .window .odometer{color:#ab7d3b}
.baby-toy-theme .countdown-soft .window small{color:#9b7285}
.baby-toy-theme .countdown-decor{display:flex;align-items:flex-end;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:1.2rem;min-height:40px}
.baby-toy-theme .decor-toy,.baby-toy-theme .hero-toy{position:relative;display:inline-block}
.baby-toy-theme .toy-book{width:28px;height:22px;border-radius:4px 4px 2px 2px;background:linear-gradient(90deg,#d79eb8 0 48%,#c48ba5 48% 52%,#edd2df 52%);box-shadow:0 4px 10px #ba829b26}
.baby-toy-theme .toy-book::before{content:'';position:absolute;left:5px;right:5px;top:5px;height:2px;background:#fff6fb;box-shadow:0 5px #fff6fb}
.baby-toy-theme .toy-book.stack-b{transform:translateY(3px) rotate(-5deg);background:linear-gradient(90deg,#ccbde7 0 48%,#baa7db 48% 52%,#ece5fa 52%)}
.baby-toy-theme .toy-book.stack-a{transform:rotate(5deg)}
.baby-toy-theme .toy-ball{width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#fff7fb 0 18%,#e7b8cc 19% 48%,#c487a2 49% 100%);box-shadow:0 4px 10px #ba829b2b}
.baby-toy-theme .toy-duck{width:32px;height:22px;background:#f1d597;border-radius:14px 14px 10px 10px;box-shadow:0 4px 10px #d1a85c24}
.baby-toy-theme .toy-duck::before{content:'';position:absolute;right:-4px;top:3px;width:13px;height:13px;border-radius:50%;background:#f1d597}
.baby-toy-theme .toy-duck::after{content:'';position:absolute;right:-8px;top:8px;border-left:7px solid #e2aa74;border-top:4px solid transparent;border-bottom:4px solid transparent}
.baby-toy-theme .toy-block{display:grid;place-items:center;width:24px;height:24px;border-radius:5px;background:#f0d7e2;border:2px solid #fff7fb;color:#77566a;font:600 11px var(--sans);box-shadow:0 4px 10px #ba829b26}
.baby-toy-theme .toy-rattle{width:26px;height:26px;border-radius:50%;border:6px solid #e7bfd0;box-shadow:0 4px 10px #ba829b23}
.baby-toy-theme .toy-rattle::before{content:'';position:absolute;left:50%;bottom:-14px;width:8px;height:16px;background:#d9a8bb;border-radius:0 0 6px 6px;transform:translateX(-50%)}

.baby-toy-theme .gif-room{display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:linear-gradient(180deg,#fffdfb,#f7eef3 68%,#f0dfe7);padding:14px 10px 18px}
.baby-toy-theme .hero-gif-frame{position:relative;width:min(100%,210px);height:245px;padding:10px;border:2px solid #d9b2c2;border-radius:22px;background:linear-gradient(180deg,#fffefd,#f7e6ee);box-shadow:inset 0 0 0 6px #fff7fa,0 12px 28px #c692a926}
.baby-toy-theme .hero-gif-frame::before{content:'';position:absolute;inset:-10px;border:1px solid #e3c5d2;border-radius:26px}
.baby-toy-theme .hero-gif-frame::after{content:'';position:absolute;left:16px;right:16px;bottom:-12px;height:18px;border-radius:999px;background:radial-gradient(ellipse,#d5b0c04d,#d5b0c000 70%)}
.baby-toy-theme .hero-doll-gif{width:100%;height:100%;object-fit:contain;border-radius:16px;background:radial-gradient(circle at 50% 20%,#fff8fb,#f7e6ee)}
.baby-toy-theme .hero-toy-row{display:flex;align-items:flex-end;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px;padding:0 8px}
.baby-toy-theme .hero-toy-row .toy-book,.baby-toy-theme .hero-toy-row .toy-ball,.baby-toy-theme .hero-toy-row .toy-duck,.baby-toy-theme .hero-toy-row .toy-block,.baby-toy-theme .hero-toy-row .toy-rattle{transform:scale(1.08)}

.baby-toy-theme .lights-in-ceremony{margin-top:1.2rem;margin-bottom:1rem}
.baby-toy-theme .dollhouse-altar{width:min(340px,92%);margin-top:.6rem;margin-bottom:1.2rem}
.baby-toy-theme .dollhouse-scene{width:100%;height:auto;filter:drop-shadow(0 16px 22px #c48aa12a)}
.baby-toy-theme .dollhouse-scene .toy-motion{transform-origin:50% 92%;animation:none!important}

.baby-toy-theme .rsvp-simple{background:radial-gradient(circle 150px at 12% 18%,#f3dce8b8,#f3dce800 72%),radial-gradient(circle 180px at 88% 82%,#e9dff2b8,#e9dff200 74%),linear-gradient(165deg,#fffafd,#f7eef3)}
.baby-toy-theme .rsvp-panel-simple{display:grid;place-items:center;gap:1rem;padding:2.2rem 1.4rem}
.baby-toy-theme .wa-button{min-width:min(100%,280px);background:#b97a97;border-color:#b97a97;color:#fff7fb;box-shadow:0 14px 24px #c58ca62e}
.baby-toy-theme .wa-button:hover{transform:translateY(-2px)}

.baby-toy-theme .closing-soft{background:radial-gradient(circle 160px at 10% 14%,#f4dbe8b5,#f4dbe800 70%),radial-gradient(circle 170px at 90% 84%,#eadff1c2,#eadff100 72%),linear-gradient(180deg,#fffafc,#f6ecf2 70%,#fdf8fa);color:var(--forest)}
.baby-toy-theme .closing-soft .closing-names .script-name{color:var(--forest)}
.baby-toy-theme .closing-soft .closing-names .amp{color:var(--gold-dark)}
.baby-toy-theme .closing-soft h2,
.baby-toy-theme .closing-soft .hashtag,
.baby-toy-theme .closing-soft .closing-date,
.baby-toy-theme .closing-soft .brand{color:var(--forest)}
.baby-toy-theme .quiet-bear{display:grid;place-items:center;width:min(185px,56vw);aspect-ratio:1;margin:0 auto .8rem;pointer-events:none}
.baby-toy-theme .quiet-bear .closing-teddy{filter:drop-shadow(0 12px 12px #c48aa137)}

@media (max-width:420px){
  .baby-toy-theme .countdown-soft .windows{gap:10px}
  .baby-toy-theme .countdown-soft .window::before{border-left-width:34px;border-right-width:34px;border-bottom-width:24px}
  .baby-toy-theme .hero-gif-frame{height:232px}
}


/* ========================================================================== */
/* MUÑECAS DECORATIVAS /assets/images/mune2.png ... mune6.png                */
/* ========================================================================== */
.baby-toy-theme .section-doll{
  position:absolute;
  z-index:7;
  display:block;
  width:auto;
  max-width:none;
  pointer-events:none;
  user-select:none;
  filter:drop-shadow(0 14px 16px #8c5f722c);
  opacity:0;
  transform:translateY(28px) scale(.88);
  transition:opacity .75s ease,transform 1.15s var(--spring),filter .35s ease;
}
.baby-toy-theme .page.in-view .section-doll,
html.static .baby-toy-theme .section-doll{
  opacity:1;
  transform:none;
}
.baby-toy-theme .story-with-doll,
.baby-toy-theme .schedule-with-doll{position:relative;isolation:isolate}

/* Mune3: asomándose detrás de la carta. */
.baby-toy-theme .doll-story{
  left:-72px;
  bottom:-18px;
  width:132px;
  transform:translate(-24px,28px) rotate(-7deg) scale(.86);
  z-index:-1;
}
.baby-toy-theme .story.in-view .doll-story,
html.static .baby-toy-theme .doll-story{
  transform:translate(0,0) rotate(-4deg) scale(1);
}

/* Mune4: acompaña el contador sin tapar las casitas. */
.baby-toy-theme .countdown-doll-wrap{
  position:relative;
  width:min(390px,100%);
  height:0;
  z-index:4;
  pointer-events:none;
}
.baby-toy-theme .doll-countdown{
  right:-18px;
  top:-116px;
  width:92px;
  transform:translate(22px,18px) rotate(7deg) scale(.9);
}
.baby-toy-theme .countdown-page.in-view .doll-countdown,
html.static .baby-toy-theme .doll-countdown{
  transform:translate(0,0) rotate(3deg) scale(1);
}

/* Mune2: vive delante de la casita SVG. */
.baby-toy-theme .dollhouse-altar{overflow:visible;isolation:isolate}
.baby-toy-theme .doll-house{
  right:5%;
  bottom:5%;
  width:102px;
  transform:translate(30px,12px) rotate(4deg) scale(.88);
  filter:drop-shadow(0 16px 14px #986b7f33);
}
.baby-toy-theme .ceremony.in-view .doll-house,
html.static .baby-toy-theme .doll-house{
  transform:translate(0,0) rotate(1deg) scale(1);
}

/* Mune6: personaje lateral del itinerario. */
.baby-toy-theme .doll-schedule{
  right:-72px;
  bottom:18px;
  width:118px;
  z-index:0;
  transform:translate(30px,24px) rotate(5deg) scale(.86);
}
.baby-toy-theme .schedule-page.in-view .doll-schedule,
html.static .baby-toy-theme .doll-schedule{
  transform:translate(0,0) rotate(2deg) scale(1);
}
.baby-toy-theme .schedule-with-doll > :not(.section-doll){position:relative;z-index:1}

/* Mune5: cierre más tierno, acompañando al oso sin interacción. */
.baby-toy-theme .closing-characters{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  width:min(310px,82vw);
  min-height:185px;
  margin:0 auto .6rem;
}
.baby-toy-theme .closing-characters .quiet-bear{
  width:150px;
  margin:0 -8px 0 0;
  flex:0 0 auto;
}
.baby-toy-theme .doll-closing{
  position:relative;
  width:112px;
  align-self:flex-end;
  margin-left:-20px;
  transform:translate(28px,18px) rotate(6deg) scale(.88);
}
.baby-toy-theme .closing.in-view .doll-closing,
html.static .baby-toy-theme .doll-closing{
  transform:translate(0,0) rotate(2deg) scale(1);
}

/* Un movimiento mínimo después de entrar: parecen parte de la escena. */
@media (prefers-reduced-motion:no-preference){
  .baby-toy-theme .story.in-view .doll-story{animation:doll-float-left 5.4s ease-in-out 1.25s infinite alternate}
  .baby-toy-theme .countdown-page.in-view .doll-countdown{animation:doll-float-right 4.8s ease-in-out 1.35s infinite alternate}
  .baby-toy-theme .ceremony.in-view .doll-house{animation:doll-float-right 5.8s ease-in-out 1.35s infinite alternate}
  .baby-toy-theme .schedule-page.in-view .doll-schedule{animation:doll-float-right 5.2s ease-in-out 1.45s infinite alternate}
  .baby-toy-theme .closing.in-view .doll-closing{animation:doll-float-right 5.5s ease-in-out 1.3s infinite alternate}
}
@keyframes doll-float-left{from{translate:0 0;rotate:-1deg}to{translate:0 -7px;rotate:1.5deg}}
@keyframes doll-float-right{from{translate:0 0;rotate:1deg}to{translate:0 -7px;rotate:-1.5deg}}

@media(max-width:480px){
  .baby-toy-theme .doll-story{left:-48px;width:104px;bottom:-8px}
  .baby-toy-theme .doll-countdown{right:-6px;top:-104px;width:76px}
  .baby-toy-theme .doll-house{right:1%;bottom:7%;width:82px}
  .baby-toy-theme .doll-schedule{right:-42px;width:92px;bottom:26px}
  .baby-toy-theme .closing-characters{width:min(280px,88vw);min-height:170px}
  .baby-toy-theme .closing-characters .quiet-bear{width:138px}
  .baby-toy-theme .doll-closing{width:96px;margin-left:-24px}
}


/* ========================================================================== */
/* AJUSTES V4 · muñecas más grandes, escena por página y cierre unificado     */
/* ========================================================================== */
.baby-toy-theme #historia{background:radial-gradient(circle 190px at 14% 88%,#f4d4dfc9,#f4d4df00 70%),radial-gradient(circle 180px at 88% 18%,#efe1d1b8,#efe1d100 72%),linear-gradient(180deg,#fff9fb,#f8eef2 70%,#f5e6eb)}
.baby-toy-theme #fecha{background:radial-gradient(circle 180px at 50% 8%,#f4d2df99,#f4d2df00 68%),radial-gradient(circle 180px at 10% 90%,#f1e1cc8f,#f1e1cc00 70%),linear-gradient(180deg,#fef9fb,#f8eef2 72%,#f6e8ec)}
.baby-toy-theme #recuerdos{background:radial-gradient(circle 220px at 82% 20%,#dbe6f6b8,#dbe6f600 72%),radial-gradient(circle 170px at 14% 90%,#efe1f5b4,#efe1f500 70%),linear-gradient(180deg,#fcfbfe,#f5eff7 70%,#f8eef2)}
.baby-toy-theme #ceremonia{background:radial-gradient(circle 180px at 82% 18%,#f4dce7bf,#f4dce700 72%),radial-gradient(circle 150px at 14% 86%,#f0e2ce9e,#f0e2ce00 72%),linear-gradient(180deg,#fffafb,#f8eef2 70%,#f5e6ec)}
.baby-toy-theme #horario{background:radial-gradient(circle 180px at 15% 16%,#f1d7e3bf,#f1d7e300 74%),radial-gradient(circle 170px at 88% 82%,#f7d9e6c0,#f7d9e600 74%),linear-gradient(180deg,#fef9fb,#f7edf2 70%,#f5e6ec)}
.baby-toy-theme .final-union{background:radial-gradient(circle 190px at 16% 18%,#dce7f7ba,#dce7f700 72%),radial-gradient(circle 170px at 88% 88%,#f4d7e3c2,#f4d7e300 74%),linear-gradient(180deg,#fffbfd,#f6edf4 72%,#f8eff4);color:var(--forest)}
.baby-toy-theme .final-rsvp{padding-bottom:28px;border-bottom-left-radius:34px;border-bottom-right-radius:34px}
.baby-toy-theme .final-closing{padding-top:14px;margin-top:-12px;border-top-left-radius:34px;border-top-right-radius:34px;box-shadow:0 -12px 30px #b8849b18 inset}

.baby-toy-theme .section-doll{filter:drop-shadow(0 16px 18px #8c5f7230)}
.baby-toy-theme .page.in-view .section-doll{opacity:1}
.baby-toy-theme .doll-story{left:-88px;bottom:-22px;width:156px;z-index:2}
.baby-toy-theme .doll-countdown{right:-28px;top:-128px;width:112px}
.baby-toy-theme .doll-gallery{right:-24px;bottom:16px;width:142px;z-index:5;transform:translate(28px,20px) rotate(4deg) scale(.88)}
.baby-toy-theme .gallery-page.in-view .doll-gallery,
html.static .baby-toy-theme .doll-gallery{transform:translate(0,0) rotate(1.5deg) scale(1);opacity:1}
.baby-toy-theme .doll-house{right:-1%;bottom:1%;width:126px}
.baby-toy-theme .doll-schedule{right:-88px;bottom:10px;width:136px}
.baby-toy-theme .doll-rsvp{position:relative;opacity:1;transform:none;width:min(210px,56vw);max-width:230px;filter:drop-shadow(0 18px 24px #88a7c93b)}
.baby-toy-theme .doll-closing{display:none!important}
.baby-toy-theme .rsvp-stage{display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:8px;margin-top:1.1rem;padding:1.2rem 1rem 0}
.baby-toy-theme .rsvp-copy-block{position:relative;padding:1.35rem 1.25rem;border:1px solid #dcc5d4;background:#fff9fcce;border-radius:28px;box-shadow:0 16px 28px #c794aa1e;text-align:left}
.baby-toy-theme .rsvp-copy-block h2{margin:0 0 .65rem;font-size:clamp(2.5rem,9vw,3.4rem);line-height:1.02;text-align:left}
.baby-toy-theme .rsvp-copy-block h2 em{display:block;color:#95a8d5}
.baby-toy-theme .rsvp-copy-block .copy{max-width:24rem;margin:0;color:#6a5660}
.baby-toy-theme .rsvp-deadline{margin:1rem 0 1.1rem;font:italic 500 1.15rem/1.3 var(--display);color:#7c6270}
.baby-toy-theme .rsvp-deadline strong{color:#95a8d5;font-style:normal}
.baby-toy-theme .rsvp-visual{position:relative;display:grid;place-items:end center;min-height:250px}
.baby-toy-theme .rsvp-glow{position:absolute;inset:auto 14px 18px 14px;height:48px;border-radius:50%;background:radial-gradient(ellipse,#95a8d54a,#95a8d500 70%)}
.baby-toy-theme .rsvp-panel-simple{padding:0}
.baby-toy-theme .wa-button{background:linear-gradient(135deg,#92a6d3,#b47ea2);border-color:#8fa4d1;color:#fffdfd}

.baby-toy-theme .gif-closing{display:grid;place-items:center;min-height:190px;margin:0 auto .45rem;width:min(250px,66vw)}
.baby-toy-theme .closing-gif-doll{display:block;width:min(230px,60vw);max-width:250px;filter:drop-shadow(0 18px 24px #8aa1cb38)}
.baby-toy-theme .closing-soft .closing-message{max-width:22rem}
.baby-toy-theme .closing-soft .brand{margin-top:1rem}
.baby-toy-theme .closing-soft .cn-share-button{background:linear-gradient(135deg,#94a8d3,#b17e9f);color:#fffdfd;border-color:#96aad4}

.baby-toy-theme .gallery-page .arches{position:relative;overflow:visible}
.baby-toy-theme .gallery-page .frame{background:linear-gradient(180deg,#f7e5eb,#edd8e3)}
.baby-toy-theme .story .letter,
.baby-toy-theme .glass-panel{box-shadow:0 22px 40px #ca97ac1a}

@media (prefers-reduced-motion:no-preference){
  .baby-toy-theme .gallery-page.in-view .doll-gallery{animation:doll-float-right 5.3s ease-in-out 1.25s infinite alternate}
  .baby-toy-theme .doll-rsvp{animation:doll-float-right 5.6s ease-in-out 1.2s infinite alternate}
}
@media(max-width:480px){
  .baby-toy-theme .doll-story{left:-54px;width:126px;bottom:-8px}
  .baby-toy-theme .doll-countdown{right:-10px;top:-114px;width:90px}
  .baby-toy-theme .doll-gallery{right:-10px;bottom:30px;width:104px}
  .baby-toy-theme .doll-house{right:0;bottom:4%;width:98px}
  .baby-toy-theme .doll-schedule{right:-56px;width:108px;bottom:16px}
  .baby-toy-theme .rsvp-stage{grid-template-columns:1fr;gap:4px;padding-inline:0}
  .baby-toy-theme .rsvp-copy-block{text-align:center}
  .baby-toy-theme .rsvp-copy-block h2{text-align:center}
  .baby-toy-theme .rsvp-visual{min-height:205px;place-items:center}
  .baby-toy-theme .doll-rsvp{width:min(190px,52vw)}
  .baby-toy-theme .gif-closing{min-height:168px;width:min(210px,62vw)}
  .baby-toy-theme .closing-gif-doll{width:min(190px,54vw)}
}


/* ========================================================================== */
/* AJUSTE V7 · sección La celebración                                         */
/* ========================================================================== */
.baby-toy-theme #ceremonia{
  background:
    radial-gradient(circle 210px at 18% 18%, #f8e1e9d0, #f8e1e900 68%),
    radial-gradient(circle 210px at 82% 82%, #f3d3e4a8, #f3d3e400 70%),
    linear-gradient(180deg, #fffafc 0%, #f9eff4 70%, #f6e7ee 100%);
}
.baby-toy-theme .lights-in-ceremony{margin-top:.4rem;margin-bottom:.55rem;width:calc(100% + 32px);margin-left:-16px;margin-right:-16px}
.baby-toy-theme .dollhouse-altar{
  position:relative;
  width:min(356px, 96%);
  margin:.15rem auto .85rem;
  padding: .2rem 0 1.2rem;
  overflow:visible;
}
.baby-toy-theme .dollhouse-scene{
  display:block;
  width:100%;
  height:auto;
  filter:drop-shadow(0 18px 24px #c792a52a);
}
.baby-toy-theme .doll-house{
  z-index:3;
  right:-10px;
  bottom:-2px;
  width:144px;
  transform:translate(18px,10px) rotate(2deg) scale(.92);
  filter:drop-shadow(0 18px 20px #99697e34);
}
.baby-toy-theme .ceremony.in-view .doll-house,
html.static .baby-toy-theme .doll-house{
  transform:translate(0,0) rotate(0deg) scale(1);
}
.baby-toy-theme .venue-card{
  width:min(100%, 348px);
  margin:.1rem auto 0;
  padding:1.25rem 1rem 1.2rem;
  border:1px solid #e4c8d5;
  border-radius:30px;
  background:linear-gradient(180deg,#fffdfd,#fff6fa 70%,#f9edf3);
  box-shadow:0 18px 34px #c795aa1e, inset 0 1px 0 #fff;
}
.baby-toy-theme .venue-card h2{margin:0}
.baby-toy-theme .venue-card .venue-time{margin-top:.55rem;font-size:clamp(2.25rem,9vw,3.05rem)}
.baby-toy-theme .venue-card .venue-name{margin-top:.45rem;font-size:clamp(1.5rem,6vw,1.78rem);line-height:1.2}
.baby-toy-theme .venue-card .venue-address{margin-top:.35rem;color:#8b7882}
.baby-toy-theme .venue-card .button{width:min(100%, 284px);margin-top:1.1rem;background:linear-gradient(135deg,#b77ea1,#d386a4);border-color:#bc80a4;color:#fffdfd;box-shadow:0 10px 22px #c3859f2b}
.baby-toy-theme .venue-card .button:hover{transform:translateY(-2px)}

@media(max-width:480px){
  .baby-toy-theme .dollhouse-altar{width:min(332px, 97%);margin-bottom:.7rem;padding-bottom:1rem}
  .baby-toy-theme .doll-house{right:-6px;bottom:-2px;width:132px}
  .baby-toy-theme .venue-card{width:min(100%, 334px);padding:1.1rem .95rem 1.1rem}
}


/* ========================================================================== */
/* AJUSTE V8 · sección Un mundo de juguetes                                   */
/* ========================================================================== */
.baby-toy-theme #recuerdos{
  background:
    radial-gradient(circle 220px at 16% 16%, #eef4f9c9, #eef4f900 68%),
    radial-gradient(circle 180px at 82% 18%, #e8edf7c0, #e8edf700 72%),
    radial-gradient(circle 200px at 86% 88%, #f6e7efbd, #f6e7ef00 72%),
    linear-gradient(180deg, #fffdfd 0%, #f8f7fb 55%, #f4eff5 100%);
}
.baby-toy-theme #recuerdos .eyebrow{color:#819ab8}
.baby-toy-theme #recuerdos h2{color:#75708d}
.baby-toy-theme #recuerdos h2 em{color:#9ebcdd}
.baby-toy-theme .gallery-page .arches{
  max-width:362px;
  height:min(98vw, 430px, 52svh);
  margin-top:1.55rem;
  padding-bottom:18px;
}
.baby-toy-theme .gallery-page .frame{
  border:4px solid #f8fcff;
  background:linear-gradient(180deg,#f8eef3,#ecdbe6 72%);
  box-shadow:0 18px 34px #b8c6db30, inset 0 0 0 2px #d9e3ef;
}
.baby-toy-theme .gallery-page .frame img{filter:saturate(1.02) brightness(1.01)}
.baby-toy-theme .arches[data-count="2"] .frame[data-slot="0"]{left:3%;width:46%;height:79%}
.baby-toy-theme .arches[data-count="2"] .frame[data-slot="1"]{left:51%;width:46%;height:79%}
.baby-toy-theme .gallery-aura{
  position:absolute;
  right:-6px;
  bottom:14px;
  z-index:3;
  width:154px;
  height:154px;
  border-radius:50%;
  background:radial-gradient(circle at 48% 42%, #fafdff 0 10%, #d6e6f6 20%, #bfd4eb 48%, #bfd4eb55 66%, #bfd4eb00 74%);
  filter:blur(14px);
  opacity:.58;
  pointer-events:none;
}
.baby-toy-theme .doll-gallery{
  right:-6px;
  bottom:-8px;
  width:132px;
  z-index:4;
  transform:translate(22px,18px) rotate(2deg) scale(.92);
  filter:drop-shadow(0 16px 20px #88a8c43b);
}
.baby-toy-theme .gallery-page.in-view .doll-gallery,
html.static .baby-toy-theme .doll-gallery{
  transform:translate(0,0) rotate(0deg) scale(1);
  opacity:1;
}
.baby-toy-theme .arch-garland{top:-1%;opacity:.92}
.baby-toy-theme .gallery-hint{
  margin-top:.9rem;
  padding:.75rem 1rem 0;
  color:#8c8595;
}

@media (prefers-reduced-motion:no-preference){
  .baby-toy-theme .gallery-page.in-view .doll-gallery{animation:doll-float-right 4.8s ease-in-out 1.1s infinite alternate}
}
@media(max-width:480px){
  .baby-toy-theme .gallery-page .arches{max-width:336px;height:min(104vw, 398px, 50svh);padding-bottom:14px}
  .baby-toy-theme .gallery-aura{right:4px;bottom:12px;width:126px;height:126px;filter:blur(12px)}
  .baby-toy-theme .doll-gallery{right:2px;bottom:0;width:116px}
  .baby-toy-theme .gallery-hint{margin-top:.75rem;font-size:1rem}
}


/* ========================================================================== */
/* AJUSTE V10 · galería, casita, horario, confirmación y menú                 */
/* ========================================================================== */
.baby-toy-theme .gallery-page{
  background:
    radial-gradient(circle 200px at 18% 18%, #edf4fcd6, #edf4fc00 70%),
    radial-gradient(circle 180px at 82% 10%, #f5e6f1ca, #f5e6f100 68%),
    linear-gradient(180deg, #fffdfd 0%, #f7f9fc 52%, #f8eef4 100%);
}
.baby-toy-theme .gallery-page h2{color:#76708c}
.baby-toy-theme .gallery-page h2 em{color:#9cb9db}
.baby-toy-theme .gallery-showcase{margin-top:1rem;margin-bottom:1.25rem;display:flex;justify-content:center;align-items:flex-end;min-height:240px}
.baby-toy-theme .gallery-focus-shell{position:relative;width:min(74vw,240px);min-height:230px;display:flex;align-items:flex-end;justify-content:center;transform:translate3d(0,var(--parallax-y,0px),0);will-change:transform}
.baby-toy-theme .gallery-focus-aura{position:absolute;inset:auto 50% 20px auto;translate:50% 0;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,#fefeff 0%,#d6e7f8 28%,#bcd3ec 52%,#c5d8ef55 68%,#c5d8ef00 76%);filter:blur(16px);opacity:.92}
.baby-toy-theme .doll-gallery-focus{position:relative;z-index:2;width:min(72vw,220px);filter:drop-shadow(0 18px 26px #8aa6c93b)}
.baby-toy-theme .gallery-page .arches{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end;width:min(100%,344px);max-width:344px;height:auto;margin:0 auto;padding-top:2.9rem}
.baby-toy-theme .gallery-page .frame{position:relative;left:auto!important;bottom:auto!important;width:auto!important;height:218px!important;border:4px solid #fefcff;border-radius:999px 999px 12px 12px;background:linear-gradient(180deg,#fff8fb,#f1deeb 72%);box-shadow:0 15px 30px #b8c6db26,inset 0 0 0 2px #dbe7f1;overflow:hidden}
.baby-toy-theme .gallery-page .frame img{height:100%;object-fit:cover;object-position:center 55%}
.baby-toy-theme .arch-garland{top:0;left:50%;width:104%;height:auto;transform:translateX(-50%)}
.baby-toy-theme .gallery-hint{margin-top:1rem;color:#8c8595}

.baby-toy-theme .dollhouse-altar{width:min(356px,95%);margin-top:.55rem;margin-bottom:1rem}
.baby-toy-theme .altar-parallax-shell{position:relative;transform:translate3d(0,var(--parallax-y,0px),0);will-change:transform}
.baby-toy-theme .dollhouse-scene{filter:drop-shadow(0 20px 24px #c792a530)}
.baby-toy-theme .doll-house{right:0;bottom:-2px;width:148px;filter:drop-shadow(0 18px 22px #99697e3e)}

.baby-toy-theme #horario{
  background:
    radial-gradient(circle 200px at 18% 16%, #ffe1ee, #ffe1ee00 72%),
    radial-gradient(circle 220px at 88% 26%, #f0d7ff, #f0d7ff00 70%),
    linear-gradient(180deg, #fff8fb 0%, #f9e8f0 48%, #f3d9e7 100%);
}
.baby-toy-theme #horario .glass-panel{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#fffdfa,#fff5f8 20%,#fde8f1 58%,#f5dcec 100%);
  border:1px solid #efcddd;
  box-shadow:0 24px 44px #b47d9a20, inset 0 1px 0 #fff;
}
.baby-toy-theme .schedule-color-wash{position:absolute;inset:0;background:radial-gradient(circle at 82% 78%, #ef86b21a 0, #ef86b21a 18%, transparent 52%),radial-gradient(circle at 84% 86%, #c271ff14 0, #c271ff14 16%, transparent 45%);pointer-events:none}
.baby-toy-theme #horario .eyebrow{color:#a26b84}
.baby-toy-theme #horario .program-title{color:#83566d}
.baby-toy-theme #horario .program-title em{color:#c34b88}
.baby-toy-theme #horario .timeline::before{background:linear-gradient(#c77499,#c77499 88%,#c7749900)}
.baby-toy-theme #horario .moment-node{background:linear-gradient(180deg,#be6f93,#9b5b7d);box-shadow:0 0 0 8px #ffeaf2,0 10px 16px #ab6f9030}
.baby-toy-theme #horario .moment-text h3{color:#8e6076}
.baby-toy-theme #horario .moment-text p,.baby-toy-theme #horario .moment-time{color:#8c7883}
.baby-toy-theme .schedule-aura{width:170px;height:170px;right:-20px;bottom:10px;background:radial-gradient(circle,#fff 0%,#ffc9df 24%,#f7a1c9 46%,#f7a1c940 68%,#f7a1c900 78%);opacity:.8;filter:blur(18px)}
.baby-toy-theme .schedule-doll-wrap{position:absolute;right:-46px;bottom:0;z-index:4;transform:translate3d(0,var(--parallax-y,0px),0);will-change:transform}
.baby-toy-theme .doll-schedule{position:relative;right:auto;bottom:auto;width:168px;max-width:none;filter:drop-shadow(0 18px 26px #aa6b903d)}

.baby-toy-theme .final-rsvp{padding-bottom:44px;min-height:100svh;background:radial-gradient(circle 180px at 80% 14%, #ecdcf7cc, #ecdcf700 68%),linear-gradient(180deg,#fffafb 0%,#fbf2f6 56%,#f6ebf3 100%)}
.baby-toy-theme .rsvp-stage{max-width:344px;margin:1.2rem auto 0;padding:1.6rem 1rem 1.3rem;border:1px solid #e7cada;border-radius:34px;background:linear-gradient(180deg,#fffefd,#fff7fa 68%,#faeef4);box-shadow:0 18px 36px #c794a71e;display:grid;grid-template-columns:1fr;gap:1rem;text-align:center}
.baby-toy-theme .rsvp-copy-block{order:2}
.baby-toy-theme .rsvp-visual{order:1;display:flex;justify-content:center;align-items:flex-end;min-height:220px}
.baby-toy-theme .doll-rsvp{width:min(76vw,220px);margin:0 auto;filter:drop-shadow(0 18px 26px #c694ab35)}
.baby-toy-theme .wa-button{background:linear-gradient(135deg,#c17b99,#b86b92);border-color:#c17b99;color:#fff}

/* Parallax helpers */
.parallax-shell{transform:translate3d(0,var(--parallax-y,0px),0)}

/* Guía inferior / menú */
.baby-toy-theme{
  --guide-surface:#fffafcf0;
  --guide-line:#f0d2df;
  --guide-shadow:#b987a13d;
  --guide-ink:#8d6077;
  --guide-muted:#a47e90;
  --guide-icon:#a46f8b;
  --guide-active:#fff0f6;
  --guide-active-icon:#b25e86;
  --guide-accent:#f4d58c;
  --guide-accent-active:#ebc15a;
  --guide-on-accent:#7b5968;
  --guide-done:#ca88a5;
  --guide-rail-done:#e6b6ca;
  --guide-rail-now:#cc7fa7;
  --guide-rail-todo:#f2dfe8;
  --guide-radius:28px;
  --guide-inner-radius:18px;
  --guide-label-case:none;
  --guide-label-spacing:.03em;
  --guide-label-size:12px;
  --guide-rsvp-size:10px;
}
.cn-guide,.cn-guide-bar,.cn-guide-nav{
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.cn-guide,.cn-guide-bar{
  background:linear-gradient(180deg,#fffafcd9,#fff5f9f2)!important;
  border:1px solid #efd6e2!important;
  box-shadow:0 12px 30px #b7839f33!important;
}
.cn-guide button,.cn-guide a,.cn-guide-bar button,.cn-guide-bar a{
  border-radius:18px!important;
}
.cn-guide [aria-current="page"],.cn-guide .is-active,.cn-guide [aria-pressed="true"],.cn-guide-bar [aria-current="page"],.cn-guide-bar .is-active{
  background:linear-gradient(135deg,#f5d68d,#edc36a)!important;
  color:#7b5968!important;
  box-shadow:0 10px 20px #e2bd6840!important;
}

@media (max-width:480px){
  .baby-toy-theme .gallery-showcase{min-height:224px;margin-bottom:1rem}
  .baby-toy-theme .gallery-focus-shell{width:min(78vw,230px);min-height:214px}
  .baby-toy-theme .gallery-focus-aura{width:196px;height:196px}
  .baby-toy-theme .doll-gallery-focus{width:min(70vw,205px)}
  .baby-toy-theme .gallery-page .arches{width:min(100%,334px);gap:12px;padding-top:2.5rem}
  .baby-toy-theme .gallery-page .frame{height:205px!important}
  .baby-toy-theme .doll-house{width:136px;right:-2px}
  .baby-toy-theme .schedule-doll-wrap{right:-34px;bottom:4px}
  .baby-toy-theme .doll-schedule{width:150px}
  .baby-toy-theme .schedule-aura{width:152px;height:152px;right:-10px}
  .baby-toy-theme .rsvp-stage{max-width:330px;padding:1.45rem .95rem 1.2rem}
  .baby-toy-theme .doll-rsvp{width:min(74vw,198px)}
}


/* ========================================================================== */
/* AJUSTE V12 · muñeca del contador                                           */
/* ========================================================================== */
.baby-toy-theme .countdown-decor{position:relative;z-index:2}
.baby-toy-theme .countdown-doll-wrap{
  position:relative;
  width:min(390px,100%);
  min-height:138px;
  margin:.35rem auto 0;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  z-index:3;
  pointer-events:none;
}
.baby-toy-theme .countdown-aura{
  position:absolute;
  left:50%;
  top:12px;
  transform:translateX(-50%);
  width:130px;
  height:130px;
  border-radius:50%;
  background:radial-gradient(circle,#fff9fd 0%,#ffddea 24%,#f5b7cd 46%,#f5b7cd40 68%,#f5b7cd00 78%);
  filter:blur(14px);
  opacity:.8;
}
.baby-toy-theme .doll-countdown{
  position:relative;
  right:auto;
  top:auto;
  width:112px;
  transform:translateY(16px) scale(.94);
  opacity:0;
  filter:drop-shadow(0 16px 20px #bf8aa238);
  transition:opacity .7s ease, transform .85s cubic-bezier(.22,.8,.2,1);
}
.baby-toy-theme .countdown-page.in-view .doll-countdown,
html.static .baby-toy-theme .doll-countdown{
  opacity:1;
  transform:translateY(0) scale(1);
}
@media (prefers-reduced-motion:no-preference){
  .baby-toy-theme .countdown-page.in-view .doll-countdown{animation:doll-float-right 4.9s ease-in-out 1s infinite alternate}
}
@media(max-width:480px){
  .baby-toy-theme .countdown-doll-wrap{min-height:126px;margin-top:.2rem}
  .baby-toy-theme .countdown-aura{width:118px;height:118px;top:8px}
  .baby-toy-theme .doll-countdown{width:104px}
}


/* ========================================================================== */
/* AJUSTE V13 · casita del inicio, muñeca de apertura y horario centrado      */
/* ========================================================================== */
.baby-toy-theme .doll-open-button{width:clamp(104px,15svh,132px);aspect-ratio:.82;margin-top:.25rem;border-radius:28px;overflow:visible}
.baby-toy-theme .doll-open-button::before,.baby-toy-theme .doll-open-button::after{inset:12% 4%;border-radius:38% 38% 44% 44%;border-color:#e4b9cb9c}
.baby-toy-theme .doll-open-glow{position:absolute;left:50%;top:54%;width:104px;height:104px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#fffafc 0 16%,#f7d9e6 34%,#eeb7cf6a 58%,#eeb7cf00 76%);filter:blur(9px);pointer-events:none}
.baby-toy-theme .opening-button-doll{position:relative;z-index:2;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 12px #70485b38);transition:transform .3s var(--ease),filter .3s ease}
.baby-toy-theme .doll-open-button:hover .opening-button-doll{transform:translateY(-3px) scale(1.045);filter:drop-shadow(0 14px 15px #70485b45)}
.baby-toy-theme .doll-open-button:active .opening-button-doll{transform:scale(.96)}
.baby-toy-theme .ceremony-house-scene{position:relative;min-height:222px;display:grid;place-items:center;padding:18px 0 24px}
.baby-toy-theme .ceremony-house-scale{position:relative;width:250px;height:178px;display:grid;place-items:center}
.baby-toy-theme .ceremony-mini-house{margin:0;transform:scale(1.18);transform-origin:center;animation:none}
.baby-toy-theme .ceremony-house-scene .doll-house{right:-2px;bottom:4px;width:142px;z-index:8}
@media (prefers-reduced-motion:no-preference){.baby-toy-theme .ceremony-mini-house{animation:ceremony-house-float 5.2s ease-in-out infinite}@keyframes ceremony-house-float{0%,100%{transform:scale(1.18) translateY(0)}50%{transform:scale(1.18) translateY(-4px)}}}
.baby-toy-theme .schedule-with-doll{padding-top:1.15rem}
.baby-toy-theme .schedule-doll-wrap{position:relative;right:auto;bottom:auto;top:auto;z-index:4;width:100%;min-height:150px;margin:-.35rem auto .25rem;display:flex;align-items:flex-end;justify-content:center;transform:translate3d(0,var(--parallax-y,0px),0)}
.baby-toy-theme .doll-schedule{position:relative;right:auto;bottom:auto;width:158px;margin:0 auto;transform:none;filter:drop-shadow(0 18px 26px #aa6b903d)}
.baby-toy-theme .schedule-aura{left:50%;right:auto;bottom:auto;top:22px;transform:translateX(-50%);width:172px;height:172px}
.baby-toy-theme #horario .glass-panel .eyebrow{margin-top:.15rem}
.baby-toy-theme #horario .program-title{margin-top:.15rem}
@media(max-width:480px){.baby-toy-theme .doll-open-button{width:108px}.baby-toy-theme .ceremony-house-scene{min-height:210px;padding-top:10px}.baby-toy-theme .ceremony-house-scale{width:235px;height:166px}.baby-toy-theme .ceremony-mini-house{transform:scale(1.11)}.baby-toy-theme .ceremony-house-scene .doll-house{width:128px;right:0;bottom:8px}.baby-toy-theme .schedule-doll-wrap{min-height:138px;margin-top:-.15rem}.baby-toy-theme .doll-schedule{width:146px}.baby-toy-theme .schedule-aura{width:156px;height:156px;top:18px}}
