/* Mis XV · Romina · 11.12.2026 — bosque encantado */
:root {
  --night: #11170f;
  --forest: #1c2618;
  --moss: #3b4a2c;
  --sage: #8f9c7c;
  --sage-pale: #dfe4d3;
  --cream: #f7f2e7;
  --paper: #efe7d6;
  --gold: #b8955a;
  --gold-soft: #dcc18b;
  --glow: #f6d98c;
  --ink: #6b4f25;
  --text: #3b352a;
  --muted: #7a7363;

  --f-script: "Pinyon Script", cursive;
  --f-display: "Italiana", "Cormorant Garamond", serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans: "Montserrat", system-ui, sans-serif;

  --radius: 18px;
  --gutter: clamp(16px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--f-serif);
  font-size: 19px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

.container { width: min(1080px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { width: min(720px, 100%); }
.center { text-align: center; }

.eyebrow {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.script { font-family: var(--f-script); font-size: clamp(40px, 9vw, 64px); color: var(--ink); line-height: 1.15; margin-top: 10px; }
.lead { font-size: clamp(20px, 2.6vw, 23px); margin-top: 22px; color: var(--text); }

.section { position: relative; padding: clamp(72px, 12vw, 120px) 0; overflow: hidden; }
.section__head { text-align: center; margin-bottom: clamp(36px, 6vw, 56px); }
.section__head h2, .section > .container > h2 {
  font-family: var(--f-display);
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: .04em;
  margin-top: 10px;
  color: var(--forest);
}
.section__sub { margin-top: 12px; color: var(--muted); font-style: italic; }

/* Fondos: pergamino con acuarela salvia, y noche de bosque */
.parchment {
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(143,156,124,.22), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(143,156,124,.20), transparent 70%),
    radial-gradient(40% 30% at 85% 10%, rgba(220,193,139,.16), transparent 70%),
    var(--cream);
}
.sage {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(255,255,255,.35), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(143,156,124,.28), transparent 70%),
    var(--sage-pale);
}
.night {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(246,217,140,.10), transparent 70%),
    linear-gradient(180deg, var(--forest), var(--night));
  color: var(--cream);
}
.night .section__head h2 { color: var(--cream); }
.night .section__sub { color: rgba(247,242,231,.7); }

.ornament { width: 200px; height: 56px; margin: 0 auto 18px; color: var(--gold); }
.ornament--loto { width: 90px; height: 46px; }
.firma { font-family: var(--f-script); font-size: 42px; color: var(--gold); margin-top: 22px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-sans); font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; background: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--gold { background: linear-gradient(135deg, #d9bd84, #a9864b); color: #1c1a12; box-shadow: 0 0 30px rgba(246,217,140,.25); }
.btn--gold:hover { box-shadow: 0 0 40px rgba(246,217,140,.45); }
.btn--dark { background: var(--forest); color: var(--cream); }
.btn--dark:hover { background: var(--moss); }
.btn--line { border-color: var(--forest); color: var(--forest); }
.btn--line:hover { background: var(--forest); color: var(--cream); }
.btn--ghost { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; padding: 0 12px; }
.btn--ghost-light { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 5px; }
.btn--block { width: 100%; }

.tbd {
  font-family: var(--f-sans); font-style: normal; font-size: .62em; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(184,149,90,.16); color: var(--ink); border: 1px dashed rgba(184,149,90,.6);
  white-space: nowrap; vertical-align: middle;
}
.night .tbd { color: var(--gold-soft); }

/* ---------- Luciérnagas ---------- */
.fireflies { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.section > .container { position: relative; z-index: 1; }

/* ---------- Portada del cuento ---------- */
.cover {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: radial-gradient(80% 60% at 50% 40%, #233020, var(--night));
  color: var(--cream); text-align: center;
  transition: opacity .9s ease, visibility .9s ease;
}
.cover.is-open { opacity: 0; visibility: hidden; }
.cover__inner { position: relative; z-index: 1; padding: 24px; display: grid; justify-items: center; gap: 18px; }
.cover__guest { font-family: var(--f-sans); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft); }
.cover__once { font-family: var(--f-script); font-size: clamp(48px, 12vw, 84px); color: var(--glow); text-shadow: 0 0 24px rgba(246,217,140,.45); line-height: 1.1; }
.cover__frog { width: 120px; height: 104px; color: var(--gold-soft); animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(246,217,140,.35)); }
.cover__hint { font-style: italic; color: rgba(247,242,231,.75); font-size: 20px; margin-bottom: 8px; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  padding: 90px var(--gutter) 110px;
  color: var(--cream);
  background:
    radial-gradient(45% 35% at 50% 38%, rgba(246,217,140,.16), transparent 70%),
    radial-gradient(90% 60% at 50% 110%, #2a3a22, transparent 70%),
    linear-gradient(180deg, #0c110b 0%, #18221a 60%, #1f2c1c 100%);
}
.hero__trees {
  position: absolute; inset: auto 0 0 0; height: 46%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60px 120px at 4% 100%, #0b0f0a 98%, transparent 100%),
    radial-gradient(90px 200px at 14% 100%, #0d130c 98%, transparent 100%),
    radial-gradient(70px 150px at 26% 100%, #0b0f0a 98%, transparent 100%),
    radial-gradient(110px 120px at 40% 105%, #0e140d 98%, transparent 100%),
    radial-gradient(120px 110px at 62% 108%, #0e140d 98%, transparent 100%),
    radial-gradient(70px 170px at 76% 100%, #0b0f0a 98%, transparent 100%),
    radial-gradient(100px 220px at 88% 100%, #0d130c 98%, transparent 100%),
    radial-gradient(60px 130px at 98% 100%, #0b0f0a 98%, transparent 100%);
  opacity: .95;
}
.lights { position: absolute; inset: 0 0 auto 0; height: 70%; z-index: 0; pointer-events: none; }
.lights i {
  position: absolute; top: 0; width: 1px;
  background: linear-gradient(180deg, rgba(220,193,139,.0), rgba(220,193,139,.28));
}
.lights i::before {
  content: ""; position: absolute; left: -1.5px; right: -1.5px; top: 0; bottom: 0;
  background: radial-gradient(circle, #ffe9a8 0 1.3px, transparent 1.8px) center top / 4px 14px repeat-y;
  filter: drop-shadow(0 0 3px rgba(255,220,140,.9));
  animation: twinkle var(--t, 3s) ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

.hero__farol { position: absolute; top: 0; width: 44px; height: 110px; color: var(--gold); z-index: 1; transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; }
.hero__farol--l { left: clamp(14px, 8vw, 120px); height: 150px; width: 60px; }
.hero__farol--r { right: clamp(14px, 8vw, 120px); animation-delay: -3s; }
.farol__luz { animation: flicker 2.6s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(2.5deg); } }
@keyframes flicker { 0%,100% { opacity: .9; } 40% { opacity: .65; } 60% { opacity: 1; } }

.hero__content { position: relative; z-index: 2; display: grid; justify-items: center; }
.hero__guest { font-family: var(--f-sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.hero__crown { width: 58px; height: 36px; color: var(--gold-soft); filter: drop-shadow(0 0 8px rgba(246,217,140,.5)); }
.hero__mis { font-family: var(--f-display); font-size: clamp(22px, 5vw, 30px); letter-spacing: .5em; margin: 14px 0 0 .5em; color: var(--sage-pale); }
.hero__name {
  font-family: var(--f-script);
  font-size: clamp(96px, 26vw, 200px);
  line-height: 1.05;
  margin: 4px 0 6px;
  color: var(--glow);
  background: linear-gradient(180deg, #fff3cc 10%, #e2c27f 55%, #b48b4c 95%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(246,217,140,.35));
  padding: 0 .15em;
}
.hero__date {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  width: min(420px, 88vw);
  font-family: var(--f-sans); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--sage-pale);
}
.hero__date span { border-top: 1px solid rgba(220,193,139,.5); border-bottom: 1px solid rgba(220,193,139,.5); padding: 8px 0; }
.hero__date strong { font-family: var(--f-display); font-weight: 400; font-size: 58px; letter-spacing: 0; color: var(--cream); line-height: 1; }
.hero__tag { margin-top: 22px; font-style: italic; font-size: 21px; color: rgba(247,242,231,.85); }

.countdown { display: flex; gap: clamp(10px, 3vw, 22px); margin-top: 34px; }
.countdown div {
  width: clamp(64px, 17vw, 84px); padding: 12px 0 10px;
  border: 1px solid rgba(220,193,139,.35); border-radius: 14px;
  background: rgba(17,23,15,.45); backdrop-filter: blur(4px);
}
.countdown b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 7vw, 36px); color: var(--cream); line-height: 1.1; }
.countdown span { font-family: var(--f-sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid rgba(220,193,139,.6); border-radius: 14px; z-index: 2; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-soft); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Capítulos ---------- */
.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.chapter {
  position: relative; text-align: center;
  padding: 48px 28px 34px;
  background: rgba(247,242,231,.82);
  border: 1px solid rgba(184,149,90,.45);
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: 0 20px 50px -30px rgba(28,38,24,.45);
}
.chapter::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(184,149,90,.25);
  border-radius: 192px 192px 12px 12px; pointer-events: none;
}
.chapter__badge {
  position: absolute; top: 14px; right: 50%; transform: translate(50%, -50%);
  font-family: var(--f-sans); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; background: var(--cream); color: var(--ink);
  border: 1px dashed var(--gold); white-space: nowrap;
}
.chapter__num { font-family: var(--f-sans); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.chapter__icon { width: 64px; height: 40px; margin: 16px auto 6px; color: var(--gold); }
.chapter__icon--frog { width: 64px; height: 56px; }
.chapter h3 { font-family: var(--f-display); font-size: 32px; color: var(--forest); }
.chapter__time { font-family: var(--f-script); font-size: 40px; color: var(--ink); line-height: 1.2; margin-top: 4px; }
.chapter__place { font-size: 22px; font-weight: 600; color: var(--forest); margin-top: 6px; }
.chapter__addr { color: var(--muted); font-size: 17px; }
.chapter__note { font-style: italic; margin: 16px auto 0; max-width: 30ch; color: var(--text); }
.chapter__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }

/* ---------- Itinerario ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 520px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(180deg, transparent, rgba(220,193,139,.6) 12%, rgba(220,193,139,.6) 88%, transparent); }
.timeline li { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; gap: 18px; padding: 22px 0; }
.timeline__time { text-align: right; font-family: var(--f-display); font-size: 24px; color: var(--gold-soft); }
.timeline__dot { width: 14px; height: 14px; margin: 0 auto; border-radius: 50%; background: var(--glow); box-shadow: 0 0 14px 4px rgba(246,217,140,.55); position: relative; z-index: 1; }
.timeline__dot--end { background: transparent; border: 1px solid var(--glow); }
.timeline h4 { font-family: var(--f-display); font-size: 26px; color: var(--cream); }
.timeline p { color: rgba(247,242,231,.7); font-size: 17px; }
.the-end { font-family: var(--f-script) !important; font-size: 36px !important; color: var(--glow) !important; }

/* ---------- Paleta ---------- */
.palette { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 3vw, 28px); max-width: 760px; }
.palette li { display: grid; justify-items: center; gap: 12px; width: 112px; }
.palette__dot {
  width: 92px; height: 92px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 4px rgba(247,242,231,.9), 0 0 0 1px rgba(184,149,90,.5), 0 14px 26px -14px var(--c);
}
.palette b { font-weight: 500; font-style: italic; font-size: 18px; color: var(--text); line-height: 1.2; }

/* ---------- Galería ---------- */
.gallery { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: center; }
.gallery__ph {
  margin: 0; aspect-ratio: 3/4; border-radius: 160px 160px 14px 14px;
  border: 1px solid rgba(220,193,139,.35);
  background: radial-gradient(70% 60% at 50% 30%, rgba(246,217,140,.10), transparent 70%), rgba(255,255,255,.03);
  display: grid; place-items: center; color: rgba(220,193,139,.55);
}
.gallery__ph--tall { aspect-ratio: 3/4.6; }
.gallery__ph svg { width: 54px; height: 48px; }
.gallery__ph:has(img) { overflow: hidden; box-shadow: 0 24px 50px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(220,193,139,.45); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ---------- RSVP ---------- */
.rsvp__card {
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(184,149,90,.45);
  border-radius: 28px;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 52px);
  box-shadow: 0 30px 60px -40px rgba(28,38,24,.5);
}
.rsvp__crown { width: 52px; height: 32px; margin: 0 auto 12px; color: var(--gold); }
.rsvp__passes { margin-top: 18px; font-size: 19px; }
.rsvp__passes strong { font-family: var(--f-display); font-size: 26px; color: var(--ink); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-family: var(--f-sans); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--text);
  padding: 12px 14px; min-height: 48px;
  border: 1px solid rgba(59,74,44,.25); border-radius: 12px; background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,149,90,.2); }
.field.is-invalid input, .field.is-invalid .choice label { border-color: #a1432f; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 10px;
  border: 1px solid rgba(59,74,44,.25); border-radius: 12px; background: var(--cream); cursor: pointer; text-align: center;
  font-size: 18px; transition: background .2s, color .2s, border-color .2s;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.form__attend { display: grid; gap: 18px; transition: opacity .3s; }
.form__attend.is-off { opacity: .35; pointer-events: none; }
.form__error { color: #a1432f; font-style: italic; text-align: center; }

.rsvp__done { text-align: center; display: grid; justify-items: center; gap: 14px; }
.rsvp__done[hidden] { display: none; }
.rsvp__frog { width: 96px; height: 84px; color: var(--gold); }
.rsvp__done h3 { font-family: var(--f-script); font-size: clamp(38px, 9vw, 52px); color: var(--ink); line-height: 1.1; }

/* ---------- Tip ---------- */
.tip { padding: clamp(56px, 9vw, 90px) 0; }
.tip__card { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 28px; border-radius: var(--radius); background: rgba(247,242,231,.75); border: 1px solid rgba(184,149,90,.4); }
.tip__icon { width: 48px; height: 48px; color: var(--moss); }
.tip__card .eyebrow { margin-bottom: 6px; }

/* ---------- Fin ---------- */
.finale {
  position: relative; overflow: hidden; text-align: center; color: var(--cream);
  padding: clamp(90px, 14vw, 140px) var(--gutter) 40px;
  background:
    radial-gradient(50% 40% at 50% 45%, rgba(246,217,140,.14), transparent 70%),
    linear-gradient(180deg, var(--forest), #090c08);
}
.finale__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; }
.finale__frog { width: 110px; height: 96px; color: var(--gold-soft); margin-bottom: 14px; filter: drop-shadow(0 0 10px rgba(246,217,140,.35)); }
.finale__the { font-family: var(--f-display); font-size: 22px; letter-spacing: .6em; margin-left: .6em; color: var(--sage-pale); }
.finale__end { font-family: var(--f-script); font-size: clamp(90px, 22vw, 150px); line-height: .9; color: var(--glow); text-shadow: 0 0 30px rgba(246,217,140,.4); }
.finale__time { font-family: var(--f-sans); letter-spacing: .3em; font-size: 13px; color: var(--gold-soft); margin-top: 10px; }
.finale__sub { font-style: italic; color: rgba(247,242,231,.75); margin: 16px 0 26px; }
.footer { position: relative; z-index: 1; margin-top: 80px; font-family: var(--f-sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(220,193,139,.5); }

/* ---------- Botón flotante y aviso ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
  padding: 14px 22px; border-radius: 999px; text-decoration: none;
  font-family: var(--f-sans); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(135deg, #d9bd84, #a9864b); color: #1c1a12; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 30; transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 12px;
  background: var(--forest); color: var(--cream); font-family: var(--f-sans); font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Aparición ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__ph--tall { grid-row: span 2; aspect-ratio: auto; height: 100%; }
  .timeline li { grid-template-columns: 92px 22px 1fr; gap: 12px; }
  .timeline::before { left: 115px; }
  .timeline__time { font-size: 19px; }
  .hero__farol--l { width: 46px; height: 120px; }
  .hero__farol--r { width: 36px; height: 92px; }
  .tip__card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .chapter { padding: 46px 20px 30px; }
}

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