/* ==========================================================
   Diseño "Mariposas" · XV años · jardín encantado
   frasco de cristal → girar la tapa → enjambre → corona → siguen el dedo
   ========================================================== */

:root {
  --lav: #cbb8e8;
  --lila: #a58fd6;
  --lila-osc: #7a63b8;
  --plata: #c9ccd6;
  --rosa: #f3d3e0;
  --menta: #cfeee2;
  --tinta: #4a3f6b;
  --suave: #7d739a;
  --mariposa-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -42 100 84'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f6f1fd'/%3E%3Cstop offset='.55' stop-color='%23cbb8e8'/%3E%3Cstop offset='1' stop-color='%238f78c9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g)' stroke='%237a63b8' stroke-opacity='.45' stroke-width='1.2'%3E%3Cpath d='M0 -3C-6 -26 -30 -40 -44 -30C-52 -22 -44 -6 -26 -1C-16 1 -6 1 0 0ZM0 1C-14 2 -30 10 -32 24C-33 34 -20 36 -12 28C-6 22 -2 12 0 4Z'/%3E%3Cpath d='M0 -3C6 -26 30 -40 44 -30C52 -22 44 -6 26 -1C16 1 6 1 0 0ZM0 1C14 2 30 10 32 24C33 34 20 36 12 28C6 22 2 12 0 4Z'/%3E%3C/g%3E%3Ccircle cx='-34' cy='-21' r='4' fill='%23fff' fill-opacity='.85'/%3E%3Ccircle cx='34' cy='-21' r='4' fill='%23fff' fill-opacity='.85'/%3E%3Cellipse cx='0' cy='3' rx='2.6' ry='13' fill='%235b4a7a'/%3E%3Cpath d='M-1 -13C-3 -22 -7 -28 -11 -31M1 -13C3 -22 7 -28 11 -31' fill='none' stroke='%235b4a7a' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");

  --s-fondo: transparent;
  --s-tinta: var(--tinta);
  --s-suave: var(--suave);
  --s-acento: var(--lila-osc);
  --s-acento-tinta: #fff;
  --s-tarjeta: rgba(255, 255, 255, .74);
  --s-borde: rgba(165, 143, 214, .3);
  --s-radio: 28px;
  --s-sombra: 0 20px 36px -24px rgba(74, 63, 107, .5);
  --s-fuente: "Cormorant Garamond", Georgia, serif;
  --s-titulo: "Pinyon Script", "Great Vibes", cursive;
  --s-titulo-tam: clamp(2.6rem, 11vw, 3.3rem);
  --s-etiqueta: "Cinzel", Georgia, serif;
  --s-num: "Cinzel", Georgia, serif;
  --s-titulo-color: var(--lila-osc);
}

/* Pinyon Script no está declarada en base.css: se declara aquí (archivos locales) */
@font-face { font-family: "Pinyon Script"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pinyon-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pinyon Script"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/pinyon-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

body {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .9) 0 1px, transparent 2px) 0 0 / 52px 52px,
    radial-gradient(circle at 70% 64%, rgba(255, 255, 255, .75) 0 1px, transparent 2px) 0 0 / 78px 78px,
    linear-gradient(180deg, #efe8fa 0%, #f6eef6 45%, #f1f0f8 70%, #e9f5f0 100%);
  background-attachment: fixed;
  color: var(--tinta);
  font-family: var(--s-fuente);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Jardín (hero) ---------- */
.jardin {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto auto 1.3fr;
  justify-items: center;
  padding: calc(env(safe-area-inset-top) + 46px) 16px calc(env(safe-area-inset-bottom) + 72px);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(80% 50% at 50% 46%, rgba(255, 255, 255, .92), transparent 70%),
    radial-gradient(60% 40% at 12% 88%, rgba(207, 238, 226, .85), transparent 70%),
    radial-gradient(60% 40% at 88% 84%, rgba(243, 211, 224, .8), transparent 70%),
    linear-gradient(180deg, #e2d6f5 0%, #ede5f8 40%, #f5eef6 72%, #e5f3ed 100%);
}

/* Luces desenfocadas (bokeh) */
.jardin__bokeh { position: absolute; inset: 0; pointer-events: none; }
.jardin__bokeh i {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%);
  opacity: .7;
  animation: flotar 9s ease-in-out infinite alternate;
}
.jardin__bokeh i:nth-child(1) { left: 6%; top: 18%; }
.jardin__bokeh i:nth-child(2) { left: 78%; top: 12%; width: 46px; height: 46px; animation-delay: -2s; background: radial-gradient(circle, rgba(243, 211, 224, .95), transparent 70%); }
.jardin__bokeh i:nth-child(3) { left: 84%; top: 46%; width: 90px; height: 90px; animation-delay: -4s; }
.jardin__bokeh i:nth-child(4) { left: 2%; top: 56%; width: 54px; height: 54px; animation-delay: -6s; background: radial-gradient(circle, rgba(207, 238, 226, .95), transparent 70%); }
.jardin__bokeh i:nth-child(5) { left: 30%; top: 8%; width: 30px; height: 30px; animation-delay: -1s; }
.jardin__bokeh i:nth-child(6) { left: 62%; top: 70%; width: 40px; height: 40px; animation-delay: -3s; background: radial-gradient(circle, rgba(203, 184, 232, .9), transparent 70%); }
.jardin__bokeh i:nth-child(7) { left: 16%; top: 76%; width: 64px; height: 64px; animation-delay: -5s; }
.jardin__bokeh i:nth-child(8) { left: 48%; top: 30%; width: 26px; height: 26px; animation-delay: -7s; }
@keyframes flotar { from { transform: translate(0, 0); } to { transform: translate(14px, -26px); } }

/* Guirnalda de focos */
.jardin__guirnalda {
  position: absolute;
  left: 0;
  top: env(safe-area-inset-top);
  width: 100%;
  height: clamp(56px, 13vw, 96px);
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(255, 230, 160, .95));
}
.guirnalda__cable { fill: none; stroke: rgba(122, 99, 184, .45); stroke-width: 1; }
.bombilla path { stroke: rgba(122, 99, 184, .55); stroke-width: 1.6; }
.bombilla circle { fill: #fff5d2; animation: titilar 2.6s ease-in-out infinite; }
.bombilla--1 circle { fill: #f9e0ec; animation-delay: -.7s; }
.bombilla--2 circle { animation-delay: -1.4s; }
.bombilla--3 circle { fill: #e2f6ee; animation-delay: -2s; }
@keyframes titilar { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* Flores al pie */
.jardin__flores {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(110px, 28vw, 180px);
  pointer-events: none;
  transform-origin: 50% 100%;
  animation: brisa 7s ease-in-out infinite alternate;
}
@keyframes brisa { from { transform: skewX(-1.2deg); } to { transform: skewX(1.2deg); } }
.pasto { fill: none; stroke: #a7d3bf; stroke-width: 2; stroke-linecap: round; }
.pasto--1 { stroke: #c4e5d6; }
.tallo { fill: none; stroke: #8fc0aa; stroke-width: 1.5; stroke-linecap: round; }
.brote--0 { fill: var(--lila); }
.brote--1 { fill: var(--lav); }
.margarita ellipse { fill: #fff; stroke: rgba(165, 143, 214, .3); stroke-width: .5; }
.margarita__centro { fill: #f1d98f; }

/* Textos superpuestos (antes / después de abrir) */
.jardin__arriba, .jardin__abajo { position: relative; z-index: 3; display: grid; justify-items: center; }
.jardin__arriba { grid-row: 2; }
.jardin__abajo { grid-row: 4; min-height: 124px; align-content: start; }
.jardin__arriba > *, .jardin__abajo > * { grid-area: 1 / 1; margin: 0; transition: opacity .9s ease, transform .9s ease; }

.jardin__pre { font-family: "Pinyon Script", cursive; font-size: clamp(1.9rem, 8.6vw, 2.5rem); line-height: 1.2; color: var(--lila-osc); }
.jardin__xv { align-self: end; font-family: "Cinzel", serif; font-size: .8rem; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--lila-osc); opacity: 0; transform: translateY(10px); }
.jardin.abierto .jardin__pre { opacity: 0; transform: translateY(-12px); }
.jardin.revelado .jardin__xv { opacity: 1; transform: none; transition-delay: .4s; }

.jardin__hint { padding-top: 6px; font-family: "Cinzel", serif; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1.8; color: var(--suave); max-width: 22em; }
.jardin__giro { display: inline-block; font-size: 1.1rem; color: var(--lila); animation: girar 2.2s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.jardin.abierto .jardin__hint { opacity: 0; }

.jardin__titulo { opacity: 0; transform: translateY(14px); pointer-events: none; }
.jardin.revelado .jardin__titulo { opacity: 1; transform: none; transition-delay: .9s; }
.jardin__nombre {
  margin: 0;
  padding: 0 .25em .05em;
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  font-size: clamp(3.5rem, 18vw, 5.2rem);
  line-height: 1.15;
  background: linear-gradient(105deg, var(--lila-osc), #c48fb4 35%, #9aa0b8 55%, var(--lila-osc) 75%, #c48fb4);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brillo 7s linear infinite;
}
@keyframes brillo { to { background-position: -220% 0; } }
.jardin__fecha { margin: 2px 0 0; font-family: "Cinzel", serif; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--suave); }
.jardin__sigue { margin: 14px 0 0; font-style: italic; font-size: 1.05rem; color: var(--lila-osc); opacity: 0; transition: opacity 1s ease; }
.jardin.listo .jardin__sigue { opacity: .95; }
.jardin.listo .jardin__sigue.visto { opacity: 0; }

/* ---------- Escena: frasco + retrato ---------- */
.escena {
  --fw: min(64vw, 260px, 34svh);
  grid-row: 3;
  position: relative;
  z-index: 2;
  width: var(--fw);
  height: calc(var(--fw) * 1.3);
  margin: 26px 0 10px;
}

.frasco { position: absolute; inset: 0; transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.3, .6, .2, 1); }
.jardin.abierto .frasco { animation: sacudir .5s ease; }
.jardin.liberado .frasco { opacity: 0; transform: translateY(18px) scale(.88); }
@keyframes sacudir { 30% { transform: rotate(-2.5deg); } 60% { transform: rotate(2deg); } }

.frasco__sombra {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -5%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 70, 140, .38), transparent);
}
.frasco__dentro {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 25%;
  bottom: 3%;
  overflow: hidden;
  border-radius: 26% 26% 20% 20% / 14% 14% 10% 10%;
  background:
    radial-gradient(70% 55% at 50% 55%, rgba(255, 244, 214, .7), rgba(255, 255, 255, .1) 72%),
    linear-gradient(180deg, rgba(227, 216, 246, .35), rgba(207, 238, 226, .35));
}
.frasco__luces {
  position: absolute;
  left: 2%;
  top: 3%;
  width: 96%;
  height: 84%;
  filter: drop-shadow(0 0 2px #ffe9a8) drop-shadow(0 0 6px rgba(255, 214, 130, .85));
}
.frasco__cable { fill: none; stroke: rgba(122, 108, 88, .55); stroke-width: .6; }
.foco { fill: #fff3c4; animation: titilar 2.2s ease-in-out infinite; }
.foco--1 { fill: #ffe3ef; animation-delay: -.5s; }
.foco--2 { animation-delay: -1.1s; }
.foco--3 { fill: #e8fff5; animation-delay: -1.6s; }
.frasco__musgo { position: absolute; left: 0; bottom: 0; width: 100%; height: 15%; }
.frasco__musgo path { fill: #b5dbc8; }
.flor-mini { fill: var(--rosa); }
.flor-mini--b { fill: #fff; }

.frasco__vidrio {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 21%;
  bottom: 1%;
  border-radius: 30% 30% 22% 22% / 16% 16% 11% 11%;
  border: 2px solid rgba(255, 255, 255, .88);
  background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .1) 14%, transparent 40%, rgba(255, 255, 255, .04) 70%, rgba(255, 255, 255, .34) 90%, rgba(255, 255, 255, .55));
  box-shadow:
    inset 0 0 0 1px rgba(165, 143, 214, .25),
    inset 0 -18px 30px -12px rgba(165, 143, 214, .4),
    inset 0 12px 24px -10px rgba(255, 255, 255, .95),
    0 30px 42px -26px rgba(74, 63, 107, .6);
  pointer-events: none;
}
.frasco__vidrio::after {                    /* grosor del fondo de cristal */
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 3%;
  height: 7%;
  border-radius: 50%;
  border-top: 2px solid rgba(255, 255, 255, .7);
}
.frasco__reflejo {
  position: absolute;
  left: 9%;
  top: 9%;
  width: 8%;
  height: 62%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .12));
}
.frasco__reflejo--b { left: auto; right: 10%; top: 14%; width: 3.5%; height: 30%; opacity: .75; }
.frasco__cuello {
  position: absolute;
  left: 24%;
  right: 24%;
  top: 14%;
  height: 9%;
  border: 2px solid rgba(255, 255, 255, .88);
  border-bottom: 0;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .05) 70%, rgba(255, 255, 255, .45));
}
.frasco__cuello::before {                   /* labio del cuello */
  content: "";
  position: absolute;
  left: -7%;
  right: -7%;
  top: -7px;
  height: 9px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(214, 206, 238, .85));
  box-shadow: 0 2px 3px rgba(74, 63, 107, .22);
}

/* ---------- Tapa de corcho (control) ---------- */
.tapa {
  position: absolute;
  left: 50%;
  top: 10.5%;
  z-index: 6;
  width: 150px;
  height: 130px;
  margin: -65px 0 0 -75px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.tapa:active { cursor: grabbing; }
.tapa:focus-visible { outline: 2px solid var(--lila-osc); outline-offset: 2px; }
.tapa__progreso { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); transition: opacity .4s; }
.tapa__progreso circle { fill: none; stroke: rgba(165, 143, 214, .22); stroke-width: 2.5; }
.tapa__progreso .tapa__avance { stroke: var(--lila-osc); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .15s ease; }
.jardin.abierto .tapa { animation: saltar 1.3s cubic-bezier(.2, .7, .3, 1) forwards; pointer-events: none; }
.jardin.abierto .tapa__progreso { opacity: 0; }
@keyframes saltar {
  0% { transform: none; }
  22% { transform: translate(8px, -90px) rotate(-16deg); }
  100% { transform: translate(130px, -75vh) rotate(-150deg); opacity: 0; }
}

.tapa__corcho {
  position: relative;
  width: calc(var(--fw) * .44);
  height: calc(var(--fw) * .15);
  border-radius: 6px 6px 8px 8px;
  background:
    radial-gradient(circle at 20% 30%, rgba(90, 55, 25, .35) 0 1.4px, transparent 2px) 0 0 / 9px 7px,
    radial-gradient(circle at 70% 60%, rgba(255, 240, 210, .4) 0 1px, transparent 1.8px) 0 0 / 7px 9px,
    linear-gradient(180deg, #e2bf8f, #c99a63 55%, #a87842);
  background-position: calc(var(--giro, 0) * .3px) 0, calc(var(--giro, 0) * -.2px) 0, 0 0;
  box-shadow: inset 0 -4px 6px rgba(80, 45, 15, .35), inset 0 3px 3px rgba(255, 235, 200, .5), 0 6px 10px -4px rgba(74, 63, 107, .45);
  transform: translateY(calc(var(--subida, 0) * -1px));
  transition: transform .15s ease;
}
.tapa__corcho::before {                     /* cara superior del corcho */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 40%, rgba(90, 55, 25, .3) 0 1px, transparent 1.6px) 0 0 / 6px 5px, radial-gradient(ellipse at 50% 50%, #f0d4aa, #d3a770 75%);
}
.tapa__liston {
  position: absolute;
  left: -3%;
  right: -3%;
  top: 50%;
  height: 24%;
  border-radius: 3px;
  background: linear-gradient(180deg, #cdbcf0, var(--lila) 60%, #8f78c9);
  box-shadow: 0 1px 2px rgba(74, 63, 107, .3);
}
.tapa__mono { position: absolute; left: 50%; top: 30%; width: 46%; transform: translateX(-50%); overflow: visible; }
.tapa__mono path { fill: #bba7ea; stroke: #7a63b8; stroke-width: 1.1; stroke-linejoin: round; }
.tapa__mono path + path { fill: none; stroke: var(--lila); stroke-width: 2.4; stroke-linecap: round; }
.tapa__mono circle { fill: #9c86d6; }
.tapa__etiqueta {
  position: absolute;
  left: 86%;
  top: 46%;
  transform-origin: 0 50%;
  rotate: calc(16deg + var(--balanceo, 0) * 1deg);
  padding: 3px 10px 5px 16px;
  border: 1px solid #d9cdee;
  border-radius: 3px 12px 12px 3px;
  background: linear-gradient(180deg, #fffdf8, #f6f0fb);
  box-shadow: 0 4px 8px -3px rgba(74, 63, 107, .4);
  font-family: "Pinyon Script", cursive;
  font-size: 1.15rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--lila-osc);
  animation: columpio 3.2s ease-in-out infinite;
}
.tapa__etiqueta::before {                   /* hilo */
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--lila);
}
.tapa__etiqueta::after {                    /* ojal */
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  border: 1px solid var(--lila);
}
@keyframes columpio { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(7deg); } }

/* ---------- Retrato (aparece cuando el frasco se desvanece) ---------- */
.retrato {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--fw) * .86);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.55);
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.6s cubic-bezier(.2, .9, .25, 1.1);
}
.jardin.revelado .retrato { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.retrato img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 0 0 2px var(--plata), 0 0 46px rgba(165, 143, 214, .6), 0 26px 40px -22px rgba(74, 63, 107, .65);
}
.retrato__aro { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); animation: girar 50s linear infinite; }
.retrato__aro circle { fill: none; stroke: var(--lila); stroke-width: .5; stroke-dasharray: .6 2.4; stroke-linecap: round; }

/* ---------- Enjambre (capa fija sobre toda la página) ---------- */
.enjambre { position: fixed; inset: 0; z-index: 55; pointer-events: none; overflow: hidden; }
.mariposa {
  --tam: 34px;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--tam);
  height: calc(var(--tam) * .84);
  margin: calc(var(--tam) * -.42) 0 0 calc(var(--tam) * -.5);
  will-change: transform;
  pointer-events: none;
}
.mariposa svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 3px rgba(74, 63, 107, .25)); }
.ala { transform-box: fill-box; animation: aleteo var(--aleteo, .26s) ease-in-out var(--desfase, 0s) infinite alternate; }
.ala--i { transform-origin: 100% 50%; }
.ala--d { transform-origin: 0% 50%; }
.mariposa.posada .ala { animation-duration: calc(var(--aleteo, .26s) * 4.5); }
@keyframes aleteo { from { transform: scaleX(1); } to { transform: scaleX(.16); } }
.ala__sup, .ala__inf { stroke: rgba(91, 74, 122, .25); stroke-width: .8; }
.ala__veta { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: .9; }
.ala__borde { fill: none; stroke: rgba(91, 74, 122, .42); stroke-width: 1.6; stroke-linecap: round; }
.ala__ojo { fill: rgba(255, 255, 255, .82); }
.ala__ojo--p { fill: rgba(91, 74, 122, .3); }
.mariposa__cuerpo { fill: #5b4a7a; }
.mariposa__antenas { fill: none; stroke: #5b4a7a; stroke-width: 1.1; stroke-linecap: round; }

/* ---------- Secciones ---------- */
.s-titulo::before {
  content: "";
  display: block;
  width: 46px;
  height: 39px;
  margin: 0 auto 8px;
  background: var(--mariposa-ico) center / contain no-repeat;
  animation: icoAleteo 3s ease-in-out infinite;
}
@keyframes icoAleteo { 0%, 100% { transform: scaleX(1) translateY(0); } 50% { transform: scaleX(.55) translateY(-4px); } }

.dedicatoria { padding-top: 96px; overflow: hidden; }
.dedicatoria__mono {
  width: 96px;
  height: 96px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Pinyon Script", cursive;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--lila-osc);
  background: radial-gradient(circle, #fff, #f3edfb 70%);
  box-shadow: 0 0 0 1px var(--plata), 0 0 0 6px #fff, 0 0 0 7px var(--lav), 0 20px 30px -18px rgba(74, 63, 107, .6);
}
.dedicatoria__texto { margin: 30px 0 0; max-width: 21em; font-style: italic; font-size: clamp(1.22rem, 5vw, 1.42rem); line-height: 1.6; }
.dedicatoria__familia { margin-top: 26px; }
.dedicatoria__t { margin: 18px 0 0; font-family: "Cinzel", serif; font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--suave); }
.dedicatoria__n { margin: 4px 0 0; font-family: "Pinyon Script", cursive; font-size: 1.9rem; line-height: 1.25; color: var(--lila-osc); }
.deco-mariposa { position: absolute; width: 54px; height: 46px; fill: var(--lav); opacity: .85; animation: revolotear 7s ease-in-out infinite; }
.deco-mariposa--1 { left: 7%; top: 46px; rotate: -18deg; }
.deco-mariposa--2 { right: 9%; top: 150px; width: 36px; height: 31px; fill: #ecc0d4; rotate: 16deg; animation-delay: -3s; }
@keyframes revolotear { 0%, 100% { transform: translate(0, 0) scaleX(1); } 25% { transform: translate(6px, -10px) scaleX(.6); } 50% { transform: translate(12px, -4px) scaleX(1); } 75% { transform: translate(4px, 6px) scaleX(.7); } }

.s-cuenta__caja { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(243, 237, 251, .85)); }
.s-cuenta__num { color: var(--lila-osc); }
.s-evento { position: relative; overflow: hidden; }
.s-evento::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
  height: 26px;
  background: var(--mariposa-ico) center / contain no-repeat;
  opacity: .75;
  rotate: 18deg;
}
.s-evento__icono { color: var(--lila-osc); border-color: var(--lav); background: linear-gradient(180deg, #fff, #f4effc); }
.s-evento__hora { font-family: "Pinyon Script", cursive; font-size: 2.3rem; color: var(--lila-osc); }
.s-foto { border: 4px solid #fff; }
.s-vestimenta__tipo { font-family: "Cinzel", serif; font-size: 1.15rem; letter-spacing: .28em; color: var(--lila-osc); }
.s-rsvp__saludo { font-family: "Pinyon Script", cursive; font-size: 2.1rem; }
.s-btn--lleno { background: linear-gradient(120deg, var(--lila-osc), #b07ab0); }
.s-pie__n { font-family: "Pinyon Script", cursive; font-size: 3rem; color: var(--lila-osc); }
.btn-musica { background: #fff; color: var(--lila-osc); box-shadow: var(--s-sombra); }

.banda { position: relative; margin: 10px 24px; overflow: hidden; border-radius: 220px 220px 28px 28px; border: 4px solid #fff; box-shadow: var(--s-sombra); }
.banda img { display: block; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.banda figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px 26px 26px;
  background: linear-gradient(180deg, transparent, rgba(74, 63, 107, .78));
  font-family: "Pinyon Script", cursive;
  font-size: clamp(1.45rem, 6.4vw, 1.8rem);
  line-height: 1.3;
  text-align: center;
  color: #fff;
}

@media (min-width: 700px) {
  .escena { --fw: min(40vw, 280px, 42svh); }
}

@media (prefers-reduced-motion: reduce) {
  .ala, .jardin__bokeh i, .bombilla circle, .foco, .jardin__flores, .jardin__giro, .jardin__nombre,
  .tapa__etiqueta, .retrato__aro, .s-titulo::before, .deco-mariposa { animation: none !important; }
  .jardin.abierto .tapa { animation-duration: .3s; }
}
