/* ============================================================
   Para Gema · 54 años — hoja de estilos
   Estética: álbum de recuerdos nostálgico, papel envejecido,
   rojo vino y dorado antiguo.
   ============================================================ */

:root {
  --bg: #f3e7d1;
  --bg-soft: #ecdcbc;
  --paper: #fbf3e3;
  --paper-2: #f7ecd6;
  --ink: #3b2a20;
  --ink-soft: #6b5541;
  --ink-faint: #9c8567;
  --red: #8c1f28;
  --red-soft: #b3434b;
  --red-wash: rgba(140, 31, 40, 0.08);
  --gold: #b8873c;
  --gold-light: #e4c98a;
  --shadow: rgba(59, 42, 32, 0.22);

  --font-script: 'Great Vibes', cursive;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;

  --container: 1080px;
  --edge: clamp(20px, 6vw, 64px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: inherit; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* subtle aged-paper grain, fixed over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 1; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
}

section { position: relative; padding: clamp(64px, 12vh, 140px) 0; }

.eyebrow {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  color: var(--red);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 22ch;
}

.section-title em {
  font-style: normal;
  color: var(--red);
}

.section-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-top: 14px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 36px auto;
  color: var(--gold);
  width: fit-content;
}
.divider::before, .divider::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider svg { width: 16px; height: 16px; fill: var(--gold); }

/* ---------- Scroll progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  z-index: 500;
  transition: width 0.08s linear;
}

/* ---------- Floating music toggle ---------- */
.music-toggle {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 400;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  background: var(--paper);
  color: var(--red);
  box-shadow: 0 8px 24px var(--shadow);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.music-toggle:hover { transform: scale(1.08); }
.music-toggle svg { width: 24px; height: 24px; fill: currentColor; }
.music-toggle .icon-pause { display: none; }
.music-toggle.is-playing .icon-play { display: none; }
.music-toggle.is-playing .icon-pause { display: block; }
.music-toggle.is-playing {
  animation: pulse-ring 1.8s ease-out infinite;
}
.music-toggle .music-label {
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(6px);
}
.music-toggle:hover .music-label { opacity: 1; transform: translateX(0); }

@keyframes pulse-ring {
  0% { box-shadow: 0 8px 24px var(--shadow), 0 0 0 0 rgba(140,31,40,0.35); }
  70% { box-shadow: 0 8px 24px var(--shadow), 0 0 0 14px rgba(140,31,40,0); }
  100% { box-shadow: 0 8px 24px var(--shadow), 0 0 0 0 rgba(140,31,40,0); }
}


/* ---------- Petals / confetti canvas ---------- */
#petals-canvas {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--edge) 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, var(--paper) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 60%);
}

.hero__layer { position: absolute; inset: 0; overflow: hidden; }

.hero__petal {
  position: absolute;
  opacity: 0.5;
  color: var(--red-soft);
}
.hero__petal svg { width: 100%; height: 100%; fill: currentColor; }
.hero__petal--1 { top: 8%;  left: 8%;  width: 46px; color: var(--gold); }
.hero__petal--2 { top: 18%; right: 10%; width: 34px; }
.hero__petal--3 { bottom: 16%; left: 14%; width: 30px; color: var(--gold-light); }
.hero__petal--4 { bottom: 26%; right: 16%; width: 52px; }
.hero__petal--5 { top: 46%; left: 3%; width: 26px; color: var(--gold); }
.hero__petal--6 { top: 55%; right: 4%; width: 40px; }

.hero__content { position: relative; z-index: 2; max-width: 780px; }

.hero__eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--red);
  margin-bottom: 34px;
}

.hero__name {
  font-family: var(--font-script);
  font-size: clamp(4.2rem, 15vw, 9rem);
  line-height: 1.25;
  padding-top: 0.2em;
  color: var(--ink);
  margin-bottom: 6px;
}

.hero__age-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 22px;
  flex-wrap: wrap;
}

.hero__age {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--red);
  line-height: 0.9;
}

.hero__age-label {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.hero__age-label span { display: block; }

.hero__tagline {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 8px;
}

.hero__date {
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 10px;
}

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__scroll svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--ink-faint); stroke-width: 2;
  animation: bounce-down 1.8s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ============================================================
   CONTADOR
   ============================================================ */
.contador {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.contador .section-title { color: var(--paper); margin: 0 auto; }
.contador .section-title em { color: var(--gold-light); }
.contador .eyebrow { color: var(--gold-light); }
.contador .section-lede { color: #d8c7ae; margin-left: auto; margin-right: auto; }

.contador__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 3vw, 28px);
  max-width: 720px;
  margin: 52px auto 0;
}

.contador__stat {
  background: rgba(251, 243, 227, 0.05);
  border: 1px solid rgba(228, 201, 138, 0.28);
  border-radius: 10px;
  padding: clamp(18px, 3vw, 30px) 8px;
}

.contador__number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.contador__label {
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: #cbb999;
}

.contador__days {
  margin-top: 30px;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #e8dcc3;
}
.contador__days strong { color: var(--gold-light); font-variant-numeric: tabular-nums; }

.contador__seconds {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #a8977c;
  font-style: italic;
}
.contador__seconds strong {
  font-variant-numeric: tabular-nums;
  color: var(--red-soft);
  font-weight: 700;
}

/* ============================================================
   CARTA
   ============================================================ */
.carta { background: var(--bg); }

.carta__paper {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  padding: clamp(34px, 6vw, 72px) clamp(26px, 7vw, 68px);
  border-radius: 4px;
  box-shadow: 0 24px 60px -20px var(--shadow), 0 2px 0 var(--gold-light) inset;
  transform: rotate(-0.6deg);
}
.carta__paper::before {
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 110px; height: 30px;
  background: rgba(140, 31, 40, 0.5);
}

.carta__salutation {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--red);
  margin-bottom: 22px;
}

.carta__body p {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ink);
  margin-bottom: 20px;
}

.carta__signature {
  margin-top: 30px;
  text-align: right;
}
.carta__signature span { display: block; color: var(--ink-soft); font-size: 1rem; }
.carta__signature strong {
  display: block;
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--red);
  margin-top: 4px;
}

/* ============================================================
   RAZONES
   ============================================================ */
.razones { background: var(--bg-soft); }

.razones__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 54px;
}

.razon {
  background: var(--paper);
  border-radius: 10px;
  padding: 34px 22px;
  text-align: center;
  box-shadow: 0 14px 34px -18px var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.razon:hover { transform: translateY(-8px); box-shadow: 0 22px 40px -16px var(--shadow); }

.razon__icon {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  color: var(--red);
}
.razon__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; }

.razon__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.razon__text { font-size: 1rem; color: var(--ink-soft); }

/* ============================================================
   LINEA DE TIEMPO
   ============================================================ */
.timeline { background: var(--bg); }

.timeline__track {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
  padding-left: 0;
}

.timeline__line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(184, 135, 60, 0.25);
}
.timeline__line-fill {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--red), var(--gold));
  transform: scaleY(0);
  transform-origin: top;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  margin-bottom: clamp(50px, 8vh, 90px);
}

.timeline__item:nth-child(even) .timeline__card { grid-column: 3; text-align: left; }
.timeline__item:nth-child(odd)  .timeline__card { grid-column: 1; text-align: right; }
.timeline__item:nth-child(even) .timeline__photo { grid-column: 1; }
.timeline__item:nth-child(odd)  .timeline__photo { grid-column: 3; }

.timeline__dot {
  grid-column: 2;
  justify-self: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--red);
  box-shadow: 0 0 0 6px var(--bg);
  z-index: 2;
}

.timeline__card {
  background: var(--paper);
  border-radius: 8px;
  padding: 22px 26px;
  box-shadow: 0 14px 30px -18px var(--shadow);
}
.timeline__year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}
.timeline__title { font-family: var(--font-heading); font-size: 1.3rem; margin: 6px 0; }
.timeline__desc { color: var(--ink-soft); font-size: 1rem; }

.timeline__photo { width: 108px; }
.timeline__item:nth-child(odd) .timeline__photo { justify-self: start; }
.timeline__item:nth-child(even) .timeline__photo { justify-self: end; }
.timeline__photo img {
  width: 100%; aspect-ratio: 300/380;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 22px -12px var(--shadow);
  transform: rotate(-3deg);
}
.timeline__item:nth-child(even) .timeline__photo img { transform: rotate(3deg); }

/* ============================================================
   GALERIA
   ============================================================ */
.galeria { background: var(--bg-soft); }

.galeria__categoria { margin-top: 70px; }
.galeria__categoria:first-of-type { margin-top: 54px; }

.galeria__categoria-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.galeria__categoria-title span {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-faint);
}

.galeria__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.galeria__grid:has(> .photo-frame:only-child) {
  grid-template-columns: minmax(180px, 260px);
  justify-content: center;
}

.galeria__memoria {
  margin-top: 20px;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.photo-frame {
  position: relative;
  aspect-ratio: 300 / 380;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 28px -16px var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.photo-frame:hover { transform: rotate(0deg) scale(1.04); box-shadow: 0 20px 36px -14px var(--shadow); }
.photo-frame:nth-child(3n+1) { --tilt: -2deg; }
.photo-frame:nth-child(3n+2) { --tilt: 1.5deg; }
.photo-frame:nth-child(3n+3) { --tilt: -1deg; }

.photo-frame img { width: 100%; height: 100%; object-fit: cover; background: var(--paper); }

.photo-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px 9px;
  background: linear-gradient(0deg, rgba(59,42,32,0.82), transparent);
  color: var(--paper);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.photo-frame__caption em {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gold-light);
}

/* ============================================================
   SORPRESA
   ============================================================ */
.sorpresa {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.sorpresa .eyebrow { color: var(--gold-light); }
.sorpresa .section-title { color: var(--paper); }
.sorpresa .section-lede { color: #d8c7ae; margin-left: auto; margin-right: auto; }

.secret-card {
  perspective: 1400px;
  width: min(92vw, 460px);
  margin: 54px auto 0;
}
.secret-card__inner {
  position: relative;
  width: 100%;
  height: clamp(400px, 64vh, 520px);
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(.4,.2,.2,1);
}
.secret-card.is-open .secret-card__inner { transform: rotateY(180deg); }

@keyframes secret-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.secret-card.is-shake { animation: secret-shake 0.5s; }

.secret-card__face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.secret-card__front {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.5);
}
.secret-card__back {
  background: var(--paper);
  color: var(--ink);
  transform: rotateY(180deg);
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.5);
  text-align: left;
  justify-content: flex-start;
  padding-top: 48px;
}

.secret-card__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.secret-card__close:hover { background: var(--red); color: var(--paper); border-color: var(--red); }
.secret-card__back p { font-size: 1.15rem; line-height: 1.65; }
.secret-card__back strong { display: block; margin-top: 14px; font-family: var(--font-script); font-size: 2rem; color: var(--red); text-align: right; }

.secret-card__seal {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(140,31,40,0.5);
  transition: transform 0.3s ease;
}
.secret-card__inner:hover .secret-card__seal { transform: scale(1.08) rotate(-4deg); }
.secret-card__seal svg { width: 30px; height: 30px; fill: currentColor; }

.secret-card__hint {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.secret-card__riddle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  max-width: 26ch;
  line-height: 1.4;
}

.secret-card__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.secret-card__form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 260px;
}
.secret-card__input {
  flex: 1;
  min-width: 0;
  border: none;
  border-bottom: 2px solid var(--gold-light);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--ink);
  padding: 6px 2px;
  text-align: center;
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s ease;
}
.secret-card__input:focus { border-color: var(--red); }
.secret-card__submit {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.secret-card__submit:hover { transform: scale(1.08); }
.secret-card__submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.secret-card__error {
  min-height: 1.3em;
  font-size: 0.85rem;
  color: var(--red);
}

/* ============================================================
   CIERRE
   ============================================================ */
.cierre {
  text-align: center;
  padding-top: clamp(80px, 14vh, 160px);
  padding-bottom: clamp(60px, 10vh, 100px);
  background: radial-gradient(ellipse at 50% 0%, var(--paper) 0%, var(--bg) 65%);
}
.cierre__pre {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--red);
}
.cierre__title {
  font-family: var(--font-script);
  font-size: clamp(3rem, 9vw, 5.5rem);
  margin: 10px 0;
  color: var(--ink);
}
.cierre__name {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.cierre__age {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 1.1rem;
}
.cierre__familia {
  margin-top: 30px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.cierre__familia strong { color: var(--red); font-weight: 600; }
.cierre__fecha {
  margin-top: 40px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cierre__heart { margin-top: 26px; color: var(--red); width: 22px; }
.cierre__heart svg { width: 100%; fill: currentColor; }

/* ============================================================
   REVEAL / PARALLAX
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.16,.8,.24,1);
  transition-delay: var(--d, 0s);
}
[data-reveal="left"]  { transform: translateY(20px) translateX(-34px); }
[data-reveal="right"] { transform: translateY(20px) translateX(34px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-parallax] { will-change: transform; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .razones__grid { grid-template-columns: repeat(2, 1fr); }

  .timeline__line { left: 24px; margin-left: -1px; }
  .timeline__item,
  .timeline__item:nth-child(even),
  .timeline__item:nth-child(odd) {
    grid-template-columns: 48px 1fr;
  }
  .timeline__dot { grid-column: 1; }
  .timeline__item:nth-child(even) .timeline__card,
  .timeline__item:nth-child(odd) .timeline__card {
    grid-column: 2; text-align: left;
  }
  .timeline__item:nth-child(even) .timeline__photo,
  .timeline__item:nth-child(odd) .timeline__photo {
    grid-column: 2; grid-row: 2; justify-self: start; width: 92px; margin-top: 14px;
  }
  .timeline__item { grid-template-rows: auto auto; row-gap: 10px; }
}

@media (max-width: 600px) {
  body { font-size: 17.5px; }
  section { padding: clamp(44px, 9vh, 96px) 0; }
  .hero { padding: 96px var(--edge) 56px; }
  .hero__age-row { flex-direction: column; gap: 4px; }
  .hero__age-label { text-align: center; }
  .hero__petal { opacity: 0.32; }
  .hero__petal--1, .hero__petal--4 { display: none; }
  .contador__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .razones__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .carta__paper { transform: none; }
  .carta__body p { font-size: 1.05rem; }
  .galeria__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .secret-card__form { max-width: 100%; }
}

/* ============================================================
   ACCESIBILIDAD — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero__scroll svg, .music-toggle.is-playing { animation: none !important; }
  [data-parallax] { transform: none !important; }
  .secret-card__inner { transition: none; }
  .secret-card.is-shake { animation: none; }
}
