:root {
  --hero-bg: #e6ede0;
  --bg: #f5f7f2;
  --bg-tint: #edf2e8;
  --card: #fbfcf9;
  --ink: #2c4a2c;        /* verde oscuro para títulos */
  --text: #4a5d48;       /* texto */
  --muted: #6f8a68;      /* etiquetas */
  --sage: #9db592;       /* verde salvia */
  --sage-soft: #e3ebdd;
  --line: #d5e0cf;
  --leaf: #b9cbae;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; }

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

.icon { width: 18px; height: 18px; color: var(--sage); vertical-align: -3px; }

/* ---------- PORTADA ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 72px 16px 96px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(245, 247, 242, .9) 0%, rgba(245, 247, 242, .55) 45%, rgba(245, 247, 242, 0) 75%),
    var(--hero-bg);
}

/* Para usar una foto de fondo: poné la imagen en assets/hero.jpg y descomentá esto.
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/hero.jpg") center / cover;
  opacity: .5; z-index: 0;
}
*/

.hero-leaves { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-leaves svg { position: absolute; fill: var(--leaf); opacity: .55; }
.hero-leaves .l1 { width: 340px; height: 410px; top: -90px;  left: -80px;  transform: rotate(140deg); }
.hero-leaves .l2 { width: 260px; height: 310px; top: 18%;    left: -120px; transform: rotate(70deg);  opacity: .4; }
.hero-leaves .l3 { width: 380px; height: 460px; bottom: -140px; left: -40px; transform: rotate(30deg); }
.hero-leaves .l4 { width: 360px; height: 430px; top: -110px; right: -70px; transform: rotate(-145deg); }
.hero-leaves .l5 { width: 260px; height: 310px; top: 30%;    right: -130px; transform: rotate(-75deg); opacity: .4; }
.hero-leaves .l6 { width: 380px; height: 460px; bottom: -150px; right: -50px; transform: rotate(-30deg); }

.hero-content { position: relative; z-index: 1; max-width: 760px; }

.eyebrow {
  margin: 0 0 28px;
  font-size: 14px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 14px;
}

.names {
  font-size: clamp(54px, 10vw, 92px);
  line-height: 1.05;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0 .35em;
}
.names-leaf { width: .45em; height: .45em; color: var(--sage); flex: none; }

.lead { margin: 28px auto 0; max-width: 520px; font-size: clamp(16px, 2.2vw, 19px); color: var(--text); }

.rule {
  width: 120px; height: 1px; border: 0; margin: 40px auto 32px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
}

.hero-date { margin: 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 26px); color: var(--ink); }
.hero-place {
  margin: 6px 0 0; font-size: 14px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted);
}

.countdown {
  margin-top: 48px;
  display: flex; justify-content: center; gap: clamp(14px, 4vw, 40px);
}
.cd { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cd-num {
  width: clamp(68px, 17vw, 112px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(251, 252, 249, .85);
  box-shadow: 0 6px 24px rgba(44, 74, 44, .08);
  font-family: var(--serif); font-size: clamp(28px, 6vw, 42px); color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.cd-label { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 1.5px solid var(--sage); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; width: 2px; height: 8px; margin-left: -1px;
  background: var(--sage); border-radius: 2px;
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- SECCIONES ---------- */
.section {
  padding: 96px 16px;
  text-align: center;
}
.section-tint { background: var(--bg-tint); }
.section { position: relative; overflow: hidden; }
.section > :not(.deco) { position: relative; z-index: 1; }

/* Plantas decorativas de fondo */
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.deco svg { position: absolute; fill: var(--leaf); color: var(--leaf); opacity: .45; }
.deco-branch { width: 130px; height: 347px; }
.deco-leaf { width: 240px; height: 288px; opacity: .35 !important; }
.deco .d-tl { top: -40px;    left: -10px;  transform: rotate(150deg); }
.deco .d-tr { top: -40px;    right: -10px; transform: rotate(-150deg); }
.deco .d-bl { bottom: -50px; left: -20px;  transform: rotate(35deg); }
.deco .d-br { bottom: -50px; right: -20px; transform: rotate(-35deg); }
.deco .deco-leaf.d-tl { top: -110px; left: -90px; }
.deco .deco-leaf.d-tr { top: -110px; right: -90px; }
.deco .deco-leaf.d-bl { bottom: -120px; left: -90px; }
.deco .deco-leaf.d-br { bottom: -120px; right: -90px; }

/* Anillos entre la portada y la celebración */
.rings { display: block; width: 160px; height: 112px; margin: -16px auto 24px; }

.kicker {
  margin: 0 0 14px; font-size: 13px; letter-spacing: .4em;
  text-transform: uppercase; color: var(--muted);
}
.section h2 { font-size: clamp(32px, 5vw, 46px); line-height: 1.15; }
.text { margin: 20px auto 32px; max-width: 520px; font-size: 17px; }
.text strong { font-weight: 500; color: var(--ink); }

.cards {
  max-width: 960px; margin: 56px auto 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px 20px 36px;
}
.card-icon {
  width: 70px; height: 70px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sage-soft);
}
.card-icon svg, .btn-icon {
  width: 28px; height: 28px; fill: none; stroke: #7b9a72; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.card-label { margin: 0 0 8px; font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.card-value { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--ink); }

.address { margin: 0 0 20px; font-size: 17px; color: var(--ink); font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font: 500 16px var(--sans); text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-icon { width: 18px; height: 18px; stroke: currentColor; }
.btn-outline { border: 1px solid var(--sage); color: var(--ink); background: var(--card); }
.btn-outline:hover { background: var(--sage-soft); }
.btn-solid { background: var(--ink); color: #f5f7f2; border: 1px solid var(--ink); }
.btn-solid:hover { background: #3b5d3a; }

.gift {
  max-width: 440px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 8px 24px; text-align: left;
}
.gift-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.gift-row + .gift-row { border-top: 1px solid var(--line); }
.gift-label { width: 64px; flex: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gift-value { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 400; color: var(--ink); }
.copy {
  flex: none; border: 1px solid var(--sage); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 6px 14px; font: 400 13px var(--sans); cursor: pointer;
}
.copy:hover { background: var(--sage-soft); }

.section a:not(.btn) { color: var(--ink); text-decoration-color: var(--sage); text-underline-offset: 3px; }
.btn-block { width: 100%; justify-content: center; }
.note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- CONFIRMACIÓN ---------- */
.rsvp {
  max-width: 480px; margin: 0 auto; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 24px;
  display: grid; gap: 20px;
}
.if-yes { display: grid; gap: 20px; }
.if-yes[hidden] { display: none; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-label { padding: 0; font-size: 14px; font-weight: 400; color: var(--ink); }
.field-label em { font-style: normal; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: 400 16px var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.field input.invalid { border-color: #c27a6b; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block; text-align: center; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font-size: 15px; color: var(--ink);
  transition: background .2s, border-color .2s;
}
.choice input:checked + span { background: var(--sage-soft); border-color: var(--sage); font-weight: 500; }
.choice input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 2px; }
.rsvp .btn { margin-top: 4px; border: 0; cursor: pointer; }

.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- TARJETA ---------- */
.prices { display: flex; justify-content: center; align-items: flex-start; gap: clamp(32px, 8vw, 80px); margin: 8px 0 0; }
.prices .price span { max-width: 150px; margin-inline: auto; line-height: 1.5; }
.prices-note { margin: 20px 0 40px; }
.price {
  margin: 0; font-family: var(--serif); font-size: clamp(48px, 9vw, 64px);
  color: var(--ink); line-height: 1;
}
.price span { display: block; margin-top: 10px; font-family: var(--sans); font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

.steps {
  list-style: none; padding: 0; max-width: 820px; margin: 0 auto 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.steps li { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.step-n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sage-soft); color: var(--ink); font-family: var(--serif); font-size: 22px;
}
.steps p { margin: 0; max-width: 220px; font-size: 16px; }
.steps strong { font-weight: 500; color: var(--ink); }
#tarjeta .gift { margin-bottom: 32px; }

/* ---------- PREGUNTAS FRECUENTES ---------- */
.faq { max-width: 760px; margin: 48px auto 0; display: grid; gap: 14px; text-align: left; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 56px 22px 26px; position: relative;
  font-family: var(--serif); font-size: 21px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 28px; top: 50%; width: 9px; height: 9px;
  border-right: 1.6px solid var(--sage); border-bottom: 1.6px solid var(--sage);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 26px 24px; font-size: 16px; }

/* ---------- PIE ---------- */
.gift-icon { margin-bottom: 28px; }
#regalos .gift { max-width: 380px; }

.footer { padding: 80px 16px 72px; text-align: center; background: #243523; }
.footer-title { margin: 0; font-family: var(--serif); font-size: clamp(30px, 5vw, 38px); color: #f1f5ec; }
.footer-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 22px; }
.footer-divider span { width: 60px; height: 1px; background: #4d6b48; }
.footer-divider svg { width: 20px; height: 20px; fill: #7fa874; }
.footer-date { margin: 0; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: #8fb585; }
.footer-love { margin: 40px 0 0; font-size: 14px; color: #5f7d59; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: #f5f7f2; padding: 10px 20px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ANIMACIÓN AL SCROLLEAR ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
}

/* ---------- CELULAR ---------- */
@media (max-width: 720px) {
  .br-desk { display: none; }
  .eyebrow { letter-spacing: .3em; font-size: 12px; gap: 10px; }
  .names { flex-direction: column; gap: 4px; }
  .names-leaf { width: 32px; height: 32px; }
  .cards { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { flex-direction: row; text-align: left; }
  .steps p { max-width: none; }
  .rsvp { padding: 24px 18px; }
  .deco-branch { width: 84px; height: 224px; }
  .deco-leaf { width: 160px; height: 192px; opacity: .3 !important; }
  .deco svg { opacity: .35; }
  .rings { width: 130px; height: 91px; }
  .footer-date { font-size: 12px; letter-spacing: .16em; }
  .gift { padding: 4px 18px; }
  .gift-row { flex-wrap: wrap; gap: 4px 12px; padding: 14px 0; }
  .gift-label { width: 100%; }
  .gift-value { white-space: nowrap; }
  .faq summary { font-size: 19px; padding: 18px 48px 18px 20px; }
  .faq summary::after { right: 22px; }
  .faq details p { padding: 0 20px 20px; }
  .card { padding: 28px 20px; }
  .section { padding: 72px 16px; }
  .cd { gap: 10px; }
  .cd-label { font-size: 10px; letter-spacing: .15em; }
  .hero-leaves svg { opacity: .45; }
  .hero-leaves .l2, .hero-leaves .l5 { display: none; }
}
