:root {
  --bg: #f3efe7;
  --paper: #f8f5ef;
  --card: #fcfaf6;
  --ink: #38342f;
  --muted: #786f67;
  --line: rgba(56, 52, 47, 0.14);
  --accent: #4a4b4a;
  --accent-soft: #d8d1c6;
  --shadow: 0 24px 60px rgba(49, 42, 34, 0.08);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #f4efe7 0%, #f2ece3 100%);
  color: var(--ink);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea {
  font: inherit;
}
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  backdrop-filter: blur(14px);
  background: rgba(244, 239, 231, 0.78);
  border-bottom: 1px solid rgba(56, 52, 47, 0.08);
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
}
.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.nav a {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); }

main {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}
.section {
  padding: 72px 0;
}
.section-photo {
  padding-top: 32px;
}
.section-grid {
  display: grid;
  gap: 28px;
}
.two-columns {
  grid-template-columns: 1.05fr 0.95fr;
}
.card {
  background: rgba(252, 250, 246, 0.72);
  border: 1px solid rgba(56, 52, 47, 0.08);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.copy-card {
  padding: clamp(28px, 4vw, 54px);
}
.copy-card h2,
.section-heading h2,
.banner-overlay h2,
.modal-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  margin: 0 0 16px;
}
.copy-card p,
.section-lead,
.hero-copy,
.timeline-card p,
.timeline-card .text-link,
.gift-description,
.payment-note {
  line-height: 1.75;
  color: var(--muted);
}
.image-card img,
.banner-image,
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tall-image {
  min-height: 580px;
}
.toned {
  filter: sepia(0.42) saturate(0.78) contrast(0.92) brightness(1.03);
}
.eyebrow, .modal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 14px;
}
.eyebrow.light { color: rgba(255,255,255,0.8); }
.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 84vh;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-image-wrap {
  position: absolute;
  inset: 0;
}
.hero-image {
  height: 100%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 34, 31, 0.52) 0%, rgba(38, 34, 31, 0.20) 50%, rgba(38, 34, 31, 0.08) 100%),
    linear-gradient(180deg, rgba(244, 239, 231, 0.10) 0%, rgba(244, 239, 231, 0.14) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(92%, 720px);
  padding: clamp(34px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 84vh;
  color: #fff;
}
.hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 11vw, 8rem);
  line-height: 0.85;
  margin: 0;
  font-weight: 500;
}
.hero-date {
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 18px 0 8px;
  color: rgba(255,255,255,0.86);
}
.hero-copy {
  max-width: 540px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  background: var(--accent);
  color: #fff;
}
.button.secondary,
.button.ghost {
  border-color: rgba(56,52,47,0.18);
  background: rgba(255,255,255,0.72);
  color: var(--ink);
}
.button.small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.92rem;
}
.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink);
  border-bottom: 1px solid rgba(56,52,47,0.28);
}
.text-link:hover {
  border-bottom-color: var(--ink);
}

.banner-section {
  position: relative;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.banner-image {
  width: 100%;
  min-height: 420px;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 5vw, 52px);
  color: #fff;
  background: linear-gradient(180deg, rgba(22, 20, 18, 0.04) 18%, rgba(22, 20, 18, 0.48) 100%);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.timeline-card {
  background: rgba(252, 250, 246, 0.88);
  border: 1px solid rgba(56, 52, 47, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.timeline-card .time {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.timeline-card h3,
.gift-card h3,
.selected-gift h3,
.summary-card h3,
.payment-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 500;
}
.timeline-card .place {
  margin: 0 0 12px;
  color: var(--ink);
}

.map-card {
  background: rgba(252, 250, 246, 0.88);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(56, 52, 47, 0.08);
}
#map {
  width: 100%;
  height: 460px;
  border-radius: calc(var(--radius) - 6px);
}
.map-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 4px 6px;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.gift-card {
  background: rgba(252, 250, 246, 0.88);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(56, 52, 47, 0.08);
  display: flex;
  flex-direction: column;
}
.gift-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: sepia(0.18) saturate(0.92);
}
.gift-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.gift-body h3 {
  margin: 0;
}
.gift-description {
  margin: 0;
  font-size: 0.95rem;
}
.gift-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.gift-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
}

.closing-section { padding-bottom: 96px; }

.modal.hidden { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  width: min(960px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  background: #f7f4ef;
  border-radius: 28px;
  overflow: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.22);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(56,52,47,0.24);
  background: rgba(255,255,255,0.9);
  font-size: 1.8rem;
  line-height: 1;
}
.modal-header {
  padding: 34px 34px 14px;
}
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 34px 18px;
}
.step {
  position: relative;
  padding-top: 34px;
  text-align: center;
  color: #a29a91;
}
.step::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 17px;
  width: calc(100% + 12px);
  height: 1px;
  background: rgba(56,52,47,0.16);
  transform: translateX(-50%);
  z-index: 0;
}
.step:first-child::before { width: 50%; left: 75%; }
.step:last-child::before { width: 50%; left: 25%; }
.step span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f7f4ef;
  border: 2px solid rgba(56,52,47,0.24);
  z-index: 2;
}
.step small {
  display: block;
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.step.active,
.step.done { color: var(--ink); }
.step.active span,
.step.done span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.modal-body { padding: 10px 34px 34px; }
.modal-step { display: none; }
.modal-step.active { display: block; }
.selected-gift {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  background: rgba(255,255,255,0.55);
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(56,52,47,0.08);
}
.selected-gift img {
  width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}
.selected-gift p { color: var(--muted); margin: 6px 0; }
.selected-gift strong { font-size: 1.2rem; }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.choice-card {
  min-height: 150px;
  border-radius: 20px;
  border: 1px solid rgba(56,52,47,0.14);
  background: #fff;
  padding: 24px;
  text-align: left;
}
.choice-card.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.choice-title {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.choice-copy { color: inherit; opacity: 0.82; }
.amount-wrap {
  margin-top: 20px;
}
.amount-wrap.hidden { display: none; }
.form-grid,
.summary-card,
.payment-card {
  background: rgba(255,255,255,0.55);
  border-radius: 20px;
  border: 1px solid rgba(56,52,47,0.08);
  padding: 22px;
}
label {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
}
input,
textarea {
  width: 100%;
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid rgba(56,52,47,0.18);
  padding: 14px 16px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
}
textarea { resize: vertical; }
.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.summary-grid,
.payment-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px 16px;
  margin: 0;
}
.summary-grid dt,
.payment-grid dt {
  color: var(--muted);
}
.summary-grid dd,
.payment-grid dd {
  margin: 0;
}
.payment-grid dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.copy-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  border-bottom: 1px solid rgba(56,52,47,0.28);
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.modal-actions.align-right { justify-content: flex-end; }
.modal-actions.spaced { justify-content: space-between; }

.leaflet-control-attribution { font-size: 10px; }

@media (max-width: 980px) {
  .two-columns,
  .timeline-grid,
  .gift-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-content h1 { font-size: clamp(3.4rem, 13vw, 6rem); }
  .stepper { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .step:nth-child(odd)::before,
  .step:nth-child(even)::before { width: 100%; left: 50%; }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav { gap: 14px; }
  main { width: min(calc(100% - 20px), var(--container)); }
  .section { padding: 54px 0; }
  .two-columns,
  .timeline-grid,
  .gift-grid,
  .two-up,
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .reverse-mobile > :first-child { order: 2; }
  .reverse-mobile > :last-child { order: 1; }
  .hero,
  .hero-content { min-height: 78vh; }
  .hero-actions,
  .map-links,
  .modal-actions,
  .gift-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .selected-gift {
    grid-template-columns: 1fr;
  }
  .summary-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }
  .payment-grid dd { justify-content: flex-start; }
  .modal-header,
  .modal-body,
  .stepper { padding-left: 20px; padding-right: 20px; }
  #map { height: 360px; }
}

.map-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  background:
    radial-gradient(circle at 18% 22%, rgba(160, 176, 141, 0.55), transparent 20%),
    radial-gradient(circle at 72% 68%, rgba(168, 155, 134, 0.35), transparent 22%),
    linear-gradient(180deg, #e7e0d4 0%, #d8d0c2 100%);
}
.map-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(127, 151, 110, 0.18);
  filter: blur(2px);
}
.map-shape-1 { width: 360px; height: 240px; left: -40px; top: 40px; }
.map-shape-2 { width: 420px; height: 260px; right: -60px; bottom: 20px; }
.map-route {
  position: absolute;
  left: 29%;
  top: 42%;
  width: 42%;
  border-top: 2px dashed rgba(56, 52, 47, 0.55);
  transform: rotate(-8deg);
}
.map-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.pin-capilla { left: 14%; top: 34%; }
.pin-patios { right: 10%; bottom: 20%; }
.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2d2f36;
  box-shadow: 0 0 0 7px rgba(45, 47, 54, 0.16);
  flex: 0 0 auto;
}
.pin-label {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(252, 250, 246, 0.92);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(56, 52, 47, 0.08);
  box-shadow: var(--shadow);
}
.pin-label strong {
  font-size: 0.95rem;
  font-weight: 600;
}
.pin-label small {
  font-size: 0.78rem;
  color: var(--muted);
}
.map-pin:hover .pin-label {
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .map-visual {
    min-height: 360px;
  }
  .pin-capilla { left: 8%; top: 28%; }
  .pin-patios { right: 4%; bottom: 16%; }
  .map-route {
    left: 24%;
    width: 52%;
    top: 46%;
  }
  .pin-label {
    max-width: 180px;
    padding: 10px 12px;
  }
}
