/* ==========================================================
   Diseño "Burbujas" · Infantil (primer añito, "hora del baño")
   pompas de jabón iridiscentes → letras del nombre → foto en una gran burbuja
   ========================================================== */

:root {
  --aqua: #8fe3dc;
  --celeste: #a9dcf7;
  --lila: #cdb8f2;
  --lila-o: #9a7fe0;
  --patito: #ffe27a;
  --naranja: #f07f37;
  --turquesa: #3fa7b8;
  --tinta: #2c5871;

  /* tamaño de la tina (también ubica los mandos y la foto) */
  --tina: min(92vw, 420px, 54vh);
  --tina-alto: calc(var(--tina) * .5833);
  --foto: min(54vw, 250px, 30vh);

  --s-fondo: #f2fbfb;
  --s-tinta: var(--tinta);
  --s-suave: #5a7d93;
  --s-acento: var(--turquesa);
  --s-acento-tinta: #fff;
  --s-tarjeta: rgba(255, 255, 255, .85);
  --s-borde: rgba(143, 227, 220, .8);
  --s-radio: 26px;
  --s-sombra: 0 16px 30px -18px rgba(44, 88, 113, .5);
  --s-fuente: "Fredoka", system-ui, sans-serif;
  --s-titulo: "Pacifico", "Fredoka", cursive;
  --s-titulo-tam: clamp(2rem, 9vw, 2.6rem);
  --s-etiqueta: "Fredoka", system-ui, sans-serif;
  --s-num: "Fredoka", system-ui, sans-serif;
  --s-titulo-color: var(--turquesa);
}
@supports (height: 1svh) {
  :root { --tina: min(92vw, 420px, 54svh); --foto: min(54vw, 250px, 30svh); }
}

body {
  background:
    radial-gradient(circle at 22% 30%, transparent 0 9px, rgba(143, 227, 220, .45) 9.5px 10.8px, transparent 11.5px) 0 0 / 130px 130px,
    radial-gradient(circle at 70% 75%, transparent 0 5px, rgba(205, 184, 242, .5) 5.5px 6.6px, transparent 7.2px) 0 0 / 96px 96px,
    linear-gradient(180deg, #e6f7f7 0%, #eef4ff 50%, #f6f0ff 100%);
  color: var(--tinta);
  font-family: var(--s-fuente);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-solo {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.pompa { display: block; }

/* =================== HERO: el baño =================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  color: var(--tinta);
  font-family: var(--s-fuente);
  background-color: #cdf1f1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .6) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .6) 2px, transparent 2px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .5) 0 3px, transparent 3.5px),
    linear-gradient(180deg, #c6efee 0%, #d4efff 60%, #e3dcfb 100%);
  background-size: 46px 46px, 46px 46px, 92px 92px, auto;
  background-position: center top, center top, 23px 23px, 0 0;
  -webkit-user-select: none;
  user-select: none;
}
.hero__luz {
  position: absolute;
  left: -20%;
  top: -18%;
  width: 80%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
  pointer-events: none;
}
/* lambrín: azulejo más grande bajo un zoclo blanco, detrás de la tina */
.hero__zoclo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--tina-alto) * .62 + env(safe-area-inset-bottom));
  background-color: #e4dcfb;
  background-image:
    linear-gradient(rgba(255, 255, 255, .7) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .7) 2px, transparent 2px);
  background-size: 34px 34px;
  background-position: center 10px;
  border-top: 10px solid #ffffff;
  box-shadow: 0 -3px 0 rgba(63, 167, 184, .18);
  pointer-events: none;
}
.hero__piso {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--tina-alto) * .16 + env(safe-area-inset-bottom));
  background: repeating-conic-gradient(#f3eefe 0 25%, #ffffff 0 50%) 0 0 / 26px 26px;
  border-top: 3px solid rgba(154, 127, 224, .25);
  pointer-events: none;
}

.hero__pre {
  position: absolute;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 10px);
  z-index: 8;
  margin: 0;
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  transform: translateX(-50%);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--turquesa);
  transition: opacity .6s ease;
}

/* ---------- Espejo empañado ---------- */
.espejo {
  position: absolute;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 44px);
  z-index: 8;
  width: min(58vw, 240px);
  aspect-ratio: 1.7;
  transform: translateX(-50%);
  touch-action: none;
  cursor: grab;
  transition: opacity .7s ease, transform .9s ease;
}
.espejo__marco {
  position: absolute;
  inset: 0;
  padding: 7px;
  border-radius: 50% 50% 22px 22px / 62% 62% 22px 22px;
  background: linear-gradient(160deg, #ffffff 0%, #fbe2ef 45%, #d8c7f7 100%);
  box-shadow: 0 12px 24px -14px rgba(44, 88, 113, .55), inset 0 0 0 2px rgba(255, 255, 255, .85), inset 0 -3px 0 rgba(154, 127, 224, .25);
}
.espejo__vidrio {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50% 50% 16px 16px / 62% 62% 16px 16px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, .5) 33%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .3) 63%, rgba(255, 255, 255, 0) 67%),
    linear-gradient(180deg, #5cb7cc 0%, #7ccbdc 55%, #a6dbe8 100%);
  box-shadow: inset 0 2px 6px rgba(44, 88, 113, .25);
}
.espejo__vaho { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* moñito sobre el marco */
.espejo__lazo {
  position: absolute;
  left: 50%;
  top: -9px;
  z-index: 1;
  width: 38px;
  height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 55%, #f28bb6 0 4.5px, transparent 5px);
}
.espejo__lazo::before, .espejo__lazo::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 17px;
  height: 14px;
  border-radius: 55% 45% 45% 55% / 60% 50% 50% 60%;
  background: linear-gradient(160deg, #ffc4dc, #f7a1c4);
  z-index: -1;
}
.espejo__lazo::before { left: 1px; transform: rotate(-14deg); }
.espejo__lazo::after { right: 1px; transform: rotate(14deg) scaleX(-1); }

/* ---------- Tina, espuma y patito ---------- */
.tina {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 4px);
  z-index: 3;
  width: var(--tina);
  aspect-ratio: 360 / 210;
  transform: translateX(-50%);
  pointer-events: none;
}
.tina__capa { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.tina__capa--frente { z-index: 2; }
.espuma {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 1s cubic-bezier(.3, 1.4, .5, 1);
  animation: respirar 3.8s ease-in-out infinite;
}
#espumaFrente { animation-delay: -1.9s; }
@keyframes respirar { 0%, 100% { scale: 1 1; } 50% { scale: 1.015 1.04; } }
.grifo__gota { transform-box: fill-box; transform-origin: 50% 0; animation: gotear 2.6s ease-in infinite; }
@keyframes gotear {
  0% { transform: translateY(0) scale(.2); opacity: 0; }
  25% { transform: translateY(0) scale(1); opacity: 1; }
  62% { transform: translateY(13px) scale(.9, 1.15); opacity: 1; }
  72% { transform: translateY(15px) scale(.6); opacity: 0; }
  100% { transform: translateY(15px) scale(.6); opacity: 0; }
}

.patito {
  position: absolute;
  left: 0;
  bottom: 64.76%;                    /* el vientre se hunde detrás de la espuma del frente */
  z-index: 1;
  width: 25%;
  aspect-ratio: 124 / 112;
  transform: translateX(calc(var(--tina) * .375));
  will-change: transform;
}
.patito__salto, .patito__fig { width: 100%; height: 100%; }
.patito__fig { transform-origin: 50% 70%; }
.patito__salto.salta { animation: saltar .75s cubic-bezier(.3, .7, .4, 1); }
@keyframes saltar {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(6%) scale(1.1, .88); }
  48% { transform: translateY(-48%) scale(.94, 1.08); }
  78% { transform: translateY(0) scale(1.08, .92); }
  100% { transform: translateY(0) scale(1, 1); }
}
.patito__svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 3px rgba(214, 150, 30, .3)); }
.cuac {
  position: absolute;
  left: 50%;
  bottom: 100%;
  z-index: 3;
  margin-bottom: 6px;
  padding: 5px 13px 6px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--naranja);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 8px 16px -8px rgba(44, 88, 113, .5);
  opacity: 0;
  transform: translateX(-30%) scale(.4);
  transform-origin: 25% 100%;
  transition: opacity .25s ease, transform .4s cubic-bezier(.3, 1.6, .5, 1);
  pointer-events: none;
}
.cuac::after {
  content: "";
  position: absolute;
  left: 22%;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: #ffffff;
  border-bottom: 0;
}
.cuac.ver { opacity: 1; transform: translateX(-30%) scale(1); }

/* ---------- Canvas de burbujas y zona de toque ---------- */
/* el canvas va encima de espejo y mandos (solo dibuja; los toques lo atraviesan) */
.lienzo { position: absolute; inset: 0; z-index: 9; width: 100%; height: 100%; display: block; pointer-events: none; }
.zona {
  all: unset;
  position: absolute;
  inset: 0;
  z-index: 7;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.zona:focus-visible { outline: 3px dashed rgba(63, 167, 184, .75); outline-offset: -10px; border-radius: 26px; }

.btn-sonido {
  all: unset;
  position: absolute;
  top: calc(env(safe-area-inset-top) + 6px);
  right: 10px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
  color: var(--tinta);
  box-shadow: 0 6px 14px -8px rgba(44, 88, 113, .55);
  cursor: pointer;
}
.btn-sonido svg { width: 22px; height: 22px; }
.btn-sonido:focus-visible { outline: 2px solid var(--turquesa); outline-offset: 3px; }
.btn-sonido__off { display: none; }
.btn-sonido[aria-pressed="true"] .btn-sonido__on { display: none; }
.btn-sonido[aria-pressed="true"] .btn-sonido__off { display: inline; }

/* ---------- Mandos: pista, letras del nombre y botón ---------- */
.mandos {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(var(--tina-alto) * .97 + env(safe-area-inset-bottom) + 6px);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
}
.mandos__hint {
  margin: 0;
  max-width: 100%;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--tinta);
}
.letras { display: flex; justify-content: center; gap: 5px; width: 100%; max-width: 420px; }
.letra {
  flex: 0 1 38px;
  min-width: 0;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 2px dashed rgba(63, 167, 184, .45);
  background: rgba(255, 255, 255, .45);
  color: transparent;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  transition: background-color .3s, border-color .3s, color .2s;
}
.letra:nth-child(5n+1) { --c: #3fa7b8; }
.letra:nth-child(5n+2) { --c: #9a7fe0; }
.letra:nth-child(5n+3) { --c: #e39a12; }
.letra:nth-child(5n+4) { --c: #2fae96; }
.letra:nth-child(5n+5) { --c: #e86a9c; }
.letra.lleno {
  color: var(--c);
  background: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 12px -8px rgba(44, 88, 113, .55);
  animation: saltito .5s cubic-bezier(.3, 1.8, .5, 1);
}
@keyframes saltito { from { transform: scale(.4); } to { transform: scale(1); } }
.btn-reventar {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px 0 10px;
  border-radius: 999px;
  background: linear-gradient(160deg, #ffffff, #e6f8fa);
  color: var(--tinta);
  font-size: .95rem;
  font-weight: 600;
  box-shadow: 0 0 0 2px #ffffff, 0 8px 18px -10px rgba(44, 88, 113, .6);
  cursor: pointer;
  pointer-events: auto;
  transition: transform .2s ease, opacity .3s;
}
.btn-reventar:active { transform: scale(.95); }
.btn-reventar:focus-visible { outline: 2px solid var(--turquesa); outline-offset: 3px; }
.btn-reventar:disabled { opacity: .55; cursor: default; }
.btn-reventar__pompa { width: 28px; height: 28px; }

/* ---------- Revelado: foto en una gran burbuja ---------- */
.revelo {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(env(safe-area-inset-top) + 16px);
  bottom: calc(var(--tina-alto) * .8 + env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.revelo__titulo {
  margin: 0 0 8px;
  font-family: "Pacifico", "Fredoka", cursive;
  font-size: clamp(1.6rem, 7.6vw, 2.4rem);
  line-height: 1.25;
  color: var(--turquesa);
  text-shadow: 0 2px 0 #ffffff, 0 0 16px rgba(255, 255, 255, .95);
  opacity: 0;
  transform: translateY(14px) scale(.9);
  transition: opacity .8s ease .7s, transform .9s cubic-bezier(.3, 1.5, .5, 1) .7s;
}
.burbuja-foto {
  position: relative;
  flex: none;
  width: var(--foto);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .45), 0 20px 40px -18px rgba(44, 88, 113, .6);
  opacity: 0;
  transform: scale(.15);
}
.burbuja-foto__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--celeste);
}
/* película iridiscente del borde (gira despacio) */
.burbuja-foto__aro {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff9fd2, #ffe18a, #9ff0c8, #8fd8ff, #b9a2ff, #ff9fd2);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 3px));
  opacity: .8;
  animation: girar 10s linear infinite;
}
.burbuja-foto__brillo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 24% 13% at 31% 20%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 72%),
    radial-gradient(circle at 46% 9%, rgba(255, 255, 255, .9) 0 2.5%, rgba(255, 255, 255, 0) 3.2%),
    radial-gradient(farthest-side at 50% 50%, rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, .35) 94%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75), inset -12px -16px 28px rgba(143, 227, 220, .35);
}
@keyframes girar { to { rotate: 360deg; } }
.uno { position: absolute; right: -31%; top: -2%; width: 33%; height: 60%; }
.personaje {
  position: absolute;
  left: -24%;
  bottom: -10%;
  width: 46%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 8px 12px rgba(44, 88, 113, .35));
  opacity: 0;
  transform: translateY(20%) scale(.6) rotate(-8deg);
  transition: opacity .6s ease 1.6s, transform 1s cubic-bezier(.3, 1.6, .5, 1) 1.6s;
}
.revelo__nombre {
  margin: 6px 0 0;
  font-family: "Pacifico", "Fredoka", cursive;
  font-weight: 400;
  font-size: clamp(2.3rem, 12vw, 3.5rem);
  line-height: 1.2;
  color: var(--lila-o);
  text-shadow: 0 3px 0 #ffffff, 0 0 20px rgba(255, 255, 255, .95);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease 1.1s, transform .9s ease 1.1s;
}
.revelo__fecha {
  margin: 4px 0 0;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tinta);
  opacity: 0;
  transition: opacity .8s ease 1.35s;
}

/* Estados del hero */
.hero.final .mandos { opacity: 0; transform: translateY(16px); }
.hero.final .mandos * { pointer-events: none; }
.hero.final .espejo { opacity: 0; transform: translate(-50%, -26px) scale(.9); pointer-events: none; }
.hero.final .hero__pre { opacity: 0; }
.hero.revelado .burbuja-foto { animation: inflar 1.25s ease-out both, flotarFoto 5s ease-in-out 1.25s infinite; }
@keyframes inflar {
  0% { opacity: 0; transform: scale(.15); }
  40% { opacity: 1; transform: scale(1.08, .93); }
  62% { transform: scale(.95, 1.05); }
  80% { transform: scale(1.02, .98); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes flotarFoto { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.hero.revelado .revelo__titulo { opacity: 1; transform: none; }
.hero.revelado .revelo__nombre { opacity: 1; transform: none; }
.hero.revelado .revelo__fecha { opacity: 1; }
.hero.revelado .personaje { opacity: 1; transform: none; }
.hero.listo .zona { display: none; }
.hero .desliza-c {
  z-index: 10;
  bottom: calc(env(safe-area-inset-bottom) + var(--tina-alto) * .24);
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(80, 60, 140, .55);
}

/* =================== Secciones =================== */
.mensaje { padding-top: 88px; overflow: hidden; }
.mensaje__texto { margin: 0; max-width: 22em; font-size: 1.1rem; line-height: 1.65; }
.mensaje__pompa { position: absolute; animation: subir 7s ease-in-out infinite; }
.mensaje__pompa--1 { width: 44px; left: 7%; top: 40px; }
.mensaje__pompa--2 { width: 26px; left: 20%; top: 96px; animation-delay: -2.5s; }
.mensaje__pompa--3 { width: 34px; right: 8%; top: 120px; animation-delay: -4.5s; }
@keyframes subir { 0%, 100% { translate: 0 0; } 50% { translate: 4px -12px; } }
.mensaje__pato { width: 74px; height: auto; margin: 0 0 6px; overflow: visible; }
.mensaje__pato.visible { animation: mecer 3.2s ease-in-out .8s infinite; }
@keyframes mecer { 0%, 100% { rotate: -4deg; translate: 0 0; } 50% { rotate: 4deg; translate: 0 -4px; } }

.separador { display: flex; justify-content: center; align-items: center; gap: 18px; }
.separador .pompa { width: 24px; animation: subir 5s ease-in-out infinite; }
.separador .pompa:nth-child(2) { width: 38px; animation-delay: -1.7s; }
.separador .pompa:nth-child(3) { width: 28px; animation-delay: -3.3s; }

.s-titulo { text-shadow: 0 2px 0 #ffffff; }
.s-cuenta__caja {
  aspect-ratio: 1;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff 0 18%, rgba(255, 255, 255, .92) 40%, rgba(214, 244, 250, .9) 100%);
  border: 2px solid #ffffff;
  box-shadow: inset -6px -8px 14px rgba(143, 227, 220, .4), inset 0 0 0 1px rgba(205, 184, 242, .5), 0 12px 22px -14px rgba(44, 88, 113, .55);
}
.s-cuenta__num { font-weight: 700; color: var(--turquesa); font-size: clamp(1.4rem, 6.4vw, 2rem); }
.s-cuenta__lbl { margin-top: 0; font-size: .58rem; }
.s-evento { background: linear-gradient(170deg, #ffffff, rgba(234, 248, 250, .92)); border: 2px solid #ffffff; }
.s-evento__icono { color: #ffffff; background: linear-gradient(160deg, var(--aqua), var(--turquesa)); border-color: transparent; box-shadow: 0 0 0 5px rgba(143, 227, 220, .3); }
.s-evento__titulo { color: var(--turquesa); }
.s-evento__hora { font-weight: 700; color: var(--lila-o); }
.s-foto { border: 4px solid #ffffff; }
.s-galeria__rejilla .s-foto:nth-child(1) img { object-position: 28% 50%; }
.s-galeria__rejilla .s-foto:nth-child(4) img { object-position: 38% 40%; }
.s-vestimenta__tipo { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.45rem; color: var(--lila-o); }
.s-paleta li { border: 2px solid var(--aqua); background: #ffffff; }
.s-rsvp__saludo { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--lila-o); }
.s-btn { letter-spacing: .12em; }
.s-btn--lleno {
  background: linear-gradient(160deg, #62cbd3, var(--turquesa));
  box-shadow: 0 0 0 3px rgba(143, 227, 220, .55), 0 14px 24px -12px rgba(44, 88, 113, .7);
}
.btn-pato { width: 28px; height: 26px; overflow: visible; }
.s-pie__n { font-family: "Pacifico", cursive; color: var(--turquesa); font-size: 2.2rem; }
.btn-musica { background: var(--turquesa); color: #ffffff; box-shadow: 0 0 0 3px var(--aqua); }

.foto-rsvp {
  position: relative;
  width: 160px;
  aspect-ratio: 1;
  margin: 40px auto -26px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .7), 0 16px 30px -16px rgba(44, 88, 113, .55);
}
.foto-rsvp img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 40%; }
.foto-rsvp__aro {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #ff9fd2, #ffe18a, #9ff0c8, #8fd8ff, #b9a2ff, #ff9fd2);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 2px));
  opacity: .8;
}

/* Pantallas bajitas (teléfono acostado o navegador con barras grandes) */
@media (max-height: 600px) {
  .espejo { width: min(50vw, 200px); top: calc(env(safe-area-inset-top) + 38px); }
  .mandos__hint { font-size: .82rem; padding: 3px 12px; }
  .letra { height: 36px; font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .espuma, .grifo__gota, .burbuja-foto__aro, .mensaje__pompa, .separador .pompa, .mensaje__pato.visible, .letra.lleno, .patito__salto.salta { animation: none !important; }
  .hero.revelado .burbuja-foto { animation: none; opacity: 1; transform: none; }
  .revelo__titulo, .revelo__nombre, .revelo__fecha, .personaje { transition-duration: .3s; transition-delay: 0s; }
  .grifo__gota { opacity: 0; }
}
