/* ============================================================
   Colores y tipografía (cámbialos aquí)
   ============================================================ */
:root {
  --green: #2b4a3f;
  --green-2: #5a8268;
  --ink: #141414;
  --ink-soft: #3f3f3f;
  --muted: #e6e9e8;
  --card: #ffffff;
  --paper: #ecdfc9;
  --radius: 26px;
  --shadow: 0 18px 40px -18px rgba(40, 30, 15, 0.35);
  --font: "Playfair Display", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Nieve */
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 150; }

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.btn--primary { background: linear-gradient(100deg, var(--green), #3c6250 70%, var(--green-2)); color: #fff; box-shadow: 0 12px 24px -10px rgba(43, 74, 63, .7); }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; border: 1.5px solid var(--green); color: var(--green); min-height: 46px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 3px solid #b9d3c2; outline-offset: 3px; }

/* ============================================================
   Portada
   ============================================================ */
.cover {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: #1d2a33; transition: opacity .9s var(--ease), visibility .9s;
}
.cover__bg {
  position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(14px) saturate(1.1) brightness(.85); transform: scale(1.05);
}
.cover__card {
  position: relative; width: min(100%, 440px); text-align: center;
  padding: 34px 28px 30px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(248, 250, 249, .96), rgba(231, 237, 234, .92));
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  animation: pop 1s var(--ease) both .15s;
}
.cover__eyebrow { margin: 0 0 18px; font-weight: 700; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.cover__title { margin: 0 0 22px; font-weight: 600; font-size: clamp(34px, 10vw, 44px); line-height: 1.12; color: var(--green); text-transform: uppercase; }
.cover__subtitle { margin: 0 0 40px; font-size: 18px; color: var(--ink-soft); text-transform: uppercase; }
.cover.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.cover.is-open .cover__card { transform: scale(.96); transition: transform .9s var(--ease); }

/* ============================================================
   Hero + cuenta regresiva
   ============================================================ */
.hero { position: relative; min-height: 82svh; display: grid; place-items: center; padding: 60px 20px 80px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center 40%; animation: zoom 20s ease-out both; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,30,.15), rgba(10,20,30,0) 40%, rgba(10,20,30,.25)); }
.glass-dark {
  background: linear-gradient(180deg, rgba(25, 18, 10, .62), rgba(25, 18, 10, .42));
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.28);
}
.hero__card { width: min(100%, 560px); padding: 54px 24px 50px; border-radius: 26px; text-align: center; color: #fff; animation: pop 1.1s var(--ease) both .6s; }
.hero__title { margin: 0 0 22px; font-weight: 700; font-size: clamp(36px, 10vw, 54px); line-height: 1.12; text-transform: uppercase; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero__subtitle { margin: 0; font-size: 22px; letter-spacing: .03em; text-transform: uppercase; }

.countdown { position: relative; z-index: 1; padding: 22px 16px 26px; text-align: center; background: linear-gradient(180deg, #eef0ef, #e2e5e4); box-shadow: 0 -10px 30px rgba(0,0,0,.12); }
.countdown__title { margin: 0 0 16px; font-weight: 400; font-size: clamp(26px, 7vw, 34px); }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 520px; margin: 0 auto; }
.countdown__num { display: block; font-weight: 700; font-size: clamp(34px, 9vw, 44px); line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.countdown__label { display: block; font-size: 16px; color: var(--ink-soft); }
.countdown__done { margin: 0; font-size: 26px; font-weight: 600; color: var(--green); }

/* ============================================================
   Tarjetas sobre fondo floral
   ============================================================ */
.paper { background: var(--paper) url("assets/wallpaper.svg") repeat; background-size: 240px; padding: 56px 16px 0; }
.stack { width: min(100%, 560px); margin: 0 auto; display: grid; gap: 64px; }

.card { position: relative; background: var(--card); border-radius: var(--radius); padding: 64px 26px 30px; box-shadow: var(--shadow); scroll-margin-top: 60px; }
.card__badge {
  position: absolute; top: -34px; left: 28px; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 30%, #43695a, var(--green));
  box-shadow: 0 10px 20px -6px rgba(43,74,63,.6);
}
.card__badge .icon { width: 36px; height: 36px; stroke-width: 1.7; }
.card__title { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-weight: 700; font-size: 26px; line-height: 1.2; }
.card__title .icon { color: var(--green); width: 28px; height: 28px; }

.card--message { padding: 34px 24px; text-align: center; }
.card--message p { margin: 0; font-size: 21px; line-height: 1.75; }
.card--message strong { font-weight: 700; }

.row { display: grid; grid-template-columns: 50px 1fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.row__icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--muted); color: var(--green); }
.row__icon .icon { width: 24px; height: 24px; }
.row__body { min-height: 50px; display: flex; flex-direction: column; justify-content: center; }
.row__text { margin: 0; font-size: 22px; line-height: 1.45; }
.row__text--caps { text-transform: uppercase; }
.row__label { margin: 0 0 4px; font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.row__small { margin: 10px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink); }
.card .btn { margin-top: 12px; }

.info { margin: 0; font-size: 18px; line-height: 1.6; }

/* Dropdown calendario */
.dropdown { position: relative; }
.chev { display: inline-flex; transition: transform .25s; }
.is-open .chev { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 10;
  background: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.3);
  animation: pop .25s var(--ease);
}
.dropdown__menu a, .dropdown__menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-radius: 12px;
  background: none; text-align: left; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.dropdown__menu a:hover, .dropdown__menu button:hover { background: var(--muted); }
.dropdown__menu .icon { color: var(--green); }

/* Vestimenta */
.swatches { display: flex; gap: 8px; margin-top: 10px; }
.swatches span { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 3px 8px -3px rgba(0,0,0,.3); }
.polaroid {
  width: min(78%, 340px); margin: 26px auto 10px; padding: 14px 14px 52px; background: #fff;
  border-radius: 4px; transform: rotate(-2deg); box-shadow: 0 16px 34px -12px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .4s var(--ease);
}
.polaroid:hover { transform: rotate(0) scale(1.02); }
.polaroid img { width: 100%; aspect-ratio: 314 / 428; object-fit: cover; }

/* Confirmación */
.form { display: grid; gap: 16px; }
.field { display: block; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.field input {
  width: 100%; font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid #d6dbd9; background: #f7f8f8; color: var(--ink);
}
.field input:focus { outline: 0; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(90,130,104,.2); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices legend { grid-column: 1 / -1; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span { display: grid; place-items: center; min-height: 52px; padding: 8px; border-radius: 14px; border: 1.5px solid #d6dbd9; text-align: center; font-size: 16px; transition: all .2s; }
.choice input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(90,130,104,.35); }
.form__error { margin: 0; color: #b3261e; font-size: 15px; text-align: center; }
.rsvp-done { text-align: center; }
.rsvp-done__title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 10px; font-size: 20px; font-weight: 600; color: var(--green); }

/* Footer */
.footer { text-align: center; padding: 70px 16px 120px; }
.footer__text { margin: 0 0 6px; font-size: 22px; font-style: italic; }
.footer__title { margin: 0; font-weight: 700; font-size: clamp(30px, 8vw, 40px); color: var(--green); text-transform: uppercase; line-height: 1.15; }
.footer__sub { margin: 10px 0 0; font-size: 16px; color: var(--ink-soft); }

/* ============================================================
   Botones flotantes
   ============================================================ */
.fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; display: grid; gap: 14px; justify-items: end; }
.fab__btn {
  width: 62px; height: 62px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); cursor: pointer;
  display: grid; place-items: center; color: var(--green);
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); transition: transform .25s var(--ease);
}
.fab__btn:hover { transform: scale(1.06); }
.fab__btn .icon { width: 26px; height: 26px; }
#next-btn .icon { transition: transform .3s var(--ease); }
#next-btn.is-up .icon { transform: rotate(180deg); }
#music-btn .icon-off { display: none; }
#music-btn.is-off .icon-off { display: block; }
#music-btn.is-off .icon-on { display: none; }
#music-btn:not(.is-off) .icon-on { animation: bob 1.2s ease-in-out infinite; }
.menu {
  position: absolute; right: 0; bottom: calc(100% + 10px); min-width: 220px; padding: 8px;
  background: #fff; border-radius: 18px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); animation: pop .25s var(--ease);
}
.menu a { display: block; padding: 12px 16px; border-radius: 12px; text-decoration: none; font-size: 17px; }
.menu a:hover { background: var(--muted); color: var(--green); }

/* Animaciones */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 380px) {
  .card { padding: 60px 20px 26px; }
  .card--message p { font-size: 19px; }
  .row { grid-template-columns: 42px 1fr; gap: 14px; }
  .row__icon { width: 42px; height: 42px; }
  .row__text { font-size: 20px; }
  .fab__btn { width: 54px; height: 54px; }
}

/* ============================================================
   Intercambio navideño
   ============================================================ */
.exchange__heading { margin: 0 0 14px; text-align: center; font-weight: 700; font-size: 19px; line-height: 1.4; color: var(--green); }
.exchange__intro { margin: 0 0 20px; font-size: 18px; line-height: 1.6; }
.gifts, .details { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gift {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: #f4f6f5; border: 1px solid #e3e8e5;
}
.gift:nth-child(1) { background: #fdf3f1; border-color: #f3dcd6; }
.gift:nth-child(2) { background: #fcf1f5; border-color: #f1d7e2; }
.gift:nth-child(3) { background: #f0f5f1; border-color: #d9e6dc; }
.gift__emoji { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: #fff; box-shadow: 0 4px 12px -6px rgba(0,0,0,.25); }
.gift__label { margin: 0; font-weight: 700; font-size: 18px; letter-spacing: .04em; color: var(--green); }
.gift__text { margin: 2px 0 0; font-size: 16px; line-height: 1.45; }
.details { margin-top: 20px; padding-top: 20px; border-top: 1px dashed #d6dbd9; }
.detail { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.detail__emoji { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--muted); }
.detail__label { margin: 0; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.detail__text { margin: 2px 0 0; font-size: 17px; line-height: 1.5; }
.exchange__outro {
  margin: 22px 0 0; padding: 16px 18px; border-radius: 18px; text-align: center;
  font-weight: 600; font-size: 18px; line-height: 1.5; color: #fff;
  background: linear-gradient(100deg, var(--green), #3c6250 70%, var(--green-2));
}
