:root {
  --ivory: #F7F4ED;
  --pink: #E6B6C4;
  --blue: #AACDDC;
  --ink: #514B48;
  --muted: #817871;
  --serif: "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --reveal-start: 1.85s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ivory); }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #6a8e9e; outline-offset: 7px; }
::selection { background: #ead2da; }
.invitation { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; overflow: clip; }
.ambient { position: absolute; z-index: -2; width: 55vw; height: 55vw; max-width: 790px; max-height: 790px; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: .34; }
.ambient--pink { top: 9%; left: -29%; background: radial-gradient(circle, var(--pink), transparent 65%); }
.ambient--blue { right: -29%; bottom: 0; background: radial-gradient(circle, var(--blue), transparent 65%); }
.paper-grain { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .035; background-image: 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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23846b52' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.entrance { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 100svh; padding: max(26px, env(safe-area-inset-top)) 24px max(26px, env(safe-area-inset-bottom)); text-align: center; }
.entrance-header { position: relative; z-index: 2; }
.little-star { width: 29px; margin: 0 auto 20px; }
.little-star svg { display: block; fill: var(--pink); width: 100%; }
.eyebrow { margin: 0; color: #85796e; font-size: 10px; line-height: 1.6; letter-spacing: .23em; text-transform: uppercase; font-weight: 500; }
h1 { margin: 18px 0 22px; font-family: var(--serif); font-size: clamp(42px, 4.6vw, 65px); font-weight: 400; line-height: 1.05; letter-spacing: -.047em; }
h1 em { font-weight: 400; color: #a37783; color: color-mix(in srgb, var(--pink) 65%, var(--ink)); }
.fine-line { display: block; width: 42px; height: 1px; margin: 0 auto; background: linear-gradient(90deg, transparent, #c4b4a1, transparent); }
.gift-scene { position: relative; width: 400px; height: 350px; flex-shrink: 0; margin: 10px 0 0; }
.gift-float { position: absolute; width: 360px; height: 340px; left: 20px; top: -3px; animation: float-gift 4.2s ease-in-out infinite; }
.gift-art { position: absolute; inset: 0; }
.gift-box { position: relative; z-index: 2; display: block; width: 100%; height: 100%; overflow: visible; }
.gift-shadow { position: absolute; bottom: 10px; left: 88px; width: 229px; height: 25px; border-radius: 50%; background: #80694f; filter: blur(12px); opacity: .12; transform: rotate(4deg); animation: float-shadow 4.2s ease-in-out infinite; }
.bow-button { position: absolute; z-index: 3; top: 13px; left: 77px; width: 200px; height: 160px; padding: 0; border: 0; border-radius: 45%; background: none; cursor: pointer; transition: filter .25s; }
.bow-button:hover { filter: brightness(1.035) drop-shadow(0 0 9px #eac9d15c); }
.bow-button:focus-visible { outline-offset: -5px; }
.bow-button:disabled { cursor: default; }
.gift-bow { display: block; width: 100%; height: 100%; overflow: visible; }
/* Los degradados del moño siguen los colores editables de config.js. */
#bow-pink stop:nth-child(1) { stop-color: color-mix(in srgb, var(--pink) 68%, white); }
#bow-pink stop:nth-child(2) { stop-color: var(--pink); }
#bow-pink stop:nth-child(3) { stop-color: color-mix(in srgb, var(--pink) 77%, #875467); }
#bow-pink stop:nth-child(4) { stop-color: color-mix(in srgb, var(--pink) 75%, white); }
#bow-blue stop:nth-child(1) { stop-color: color-mix(in srgb, var(--blue) 62%, white); }
#bow-blue stop:nth-child(2) { stop-color: var(--blue); }
#bow-blue stop:nth-child(3) { stop-color: color-mix(in srgb, var(--blue) 75%, #587e91); }
#bow-blue stop:nth-child(4) { stop-color: color-mix(in srgb, var(--blue) 75%, white); }
#ribbon-pink stop:nth-child(1), #ribbon-pink stop:nth-child(3) { stop-color: var(--pink); }
#ribbon-pink stop:nth-child(2) { stop-color: color-mix(in srgb, var(--pink) 78%, white); }
#ribbon-pink stop:nth-child(4) { stop-color: color-mix(in srgb, var(--pink) 70%, #875467); }
#ribbon-blue stop:nth-child(1) { stop-color: color-mix(in srgb, var(--blue) 73%, white); }
#ribbon-blue stop:nth-child(2) { stop-color: var(--blue); }
#ribbon-blue stop:nth-child(3) { stop-color: color-mix(in srgb, var(--blue) 70%, #587e91); }
.bow-loop, .bow-tail, .bow-knot, .gift-lid, .ribbon-lid, .ribbon-front, .ribbon-side { transform-box: fill-box; transform-origin: center; }
.bow-loop--pink { transform-origin: right bottom; }
.bow-loop--blue { transform-origin: left bottom; }
.gift-lid { transform-origin: 75% 60%; }
.gift-glow { position: absolute; z-index: 1; width: 225px; height: 180px; top: 55px; left: 72px; background: radial-gradient(ellipse, #fffdf4 5%, #ffe6ef66 35%, #d4e8ef66 50%, transparent 72%); filter: blur(12px); opacity: 0; }
.floating-particles { position: absolute; inset: 0; pointer-events: none; }
.ambient-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); animation: drift 6s ease-in-out infinite alternate; opacity: .65; }
.ambient-dot--1 { top: 103px; left: 38px; }
.ambient-dot--2 { top: 168px; right: 22px; background: var(--blue); width: 8px; height: 8px; animation-delay: -2.4s; }
.ambient-dot--3 { top: 241px; left: 26px; background: var(--blue); width: 4px; height: 4px; animation-delay: -1s; }
.ambient-dot--4 { top: 55px; right: 72px; width: 4px; height: 4px; animation-delay: -4s; }
.ambient-star { position: absolute; width: 14px; fill: var(--pink); opacity: .65; animation: drift 5s ease-in-out infinite alternate; }
.ambient-star--1 { left: 63px; top: 188px; }
.ambient-star--2 { right: 46px; top: 87px; width: 20px; fill: var(--blue); animation-delay: -3s; }
.opening-particles { position: absolute; inset: -90px; z-index: 4; pointer-events: none; overflow: visible; }
.particle { position: absolute; width: var(--size, 6px); height: var(--size, 6px); border-radius: 50%; background: var(--particle-color); opacity: 0; pointer-events: none; animation: particle-flight var(--duration, 1100ms) var(--delay, 0ms) cubic-bezier(.15,.55,.35,1) both; }
.particle--spark { border-radius: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.entrance-footer { z-index: 2; }
.opening-hint { margin: 5px 0 0; font-size: 13px; line-height: 1.6; letter-spacing: .015em; }
.small-note { margin: 6px 0 26px; color: var(--muted); font-family: var(--serif); font-size: 16px; font-style: italic; }
.skip-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 11px; color: #857970; text-decoration: none; text-underline-offset: 5px; }
.skip-link:hover { color: var(--ink); text-decoration: underline; }
.skip-link span { color: #a99483; font-size: 15px; }

/* Las dos pantallas comparten el mismo contenedor: la transición no cambia de página. */
.cover { position: absolute; inset: 0; z-index: 1; visibility: hidden; opacity: 0; min-height: 100svh; padding: max(30px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); }
.cover-inner { width: min(100%, 1000px); min-height: calc(100svh - 58px); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.cover-eyebrow { position: relative; z-index: 2; margin-bottom: 12px; }
.photo-scene { position: relative; flex-shrink: 0; width: min(100%, 900px); aspect-ratio: 2000 / 1335; isolation: isolate; }
.cover-photo { display: block; width: 100%; height: auto; aspect-ratio: 2000 / 1335; object-fit: contain; }
.photo-edge { position: absolute; inset: -1px; z-index: 3; pointer-events: none; background: linear-gradient(to bottom, var(--ivory) 0%, transparent 16%, transparent 78%, var(--ivory) 100%), linear-gradient(to right, var(--ivory), transparent 7%, transparent 93%, var(--ivory)); }
.cover-heading { position: absolute; z-index: 4; top: 4%; left: 4%; right: 4%; text-align: center; pointer-events: none; }
#cover-title { margin: 0; font-family: var(--serif); font-size: clamp(36px, 7.2vw, 88px); line-height: 1.1; font-weight: 400; letter-spacing: -.06em; color: #494447; text-shadow: 0 1px 15px #fff7e645; }
#cover-title em { font-weight: 400; font-size: .82em; }
#cover-title:focus { outline: none; }
.cover-subtitle { margin: 11px 0 0; font-size: clamp(10px, 1.5vw, 15px); line-height: 1.5; letter-spacing: .015em; color: #574e50; }
.color-half { position: absolute; z-index: 2; top: 0; bottom: 0; width: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; overflow: hidden; }
.color-half--pink { left: 0; }
.color-half--blue { right: 0; }
.color-half:focus-visible { outline-offset: -12px; border-radius: 22px; }
.color-half--pink:focus-visible { outline-color: #ac697f; }
.color-half--blue:focus-visible { outline-color: #537e91; }
.half-glow { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), #fff9ec90, transparent 60%); }
.color-half--pink .half-glow { box-shadow: inset 0 0 60px #efbdcd80; }
.color-half--blue .half-glow { box-shadow: inset 0 0 60px #b4d8e880; }
.color-half.is-glowing .half-glow { animation: half-glow 900ms ease-out both; }
.photo-particles { position: absolute; z-index: 5; inset: 0; pointer-events: none; overflow: hidden; }
.cover-details { position: relative; z-index: 4; text-align: center; margin-top: -8px; }
.parents { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-family: var(--serif); font-size: clamp(16px, 2vw, 23px); line-height: 1.4; letter-spacing: -.025em; }
.ampersand { color: #aa8990; font-family: var(--serif); font-size: 26px; font-style: italic; }
.tiny-divider { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 16px 0; }
.tiny-divider span { width: 35px; height: 1px; background: #c6b6a559; }
.tiny-divider svg { width: 12px; height: 12px; fill: none; stroke: #bba0a3; stroke-width: 1.2; }
.cover-whisper { margin: 0 0 25px; color: #80746d; font-size: 11px; letter-spacing: .01em; line-height: 1.5; }
.discover-button { display: inline-flex; gap: 24px; align-items: center; justify-content: center; min-height: 48px; padding: 13px 23px 13px 26px; border: 1px solid #c0aca042; border-radius: 30px; color: #62534d; background: #fffaf380; box-shadow: 0 3px 12px #88735c06; text-decoration: none; font-size: 12px; transition: background .25s, box-shadow .25s; }
.discover-button:hover { background: #fffcf7; box-shadow: 0 5px 18px #88735c10; }
.discover-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.cover-reveal { opacity: 0; transform: translateY(12px); }
.cover.is-revealed .cover-reveal { animation: text-appear 650ms calc(var(--reveal-start) + var(--text-delay, 0s)) ease-out both; }
.cover-eyebrow { --text-delay: 0s; }
#cover-title { --text-delay: .06s; }
.cover-subtitle { --text-delay: .17s; }
.parents { --text-delay: .28s; }
.tiny-divider { --text-delay: .34s; }
.cover-whisper { --text-delay: .39s; }
.discover-button { --text-delay: .45s; }
.next-section-anchor { height: 1px; scroll-margin-top: 32px; }
body:has(.invitation[data-stage="closed"]) .next-section-anchor, body:has(.invitation[data-stage="opening"]) .next-section-anchor { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
.noscript-note { text-align: center; padding: 20px; font-size: 12px; }

[data-stage="opening"] .entrance { opacity: 0; transition: opacity 800ms 1650ms ease; pointer-events: none; }
[data-stage="opening"] .cover { visibility: visible; opacity: 1; transition: opacity 850ms 1700ms ease; }
[data-stage="opening"] .gift-float { animation: gift-anticipation 500ms 530ms ease-in-out both; }
[data-stage="opening"] .gift-shadow { animation: shadow-open 1700ms 500ms ease-out both; }
[data-stage="opening"] .bow-loop--pink { animation: untie-left 540ms ease-in both; }
[data-stage="opening"] .bow-loop--blue { animation: untie-right 540ms 30ms ease-in both; }
[data-stage="opening"] .bow-tail--pink { animation: slide-left 650ms 130ms ease-in both; }
[data-stage="opening"] .bow-tail--blue { animation: slide-right 650ms 130ms ease-in both; }
[data-stage="opening"] .bow-knot { animation: knot-release 350ms ease both; }
[data-stage="opening"] .ribbon-front { animation: slide-left 550ms 280ms ease-in both; }
[data-stage="opening"] .ribbon-side { animation: slide-right 550ms 280ms ease-in both; }
[data-stage="opening"] .ribbon-lid { animation: knot-release 400ms 250ms ease both; }
[data-stage="opening"] .gift-lid { animation: lift-lid 1200ms 900ms cubic-bezier(.2,.6,.25,1) both; }
[data-stage="opening"] .gift-glow { animation: gift-glow 1500ms 900ms ease-out both; }
[data-stage="cover"] .entrance { position: absolute; inset: 0; visibility: hidden; opacity: 0; pointer-events: none; }
[data-stage="cover"] .cover { position: relative; visibility: visible; opacity: 1; }
html[data-restored="true"] .entrance { position: absolute; inset: 0; visibility: hidden; }
html[data-restored="true"] .cover { position: relative; visibility: visible; opacity: 1; }
html[data-restored="true"] .cover-reveal { animation: none !important; opacity: 1; transform: none; }
.invitation.is-instant { --reveal-start: 0s; }
.invitation.is-instant .entrance { transition: opacity 180ms ease; }
.invitation.is-instant .cover { transition: opacity 180ms ease; }
.invitation.is-instant .gift-float, .invitation.is-instant .gift-shadow, .invitation.is-instant .gift-box *, .invitation.is-instant .gift-bow * { animation: none; }
.invitation.is-instant .cover-reveal { animation-duration: 180ms; animation-delay: 0ms; transform: none; }

@keyframes float-gift { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-11px) rotate(.8deg); } }
@keyframes float-shadow { 0%,100% { transform: scale(1) rotate(4deg); opacity: .13; } 50% { transform: scale(.88) rotate(4deg); opacity: .085; } }
@keyframes drift { from { transform: translateY(0) rotate(-5deg); opacity: .45; } to { transform: translateY(-13px) rotate(8deg); opacity: .8; } }
@keyframes untie-left { 0% { transform: scale(1); opacity: 1; } 45% { transform: rotate(-18deg) scale(1,.72); opacity: 1; } 100% { transform: translate(-38px,13px) rotate(-35deg) scale(.2,.12); opacity: 0; } }
@keyframes untie-right { 0% { transform: scale(1); opacity: 1; } 45% { transform: rotate(18deg) scale(1,.72); opacity: 1; } 100% { transform: translate(38px,13px) rotate(35deg) scale(.2,.12); opacity: 0; } }
@keyframes slide-left { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translate(-100px,25px) rotate(-24deg); opacity: 0; } }
@keyframes slide-right { 0% { transform: translateX(0); opacity: 1; } 100% { transform: translate(100px,25px) rotate(24deg); opacity: 0; } }
@keyframes knot-release { to { transform: scale(.6); opacity: 0; } }
@keyframes gift-anticipation { 0% { transform: translateY(0); } 40% { transform: translateY(7px) scale(1.025,.955); } 65% { transform: translateY(-5px) scale(.985,1.02); } 100% { transform: translateY(0); } }
@keyframes lift-lid { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 65% { transform: translate(20px,-108px) rotate(14deg); opacity: 1; } 100% { transform: translate(35px,-140px) rotate(20deg); opacity: 0; } }
@keyframes shadow-open { 0% { opacity: .13; } 30% { transform: scale(1.1,.7); opacity: .16; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes gift-glow { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; transform: scale(1.3); } 100% { opacity: 0; transform: scale(2); } }
@keyframes particle-flight { 0% { opacity: 0; transform: translate(0,0) scale(.4) rotate(0); } 12% { opacity: .9; } 65% { opacity: .7; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.7) rotate(var(--rotation)); } }
@keyframes text-appear { to { opacity: 1; transform: translateY(0); } }
@keyframes half-glow { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }

@media (min-width: 1000px) and (min-height: 760px) {
  .entrance { padding-bottom: 46px; }
  .gift-scene { margin-top: 20px; margin-bottom: 12px; }
}
@media (min-width: 700px) {
  .photo-scene { width: min(900px, calc((100svh - 270px) * 1.498)); min-width: 540px; }
  #cover-title { font-size: clamp(55px, 5.8vw, 80px); }
  .cover-subtitle { font-size: 13px; margin-top: 8px; }
}
@media (max-width: 480px) {
  .entrance { padding-left: 16px; padding-right: 16px; }
  .little-star { width: 23px; margin-bottom: 19px; }
  .eyebrow { font-size: 9px; letter-spacing: .2em; }
  h1 { font-size: clamp(39px, 10.9vw, 49px); margin-top: 18px; margin-bottom: 22px; }
  .gift-scene { width: 340px; height: 318px; margin-top: 15px; }
  .gift-float { left: -10px; transform-origin: 50% 55%; scale: .91; }
  .gift-shadow { bottom: 7px; left: 60px; width: 220px; }
  .ambient-dot--1 { left: 13px; }
  .ambient-star--1 { left: 26px; }
  .ambient-star--2 { right: 12px; }
  .ambient-dot--2 { right: 2px; }
  .opening-hint { font-size: 11px; }
  .small-note { font-size: 15px; margin-bottom: 25px; }
  .cover { padding: 38px 8px 32px; }
  .cover-inner { min-height: calc(100svh - 70px); }
  .cover-eyebrow { margin-bottom: 30px; }
  .cover-heading { top: 0; left: 1%; right: 1%; }
  #cover-title { font-size: clamp(38px, 11.7vw, 54px); }
  .cover-subtitle { margin-top: 6px; font-size: clamp(9px, 2.7vw, 12px); }
  .photo-edge { background: linear-gradient(to bottom, var(--ivory), transparent 18%, transparent 84%, var(--ivory)), linear-gradient(to right, var(--ivory), transparent 4%, transparent 96%, var(--ivory)); }
  .cover-details { margin: 26px 14px 0; }
  .parents { font-size: clamp(15px, 4.5vw, 18px); column-gap: 8px; }
  .ampersand { font-size: 24px; }
  .tiny-divider { margin: 18px 0; }
  .cover-whisper { font-size: 10px; margin-bottom: 28px; }
  .discover-button { min-height: 46px; font-size: 11px; }
  .ambient { width: 100vw; height: 100vw; }
}
@media (max-width: 359px) {
  h1 { font-size: 35px; }
  .gift-scene { width: 300px; height: 288px; margin-top: 7px; }
  .gift-float { left: -30px; top: -17px; scale: .83; }
  .gift-shadow { bottom: 3px; left: 53px; width: 200px; }
  .parents { font-size: 14px; column-gap: 7px; }
  .cover-details { margin-left: 10px; margin-right: 10px; }
}
@media (min-width: 481px) and (min-height: 701px) and (max-height: 800px) {
  .little-star { width: 23px; margin-bottom: 14px; }
  h1 { font-size: 52px; margin-top: 14px; margin-bottom: 18px; }
  .gift-scene { height: 310px; margin-top: 5px; }
  .gift-float { top: -20px; scale: .9; }
  .small-note { margin-bottom: 20px; }
}
@media (max-height: 700px) {
  .entrance { padding-top: 22px; padding-bottom: 20px; }
  .little-star { width: 20px; margin-bottom: 12px; }
  h1 { margin-top: 12px; margin-bottom: 14px; font-size: min(42px, 10.5vw); }
  .gift-scene { margin-top: 0; height: 292px; }
  .gift-float { top: -18px; scale: .84; }
  .small-note { margin-bottom: 15px; }
}
@media (max-width: 359px) and (max-height: 700px) {
  .entrance { padding-top: 18px; padding-bottom: 18px; }
  .gift-scene { height: 255px; }
  .gift-float { top: -35px; scale: .75; }
  .small-note { margin-bottom: 9px; }
  .little-star { margin-bottom: 9px; }
}
@media (max-height: 560px) {
  .entrance { padding-top: 14px; padding-bottom: 14px; }
  .little-star, .fine-line { display: none; }
  h1 { font-size: 33px; margin-top: 8px; margin-bottom: 0; }
  .gift-scene { height: 236px; }
  .gift-float { top: -49px; scale: .69; }
  .gift-shadow { bottom: 3px; }
  .small-note { margin-bottom: 7px; }
  .cover { padding-top: 22px; }
  .cover-inner { min-height: calc(100svh - 50px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gift-float, .gift-shadow, .ambient-dot, .ambient-star { animation: none; }
  .cover-reveal { transform: none; }
  .particle { display: none; }
  .color-half.is-glowing .half-glow { animation-duration: 180ms; }
  .discover-button, .bow-button { transition: none; }
}

/* Portada pulida: el título va sobre la foto, no encima, y la imagen se ve completa en una lámina enmarcada. */
.cover-eyebrow { margin-bottom: 14px; }
.cover-heading { position: relative; z-index: 4; top: auto; left: auto; right: auto; margin: 0 0 clamp(22px, 3.2vh, 32px); text-align: center; pointer-events: none; }
#cover-title { color: var(--ink); text-shadow: none; }
#cover-title em { color: color-mix(in srgb, var(--pink) 55%, var(--ink)); }
.cover-subtitle { margin-top: 10px; color: #6d6260; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 2vw, 19px); letter-spacing: 0; }
.photo-scene { border-radius: 18px; overflow: hidden; background: #fffdf8; box-shadow: 0 0 0 6px #fffdf8, 0 0 0 7px #e7ddd0, 0 26px 50px -26px #6b56445c, 0 8px 18px -12px #6b564430; }
.photo-edge { background: none; border-radius: inherit; box-shadow: inset 0 0 0 1px #ffffff59, inset 0 0 36px #fffaf024; }
.color-half::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; transition: opacity .25s; }
@media (hover: hover) { .color-half:hover::after { opacity: .07; } }
.cover-details { margin-top: clamp(28px, 4vh, 40px); }
.parents { font-size: clamp(20px, 2.3vw, 26px); }
.tiny-divider span { background: #c6b6a5a6; }
.cover-whisper { color: #786d66; font-size: 13px; letter-spacing: .02em; }
.discover-button { gap: 14px; border-color: #c0aca080; background: #fffcf7d9; color: #574a45; font-size: 13px; letter-spacing: .02em; box-shadow: 0 6px 18px -10px #88735c40; }
.discover-button:hover { border-color: #b59f92; }
@media (min-width: 700px) {
  .photo-scene { width: min(820px, calc((100svh - 432px) * 1.498)); min-width: 520px; }
  #cover-title { font-size: clamp(52px, 5.2vw, 72px); }
  .cover-subtitle { font-size: 18px; margin-top: 8px; }
  .cover { padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .cover-inner { min-height: calc(100svh - 46px); }
}
@media (max-width: 480px) {
  .cover { padding: 44px 18px 34px; }
  .cover-eyebrow { margin-bottom: 12px; font-size: 10px; }
  .cover-heading { margin-bottom: 26px; }
  #cover-title { font-size: clamp(42px, 13vw, 54px); }
  .cover-subtitle { margin-top: 6px; font-size: 16px; }
  .photo-scene { border-radius: 14px; box-shadow: 0 0 0 5px #fffdf8, 0 0 0 6px #e7ddd0, 0 22px 40px -22px #6b56445c; }
  .photo-edge { background: none; }
  .cover-details { margin: 34px 4px 0; }
  .parents { flex-direction: column; gap: 2px; font-size: 22px; }
  .ampersand { font-size: 26px; line-height: 1.1; }
  .cover-whisper { font-size: 12px; }
  .discover-button { font-size: 12px; }
}
@media (max-width: 359px) {
  .parents { font-size: 19px; }
}

/* Fondo rosa y azul con tipografía redondeada y amigable (Fredoka para títulos, Nunito para texto). */
@font-face { font-family: "Fredoka"; src: url("assets/fredoka-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("assets/nunito-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("assets/nunito-italic-latin.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
:root {
  --serif: "Fredoka", "Nunito", "Segoe UI", Arial, sans-serif;
  --sans: "Nunito", "Segoe UI", Arial, sans-serif;
  --ink-strong: #3d3140;
  --ink-soft: #5a4b5a;
  --accent-pink: #a8456e;
  --accent-blue: #2f6c88;
  --bg-pink: #f5c6d4;
  --bg-blue: #b7dbea;
}
html, body { background: linear-gradient(115deg, var(--bg-pink) 0%, #f8d9e3 40%, #dcecf3 60%, var(--bg-blue) 100%) fixed; }
body { color: var(--ink-strong); }
.invitation { background: linear-gradient(115deg, var(--bg-pink) 0%, #f8d9e3 40%, #dcecf3 60%, var(--bg-blue) 100%); }
.ambient { opacity: .55; filter: blur(80px); }
.ambient--pink { background: radial-gradient(circle, #ee9fb8, transparent 65%); }
.ambient--blue { background: radial-gradient(circle, #8cc3da, transparent 65%); }
.paper-grain { opacity: .03; }

/* Entrada */
.little-star svg { fill: var(--accent-pink); }
.eyebrow { color: var(--ink-soft); font-weight: 700; letter-spacing: .2em; }
h1 { font-weight: 500; letter-spacing: -.01em; line-height: 1.08; color: var(--ink-strong); }
h1 em { font-style: normal; font-weight: 600; color: var(--accent-pink); }
.fine-line { background: linear-gradient(90deg, transparent, #8d7487, transparent); }
.opening-hint { color: var(--ink-strong); font-weight: 600; }
.small-note { color: var(--ink-soft); font-family: var(--sans); font-style: italic; }
.skip-link { color: var(--ink-soft); font-weight: 600; font-size: 12px; }
.skip-link span { color: var(--accent-blue); }
.skip-link:hover { color: var(--ink-strong); }
.ambient-dot, .ambient-star { opacity: .85; }
.ambient-dot { background: #fff; }
.ambient-dot--2, .ambient-dot--3 { background: #fff; }
.ambient-star { fill: #fff; }
.ambient-star--2 { fill: #fff; }

/* Portada */
#cover-title { font-weight: 500; letter-spacing: -.01em; color: var(--ink-strong); }
#cover-title em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.cover-subtitle { font-family: var(--sans); font-style: italic; font-weight: 500; color: var(--ink-soft); }
.photo-scene { box-shadow: 0 0 0 6px #fffdf8, 0 0 0 7px #ffffffb3, 0 28px 50px -24px #4a3a5266, 0 8px 18px -12px #4a3a5240; }
.parents { font-family: var(--serif); font-weight: 500; letter-spacing: 0; color: var(--ink-strong); }
.ampersand { font-family: var(--serif); font-style: normal; font-weight: 400; color: var(--accent-pink); }
.tiny-divider span { background: #7d677a80; }
.tiny-divider svg { stroke: var(--accent-pink); }
.cover-whisper { color: var(--ink-soft); font-weight: 600; }
.discover-button { border-color: #ffffffcc; background: #ffffffd9; color: var(--ink-strong); font-weight: 700; box-shadow: 0 8px 22px -12px #4a3a5259; }
.discover-button:hover { background: #fff; border-color: #fff; }
button:focus-visible, a:focus-visible { outline-color: var(--ink-strong); }

/* Fondo de papel rosa a azul (assets/fondo-rosa-azul.jpg). Capa fija para que no se estire en iOS. */
html, body, .invitation { background: #f9c3cf; }
body { position: relative; isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #e9cde0 url("assets/fondo-rosa-azul.jpg") center / cover no-repeat; pointer-events: none; }
.invitation { background: transparent; }
.ambient { display: none; }
.paper-grain { opacity: .02; }

/* La foto sin marco blanco: sólo esquinas redondeadas y una sombra suave. */
.photo-scene { background: none; box-shadow: 0 26px 48px -24px #4a3a5266, 0 8px 18px -12px #4a3a5233; }
.photo-edge { box-shadow: none; }
@media (max-width: 480px) {
  .photo-scene { box-shadow: 0 22px 40px -22px #4a3a5266; }
}
