/* ============================================================
   ESTILOS — papel crema, rosa suave, salvia y mantequilla.
   ============================================================ */
:root {
  color-scheme: light;
  --papel: #FFF8F2;
  --papel-2: #FDEFEA;
  --rubor: #F9DCDC;
  --rubor-2: #FCEAEA;
  --rosa: #E5738A;
  --rosa-fuerte: #C9445F;
  --rosa-suave: #F7C5CF;
  --tinta: #4A2A31;
  --tinta-suave: #7D5A61;
  --salvia: #9DBE95;
  --salvia-suave: #DCEAD5;
  --mantequilla: #F8E3A6;
  --mantequilla-suave: #FCF1CF;
  --lila: #D8CBEA;
  --lila-suave: #EEE7F6;
  --durazno: #FBD9C3;
  --cielo-suave: #DDEBF7;
  --contorno: #5B3A3F;
  --sombra: 0 18px 40px -22px rgba(122, 52, 70, .45);
  --sombra-chica: 0 8px 18px -10px rgba(122, 52, 70, .35);
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-mano: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --f-texto: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mascara-corazon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath d='M50 88C20 66 2 48 2 28C2 12 14 2 28 2C38 2 46 8 50 16C54 8 62 2 72 2C86 2 98 12 98 28C98 48 80 66 50 88Z'/%3E%3C/svg%3E");
  --papel-grano: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .25 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texto);
  color: var(--tinta);
  background: var(--papel) var(--papel-grano);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.bloqueado { overflow: hidden; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 8px; }

.kicker {
  font-family: var(--f-mano);
  font-size: clamp(22px, 3.4vw, 28px);
  color: var(--rosa);
  margin: 0;
  line-height: 1.1;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: 999px;
  padding: 15px 28px;
  font-weight: 800; font-size: 17px; letter-spacing: .01em;
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s, background .25s;
}
.btn svg { width: 20px; height: 18px; fill: currentColor; }
.btn-principal {
  background: var(--rosa-fuerte); color: #fff;
  box-shadow: 0 10px 0 -4px #9C2F47, 0 18px 30px -12px rgba(201, 68, 95, .7);
}
.btn-principal:hover { transform: translateY(-2px) scale(1.03); }
.btn-principal:active { transform: translateY(3px); box-shadow: 0 4px 0 -2px #9C2F47, 0 8px 16px -10px rgba(201, 68, 95, .7); }
.btn-suave { background: #fff; color: var(--rosa-fuerte); box-shadow: var(--sombra-chica), inset 0 0 0 2px var(--rosa-suave); }
.btn-suave:hover { transform: translateY(-2px); }
.centro { text-align: center; margin-top: 8px; }

/* ============================================================
   1. PIN
   ============================================================ */
.bloqueo {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 24px 16px;
  overflow-y: auto; overflow-x: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, #FDEFEC 0%, rgba(253, 239, 236, 0) 70%),
    linear-gradient(180deg, #FBE3E2 0%, #F7D2D7 100%);
}
.corazones-fondo { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.corazones-fondo i {
  position: absolute; bottom: -70px; left: var(--x);
  width: var(--t); height: calc(var(--t) * .9);
  opacity: var(--o);
  animation: subir var(--d) linear var(--retraso) infinite;
}
.corazones-fondo i svg { width: 100%; height: 100%; fill: var(--c); animation: vaiven 3.2s ease-in-out infinite alternate; }
@keyframes subir { to { transform: translateY(calc(-100vh - 140px)); } }
@keyframes vaiven { from { transform: translateX(-14px) rotate(-12deg); } to { transform: translateX(14px) rotate(12deg); } }

.bloqueo-tarjeta {
  position: relative; z-index: 2;
  width: min(100%, 360px);
  margin-top: 84px;
  padding: 84px 20px 24px;
  text-align: center;
  background: #FFFBF8;
  border-radius: 34px;
  box-shadow: 0 30px 60px -30px rgba(122, 52, 70, .55), 0 0 0 7px rgba(255, 255, 255, .55);
}
.bloqueo-personaje { position: absolute; left: 50%; top: -112px; width: 150px; transform: translateX(-50%); }
.bloqueo-tarjeta .solo { font-family: var(--f-mano); font-size: 23px; color: var(--rosa); margin: 0; }
.bloqueo-tarjeta h1 { font-family: var(--f-display); font-weight: 600; font-size: 36px; line-height: 1.05; margin: 0 0 6px; letter-spacing: -.01em; }
.bloqueo-tarjeta h1 em { font-style: italic; font-weight: 500; color: var(--rosa-fuerte); }
.bloqueo-texto { margin: 0 0 18px; color: var(--tinta-suave); font-size: 15px; }

.pin-corazones { display: flex; gap: 14px; justify-content: center; }
.pin-c { width: 38px; height: 34px; display: block; }
.pin-c svg { width: 100%; height: 100%; overflow: visible; fill: transparent; stroke: var(--rosa); stroke-width: 7; transition: fill .2s, stroke .2s; }
.pin-c.lleno svg { fill: var(--rosa); animation: pop .4s cubic-bezier(.3, 1.8, .5, 1); }
.pin-corazones.error { animation: sacudir .5s; }
.pin-corazones.error .pin-c svg { fill: #D5C2C6; stroke: #D5C2C6; }
.pin-corazones.ok .pin-c svg { fill: var(--rosa-fuerte); stroke: var(--rosa-fuerte); animation: latido .55s ease-in-out 2; }
.pin-corazones.ok .pin-c:nth-child(2) svg { animation-delay: .07s; }
.pin-corazones.ok .pin-c:nth-child(3) svg { animation-delay: .14s; }
.pin-corazones.ok .pin-c:nth-child(4) svg { animation-delay: .21s; }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@keyframes latido { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.28); } }
@keyframes sacudir { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-12px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-7px); } 80% { transform: translateX(4px); } }

.pin-mensaje { min-height: 30px; margin: 8px 0 10px; font-family: var(--f-mano); font-size: 22px; line-height: 1.2; color: var(--rosa-fuerte); }

.teclado { display: grid; grid-template-columns: repeat(3, 78px); gap: 6px 16px; justify-content: center; }
.tecla {
  position: relative; width: 78px; height: 70px;
  display: grid; place-items: center;
  border: 0; background: none; padding: 0;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
  touch-action: manipulation;
}
.tecla svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #FDE6EA; stroke: #F0B4C0; stroke-width: 3; transition: fill .2s, stroke .2s; }
.tecla span { position: relative; padding-bottom: 12px; font-family: var(--f-display); font-size: 27px; font-weight: 500; }
.tecla.chica span { font-family: var(--f-texto); font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--tinta-suave); }
.tecla.chica svg { fill: #FFF3F5; }
@media (hover: hover) { .tecla:hover { transform: translateY(-3px); } .tecla:hover svg { fill: #FBD3DB; } }
.tecla:active, .tecla.presionada { transform: scale(.88); }
.tecla:active svg, .tecla.presionada svg { fill: var(--rosa-suave); stroke: var(--rosa); }
.tecla:focus-visible { outline: none; }
.tecla:focus-visible svg { stroke: var(--rosa-fuerte); stroke-width: 6; }

.asomado { position: fixed; bottom: -46px; width: 170px; z-index: 1; display: none; }
.asomado-i { left: 4%; transform: rotate(9deg); }
.asomado-d { right: 4%; transform: rotate(-9deg); }
@media (min-width: 820px) and (min-height: 640px) { .asomado { display: block; } }

/* ============================================================
   Transición de corazón
   ============================================================ */
.transicion { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; pointer-events: none; }
.transicion svg { width: 120px; height: 108px; fill: var(--rosa); transform: scale(0); }
.transicion.entra svg { animation: cubrir .85s cubic-bezier(.7, 0, .3, 1) forwards; }
.transicion.sale { opacity: 0; transition: opacity .6s ease; }
@keyframes cubrir { 0% { transform: scale(0) rotate(-10deg); } 100% { transform: scale(40) rotate(0); } }

/* ============================================================
   2. SOBRE
   ============================================================ */
.sobre-escena {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 24px 16px;
  background:
    radial-gradient(90% 60% at 50% 40%, #FFFDF9 0%, rgba(255, 253, 249, 0) 70%),
    var(--papel) var(--papel-grano);
  overflow: hidden;
}
.sobre-arriba { font-family: var(--f-mano); font-size: 30px; color: var(--rosa); margin: 0 0 120px; }
.sobre {
  position: relative;
  width: min(86vw, 400px); aspect-ratio: 4 / 2.85;
  perspective: 1200px;
  cursor: pointer;
  filter: drop-shadow(0 24px 30px rgba(122, 52, 70, .25));
  animation: flotar 3.6s ease-in-out infinite;
}
.sobre:focus-visible { outline-offset: 10px; }
@keyframes flotar { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.sobre-atras { position: absolute; inset: 0; border-radius: 14px; background: #E79AAA; }
.sobre-carta {
  position: absolute; left: 6%; right: 6%; top: 5%; height: 90%; z-index: 2;
  padding: 20px 18px; text-align: center;
  background: #FFFCF8; border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  transition: transform 1.1s cubic-bezier(.3, .9, .3, 1) .45s;
}
.sobre-carta-para { font-family: var(--f-display); font-size: clamp(22px, 5.6vw, 28px); font-weight: 600; margin: 0 0 4px; line-height: 1.1; }
.sobre-carta-para em { font-style: italic; font-weight: 500; color: var(--rosa-fuerte); }
.sobre-carta-txt { font-family: var(--f-mano); font-size: clamp(19px, 4.6vw, 23px); line-height: 1.15; color: var(--tinta-suave); margin: 0; }
.sobre-carta-corazones { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.sobre-carta-corazones svg { width: 16px; height: 15px; fill: var(--rosa); }
.sobre-carta-corazones svg:nth-child(2) { fill: var(--rosa-suave); transform: translateY(-4px); }
.sobre-frente { position: absolute; inset: 0; z-index: 3; border-radius: 14px; overflow: hidden; pointer-events: none; }
.sobre-frente span { position: absolute; inset: 0; }
.sobre-lado-i { background: #F0AEBB; clip-path: polygon(0 0, 52% 55%, 0 100%); }
.sobre-lado-d { background: #F0AEBB; clip-path: polygon(100% 0, 48% 55%, 100% 100%); }
.sobre-abajo { background: #F5C0CB; clip-path: polygon(0 100%, 50% 47%, 100% 100%); }
.sobre-solapa {
  position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4;
  background: #EAA2B1;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transition: transform .75s cubic-bezier(.5, 0, .3, 1), z-index 0s .38s;
  border-radius: 14px 14px 0 0;
}
.sello {
  position: absolute; left: 50%; top: 58%; z-index: 5;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #DE5F79, var(--rosa-fuerte) 60%, #A8324C);
  box-shadow: 0 4px 10px rgba(122, 30, 50, .35), inset 0 -3px 6px rgba(0, 0, 0, .15);
  transition: transform .4s cubic-bezier(.5, -0.4, .5, 1), opacity .3s;
  animation: latido 1.6s ease-in-out infinite;
}
.sello svg { width: 30px; height: 27px; fill: #FFE3EA; }
.sobre.abierto { animation: none; }
.sobre.abierto .sello { transform: scale(0); opacity: 0; animation: none; }
.sobre.abierto .sobre-solapa { transform: rotateX(180deg); z-index: 1; }
.sobre.abierto .sobre-carta { transform: translateY(-70%); }
.sobre-pista { font-family: var(--f-mano); font-size: 22px; color: var(--tinta-suave); margin: 6px 0 0; transition: opacity .4s; }
#btnEntrar { animation: aparecer .6s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }

/* ============================================================
   Personajes
   ============================================================ */
.pj { display: block; width: 100%; height: auto; overflow: visible; }
.pj .pj-todo { transform-box: view-box; transform-origin: 100px 236px; animation: respirar 3.4s ease-in-out infinite; }
.pj-gatita .pj-todo { animation-delay: -1.1s; }
.pj-osita .pj-todo { animation-delay: -2.2s; }
@keyframes respirar { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-5px) scale(1.012, .99); } }
.pj-ojo { transform-box: fill-box; transform-origin: center; animation: parpadeo 4.8s infinite; }
.pj-gatita .pj-ojo { animation-delay: -1.7s; }
.pj-osita .pj-ojo { animation-delay: -3.1s; }
@keyframes parpadeo { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.pj-oreja { transform-box: view-box; }
.pj-oreja-d { transform-origin: 122px 100px; animation: oreja 4.2s ease-in-out infinite; }
.pj-oreja-i { transform-origin: 78px 100px; animation: oreja 4.2s ease-in-out -2s infinite reverse; }
@keyframes oreja { 0%, 72%, 100% { transform: rotate(0); } 80% { transform: rotate(8deg); } 88% { transform: rotate(-3deg); } }
.pj-cola { transform-box: view-box; transform-origin: 138px 214px; animation: cola 2.6s ease-in-out infinite; }
@keyframes cola { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
.pj-corazon { transform-box: view-box; animation: latido 1.4s ease-in-out infinite; }
.pj-tulipan { transform-box: view-box; transform-origin: 152px 222px; animation: cola 3s ease-in-out infinite reverse; }

.pj .pj-ojos-feliz, .pj .pj-boca-feliz, .pj .pj-boca-triste, .pj .pj-triste-extra { display: none; }
.pj.feliz .pj-ojos-normal, .pj.feliz .pj-boca-normal { display: none; }
.pj.feliz .pj-ojos-feliz, .pj.feliz .pj-boca-feliz { display: inline; }
.pj.feliz .pj-todo { animation: brinco .55s ease-in-out infinite; }
.pj.triste .pj-boca-normal { display: none; }
.pj.triste .pj-boca-triste, .pj.triste .pj-triste-extra { display: inline; }
.pj.triste .pj-todo { animation: temblor .4s ease-in-out 2; }
.pj-lagrima { animation: lagrima 1s ease-in infinite; transform-box: fill-box; }
@keyframes brinco { 0%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-18px) scale(.97, 1.03); } 60% { transform: translateY(0) scale(1.04, .96); } }
@keyframes temblor { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes lagrima { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ============================================================
   3. PÁGINA PRINCIPAL
   ============================================================ */
main { animation: entrar 1s ease both; }
@keyframes entrar { from { opacity: 0; } to { opacity: 1; } }

.revelar { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.revelar.visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 16px 40px; text-align: center;
  background: radial-gradient(80% 55% at 50% 30%, #FFFDFB 0%, rgba(255, 253, 251, 0) 75%);
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-deco span { position: absolute; width: var(--t); animation: titilar var(--d) ease-in-out var(--retraso) infinite; }
.hero-deco svg { width: 100%; height: auto; display: block; }
@keyframes titilar { 0%, 100% { transform: scale(1) rotate(0); opacity: .9; } 50% { transform: scale(.75) rotate(15deg); opacity: .5; } }
.hero-titulo {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(48px, 12vw, 120px); line-height: .95; letter-spacing: -.025em;
  margin: 10px 0 18px;
  font-variation-settings: "opsz" 144;
}
.hero-titulo em { font-style: italic; font-weight: 400; color: var(--rosa-fuerte); position: relative; }
.hero-titulo em::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -.08em; height: .14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C40 3 70 12 100 7S165 3 197 8' fill='none' stroke='%23F7C5CF' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  z-index: -1;
}
.hero-sub { max-width: 32ch; margin: 0 auto; font-size: clamp(16px, 2.3vw, 19px); color: var(--tinta-suave); }
.hero-personajes { position: relative; display: flex; align-items: flex-end; justify-content: center; width: min(92vw, 460px); margin: 30px 0 34px; }
.hero-personajes > .pj { width: 31%; position: relative; z-index: 1; }
.hero-personajes > .pj-conejita { width: 36%; margin: 0 -3% 2%; z-index: 2; }
.hero-personajes .pj-nube { position: absolute; left: -8%; width: 116%; bottom: -26%; z-index: 3; height: auto; }
.hero-corazoncitos { position: absolute; inset: -20% 0 30%; pointer-events: none; }
.hero-corazoncitos i { position: absolute; bottom: 0; left: var(--x); width: 16px; height: 15px; animation: burbuja var(--d) ease-out var(--retraso) infinite; opacity: 0; }
.hero-corazoncitos svg { width: 100%; height: 100%; fill: var(--c); }
@keyframes burbuja { 0% { transform: translateY(0) scale(.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-160px) scale(1.1); opacity: 0; } }
.bajar {
  margin-top: 46px; display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--f-mano); font-size: 22px; color: var(--tinta-suave); text-decoration: none;
}
.bajar svg { width: 22px; height: 22px; animation: bajar 1.8s ease-in-out infinite; }
@keyframes bajar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---------- Secciones ---------- */
.seccion { max-width: 1080px; margin: 0 auto; padding: 88px 16px; }
.encabezado { text-align: center; margin-bottom: 40px; }
.encabezado h2, .pregunta h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(34px, 6.4vw, 58px); line-height: 1.02; letter-spacing: -.02em;
  margin: 6px 0 0;
}
.encabezado h2 em, .pregunta h2 em { font-style: italic; font-weight: 400; color: var(--rosa-fuerte); }

/* ---------- Contador ---------- */
.contador {
  background: #FFFDFB; border-radius: 30px; padding: 34px 18px 22px;
  box-shadow: var(--sombra); text-align: center;
  position: relative;
}
.contador::before, .aniv::before, .carta::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-2deg);
  background: rgba(247, 197, 207, .75);
  -webkit-mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0), repeating-linear-gradient(0deg, #000 0 4px, transparent 4px 6px);
  mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0), repeating-linear-gradient(0deg, #000 0 4px, transparent 4px 6px);
}
.contador-principal { display: flex; flex-direction: column; align-items: center; }
.contador-num {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(96px, 22vw, 190px); line-height: .9; letter-spacing: -.04em;
  color: var(--rosa-fuerte); font-variant-numeric: tabular-nums;
  font-variation-settings: "opsz" 144;
}
.contador-etq { font-family: var(--f-mano); font-size: clamp(26px, 4.6vw, 36px); color: var(--tinta-suave); margin-top: 2px; }
.contador-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
@media (min-width: 760px) { .contador-grid { grid-template-columns: repeat(6, 1fr); } }
.ficha { border-radius: 18px; padding: 14px 6px 10px; display: flex; flex-direction: column; align-items: center; }
.ficha b { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 5vw, 38px); line-height: 1; font-variant-numeric: tabular-nums; }
.ficha span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-suave); margin-top: 6px; }
.f1 { background: var(--rubor-2); } .f2 { background: var(--mantequilla-suave); } .f3 { background: var(--lila-suave); }
.f4 { background: var(--salvia-suave); } .f5 { background: var(--cielo-suave); } .f6 { background: #FDE8DC; }
.ficha b.tic { animation: tic .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tic { from { transform: translateY(-6px); opacity: .4; } to { transform: none; opacity: 1; } }

.aniv { position: relative; margin-top: 28px; background: #FFFDFB; border-radius: 26px; padding: 26px 22px 18px; box-shadow: var(--sombra); }
.aniv-texto { margin: 0 0 16px; text-align: center; font-size: clamp(17px, 2.6vw, 20px); }
.aniv-texto b { color: var(--rosa-fuerte); }
.aniv-barra { height: 16px; border-radius: 99px; background: var(--rubor-2); position: relative; box-shadow: inset 0 1px 3px rgba(122, 52, 70, .15); }
.aniv-relleno {
  height: 100%; width: 0; border-radius: 99px; position: relative;
  background: repeating-linear-gradient(-45deg, var(--rosa) 0 10px, #EA8599 10px 20px);
  transition: width 2s cubic-bezier(.2, .8, .2, 1);
}
.aniv-corazon { position: absolute; right: -16px; top: 50%; width: 32px; height: 29px; margin-top: -15px; }
.aniv-corazon svg { width: 100%; height: 100%; fill: var(--rosa-fuerte); stroke: #fff; stroke-width: 6; animation: latido 1.2s ease-in-out infinite; overflow: visible; }
.aniv-extremos { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--f-mano); font-size: 19px; color: var(--tinta-suave); }

.datos { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.datos li { background: #fff; border-radius: 999px; padding: 9px 18px; font-size: 15px; box-shadow: var(--sombra-chica); }
.datos b { color: var(--rosa-fuerte); font-variant-numeric: tabular-nums; }

/* ---------- Calendario ---------- */
.cal-contenedor { display: grid; gap: 26px; align-items: start; }
@media (min-width: 880px) { .cal-contenedor { grid-template-columns: 400px 1fr; } }
.cal { background: #FFFDFB; border-radius: 28px; padding: 20px 16px 18px; box-shadow: var(--sombra); }
.cal-cabecera { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-cabecera h3 { font-family: var(--f-display); font-weight: 600; font-size: 24px; margin: 0; text-transform: capitalize; }
.cal-flecha { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--rubor-2); display: grid; place-items: center; color: var(--rosa-fuerte); transition: transform .2s, background .2s; }
.cal-flecha svg { width: 20px; height: 20px; }
.cal-flecha:hover:not(:disabled) { background: var(--rosa-suave); transform: scale(1.06); }
.cal-flecha:disabled { opacity: .3; cursor: default; }
.cal-semana, .cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-semana span { text-align: center; font-size: 12px; font-weight: 800; color: var(--tinta-suave); padding: 4px 0; }
.cal-dia {
  position: relative; aspect-ratio: 1; border: 0; padding: 0;
  display: grid; place-items: center;
  border-radius: 12px; background: transparent;
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.cal-dia span { position: relative; z-index: 1; }
.cal-dia.vacio { visibility: hidden; }
.cal-dia.antes { color: #C9B5B9; }
.cal-dia.juntos { background: var(--rubor-2); }
.cal-dia.futuro { color: var(--tinta-suave); background: #FBF6F3; }
.cal-dia.mes, .cal-dia.inicio, .cal-dia.aniversario { background: none; color: #fff; }
.cal-dia.mes::before, .cal-dia.inicio::before, .cal-dia.aniversario::before {
  content: ""; position: absolute; inset: 3px 1px 0;
  background: var(--rosa);
  -webkit-mask: var(--mascara-corazon) center / contain no-repeat;
  mask: var(--mascara-corazon) center / contain no-repeat;
}
.cal-dia.inicio::before, .cal-dia.aniversario::before { background: var(--rosa-fuerte); inset: 0 -3px -3px; }
.cal-dia.mes.futuro::before { background: var(--rosa-suave); }
.cal-dia.aniversario.futuro::before { background: #E8A2B1; }
.cal-dia span { transform: translateY(-2px); }
.cal-dia.hoy { box-shadow: inset 0 0 0 2.5px var(--rosa-fuerte); background: #fff; color: var(--rosa-fuerte); animation: hoy 1.6s ease-in-out infinite; }
.cal-dia.hoy.mes, .cal-dia.hoy.aniversario { color: #fff; box-shadow: none; }
@keyframes hoy { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.cal-dia:not(.vacio):hover { transform: scale(1.12); }
.cal-dia.elegido { outline: 2.5px dashed var(--rosa); outline-offset: 1px; }
.cal-info { min-height: 52px; margin: 14px 0 6px; text-align: center; font-family: var(--f-mano); font-size: 22px; line-height: 1.15; color: var(--tinta); }
.cal-info b { color: var(--rosa-fuerte); }
.cal-leyenda { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--tinta-suave); }
.cal-leyenda li { display: flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-juntos { background: var(--rubor-2); box-shadow: inset 0 0 0 1px var(--rosa-suave); }
.lg-mes { background: var(--rosa); -webkit-mask: var(--mascara-corazon) center/contain no-repeat; mask: var(--mascara-corazon) center/contain no-repeat; border-radius: 0; }
.lg-hoy { box-shadow: inset 0 0 0 2px var(--rosa-fuerte); background: #fff; }

.jardin { background: #FFFDFB; border-radius: 28px; padding: 22px 18px; box-shadow: var(--sombra); }
.jardin h3 { font-family: var(--f-display); font-weight: 600; font-size: 24px; margin: 0 0 4px; }
.jardin > p { margin: 0 0 14px; color: var(--tinta-suave); font-size: 15px; }
.jardin > p b { color: var(--rosa-fuerte); }
.jardin-grid { display: flex; flex-wrap: wrap; gap: 3px; }
.jardin-grid i {
  width: 12px; height: 11px; display: block;
  background: #F3E2E5;
  -webkit-mask: var(--mascara-corazon) center/contain no-repeat;
  mask: var(--mascara-corazon) center/contain no-repeat;
  transition: background-color .4s ease, transform .4s cubic-bezier(.3, 1.8, .5, 1);
  transition-delay: calc(var(--i) * 2.4ms);
}
.jardin-grid.on i.lleno { background: var(--rosa); }
.jardin-grid.on i.lleno:nth-child(5n) { background: #EA8DA0; }
.jardin-grid.on i.lleno:nth-child(7n) { background: var(--rosa-fuerte); }
.jardin-grid.on i.hoy { background: var(--rosa-fuerte); animation: latido 1s ease-in-out infinite; }
.jardin-grid i.mes-marca { transform: scale(1.25); }
.jardin-grid i.meta { background: var(--mantequilla); transform: scale(1.4); }
@media (min-width: 880px) { .jardin-grid i { width: 13px; height: 12px; } }

/* ---------- Galería ---------- */
/* filas en orden (de izquierda a derecha), para que se lean como una historia */
.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; align-items: start; }
@media (min-width: 700px) { .galeria { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; } }
@media (min-width: 1000px) { .galeria { grid-template-columns: repeat(4, 1fr); } }
.polaroid {
  display: block; width: 100%;
  margin: 0; padding: 9px 9px 8px;
  background: #fff; border: 0; border-radius: 4px;
  position: relative; text-align: left;
  box-shadow: 0 2px 3px rgba(74, 42, 49, .08), 0 14px 26px -14px rgba(74, 42, 49, .45);
  transform: rotate(var(--r, 0deg));
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s;
}
.polaroid::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 64px; height: 22px; z-index: 2;
  transform: translateX(-50%) rotate(var(--rc, -3deg));
  background: var(--cinta, rgba(247, 197, 207, .8));
}
.polaroid img { width: 100%; height: auto; background: var(--rubor-2); border-radius: 2px; }
.polaroid figcaption { margin-top: 7px; min-height: 24px; padding: 0 2px; font-family: var(--f-mano); font-size: 20px; line-height: 1.1; color: var(--tinta-suave); text-align: center; }
.polaroid.revelar { transform: translateY(26px) rotate(var(--r, 0deg)); }
.polaroid.revelar.visible { transform: rotate(var(--r, 0deg)); }
@media (hover: hover) { .polaroid.revelar.visible:hover { transform: rotate(0) scale(1.04); z-index: 2; box-shadow: 0 4px 6px rgba(74, 42, 49, .08), 0 26px 40px -16px rgba(74, 42, 49, .5); } }
.polaroid.vacia .hueco { aspect-ratio: var(--ar, 4/5); display: grid; place-items: center; background: var(--fondo, var(--rubor-2)); border-radius: 2px; padding: 18%; }
.polaroid.vacia .hueco .pj { width: 80%; }

/* ---------- Videos ---------- */
.videos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 16px; }
.videos > * { width: calc(50% - 8px); max-width: 250px; }
@media (min-width: 700px) { .videos { gap: 26px; } }
.video-tarjeta {
  position: relative; border: 0; padding: 8px 8px 10px; background: #fff; border-radius: 22px;
  box-shadow: var(--sombra); text-align: center;
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.video-tarjeta:hover { transform: translateY(-4px) rotate(-1deg); }
.video-tarjeta .poster { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--lila-suave); display: grid; place-items: center; }
.video-tarjeta .poster img, .video-tarjeta .poster video { width: 100%; height: 100%; object-fit: cover; }
.video-tarjeta.vivo .play { opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .3s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.video-tarjeta.vivo:hover .play, .video-tarjeta.vivo:focus-visible .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-tarjeta .poster .pj { width: 62%; }
.video-tarjeta .play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 58px; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.video-tarjeta .play svg.c { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(255, 255, 255, .92); filter: drop-shadow(0 4px 8px rgba(74, 42, 49, .3)); }
.video-tarjeta .play svg.t { position: relative; width: 20px; height: 20px; fill: var(--rosa-fuerte); margin: -6px 0 0 3px; }
.video-tarjeta:hover .play { transform: translate(-50%, -50%) scale(1.12); }
.video-tarjeta .dur { position: absolute; right: 16px; top: 16px; background: rgba(74, 42, 49, .65); color: #fff; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 3px 9px; }
.video-tarjeta figcaption { margin-top: 6px; padding: 0 4px; font-family: var(--f-mano); font-size: 20px; line-height: 1.1; color: var(--tinta-suave); }

/* ---------- Visor (fotos y videos grandes) ---------- */
.visor {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  background: rgba(46, 24, 30, .88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 56px 12px 24px;
  animation: entrar .3s ease;
}
.visor-figura { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; }
.visor-figura img, .visor-figura video {
  max-width: min(92vw, 1100px); max-height: calc(100vh - 150px); max-height: calc(100svh - 150px);
  width: auto; height: auto; border-radius: 10px; background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
  border: 8px solid #fff;
  animation: aparecer .35s cubic-bezier(.3, 1.3, .5, 1);
}
.visor-figura figcaption { color: #FFE9EE; font-family: var(--f-mano); font-size: 22px; text-align: center; }
.visor-cerrar, .visor-flecha {
  position: absolute; border: 0; border-radius: 50%; width: 48px; height: 48px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--rosa-fuerte);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25); z-index: 2;
}
.visor-cerrar svg, .visor-flecha svg { width: 22px; height: 22px; }
.visor-cerrar { top: 12px; right: 12px; }
.visor-flecha { top: 50%; margin-top: -24px; }
.visor-antes { left: 10px; } .visor-despues { right: 10px; }
.visor.solo-uno .visor-flecha { display: none; }

/* ---------- Razones ---------- */
.razones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .razones { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.razon { perspective: 900px; aspect-ratio: 3 / 3.6; border: 0; padding: 0; background: none; }
.razon-int { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3, 1.3, .5, 1); }
.razon.girada .razon-int { transform: rotateY(180deg); }
.razon-cara {
  position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px;
  box-shadow: var(--sombra-chica);
}
.razon-frente { background: var(--fondo); }
.razon-frente .num { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 40px; line-height: 1; color: var(--tinta); }
.razon-frente .sticker { width: 46%; max-width: 74px; }
.razon-frente .sticker svg { width: 100%; height: auto; display: block; }
.razon-frente .toca { font-family: var(--f-mano); font-size: 19px; color: var(--tinta-suave); }
.razon:hover .razon-frente .sticker { animation: brinco .7s ease-in-out; }
.razon-atras { background: #FFFDFB; transform: rotateY(180deg); box-shadow: var(--sombra-chica), inset 0 0 0 3px var(--fondo); }
.razon-atras p { margin: 0; font-family: var(--f-mano); font-size: clamp(20px, 4.6vw, 24px); line-height: 1.15; text-align: center; color: var(--tinta); }
.razon-atras svg { width: 22px; height: 20px; fill: var(--rosa); }

/* ---------- Carta ---------- */
.carta {
  position: relative; max-width: 680px; margin: 0 auto;
  padding: 40px 24px 34px 44px;
  background:
    linear-gradient(90deg, transparent 30px, rgba(229, 115, 138, .35) 30px 32px, transparent 32px),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(169, 203, 234, .5) 33px 34px),
    #FFFEFB;
  background-position: 0 0, 0 22px, 0 0;
  border-radius: 6px;
  box-shadow: 0 2px 3px rgba(74, 42, 49, .06), 0 30px 50px -28px rgba(74, 42, 49, .5);
  transform: rotate(-.6deg);
}
.carta.visible { transform: rotate(-.6deg); }
.carta-texto p {
  font-family: var(--f-mano); font-size: clamp(22px, 4.4vw, 26px); line-height: 34px;
  margin: 0 0 34px; color: #3E2A44;
  opacity: 0; transform: translateY(8px); transition: opacity .8s ease, transform .8s ease;
}
.carta-texto p.ya { opacity: 1; transform: none; }
.carta-texto p:first-child { font-weight: 700; }
.carta-firma { margin: 0; text-align: right; font-family: var(--f-mano); font-size: 26px; line-height: 34px; color: var(--tinta-suave); }
.carta-firma b { font-size: 34px; color: var(--rosa-fuerte); font-weight: 700; }

/* ---------- Campo de flores ---------- */
.campo {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
  background: #F7D4D4;
}
.campo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.campo-centro {
  position: absolute; left: 0; right: 0; top: 4.5%;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 0 16px; pointer-events: none; text-align: center;
}
.campo-kicker { margin: 0; font-family: var(--f-mano); font-size: clamp(22px, 3.4vw, 30px); color: #6B4A6E; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.campo-foto {
  position: relative; pointer-events: auto;
  width: clamp(190px, 30vw, 320px); aspect-ratio: 100 / 90;
  animation: flotar 5s ease-in-out infinite;
  filter: drop-shadow(0 18px 24px rgba(122, 52, 70, .35));
}
.campo-marco, .campo-foto img, .campo-sinfoto {
  position: absolute;
  -webkit-mask: var(--mascara-corazon) center / contain no-repeat;
  mask: var(--mascara-corazon) center / contain no-repeat;
}
.campo-marco { inset: -7%; background: #FFFBF6; }
.campo-foto img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--foco, 50% 30%); }
.campo-sinfoto { inset: 0; background: linear-gradient(180deg, #FCE4E8, #F7C5CF); display: grid; place-items: center; padding: 16% 22% 22%; }
.campo-sinfoto .pj { width: 100%; }
.campo-guirnalda { position: absolute; inset: 0; pointer-events: none; }
.campo-guirnalda span { position: absolute; width: var(--t, 30px); transform: translate(-50%, -50%) rotate(var(--r)); }
.campo-guirnalda span svg { width: 100%; height: auto; display: block; animation: mecer 3s ease-in-out var(--retraso) infinite alternate; }
@keyframes mecer { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.campo-mensaje {
  pointer-events: auto;
  max-width: 560px; padding: 14px 24px 12px;
  background: rgba(255, 251, 247, .9);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-radius: 20px;
  box-shadow: 0 16px 30px -18px rgba(122, 52, 70, .55);
  transform: rotate(-1.2deg);
}
.campo-mensaje p { margin: 0; font-family: var(--f-mano); font-size: clamp(22px, 3.6vw, 30px); line-height: 1.15; color: var(--tinta); }
.campo-mensaje .campo-amor {
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(52px, 9vw, 86px); line-height: .95; color: var(--rosa-fuerte); margin-top: 2px;
  font-variation-settings: "opsz" 144;
}
.campo-pista {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  margin: 0; padding: 6px 14px; width: max-content; max-width: calc(100% - 32px);
  background: rgba(255, 251, 247, .8); border-radius: 99px;
  font-size: 13px; font-weight: 700; color: var(--tinta-suave); text-align: center;
  pointer-events: none;
}
@media (max-width: 700px) {
  .campo-pista { left: 16px; transform: none; max-width: calc(100% - 100px); bottom: 20px; text-align: left; border-radius: 14px; }
}

/* ---------- Pregunta ---------- */
.pregunta { text-align: center; position: relative; min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pregunta-personajes { display: flex; align-items: flex-end; justify-content: center; width: min(86vw, 380px); margin-bottom: 18px; }
.pregunta-personajes .pj { width: 33%; }
.pregunta-personajes .pj-conejita { width: 38%; margin: 0 -3%; position: relative; z-index: 1; }
.pregunta h2 { max-width: 16ch; margin: 6px auto 30px; }
.botones { display: flex; gap: 18px; align-items: center; justify-content: center; min-height: 110px; flex-wrap: wrap; }
.btn-si { font-size: 20px; padding: 17px 36px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s; transform: scale(var(--crece, 1)); }
.btn-si:hover { transform: scale(calc(var(--crece, 1) * 1.05)); }
.btn-no { background: #fff; color: var(--tinta-suave); box-shadow: var(--sombra-chica); transition: left .35s cubic-bezier(.3, 1.4, .5, 1), top .35s cubic-bezier(.3, 1.4, .5, 1), transform .3s, opacity .3s; }
.btn-no.suelto { position: absolute; z-index: 3; }
.respuesta { animation: aparecer .7s cubic-bezier(.3, 1.4, .5, 1); }
.respuesta-grande { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(64px, 14vw, 120px); color: var(--rosa-fuerte); margin: 0; line-height: 1; }
.respuesta p:last-child { font-family: var(--f-mano); font-size: clamp(24px, 4.4vw, 32px); max-width: 24ch; margin: 10px auto 0; line-height: 1.2; }

.pie { text-align: center; padding: 30px 16px 90px; color: var(--tinta-suave); }
.pie p { margin: 0; font-size: 15px; }
.pie b { color: var(--rosa-fuerte); }
.pie-fecha { font-family: var(--f-mano); font-size: 22px !important; margin-top: 4px !important; }

/* ---------- Música ---------- */
.btn-musica {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: #fff; color: var(--rosa-fuerte);
  box-shadow: 0 10px 24px -8px rgba(122, 52, 70, .5), inset 0 0 0 2px var(--rosa-suave);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.btn-musica:hover { transform: scale(1.08); }
.btn-musica .ic-nota { width: 24px; height: 24px; }
.btn-musica::after { content: ""; position: absolute; width: 30px; height: 2.5px; background: currentColor; border-radius: 2px; transform: rotate(-45deg); transition: opacity .2s; }
.btn-musica.sonando::after { opacity: 0; }
.btn-musica .ondas { position: absolute; inset: 0; pointer-events: none; }
.btn-musica .ondas i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--rosa-suave); opacity: 0; }
.btn-musica.sonando .ondas i { animation: onda 2.4s ease-out infinite; }
.btn-musica.sonando .ondas i:nth-child(2) { animation-delay: .8s; }
.btn-musica.sonando .ondas i:nth-child(3) { animation-delay: 1.6s; }
@keyframes onda { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

/* ---------- Estela de corazones y confeti ---------- */
.estela { position: fixed; left: 0; top: 0; width: 14px; height: 13px; pointer-events: none; z-index: 110; animation: estela .9s ease-out forwards; }
.estela svg { width: 100%; height: 100%; fill: var(--c, var(--rosa)); }
@keyframes estela { from { transform: translate(var(--x), var(--y)) scale(1); opacity: .95; } to { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) - 46px)) scale(.3) rotate(var(--rot)); opacity: 0; } }
.confeti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 250; }

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .revelar, .carta-texto p { opacity: 1; transform: none; }
}
