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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #E7E3D2;
  font-family: 'Figtree', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #3a3a2a;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { text-decoration: none; color: inherit; }

.wrapper {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.card {
  width: 100%;
  max-width: 430px;
  background: #F6F3E3;
  overflow: hidden;
}

/* ───── Buttons (shared) ───── */

.btn {
  background: #6A7250;
  color: #F6F3E3;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Figtree', sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.btn:hover { background: #566041; }

.btn-on-green { background: #859064; }
.btn-on-green:hover { background: #94a072; }

/* ───── Section helpers ───── */

.section-label {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #6A7250;
}

.section-title {
  font-family: 'Figtree', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  color: #3a3a2a;
}

.section-subtitle {
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: #3a3a2a;
}

.section-text {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.35;
  color: #3a3a2a;
}

/* ───── 1. Hero ───── */

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 797;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-logo {
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.25));
}

/* ───── 2. Intro ───── */

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 24px 0;
}

.sprig {
  width: 92px;
  height: 58px;
  margin-bottom: 20px;
}

.intro-label {
  font-family: 'Figtree', sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: .05em;
  color: #6A7250;
}

.fecha-img {
  max-width: 282px;
  margin-top: 18px;
}

.intro-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.35;
  margin-top: 36px;
  max-width: 300px;
}

/* ───── 3. Countdown ───── */

.countdown-section {
  background: #859064;
  color: #F6F3E3;
  padding: 30px 24px 34px;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.faltan-img {
  height: 20px;
  width: auto;
}

.countdown {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.countdown-unit {
  min-width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-num {
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: #F6F3E3;
}

.countdown-label {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .04em;
  color: #F6F3E3;
}

.countdown-sep {
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: #F6F3E3;
}

/* ───── 4. Lugar ───── */

.lugar {
  padding: 80px 0 0;
}

.lugar-content {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.lugar-foto {
  margin-top: 24px;
  width: 100%;
  aspect-ratio: 390 / 284;
  object-fit: cover;
  object-position: 82% 50%;
}

/* ───── 5. Dress Code ───── */

.dresscode {
  padding: 80px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.dresscode .section-text {
  text-align: left;
}

.flores-dresscode {
  position: absolute;
  right: 0;
  bottom: -43px;
  width: 90px;
}

/* ───── 6. RSVP ───── */

.rsvp {
  padding-top: 73px;
}

.rsvp-foto-wrap {
  position: relative;
  width: 100%;
}

.rsvp-foto {
  width: 100%;
  aspect-ratio: 390 / 519;
  object-fit: cover;
}

.rsvp-foto-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(106,114,80,.8);
  min-height: 84px;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.papis-img {
  max-width: 234px;
}

.rsvp-content {
  padding: 24px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.rsvp-content .section-title {
  line-height: 1.25;
}

.rsvp-content .section-text {
  line-height: 1.35;
}

/* ───── 7. Regalo ───── */

.regalo {
  padding: 120px 20px 0;
}

.regalo-card {
  background: #6A7250;
  padding: 38px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 38px;
  box-shadow: 0 0 4px rgba(0,0,0,.25);
}

.presencia-img {
  max-width: 240px;
}

.corazon {
  flex-shrink: 0;
}

.regalo-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  color: #F6F3E3;
  text-align: center;
}

/* ───── 8. Hospedajes ───── */

.hospedajes {
  padding: 120px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hospedajes .section-title {
  line-height: 1.25;
}

/* ───── 9. Traslados ───── */

.traslados {
  padding: 64px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* ───── Lists (hospedajes + traslados) ───── */

.lista {
  width: 100%;
}

.lista-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid #DDDBCF;
}

.lista-item:last-child {
  border-bottom: none;
}

.lista-nombre {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.lista-tel {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #6A7250;
  text-decoration: none;
}

/* ───── 10. Cierre ───── */

.cierre {
  padding: 64px 20px 80px;
}

.cierre-card {
  background: #6A7250;
  padding: 60px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 38px;
  box-shadow: 0 0 4px rgba(0,0,0,.25);
}

.ya-queremos-img {
  max-width: 286px;
  width: 100%;
}

.copita {
  position: absolute;
  top: 58px;
  left: 257px;
  width: 90px;
}

.cierre-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  color: #F6F3E3;
}

.cierre-phones {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 400;
  color: #F6F3E3;
}

.cierre-phones svg {
  flex-shrink: 0;
}

/* ───── 11. Logo final ───── */

.logo-final {
  display: flex;
  justify-content: center;
  padding: 40px 24px 56px;
}

.logo-verde {
  width: 100px;
  height: 72px;
}

/* ───── Modal ───── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58,58,42,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #F6F3E3;
  border-radius: 18px;
  padding: 32px 26px 28px;
  max-width: 380px;
  width: calc(100% - 32px);
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  transform: translateY(14px);
  transition: transform .26s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #E7E3D2;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6A7250;
  line-height: 1;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 500;
  text-align: center;
  color: #3a3a2a;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #859064;
  text-align: center;
  margin-bottom: 24px;
}

.modal-cuenta {
  border: 1px solid #DDDBCF;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.modal-cuenta:last-child {
  margin-bottom: 0;
}

.modal-cuenta-header {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #859064;
  display: block;
  margin-bottom: 12px;
}

.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-row:last-child {
  margin-bottom: 0;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.modal-field-label {
  font-family: 'Figtree', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #9aa385;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.modal-field-value {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #3a3a2a;
  word-break: break-all;
}

.modal-field-mono {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.modal-copy {
  border: 1px solid #C9CBB6;
  background: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #6A7250;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}

.modal-copy:hover {
  background: #f0edd9;
}

.modal-copy.copied {
  background: #6A7250;
  color: #F6F3E3;
  border-color: #6A7250;
}
