:root {
  --ivory: #f7f2e9;
  --sand: #ded3c2;
  --warm: #b9a58a;
  --gold: #b79a5f;
  --gold-soft: #d8c89f;
  --sage: #728171;
  --sage-dark: #4e5d50;
  --ink: #4b463e;
  --white: #fffdf9;
  --shadow: 0 20px 60px rgba(73, 64, 48, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(255,255,255,.92), transparent 28rem),
    linear-gradient(135deg, rgba(225,219,207,.55) 0 1px, transparent 1px 14px),
    var(--ivory);
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1, h2, h3, p { margin-top: 0; }
a { color: inherit; }
.section { position: relative; padding: 100px 22px; }
.section__inner { width: min(1080px, 100%); margin: 0 auto; position: relative; z-index: 2; }
.eyebrow, .card-label {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  justify-items: center;
  overflow: hidden;
  background: #d9d0c1;
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,35,29,.04) 30%, rgba(39,40,33,.12) 56%, rgba(38,37,30,.72) 100%);
}
.hero__content { color: white; text-align: center; position: relative; padding: 0 20px 2.5vh; text-shadow: 0 2px 18px rgba(30,27,20,.42); }
.cross { font-size: 1.35rem; color: #ead9a9; display: block; margin-bottom: 8px; }
.hero .eyebrow { color: #f5e8c7; margin-bottom: 4px; }
.hero h1 { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(3.3rem, 8vw, 5rem); line-height: .82; letter-spacing: -.025em; }
.hero h1 span { display: block; font-size: .25em; letter-spacing: .22em; line-height: 1.4; text-transform: uppercase; font-family: "Montserrat", sans-serif; font-weight: 400; }
.surname { margin: 8px 0 14px; font-family: "Cormorant Garamond", serif; font-size: clamp(1.05rem, 2.4vw, 1.55rem); letter-spacing: .18em; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; text-transform: uppercase; letter-spacing: .22em; font-size: .62rem; }
.scroll-cue i { width: 1px; height: 28px; background: linear-gradient(white, transparent); }

.intro { text-align: center; overflow: hidden; }
.verse { max-width: 760px; margin: 0 auto 28px; font-family: "Cormorant Garamond", serif; color: var(--sage-dark); font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.25; font-style: italic; }
.ornament { display: block; color: var(--gold); margin: 20px 0; }
.lead { max-width: 600px; margin: 0 auto 56px; font-size: .94rem; }
.family-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.family-card {
  padding: 52px 30px;
  border: 1px solid rgba(183,154,95,.38);
  background: rgba(255,253,249,.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.family-card h2 { margin: 0; font-family: "Cormorant Garamond", serif; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.05; font-weight: 600; }
.amp { display: block; color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 1.5rem; margin: 10px; }
.botanical { position: absolute; width: 330px; height: 550px; opacity: .14; filter: sepia(.2); }
.botanical::before, .botanical::after { content: ""; position: absolute; background: var(--sage); border-radius: 100% 0 100% 0; transform: rotate(35deg); }
.botanical::before { width: 110px; height: 220px; top: 80px; left: 20px; box-shadow: 72px 120px 0 var(--sage), 155px 235px 0 var(--sage); }
.botanical::after { width: 70px; height: 150px; top: 0; left: 135px; box-shadow: -20px 180px 0 var(--sage), 80px 320px 0 var(--sage); }
.botanical--left { left: -120px; top: 80px; transform: rotate(-20deg); }
.botanical--right { right: -130px; bottom: -40px; transform: rotate(165deg); }

.date-band {
  color: white;
  text-align: center;
  background:
    linear-gradient(rgba(52,61,52,.48), rgba(52,61,52,.62)),
    url("assets/diego-isai-fondo-v2.png") center 34% / cover fixed;
  overflow: hidden;
}
.date-band__glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgba(255,240,193,.18), transparent 36%); }
.date-band .eyebrow { color: #ead9a9; }
.date-band h2 { margin: 8px auto 10px; max-width: 850px; font-family: "Cormorant Garamond", serif; font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: .95; font-weight: 500; }
.time-title { margin: 18px 0 44px; color: #f4e6c2; font-family: "Cormorant Garamond", serif; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: .08em; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(74px, 120px)); justify-content: center; gap: 10px; }
.countdown div { padding: 18px 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); backdrop-filter: blur(5px); }
.countdown strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 2.3rem; font-weight: 500; line-height: 1; }
.countdown span { display: block; margin-top: 8px; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; }

.locations { background: linear-gradient(180deg, rgba(255,253,249,.75), rgba(229,221,208,.42)); }
.section-heading { text-align: center; margin-bottom: 54px; }
.section-heading h2, .rsvp h2 { font-family: "Cormorant Garamond", serif; color: var(--sage-dark); font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: .95; font-weight: 500; margin-bottom: 16px; }
.location-card { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 420px; margin-bottom: 34px; overflow: hidden; background: var(--white); border: 1px solid rgba(183,154,95,.28); box-shadow: var(--shadow); }
.location-card--reverse { grid-template-columns: 1.2fr .8fr; }
.location-card--reverse .location-card__copy { order: 2; }
.location-card__copy { padding: 54px 42px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.location-icon { color: var(--gold); font-size: 2rem; margin-bottom: 10px; }
.location-card h3 { margin: 4px 0 12px; font-family: "Cormorant Garamond", serif; color: var(--sage-dark); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; font-weight: 600; }
.location-time { font-size: 1rem; letter-spacing: .16em; color: var(--gold); font-weight: 600; }
.map-wrap { min-height: 360px; background: var(--sand); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: sepia(.2) saturate(.72) contrast(.92); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1px solid var(--sage-dark); background: var(--sage-dark); color: white; text-decoration: none; text-transform: uppercase; letter-spacing: .16em; font: 600 .68rem "Montserrat", sans-serif; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: #607163; }

.rsvp { text-align: center; background: radial-gradient(circle at 50% 0, rgba(255,255,255,.9), transparent 32rem), var(--sand); }
.rsvp__mark { display: block; color: var(--gold); font-size: 2rem; }
.rsvp__intro { max-width: 610px; margin: 0 auto 32px; }
.rsvp-form { width: min(620px, 100%); margin: 0 auto; text-align: left; padding: 36px; background: rgba(255,253,249,.8); border: 1px solid rgba(183,154,95,.35); box-shadow: var(--shadow); }
.rsvp-form label { display: block; margin-bottom: 8px; color: var(--sage-dark); font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.rsvp-form input { width: 100%; min-height: 54px; border: 0; border-bottom: 1px solid var(--gold); border-radius: 0; background: transparent; color: var(--ink); font: 500 1.05rem "Montserrat", sans-serif; outline: none; }
.rsvp-form input:focus { border-bottom-width: 2px; }
.name-help { margin: 22px 0 28px; color: #6d655a; font-size: .75rem; }
.name-help p { margin-bottom: 7px; }
.button--whatsapp { width: 100%; border-color: #56705c; background: #56705c; }
.form-status { min-height: 1.4em; margin: 12px 0 0; text-align: center; color: #8a4b43; font-size: .78rem; }

footer { padding: 38px 22px; text-align: center; color: #ddd4c4; background: #465248; font-size: .72rem; letter-spacing: .08em; }
footer p { margin-bottom: 5px; font-family: "Cormorant Garamond", serif; font-size: 1.15rem; }
footer a { color: #ead9a9; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .section { padding: 78px 18px; }
  .hero { min-height: 92svh; }
  .hero__photo { object-position: center top; }
  .hero__content { padding-bottom: 2.5vh; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .family-grid, .location-card, .location-card--reverse { grid-template-columns: 1fr; }
  .family-card { padding: 42px 22px; }
  .location-card--reverse .location-card__copy { order: 0; }
  .location-card__copy { padding: 42px 28px; align-items: center; text-align: center; }
  .map-wrap, .map-wrap iframe { min-height: 320px; }
  .date-band { background-attachment: scroll; }
  .countdown { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .countdown div { padding: 14px 2px; }
  .countdown strong { font-size: 1.8rem; }
  .countdown span { font-size: clamp(.7rem, 3.8vw, .8rem); letter-spacing: .06em; }
  .rsvp-form { padding: 28px 20px; }

  /* Tamaños mínimos legibles en pantallas pequeñas. */
  .eyebrow, .card-label { font-size: clamp(17px, 2.2vw, 22px); letter-spacing: .15em; }
  .lead, .rsvp__intro { font-size: clamp(19px, 2.5vw, 24px); line-height: 1.7; }
  .location-time { font-size: clamp(19px, 2.5vw, 24px); }
  .button { min-height: 60px; padding: 0 22px; font-size: clamp(17px, 2.2vw, 21px); letter-spacing: .09em; }
  .rsvp-form label { font-size: clamp(17px, 2.2vw, 21px); letter-spacing: .1em; }
  .rsvp-form input { font-size: clamp(19px, 2.5vw, 24px); }
  .name-help { font-size: clamp(18px, 2.3vw, 22px); line-height: 1.75; }
  .form-status { font-size: clamp(18px, 2.3vw, 22px); }
  footer { font-size: clamp(17px, 2.2vw, 21px); }
  footer p { font-size: clamp(25px, 3.2vw, 31px); }
}

@media (max-width: 1100px) and (orientation: portrait) {
  html { font-size: clamp(20px, 3vw, 25px); }
  .hero .scroll-cue { display: none; }
}

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