:root {
  --wine: #5b1831;
  --wine-deep: #34101f;
  --rose: #c66f7a;
  --rose-deep: #a85566;
  --rose-soft: #ebb7bd;
  --blush: #f4d2d0;
  --peach: #f6e0d3;
  --cream: #fff5ed;
  --paper: #fff9f1;
  --ink: #482530;
  --muted: #83636b;
  --line: rgba(91, 24, 49, 0.14);
  --glass: rgba(255, 248, 243, 0.58);
  --shadow: 0 26px 80px rgba(91, 24, 49, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.56), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(175,76,104,.12), transparent 26%),
    radial-gradient(circle at 77% 72%, rgba(255,255,255,.34), transparent 22%),
    linear-gradient(135deg, #f9ecdf 0%, #efcbc8 34%, #e2a3ac 68%, #f7e4da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: .28;
  background:
    linear-gradient(115deg, transparent 0 49.7%, rgba(91,24,49,.05) 50%, transparent 50.3%),
    repeating-radial-gradient(circle at 18% 17%, transparent 0 37px, rgba(255,255,255,.15) 38px, transparent 39px 78px);
}

body.modal-open { overflow: hidden; }
button, input, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: -2;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-a { width: 260px; height: 260px; left: -90px; top: 32%; background: rgba(255,244,225,.45); }
.orb-b { width: 420px; height: 420px; right: -160px; top: 12%; background: rgba(126,42,66,.16); animation-duration: 19s; }
.orb-c { width: 320px; height: 320px; right: 14%; bottom: -120px; background: rgba(255,255,255,.33); animation-duration: 16s; }
@keyframes drift { to { transform: translate3d(35px, -25px, 0) scale(1.08); } }

main { width: 100%; }
.section-pad { width: min(1140px, calc(100% - 40px)); margin: 0 auto; padding: 110px 20px; }
.hero {
  min-height: 100svh;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 20px 90px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.34);
  pointer-events: none;
}
.hero::before { width: 170px; height: 170px; right: 4%; top: 11%; }
.hero::after { width: 88px; height: 88px; left: 46%; bottom: 18%; }

.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #87515f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  color: var(--wine-deep);
  font-family: var(--serif);
  font-size: clamp(66px, 9vw, 122px);
  font-weight: 500;
  line-height: .77;
  letter-spacing: -.055em;
}
h1 em {
  display: inline-block;
  color: var(--rose);
  font-weight: 400;
  transform: translateX(.3em);
}
.hero-note {
  width: min(540px, 100%);
  margin-bottom: 32px;
  color: #62414a;
  font: 400 clamp(18px, 2vw, 23px)/1.55 var(--serif);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.soft-button,
.ghost-button,
.mini-letter-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: .26s ease;
}
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, #c26a7a, #915165);
  box-shadow: 0 16px 30px rgba(91, 24, 49, .18);
  color: #fff8f2;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.soft-button:hover,
.mini-letter-button:hover { transform: translateY(-2px); filter: brightness(1.02); }
.ghost-button {
  padding: 13px 18px;
  background: rgba(255,248,243,.34);
  border: 1px solid rgba(91,24,49,.16);
  color: var(--wine);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ghost-button:hover { transform: translateY(-2px); background: rgba(255,248,243,.58); }
.hero-quote {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 440px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 22px;
  background: rgba(255,249,244,.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 42px rgba(91,24,49,.08);
}
.hero-quote span { color: var(--rose-deep); font: 500 24px var(--serif); }
.hero-quote p { margin: 0; color: #6c4953; font: italic 18px/1.45 var(--serif); }

.hero-art { min-height: 560px; display: grid; place-items: center; position: relative; }
.album-scene {
  position: relative;
  width: min(510px, 88vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transition: transform .24s ease;
}
.album-vinyl {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  right: 3%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255,246,240,.95) 0 8%, transparent 8.4%),
    radial-gradient(circle at center, #c56b7f 0 18%, #8d4258 18.5% 24%, #53172d 24.5% 57%, #33101f 57.5% 100%);
  box-shadow: 0 36px 80px rgba(61, 16, 32, .28), inset 0 0 0 1px rgba(255,255,255,.1);
  animation: spinAndFloat 16s linear infinite;
}
.album-vinyl::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 8px, rgba(255,255,255,.035) 9px, transparent 10px 16px);
}
.album-vinyl::after {
  content: "";
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: linear-gradient(110deg, transparent 24%, rgba(255,255,255,.14) 42%, transparent 55%);
  transform: rotate(-18deg);
}
.album-cover-card {
  position: relative;
  z-index: 2;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(91,24,49,.23), 0 0 0 10px rgba(255,255,255,.18);
  animation: bob 6.5s ease-in-out infinite;
}
.album-cover-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.album-cover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.24), transparent 38%, transparent 70%, rgba(84,18,36,.06));
  pointer-events: none;
}
.scene-spark {
  position: absolute;
  color: rgba(91,24,49,.7);
  font-family: serif;
  pointer-events: none;
}
.spark-a { top: 10%; right: 9%; font-size: 28px; }
.spark-b { left: 2%; bottom: 20%; font-size: 22px; }
.spark-c { right: 12%; bottom: 9%; font-size: 15px; }
.handwritten { position: absolute; right: 1%; bottom: 4%; color: #7b4b58; font: italic 24px var(--serif); transform: rotate(-6deg); }

@keyframes spinAndFloat {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2,
.letter-copy h2 {
  margin-bottom: 12px;
  color: var(--wine-deep);
  font: 500 clamp(48px, 6vw, 80px)/.95 var(--serif);
  letter-spacing: -.035em;
}
.section-heading p,
.letter-copy p { color: #72535c; font: 400 19px/1.6 var(--serif); max-width: 610px; }

.music-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.track-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 178px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 30px;
  background: rgba(255,249,244,.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.track-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.82); }
.track-card.is-playing { box-shadow: 0 34px 85px rgba(91,24,49,.23), inset 0 0 0 1px rgba(91,24,49,.05); }
.track-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-self: center;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #f7ddd4 0%, #d6939e 52%, #9d5869 100%);
  box-shadow: 0 14px 34px rgba(91,24,49,.12);
}
.track-cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.track-glow {
  position: absolute;
  inset: auto -14% -18% auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  filter: blur(15px);
}
.track-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 6px 4px 4px 2px;
  gap: 18px;
}
.track-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.track-label {
  color: #986976;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tiny-heart { color: #a65d6d; font: 400 28px var(--serif); }
.track-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.track-meta h3 {
  margin-bottom: 2px;
  color: var(--wine-deep);
  font: 500 34px/1 var(--serif);
}
.artist { color: #8a6770; font: 400 14px var(--serif); }
.track-pill {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(91,24,49,.06);
  color: var(--wine);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.track-blurb {
  margin: 0;
  color: #694a53;
  font: 400 17px/1.55 var(--serif);
}
.player { display: flex; align-items: center; gap: 14px; }
.play-btn {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #5f1833, #7d2c49);
  color: #fff7ef;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(91,24,49,.18);
  transition: .25s ease;
}
.play-btn:hover { transform: scale(1.06); }
.play-icon { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid currentColor; margin-left: 3px; }
.play-btn.is-playing .play-icon { width: 10px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; margin-left: 0; }
.timeline-wrap { flex: 1; min-width: 0; }
.progress-shell {
  padding: 11px 12px;
  border-radius: 999px;
  background: rgba(91,24,49,.04);
  border: 1px solid rgba(91,24,49,.06);
}
.timeline {
  width: 100%;
  height: 5px;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 10px;
  outline: 0;
  background: linear-gradient(to right, var(--wine) 0%, var(--wine) var(--progress,0%), rgba(91,24,49,.12) var(--progress,0%), rgba(91,24,49,.12) 100%);
  cursor: pointer;
}
.timeline::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 5px rgba(91,24,49,.08);
}
.timeline::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: var(--wine);
}
.time-row {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: #9c7a82;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.letter-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
  min-height: 620px;
}
.letter-copy { position: relative; z-index: 2; }
.letter-stage {
  position: relative;
  min-height: 520px;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  perspective: 1000px;
  color: inherit;
}
.letter-stage:focus-visible {
  outline: 2px solid rgba(91,24,49,.38);
  outline-offset: 12px;
  border-radius: 30px;
}
.envelope-shadow {
  position: absolute;
  width: 72%;
  max-width: 440px;
  height: 52px;
  border-radius: 50%;
  background: rgba(91,24,49,.18);
  filter: blur(24px);
  bottom: 54px;
  transform: rotate(-2deg);
}
.envelope {
  width: min(520px, 88vw);
  aspect-ratio: 1.42;
  position: relative;
  filter: drop-shadow(0 28px 38px rgba(81,24,42,.2));
  transition: transform .42s cubic-bezier(.2,.8,.2,1);
}
.letter-stage:hover .envelope,
.letter-stage:focus-visible .envelope {
  transform: translateY(-12px) rotate(-1deg) scale(1.015);
}
.envelope-back {
  position: absolute;
  inset: 12% 0 0;
  background: linear-gradient(135deg, #efb9b8, #d7838d);
  border-radius: 13px;
  overflow: hidden;
}
.paper-peek {
  position: absolute;
  width: 78%;
  height: 64%;
  left: 11%;
  top: 5%;
  background: linear-gradient(160deg, #fffaf2, #f4e4d8);
  border-radius: 10px 10px 4px 4px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 34px;
  color: #8d5865;
  font: italic 29px var(--serif);
  box-shadow: 0 3px 14px rgba(93,35,52,.08);
}
.envelope-front-left,
.envelope-front-right,
.envelope-bottom,
.envelope-flap { position: absolute; }
.envelope-front-left {
  left: 0;
  bottom: 0;
  width: 52%;
  height: 80%;
  background: linear-gradient(135deg, #db8f96, #c06673);
  clip-path: polygon(0 17%,100% 63%,100% 100%,0 100%);
  border-radius: 0 0 0 13px;
}
.envelope-front-right {
  right: 0;
  bottom: 0;
  width: 52%;
  height: 80%;
  background: linear-gradient(225deg, #e6a2a7, #cd7580);
  clip-path: polygon(0 63%,100% 17%,100% 100%,0 100%);
  border-radius: 0 0 13px 0;
}
.envelope-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  height: 67%;
  background: linear-gradient(180deg, #dc8f95, #cc727d);
  clip-path: polygon(0 100%,50% 25%,100% 100%);
  border-radius: 0 0 13px 13px;
}
.envelope-flap {
  left: 0;
  right: 0;
  top: 12%;
  height: 61%;
  background: linear-gradient(160deg, #f2c0c0, #df8b93);
  clip-path: polygon(0 0,100% 0,50% 85%);
  transform-origin: top;
  transition: transform .5s ease;
  z-index: 3;
}
.letter-stage:hover .envelope-flap,
.letter-stage:focus-visible .envelope-flap { transform: rotateX(12deg); }
.wax-seal {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%,-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 27%, #9a4458, #672239 65%);
  color: #f4d9cf;
  font: 500 25px var(--serif);
  z-index: 5;
  box-shadow: 0 8px 16px rgba(89,26,44,.25), inset 0 0 0 5px rgba(255,255,255,.06);
}
.read-letter-text {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #784957;
  font: italic 22px var(--serif);
  letter-spacing: .03em;
  white-space: nowrap;
}

.closing { text-align: center; padding-top: 80px; padding-bottom: 130px; }
.closing-rule { width: 240px; margin: 0 auto 28px; display: flex; align-items: center; gap: 15px; color: #92586a; }
.closing-rule::before,
.closing-rule::after { content: ""; height: 1px; flex: 1; background: rgba(91,24,49,.22); }
.closing p { margin-bottom: 6px; color: #76505a; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; }
.closing strong { color: var(--wine); font: italic 26px var(--serif); font-weight: 400; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 26px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(46,13,25,.5); backdrop-filter: blur(13px); -webkit-backdrop-filter: blur(13px); }
.letter-paper {
  width: min(780px, 100%);
  max-height: min(88vh, 940px);
  overflow: auto;
  position: relative;
  padding: 64px 66px 56px;
  background:
    linear-gradient(90deg, rgba(126,69,70,.03) 1px, transparent 1px) 0 0/25px 25px,
    linear-gradient(#fff9ef,#f8eadc);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 30px;
  box-shadow: 0 40px 120px rgba(53,15,28,.35);
  transform: translateY(26px) scale(.98) rotate(.4deg);
  transition: transform .42s cubic-bezier(.2,.8,.2,1);
  outline: none;
  scrollbar-color: #c9868f transparent;
}
.modal.is-open .letter-paper { transform: translateY(0) scale(1) rotate(0); }
.letter-paper::before {
  content: "";
  position: absolute;
  right: 34px;
  top: 26px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(233,188,193,.35), transparent 65%);
  pointer-events: none;
}
.close-letter {
  position: sticky;
  float: right;
  top: 0;
  margin: -34px -38px 0 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(91,24,49,.14);
  border-radius: 50%;
  background: rgba(255,250,243,.78);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #8b5966;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.letter-kicker { margin-bottom: 10px; color: #a06372; font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.letter-paper h2 { margin: 0 0 30px; color: var(--wine); font: 500 clamp(36px,5vw,55px)/1 var(--serif); letter-spacing: -.03em; }
.letter-body { color: #553740; font: 400 clamp(18px,2.1vw,21px)/1.58 var(--serif); }
.letter-body p { margin-bottom: 21px; }
.letter-ending { margin-top: 31px !important; color: var(--wine); font-style: italic; font-size: 1.18em; }
.postscript { margin-top: 38px !important; padding-top: 18px; border-top: 1px solid rgba(91,24,49,.13); color: #7b5660; font-style: italic; }
.letter-sign { text-align: right; color: #a55f70; font: 400 48px var(--serif); transform: rotate(-10deg); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 48px; text-align: center; }
  .hero-note, .section-heading p, .letter-copy p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  h1 em { transform: none; }
  .hero-art { min-height: 470px; }
  .music-grid { grid-template-columns: 1fr; }
  .letter-section { grid-template-columns: 1fr; gap: 28px; }
  .letter-copy { text-align: center; }
  .letter-stage { min-height: 470px; }
}

@media (max-width: 680px) {
  .hero { width: calc(100% - 20px); padding: 32px 10px 64px; }
  h1 { font-size: clamp(58px, 20vw, 92px); line-height: .8; }
  .hero-note { font-size: 19px; }
  .hero-art { min-height: 390px; }
  .album-scene { width: min(420px, 92vw); }
  .handwritten { font-size: 18px; right: 2%; bottom: 2%; }
  .section-pad { width: calc(100% - 20px); padding: 84px 10px; }
  .track-card { grid-template-columns: 1fr; padding: 14px; border-radius: 24px; }
  .track-visual { width: 100%; aspect-ratio: 1 / 1; }
  .track-meta { flex-direction: column; align-items: flex-start; }
  .track-content { gap: 16px; }
  .track-meta h3 { font-size: 32px; }
  .letter-stage { min-height: 390px; }
  .envelope { width: min(390px, 88vw); }
  .read-letter-text { bottom: 0; font-size: 20px; }
  .letter-paper { padding: 52px 26px 40px; max-height: 90vh; border-radius: 24px; }
  .close-letter { margin: -31px -10px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* V4 · Detalles románticos, sin encabezados innecesarios */
body {
  background:
    radial-gradient(ellipse 46% 20% at 85% 14%, rgba(255,255,255,.48), transparent 76%),
    radial-gradient(ellipse 60% 28% at -8% 44%, rgba(255,243,231,.5), transparent 77%),
    radial-gradient(ellipse 58% 28% at 92% 72%, rgba(255,241,232,.42), transparent 75%),
    linear-gradient(160deg, #f8e8e0 1%, #e9b4b9 40%, #e2a0ac 66%, #f6e6dc 100%);
}

.ambient-stars { position: absolute; inset: 0 0 auto; height: 100%; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient-stars i { position: absolute; width: 5px; aspect-ratio: 1; border-radius: 50%; background: #fffaf4; box-shadow: 0 0 22px 7px rgba(255,255,255,.44); opacity: .66; animation: starTwinkle 5s ease-in-out infinite; }
.ambient-stars i:nth-child(1) { top: 5%; left: 18%; }
.ambient-stars i:nth-child(2) { top: 16%; left: 82%; animation-delay: -2s; }
.ambient-stars i:nth-child(3) { top: 35%; left: 7%; animation-delay: -4s; }
.ambient-stars i:nth-child(4) { top: 56%; left: 90%; animation-delay: -1s; }
.ambient-stars i:nth-child(5) { top: 69%; left: 16%; animation-delay: -3s; }
.ambient-stars i:nth-child(6) { top: 81%; left: 72%; animation-delay: -2.5s; }
.ambient-stars i:nth-child(7) { top: 94%; left: 28%; animation-delay: -1.6s; }
@keyframes starTwinkle { 50% { transform: scale(.45); opacity: .2; } }

.hero { padding-top: 76px; padding-bottom: 90px; }
.hero-kicker { display: inline-flex; gap: 14px; align-items: center; }
.hero-kicker span { color: #ab6878; font-size: 13px; }
.hero h1 { text-shadow: 0 8px 35px rgba(255,249,244,.44); }
.hero h1 em { text-shadow: 0 12px 36px rgba(130,35,57,.1); }
.hero-note { max-width: 490px; }
.soft-button { gap: 13px; }
.soft-button span { font-size: 18px; line-height: .5; }
.hero-quote { border-radius: 15px 26px 24px 26px; }
.hero-art::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; transform: rotate(-14deg) scale(1.09); }
.hero-art::after { content: ""; position: absolute; width: 74%; height: 64%; left: 13%; top: 22%; border-radius: 50%; background: rgba(255,247,233,.36); filter: blur(65px); z-index: -1; }
.album-scene { filter: drop-shadow(0 40px 32px rgba(103,40,58,.13)); }
.album-cover-card { box-shadow: 0 34px 70px rgba(91,24,49,.23), 0 0 0 10px rgba(255,255,255,.2), 0 0 0 11px rgba(91,24,49,.09); }
.hero-orbit-text { position: absolute; left: 2%; bottom: 17%; max-width: 150px; font: italic 16px/1.25 var(--serif); letter-spacing: .04em; transform: rotate(-12deg); color: #895664; text-align: center; }
.handwritten { right: -2%; bottom: 0; }

.music-section { position: relative; isolation: isolate; padding-top: 46px; padding-bottom: 100px; }
.music-section::before { content: ""; position: absolute; z-index: -1; inset: 2% -6%; background: radial-gradient(ellipse at 50% 44%, rgba(255,255,255,.4), transparent 63%); filter: blur(20px); }
.music-ornament { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 0 auto 54px; color: #99536a; }
.ornament-line { display: block; width: 108px; height: 1px; background: linear-gradient(90deg, transparent, rgba(91,24,49,.33)); }
.ornament-line:last-child { transform: rotate(180deg); }
.ornament-flower { display: block; font: 400 25px var(--serif); line-height: 1; }
.music-grid { align-items: stretch; gap: 25px; }
.track-card { position: relative; min-height: 274px; grid-template-columns: 176px minmax(0,1fr); padding: 21px; gap: 20px; border: 1px solid rgba(255,255,255,.71); border-radius: 29px; background: linear-gradient(145deg, rgba(255,250,245,.76), rgba(255,233,229,.37)); box-shadow: 0 20px 42px rgba(94,31,51,.1), 0 4px 10px rgba(94,31,51,.06), inset 0 1px 1px rgba(255,255,255,.65); }
.track-card::before { content: ""; position: absolute; pointer-events: none; inset: 7px; border: 1px solid rgba(255,255,255,.26); border-radius: 23px; }
.track-card.is-playing { box-shadow: 0 26px 60px rgba(91,24,49,.17), 0 0 0 1px rgba(91,24,49,.14), inset 0 1px 1px rgba(255,255,255,.65); }
.track-visual { width: 100%; aspect-ratio: 1; flex-shrink: 0; align-self: center; overflow: hidden; min-height: 0; border-radius: 18px; background: #ecc3c7; box-shadow: 0 12px 22px rgba(91,24,49,.17), 0 0 0 1px rgba(91,24,49,.1); }
.track-cover { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.track-card:hover .track-cover { transform: scale(1.055); }
.track-glow { pointer-events: none; }
.track-content { justify-content: space-between; gap: 14px; }
.track-topline { align-items: flex-start; }
.track-label { font-size: 9px; line-height: 1.5; }
.track-meta { align-items: center; }
.track-meta h3 { font-size: clamp(28px, 2.8vw, 36px); overflow-wrap: anywhere; }
.track-pill { padding: 0; background: none; color: #a15d70; font: 400 28px/1 var(--serif); }
.track-blurb { font-size: 16px; line-height: 1.36; }
.play-btn { box-shadow: 0 8px 22px rgba(91,24,49,.24), inset 0 1px 0 rgba(255,255,255,.2); }
.progress-shell { background: rgba(255,255,255,.3); }

/* El sobre comienza completamente cerrado: ningún papel sobresale. */
.letter-section { position: relative; grid-template-columns: .84fr 1.16fr; gap: 24px; min-height: 680px; padding-top: 104px; padding-bottom: 100px; }
.letter-section::before { content: ""; position: absolute; pointer-events: none; left: -100px; top: 14%; width: 400px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.29); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.035), 0 0 0 90px rgba(255,255,255,.03); }
.letter-copy { padding-left: 8px; }
.letter-copy h2 { font-size: clamp(56px, 6vw, 88px); }
.letter-copy h2 em { display: block; color: #a65c70; font-weight: 400; }
.letter-copy p { max-width: 415px; font-size: 22px; }
.letter-copy-signet { display: inline-block; margin-top: 12px; color: #98596d; font: italic 28px var(--serif); letter-spacing: .2em; }
.letter-stage { min-height: 530px; isolation: isolate; }
.letter-stage::before { content: ""; position: absolute; z-index: -1; width: min(600px,100%); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.42); background: radial-gradient(circle at 50% 50%, rgba(255,253,248,.45), rgba(255,255,255,.08) 48%, transparent 72%); box-shadow: 0 0 0 42px rgba(255,255,255,.03), 0 0 0 82px rgba(255,255,255,.03); }
.letter-stage::after { content: ""; position: absolute; width: 83%; max-width: 435px; height: 1px; top: 82px; background: linear-gradient(90deg, transparent, rgba(91,24,49,.1), transparent); transform: rotate(-18deg); pointer-events: none; }
.letter-spark { position: absolute; font: 400 26px var(--serif); color: #ad6c7a; pointer-events: none; animation: starTwinkle 6s ease-in-out infinite; }
.letter-spark-one { left: 6%; top: 10%; }
.letter-spark-two { right: 4%; top: 24%; animation-delay: -3s; }
.letter-spark-three { right: 13%; bottom: 17%; font-size: 17px; animation-delay: -1.3s; }
.envelope-shadow { width: 68%; max-width: 390px; bottom: 60px; filter: blur(29px); }
.envelope { width: min(520px, 100%); aspect-ratio: 1.48; overflow: visible; transition: transform .38s cubic-bezier(.22,.8,.28,1); }
.envelope-back { inset: 0; border-radius: 13px; background: linear-gradient(152deg, #eeb6b7, #c97282); box-shadow: inset 0 2px 3px rgba(255,255,255,.32); }
.envelope-sheet { position: absolute; left: 13%; top: 13%; z-index: 1; width: 74%; height: 76%; padding-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 5px; background: linear-gradient(145deg,#fffaf2,#f4e4d8); border-radius: 6px; border: 1px solid #f8ede3; color: #9b6675; font: italic 24px var(--serif); opacity: 0; visibility: hidden; transform: translateY(0); box-shadow: 0 5px 15px rgba(95,34,53,.08); }
.sheet-rule { display: block; width: 72px; height: 1px; background: #d8b8af; }
.envelope-front-left { z-index: 2; bottom: 0; width: 53%; height: 100%; clip-path: polygon(0 0, 100% 49%, 0 100%); background: linear-gradient(140deg,#dc909b,#c77383); border-radius: 13px 0 0 13px; }
.envelope-front-right { z-index: 2; bottom: 0; width: 53%; height: 100%; clip-path: polygon(100% 0, 0 49%, 100% 100%); background: linear-gradient(210deg,#ecacb0,#cf7c8b); border-radius: 0 13px 13px 0; }
.envelope-bottom { z-index: 3; bottom: 0; height: 100%; background: linear-gradient(180deg,#e4a0a8,#c96f80); clip-path: polygon(0 100%, 50% 46%, 100% 100%); border-radius: 0 0 13px 13px; }
.envelope-flap { z-index: 4; top: 0; height: 65%; background: linear-gradient(155deg,#f5c4c3 0%,#e8a5aa 58%,#d78895 100%); clip-path: polygon(0 0,100% 0,50% 100%); filter: drop-shadow(0 2px 1px rgba(92,29,51,.12)); transform-origin: 50% 0; backface-visibility: visible; }
.letter-stage:hover .envelope-flap,
.letter-stage:focus-visible .envelope-flap { transform: none; }
.wax-seal { top: 65%; z-index: 6; width: 60px; height: 60px; border: 2px solid rgba(255,240,232,.25); background: radial-gradient(circle at 32% 24%, #b36a7b 0%, #83354e 48%, #602238 100%); box-shadow: 0 8px 22px rgba(91,24,49,.25), inset 0 0 0 5px rgba(255,255,255,.065); }
.read-letter-text { bottom: 0; font-size: 25px; letter-spacing: .04em; transition: transform .3s ease; }
.letter-stage:hover .read-letter-text { transform: translateX(-50%) translateY(-3px); }
.letter-stage.is-opening { pointer-events: none; }
.letter-stage.is-opening .envelope { transform: translateY(5px) scale(.97); }
.letter-stage.is-opening .envelope-flap { transform: rotateX(175deg); z-index: 1; }
.letter-stage.is-opening .envelope-sheet { z-index: 5; visibility: visible; animation: sheetEmerge .82s cubic-bezier(.18,.7,.2,1) forwards; }
.letter-stage.is-opening .wax-seal { animation: sealFade .3s ease forwards; }
@keyframes sheetEmerge {
  0% { opacity: 0; transform: translateY(0); }
  25% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-64%); }
}
@keyframes sealFade { to { opacity: 0; transform: translate(-50%,-120%) scale(.66); } }

/* La hoja aparece y se puede leer al abrir el sobre. */
.modal { padding: min(4vw, 26px); }
.modal-backdrop { background: rgba(49,17,34,.56); backdrop-filter: blur(15px) saturate(.8); }
.letter-paper {
  width: min(750px,100%);
  max-height: min(90dvh,940px);
  border-radius: 4px 28px 5px 28px;
  padding: 68px clamp(25px,7vw,76px) 48px;
  background:
    radial-gradient(circle at 92% 6%, rgba(234,191,187,.36), transparent 22%),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(161,112,119,.055) 36px 37px),
    linear-gradient(150deg, #fffdf7 0%,#fff7ed 58%,#f6e7db 100%);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 35px 120px rgba(34,7,21,.39), inset 0 0 0 12px rgba(255,255,255,.15);
  transform: translateY(90px) scale(.92) rotate(-2deg);
  transition: transform .75s cubic-bezier(.16,.85,.25,1);
}
.modal.is-open .letter-paper { transform: translateY(0) scale(1) rotate(0); }
.paper-ornament { position: absolute; right: 28px; top: 20px; color: #c9919b; font: 400 46px var(--serif); pointer-events: none; }
.close-letter { margin: -39px -41px 0 0; }
.letter-kicker { letter-spacing: .25em; }
.letter-paper h2 { max-width: 580px; }
.letter-body { max-width: 620px; margin-inline: auto; }
.letter-body p { margin-bottom: 22px; }

@media (max-width: 980px) {
  .hero { padding-top: 48px; }
  .hero-orbit-text { left: 4%; bottom: 16%; }
  .music-section { padding-top: 24px; }
  .letter-section { grid-template-columns: 1fr; gap: 16px; padding-top: 55px; }
  .letter-copy { text-align: center; padding: 0; }
  .letter-copy p { margin-inline: auto; }
  .letter-stage { min-height: 540px; }
}
@media (max-width: 680px) {
  .hero { padding-top: 42px; }
  .hero-orbit-text { left: 0; bottom: 15%; font-size: 13px; max-width: 100px; }
  .handwritten { right: 0; bottom: -1%; }
  .music-section { padding-top: 18px; padding-bottom: 72px; }
  .music-ornament { margin-bottom: 31px; }
  .ornament-line { width: 66px; }
  .track-card { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; padding: 16px; gap: 18px; }
  .track-visual { width: min(100%,310px); margin-inline: auto; aspect-ratio: 1; }
  .track-content { padding: 4px 5px 7px; }
  .track-meta { flex-direction: row; align-items: center; }
  .track-meta h3 { font-size: 35px; }
  .track-blurb { font-size: 18px; }
  .letter-section { padding-top: 40px; gap: 4px; }
  .letter-copy h2 { font-size: clamp(62px,15vw,78px); }
  .letter-copy p { font-size: 21px; }
  .letter-stage { min-height: clamp(330px, 92vw, 465px); }
  .envelope { width: min(390px,86vw); }
  .letter-spark-one { left: 2%; }
  .letter-spark-two { right: 0; }
  .read-letter-text { bottom: 1px; font-size: 23px; }
  .letter-paper { padding: 53px 25px 38px; border-radius: 4px 21px 5px 21px; }
  .close-letter { margin: -33px -10px 0 0; }
  .paper-ornament { right: 13px; top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .letter-stage.is-opening .envelope-sheet { animation: none !important; opacity: 1; transform: translateY(-64%); }
  .letter-stage.is-opening .wax-seal { animation: none !important; opacity: 0; }
}

/* Nada de secciones invisibles antes de llegar a ellas. */
main { overflow-x: clip; }
.letter-section { min-height: 610px; padding-top: 78px; padding-bottom: 62px; }
.closing { padding-top: 32px; padding-bottom: 88px; }
@media (max-width: 980px) { .letter-section { padding-top: 58px; padding-bottom: 58px; } }
@media (max-width: 680px) { .letter-section { padding-top: 45px; padding-bottom: 52px; } .closing { padding-top: 24px; padding-bottom: 70px; } }
