/* Dirección: invitación impresa de lujo. Papel marfil, acuarela rosada, hojas doradas de línea fina.
   Great Vibes (nombre, "15" y títulos) + Marcellus (mayúsculas finas) + Cormorant Garamond cursiva (párrafos). */
:root {
  --paper: #fffdfb;
  --ink: #34192a;
  --muted: #5c3a4a;
  --rose: #9c2f55;
  --rose-d: #83254a;
  --rose-l: #f6c3d0;
  --gold: #c9a24a;
  --line: rgba(201, 162, 74, .6);
  --pline: rgba(176, 68, 103, .35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Marcellus", "Times New Roman", serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden; background: #faeeeb; color: var(--ink);
  font-family: var(--serif); font-weight: 600; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* Papel con lavados de acuarela rosada en las esquinas */
.bg { position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(246,176,196,.42), transparent 70%),
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(246,176,196,.36), transparent 70%),
    radial-gradient(ellipse 40% 35% at 0% 0%, rgba(240,214,150,.22), transparent 70%),
    radial-gradient(ellipse 40% 35% at 100% 100%, rgba(240,214,150,.2), transparent 70%),
    #faeeeb; }

/* ---------- Texto común ---------- */
.eyebrow { font: 400 2.7cqw/1.6 var(--caps); letter-spacing: .28em; text-transform: uppercase; color: var(--rose-d); margin: 0; }
.label-s { display: block; font: 400 2.5cqw/1 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--rose-d); margin-bottom: 2cqw; }
.rule { width: 16cqw; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 5cqw auto; }
.btn {
  display: inline-block; font: 400 2.7cqw/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  padding: 3.2cqw 6.4cqw; border: 1px solid var(--rose); color: var(--rose-d); background: transparent; border-radius: 2px; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--rose); color: #fff; }
.btn--solid { background: var(--rose); color: #fff; }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--rose-d); border-color: var(--rose-d); }
.gate .btn, .modal .btn { font: 400 .74rem/1 var(--caps); letter-spacing: .2em; padding: .95rem 1.6rem; margin: 0; }

/* Adornos florales (se insertan desde app.js) */
.deco { position: absolute; pointer-events: none; overflow: visible; z-index: 0; }
.page--paper .deco { width: 54cqw; height: 54cqw; }
.page--l .deco.fl { left: -6cqw; bottom: -6cqw; transform: rotate(180deg); }
.page--l .deco.gd { left: -6cqw; top: -6cqw; }
.page--r .deco.fl { right: -6cqw; top: -6cqw; }
.page--r .deco.gd { right: -6cqw; bottom: -6cqw; transform: rotate(180deg); }
.page--cover .deco { width: 62cqw; height: 62cqw; }
.page--cover .deco.fl.tr { right: -5cqw; top: -5cqw; }
.page--cover .deco.fl.bl { left: -5cqw; bottom: -5cqw; transform: rotate(180deg); }
.page--cover .deco.gd.tl { left: -6cqw; top: -6cqw; }
.page--cover .deco.gd.br { right: -6cqw; bottom: -6cqw; transform: rotate(180deg); }
.gate-deco { position: fixed; z-index: 0; width: min(46vw, 440px); aspect-ratio: 1; pointer-events: none; overflow: visible; }
.gate-deco.fl.tr { right: -2%; top: -3%; }
.gate-deco.fl.bl { left: -2%; bottom: -3%; transform: rotate(180deg); }
.gate-deco.gd.tl { left: -3%; top: -4%; width: min(34vw, 340px); }
.gate-deco.gd.br { right: -3%; bottom: -4%; width: min(34vw, 340px); transform: rotate(180deg); }

/* =========================================================
   PORTADA · sobre + piano
   ========================================================= */
.gate { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 1rem; overflow: auto; }
.gate__box { position: relative; z-index: 2; width: min(94vw, 600px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.gate__head { margin-bottom: 1.2rem; }
.gate__eyebrow { font: 400 .72rem/1.5 var(--caps); letter-spacing: .32em; text-transform: uppercase; color: var(--rose-d); margin: 0; }
.gate__name { font: 400 clamp(3.2rem, 11vw, 4.8rem)/1.15 var(--script); color: var(--rose); margin: .45rem 0 0; }
.gate__tip { font: 400 .76rem/1.6 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--rose-d); margin: 1.9rem 0 1rem; max-width: 34em; }
.gate__skip { font: italic 600 .98rem/1.4 var(--serif); color: var(--muted); margin: .9rem 0 0; }
.gate .confetti { position: fixed; z-index: 20; }

.env-persp { perspective: 1400px; }
.env { position: relative; width: min(74vw, 350px); aspect-ratio: 3 / 2; transform-style: preserve-3d; }
.env > * { position: absolute; }
.env__liner {
  inset: 0; border-radius: 3px;
  background: radial-gradient(circle, rgba(201,162,74,.4) 1px, transparent 1.7px) 0 0 / 11px 11px, #fff7f2;
  box-shadow: 0 24px 40px -12px rgba(176,68,103,.4);
}
.letter { left: 6%; right: 6%; top: 8%; bottom: 8%; z-index: 2; background: #fffdfb; border: 1px solid var(--line); display: grid; place-items: center; }
.letter::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(201,162,74,.4); }
.letter__in { text-align: center; }
.letter__n { display: block; font: 400 clamp(3.2rem, 11vw, 4.6rem)/1 var(--script); color: var(--rose); }
.letter__t { display: block; margin-top: .3rem; font: 400 .62rem/1 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.env__pocket { inset: 0; z-index: 3; pointer-events: none; }
.env__pocket--l { background: linear-gradient(100deg, #fad2dd, #f1aabf); clip-path: polygon(0 0, 52% 54%, 0 100%); }
.env__pocket--r { background: linear-gradient(260deg, #fad2dd, #f1aabf); clip-path: polygon(100% 0, 48% 54%, 100% 100%); }
.env__pocket--b { background: linear-gradient(#f6c1d1, #e898b0); clip-path: polygon(0 100%, 50% 44%, 100% 100%); }
.flap { left: 0; right: 0; top: 0; height: 56%; z-index: 5; transform-origin: 50% 0; transform-style: preserve-3d; }
.flap__face { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flap__face--out { background: linear-gradient(#fee4ec, #f5b8ca); }
.flap__face--in { transform: rotateX(180deg); background: radial-gradient(circle, rgba(201,162,74,.4) 1px, transparent 1.7px) 0 0 / 11px 11px, #fff7f2; }
.env__deco { overflow: visible; pointer-events: none; z-index: 6; }
.env__deco--fl { left: -9%; bottom: -10%; width: 54%; height: auto; aspect-ratio: 1; transform: rotate(180deg); }
.env__deco--gd { right: -5%; top: -13%; width: 40%; height: auto; aspect-ratio: 1; transform: scaleX(-1); }
.stamp { left: 50%; top: 56%; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 7; filter: drop-shadow(0 5px 8px rgba(120,30,60,.35)); }
.stamp svg { display: block; width: 100%; height: 100%; }

/* ---------- Piano ---------- */
.piano-mount { width: 100%; }
.piano__lyrics { min-height: 1.7em; margin: 0 0 .5rem; font: italic 600 1.2rem/1.4 var(--serif); color: var(--rose); }
.piano__dots { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-bottom: .9rem; }
.piano__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(176,68,103,.25); transition: background .25s, transform .25s; }
.piano__dots i.on { background: var(--rose); transform: scale(1.3); }
.piano__dots i.gap { margin-right: 8px; }
.kb { position: relative; display: flex; height: clamp(100px, 21vw, 130px); margin: 0 auto 1.1rem; max-width: 500px; touch-action: none; user-select: none; -webkit-user-select: none;
  padding: 8px 6px 0; background: #3a2330; border-radius: 6px 6px 3px 3px; box-shadow: 0 14px 26px -8px rgba(90,30,60,.5); }
.kb .w { position: relative; flex: 1; border: 0; padding: 0 0 8px; cursor: pointer; background: linear-gradient(#fffefd, #f9eef1); border-radius: 0 0 4px 4px; margin: 0 1px;
  display: flex; align-items: flex-end; justify-content: center; color: var(--muted); font: 400 .62rem/1 var(--caps); letter-spacing: .06em; transition: transform .08s, background .15s; }
.kb .w.down { transform: translateY(2px); background: linear-gradient(#fbdde7, #f2b6c9); }
.kb .b { position: absolute; top: 8px; height: 60%; width: 6.2%; margin-left: -3.1%; z-index: 2; border: 0; padding: 0; cursor: pointer; border-radius: 0 0 3px 3px;
  background: linear-gradient(#4a2e3c, #1c1117); box-shadow: 0 4px 6px rgba(0,0,0,.4); transition: transform .08s, background .15s; }
.kb .b.down { transform: translateY(2px); background: linear-gradient(#b04467, #6d1d3c); }
.kb .w.hint { background: linear-gradient(#fdeaf0, #f6c3d0); animation: hint 1.1s ease-in-out infinite alternate; }
.kb .w.hint::after { content: ""; position: absolute; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
@keyframes hint { from { box-shadow: inset 0 0 0 0 transparent; } to { box-shadow: inset 0 0 14px 2px rgba(176,68,103,.4); } }
.piano__actions { display: flex; justify-content: center; align-items: center; gap: .8rem; flex-wrap: wrap; }
.piano__actions .btn--link { border: 0; padding: .95rem .6rem; color: var(--muted); }
.piano__actions .btn--link:hover { background: transparent; color: var(--rose-d); }

.confetti { pointer-events: none; overflow: hidden; inset: 0; }
.confetti span { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 1px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* =========================================================
   LIBRO
   ========================================================= */
.stage { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; visibility: hidden; opacity: 0; padding: .6rem 0 0; }
.book-wrap { position: relative; display: flex; align-items: center; justify-content: center; flex: none; }
#book { touch-action: pan-y; }
.ground { position: absolute; left: 12%; right: 12%; bottom: -3%; height: 8%; background: radial-gradient(ellipse, rgba(150,50,90,.4), transparent 70%); filter: blur(10px); z-index: -1; }

.stage.is-in .nav, .stage.is-in .stage__hint { animation: rise 1s 1.1s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: min(92vw, 420px); margin: 1rem 0 .2rem; }
.nav__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rose); cursor: pointer; display: grid; place-items: center; flex: none;
  color: var(--rose-d); background: rgba(255,253,251,.9); transition: background .25s, color .25s, opacity .25s;
}
.nav__btn:hover { background: var(--rose); color: #fff; }
.nav__btn:disabled { opacity: .3; pointer-events: none; }
.nav__mid { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .55rem; min-width: 0; }
.nav__label { font: italic 600 1.2rem/1 var(--serif); color: var(--ink); white-space: nowrap; }
.nav__bar { display: block; width: 100%; max-width: 200px; height: 2px; background: rgba(176,68,103,.2); overflow: hidden; }
.nav__bar i { display: block; height: 100%; width: 0; background: var(--rose); transition: width .5s var(--ease); }
.stage__hint { font: 400 .64rem/1.4 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: .5rem 0 calc(.3rem + env(safe-area-inset-bottom)); text-align: center; padding: 0 1rem; transition: opacity .6s; }
@media (min-width: 900px) {
  .nav { position: fixed; inset: 0; width: auto; margin: 0; display: block; pointer-events: none; }
  .nav__btn { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; pointer-events: auto; }
  .nav__btn--prev { left: max(14px, calc(50% - var(--bw, 900px) / 2 - 80px)); }
  .nav__btn--next { right: max(14px, calc(50% - var(--bw, 900px) / 2 - 80px)); }
  .nav__mid { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 240px; flex: none; pointer-events: none; }
  .stage__hint { position: absolute; bottom: 64px; left: 0; right: 0; margin: 0; }
}

.music { position: fixed; z-index: 30; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rose); background: rgba(255,253,251,.9); color: var(--rose-d); display: grid; place-items: center; cursor: pointer; }
.music[hidden] { display: none; }
.music.on { background: var(--rose); color: #fff; }

/* ---------- Páginas ---------- */
.page { container-type: inline-size; overflow: hidden; background: var(--paper); }
.page--paper {
  background:
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(246,176,196,.16), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(246,176,196,.14), transparent 70%),
    var(--paper);
}
.page--paper::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.page--l::after { background: linear-gradient(270deg, rgba(110,40,70,.17), rgba(110,40,70,.04) 7%, transparent 16%); }
.page--r::after { background: linear-gradient(90deg, rgba(110,40,70,.17), rgba(110,40,70,.04) 7%, transparent 16%); }
.pg { position: absolute; inset: 0; z-index: 1; padding: 12cqw 11cqw 10cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.page--l .pg { padding-right: 13cqw; }
.page--r .pg { padding-left: 13cqw; }

.name { font: 400 21cqw/1.05 var(--script); color: var(--rose); margin: 1cqw 0 2cqw; }
.h { font: 400 13cqw/1.05 var(--script); color: var(--rose); margin: 1cqw 0 4cqw; }
.h--xl { font-size: 19cqw; margin: 2cqw 0 0; }
.h--md { font-size: 10.5cqw; margin: 3cqw 0 0; }
.big { font: 400 6.6cqw/1 var(--caps); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 5cqw; }
.place { font: 400 4.2cqw/1.4 var(--caps); letter-spacing: .1em; text-transform: uppercase; color: var(--rose-d); margin: 0 0 2cqw; }
.addr { font: italic 600 4.6cqw/1.4 var(--serif); color: var(--muted); margin: 0 0 7cqw; }
.note { font: italic 600 4.4cqw/1.45 var(--serif); color: var(--muted); margin: 4cqw 0 0; max-width: 62cqw; }
.note--top { font-size: 5cqw; color: var(--ink); margin: 0 0 6cqw; }
.quote { font: italic 600 5.2cqw/1.55 var(--serif); margin: 0; color: var(--ink); }
.people { display: flex; flex-direction: column; gap: 9cqw; }
.people p { font: 600 6cqw/1.35 var(--serif); margin: 0; }

.loves { list-style: none; padding: 0; margin: 2cqw 0 0; width: 100%; display: grid; gap: 5cqw; }
.loves li { display: flex; align-items: center; gap: 4.5cqw; text-align: left; }
.love__i { flex: none; width: 14cqw; height: 14cqw; border-radius: 50%; display: grid; place-items: center; color: var(--rose); border: 1px solid var(--gold); background: #fff; }
.love__i svg { width: 8cqw; height: 8cqw; }
.loves b { display: block; font: 400 4.4cqw/1.2 var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--rose-d); }
.loves small { display: block; font: italic 600 4cqw/1.3 var(--serif); color: var(--muted); margin-top: .8cqw; }

.cd { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; margin: 6cqw 0 5cqw; width: 100%; max-width: 58cqw; }
.cd__i { padding: 4cqw 1cqw; display: flex; flex-direction: column; gap: 1.6cqw; background: rgba(255,255,255,.8); border: 1px solid var(--line); }
.cd__i b { font: 400 9.5cqw/1 var(--caps); color: var(--rose); font-variant-numeric: tabular-nums; }
.cd__i span { font: 400 2.3cqw/1 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.cd__date { font: italic 600 5cqw/1.3 var(--serif); margin: 0 0 6cqw; }

.swatches { display: flex; gap: 4cqw; margin-top: 7cqw; }
.swatches i { width: 9cqw; height: 9cqw; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1cqw var(--paper), 0 0 0 1.4cqw var(--line); }

.timeline { list-style: none; padding: 0; margin: 1cqw 0 0; width: 100%; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 2cqw; bottom: 2cqw; width: 1px; background: linear-gradient(transparent, var(--gold), transparent); }
.timeline li { display: grid; grid-template-columns: 1fr 5cqw 1fr; align-items: center; gap: 2cqw; padding: 2.5cqw 0; }
.timeline li::before { content: ""; grid-column: 2; grid-row: 1; width: 1.8cqw; height: 1.8cqw; background: var(--rose); border-radius: 50%; justify-self: center; }
.timeline .t { grid-column: 1; grid-row: 1; text-align: right; font: 400 3.8cqw/1 var(--caps); letter-spacing: .08em; text-transform: uppercase; color: var(--rose-d); }
.timeline .e { grid-column: 3; grid-row: 1; text-align: left; font: italic 600 4.4cqw/1.2 var(--serif); }

.arches { display: flex; gap: 3cqw; align-items: flex-end; justify-content: center; margin-top: 6cqw; width: 100%; }
.arch { flex: 1; aspect-ratio: 3 / 5; border-radius: 999px 999px 0 0; border: 1px solid var(--gold); outline: 1px solid rgba(201,162,74,.35); outline-offset: 1cqw;
  background: var(--img) var(--pos, center) / var(--bs, cover) no-repeat, linear-gradient(160deg, #fbd9e2, #fff6f8 60%, #f3d9e6); }
.arch--tall { aspect-ratio: 3 / 6.2; }

/* Portadas del libro: la tarjeta de la referencia hecha libro */
.page--cover { background: radial-gradient(ellipse 80% 50% at 0% 100%, rgba(246,176,196,.4), transparent 70%), radial-gradient(ellipse 80% 50% at 100% 0%, rgba(246,176,196,.35), transparent 70%), var(--paper); }
.page--cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(110,40,70,.3), rgba(255,255,255,.2) 4%, transparent 10%, transparent 94%, rgba(110,40,70,.14)); pointer-events: none; z-index: 2; }
.cover__in { position: absolute; inset: 0; z-index: 1; padding: 11cqw 10cqw 9cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.photo { position: relative; width: 46cqw; aspect-ratio: 1; border-radius: 50%; border: 1.6cqw solid var(--rose-l);
  background: var(--img) var(--pos, center) / var(--bs, cover) no-repeat, linear-gradient(145deg, #fbd6df, #fff3f6 60%, #f4c3d0); box-shadow: 0 0 0 .5cqw #fff, 0 2cqw 5cqw rgba(176,68,103,.2); }
.photo__wreath { position: absolute; left: -9%; top: -9%; width: 118%; height: 118%; overflow: visible; pointer-events: none; }
.cover__n { position: relative; font: 400 31cqw/.9 var(--script); color: var(--rose); margin-top: -9cqw; text-shadow: 0 0 1cqw #fff, 0 0 4cqw #fff, 0 0 6cqw #fff; }
.cover__years { font: 400 12cqw/1 var(--script); color: var(--rose); margin: -3cqw 0 0; }
.cover__name { font: 400 13cqw/1.1 var(--script); color: var(--rose-d); margin: 2cqw 0 3cqw; }
.cover__small { font: 400 2.9cqw/1.7 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--rose-d); margin: 0; }
.cover__thanks { font: 400 20cqw/1.1 var(--script); color: var(--rose); margin: 2cqw 0; }
.cover__date { font: 400 3cqw/1.5 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* ---------- Confirmación (modal) ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100svh; margin: auto; color: var(--ink); }
.modal::backdrop { background: rgba(90,30,60,.45); backdrop-filter: blur(5px); }
.modal .form { position: relative; width: min(92vw, 440px); background: var(--paper); padding: 2.4rem 1.8rem 2rem; display: grid; gap: 1.3rem; text-align: left; border: 1px solid var(--gold); border-radius: 4px; box-shadow: 0 30px 60px rgba(90,30,60,.3); }
.modal .eyebrow { font-size: .7rem; text-align: center; }
.modal .h { font-size: 2.6rem; text-align: center; margin: 0 0 .2rem; }
.modal__x { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; font-size: 1.8rem; line-height: 1; color: var(--rose-d); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.modal__x:hover { background: rgba(176,68,103,.1); }
.form label > span, .form legend { display: block; font: 400 .68rem/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--rose-d); margin-bottom: .5rem; padding: 0; }
.form input[type=text], .form select, .form textarea { width: 100%; font: 600 1.1rem var(--serif); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--pline); padding: .5rem 0; border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--rose); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.radio { display: flex !important; align-items: center; gap: .7rem; padding: .3rem 0; cursor: pointer; }
.radio input { accent-color: var(--rose); width: 18px; height: 18px; }
.radio span { text-transform: none !important; letter-spacing: 0 !important; font: 600 1.1rem var(--serif) !important; color: var(--ink) !important; margin: 0 !important; }
.form .btn { justify-self: center; }
.form .is-invalid { border-color: #b3261e !important; }

/* =========================================================
   LEGIBILIDAD: sombras y trazo fino para que las letras destaquen
   ========================================================= */
/* Letra caligráfica (nombre, "15", títulos): trazo que engrosa los finos + sombra suave */
.gate__name, .name, .h, .cover__name, .cover__years, .cover__thanks, .letter__n {
  -webkit-text-stroke: .7px currentColor; paint-order: stroke fill;
  text-shadow: 0 1px 0 rgba(255,255,255,.85), 0 2px 7px rgba(110,25,60,.30);
}
.cover__n {
  -webkit-text-stroke: .9px currentColor; paint-order: stroke fill;
  text-shadow: 0 0 1cqw #fff, 0 0 4cqw #fff, 0 .6cqw 2.2cqw rgba(110,25,60,.38);
}
/* Mayúsculas finas (Marcellus): se engrosan un poco y se levantan del fondo */
.eyebrow, .label-s, .btn, .place, .big, .loves b, .cd__i b, .cd__i span, .timeline .t,
.gate__eyebrow, .gate__tip, .stage__hint, .cover__small, .cover__date, .kb .w,
.form label > span, .form legend {
  -webkit-text-stroke: .3px currentColor;
  text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 1px 4px rgba(110,25,60,.18);
}
.btn--solid, .btn:hover { text-shadow: 0 1px 2px rgba(60,10,35,.35); }
/* Cursiva de los párrafos (Cormorant): más peso y un halo claro */
.quote, .note, .addr, .loves small, .cd__date, .timeline .e, .people p, .piano__lyrics, .gate__skip, .nav__label {
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.85), 0 1px 5px rgba(110,25,60,.16);
}
/* Texto sobre fondos oscuros o de color: sombra oscura en vez de clara */
.btn--solid { -webkit-text-stroke: .2px currentColor; }
.stage__hint, .gate__tip { color: var(--rose-d); }

/* =========================================================
   BORDE BLANCO + SOMBRA: contorno blanco alrededor de cada letra
   (ocho desplazamientos forman el borde; la última sombra da profundidad)
   ========================================================= */
/* Letra caligráfica grande: borde blanco de 3 px */
.gate__name, .name, .h, .cover__name, .cover__years, .cover__thanks, .letter__n {
  text-shadow:
    -3px 0 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, 0 3px 0 #fff,
    -2.2px -2.2px 0 #fff, 2.2px -2.2px 0 #fff, -2.2px 2.2px 0 #fff, 2.2px 2.2px 0 #fff,
    0 4px 9px rgba(110,25,60,.45);
}
.cover__n {
  text-shadow:
    -3.5px 0 0 #fff, 3.5px 0 0 #fff, 0 -3.5px 0 #fff, 0 3.5px 0 #fff,
    -2.5px -2.5px 0 #fff, 2.5px -2.5px 0 #fff, -2.5px 2.5px 0 #fff, 2.5px 2.5px 0 #fff,
    0 5px 11px rgba(110,25,60,.45);
}
/* Mayúsculas finas y cursiva de párrafos: borde blanco de 1.6 px */
.eyebrow, .label-s, .btn:not(.btn--solid), .place, .big, .loves b, .cd__i b, .cd__i span, .timeline .t,
.gate__eyebrow, .gate__tip, .stage__hint, .cover__small, .cover__date, .kb .w,
.form label > span, .form legend,
.quote, .note, .addr, .loves small, .cd__date, .timeline .e, .people p, .piano__lyrics, .gate__skip, .nav__label {
  text-shadow:
    -1.6px 0 0 #fff, 1.6px 0 0 #fff, 0 -1.6px 0 #fff, 0 1.6px 0 #fff,
    -1.2px -1.2px 0 #fff, 1.2px -1.2px 0 #fff, -1.2px 1.2px 0 #fff, 1.2px 1.2px 0 #fff,
    0 2px 5px rgba(110,25,60,.30);
}
/* Botón relleno: letras blancas sobre rosa, sin borde blanco */
.btn--solid { text-shadow: 0 1px 2px rgba(60,10,35,.4); }

/* =========================================================
   PORTADA: "15 años" grande en una sola fila, color que destaca
   ========================================================= */
:root { --hot: #d4175a; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gate__title { margin: 0; font-weight: 400; line-height: 1; }
.gate__row { display: flex; align-items: baseline; justify-content: center; gap: .18em; flex-wrap: nowrap; white-space: nowrap; }
.gate__n, .gate__a {
  color: var(--hot); font-family: var(--script); font-weight: 400;
  -webkit-text-stroke: .9px currentColor; paint-order: stroke fill;
  text-shadow:
    -3.5px 0 0 #fff, 3.5px 0 0 #fff, 0 -3.5px 0 #fff, 0 3.5px 0 #fff,
    -2.5px -2.5px 0 #fff, 2.5px -2.5px 0 #fff, -2.5px 2.5px 0 #fff, 2.5px 2.5px 0 #fff,
    0 5px 12px rgba(150,10,60,.45);
}
.gate__n { font-size: clamp(5.6rem, 20vw, 8rem); line-height: .95; }
.gate__a { font-size: clamp(2.8rem, 10vw, 4.2rem); }
.gate__head { margin-bottom: 1rem; }
.gate__name { font: 400 clamp(2.4rem, 8vw, 3.2rem)/1.1 var(--script); color: var(--rose); margin: .2rem 0 0; }
.env { width: min(66vw, 300px); }
.gate__tip { margin: 1.4rem 0 .8rem; }
.kb { height: clamp(96px, 19vw, 112px); }

/* "Estás invitado a mis" sobre el "15 años" (ajustes para que todo siga cabiendo) */
.gate__title { display: flex; flex-direction: column; align-items: center; }
.gate__title .gate__eyebrow { display: block; margin: 0 0 .1rem; }
.gate__n { font-size: clamp(5rem, 17vw, 6.8rem); }
.gate__a { font-size: clamp(2.6rem, 9vw, 3.6rem); }
.gate__head { margin-bottom: .6rem; }
.env { width: min(62vw, 280px); }
.gate__tip { margin: 1.2rem 0 .7rem; }

/* =========================================================
   FLECHAS: anillo doble dorado y flecha larga y fina
   ========================================================= */
.nav__btn {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold);
  background: linear-gradient(#fffefd, #fdf1f3); color: var(--rose-d);
  box-shadow: 0 0 0 4px rgba(255,253,251,.9), 0 0 0 5px rgba(201,162,74,.55), 0 10px 20px rgba(150,40,80,.2);
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), opacity .3s;
}
.nav__btn .arrow { display: block; transition: transform .35s var(--ease); }
.nav__btn--next:hover .arrow { transform: translateX(4px); }
.nav__btn--prev:hover .arrow { transform: translateX(-4px); }
.nav__btn:hover { background: linear-gradient(#c24a78, var(--rose-d)); color: #fff; border-color: transparent;
  box-shadow: 0 0 0 4px rgba(255,253,251,.9), 0 0 0 5px rgba(201,162,74,.8), 0 12px 24px rgba(150,40,80,.35); }
.nav__btn:disabled { opacity: .35; }
@media (min-width: 900px) {
  .nav__btn { width: 58px; height: 58px; margin-top: -29px; }
  .nav__btn--prev { left: max(20px, calc(50% - var(--bw, 900px) / 2 - 92px)); }
  .nav__btn--next { right: max(20px, calc(50% - var(--bw, 900px) / 2 - 92px)); }
}

/* =========================================================
   NAVEGACIÓN FORMAL: texto discreto "‹ Anterior · Siguiente ›" bajo el libro
   (sustituye a los botones circulares)
   ========================================================= */
.nav, .stage .nav { position: static; inset: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(92vw, 540px); margin: 1.1rem 0 .1rem; pointer-events: auto; }
.nav__btn, .nav__btn:hover {
  position: static; width: auto; height: auto; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .15rem; flex: none; cursor: pointer;
  font: 400 .74rem/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--rose-d);
  text-shadow: -1.4px 0 0 #fff, 1.4px 0 0 #fff, 0 -1.4px 0 #fff, 0 1.4px 0 #fff, 0 2px 5px rgba(110,25,60,.25);
  transition: color .25s var(--ease), opacity .25s;
}
.nav__btn:hover { color: var(--hot); }
.nav__btn .arrow { width: 22px; height: 9px; transition: transform .3s var(--ease); }
.nav__btn--next:hover .arrow { transform: translateX(4px); }
.nav__btn--prev:hover .arrow { transform: translateX(-4px); }
.nav__btn:disabled { opacity: .3; pointer-events: none; }
.nav__mid, .stage .nav__mid { position: static; transform: none; flex: 1; width: auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; }
.stage__hint, .stage .stage__hint { position: static; margin: .45rem 0 calc(.3rem + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .nav, .stage .nav { position: static; inset: auto; width: min(92vw, 540px); margin: 1.1rem 0 .1rem; display: flex; }
  .nav__btn, .nav__btn:hover { position: static; width: auto; height: auto; margin: 0; }
  .nav__mid, .stage .nav__mid { position: static; left: auto; bottom: auto; transform: none; width: auto; flex: 1; }
  .stage__hint, .stage .stage__hint { position: static; bottom: auto; margin: .45rem 0 .3rem; }
}
@media (max-width: 420px) { .nav__btn { letter-spacing: .14em; font-size: .68rem; } .nav__btn .arrow { width: 18px; } }

/* ===== Flechas solo icono: finas, largas, sin texto ===== */
.nav__btn { padding: .6rem .4rem; }
.nav__btn .arrow { width: 56px; height: 12px; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff); transition: transform .35s ease, color .3s; }
.nav__btn--next:hover .arrow { transform: translateX(5px); }
.nav__btn--prev:hover .arrow { transform: translateX(-5px); }
.nav__btn[disabled], .nav__btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 420px) { .nav__btn .arrow { width: 44px; } }

/* ===== Flechas: medallón dorado fino, igual que los iconos de "Mis pasiones" ===== */
.nav__btn, .nav__btn:hover { padding: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); background: #fff; justify-content: center; box-shadow: 0 0 0 3px rgba(201,162,74,.12), 0 6px 14px rgba(156,47,85,.12); color: var(--rose); transition: background .3s, color .3s, box-shadow .3s; }
.nav__btn:hover:not(:disabled) { background: var(--rose); color: #fff; box-shadow: 0 0 0 3px rgba(201,162,74,.25), 0 8px 18px rgba(156,47,85,.22); }
.nav__btn .arrow, .nav__btn:hover .arrow, .nav__btn--next:hover .arrow, .nav__btn--prev:hover .arrow { width: 20px; height: 20px; filter: none; transform: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.nav__btn:disabled { opacity: .35; }
