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

:root {
  --cream: #f5f0e8;
  --cream-dark: #e8e0d0;
  --cream-mid: #ede8dc;
  --sage: #7a8c6e;
  --sage-light: #a0b090;
  --sage-dark: #7a8c6e;
  --sage-muted: rgba(122,140,110,0.2);
  --blush: rgba(122,140,110,0.1);
  --blush-light: rgba(122,140,110,0.08);
  --dusty-rose: #7a8c6e;
  --lavender: rgba(255,255,255,0.5);
  --lavender-light: rgba(255,255,255,0.6);
  --warm-gold: #c5b99a;
  --text-dark: #5a5040;
  --text-mid: #8a7e6b;
  --text-light: #a09585;
  --white: #ffffff;
}

html, body {
  width: 100%;
  background: var(--cream);
  font-family: 'Jost', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── COVER ── */
.cover {
  width: 100%;
  min-height: 100svh;
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 60px 24px;
}

.cover-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(168,197,166,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(232,196,184,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(197,184,212,0.15) 0%, transparent 60%);
}

.cover-corner {
  position: absolute;
  width: 240px;
  height: 240px;
  opacity: 0.18;
}
.cover-corner.tl { top: 0; left: 0; }
.cover-corner.tr { top: 0; right: 0; transform: scaleX(-1); }
.cover-corner.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.cover-corner.br { bottom: 0; right: 0; transform: scale(-1); }

.cover-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cover-pre {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 28px;
}

.cover-names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(64px, 12vw, 110px);
  line-height: 1.0;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.cover-amp {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: clamp(48px, 9vw, 80px);
  color: var(--dusty-rose);
  line-height: 1;
  margin: 8px 0;
}

.cover-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 32px 0;
  width: min(380px, 80vw);
}
.cover-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warm-gold), transparent);
}
.cover-divider-dot {
  width: 6px; height: 6px;
  background: var(--warm-gold);
  border-radius: 50%;
}

.cover-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-mid);
}

.cover-tag {
  margin-top: 20px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ── SECTIONS SHARED ── */
.section {
  width: 100%;
  padding: 80px clamp(24px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}

.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
  display: block;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(38px, 7vw, 54px);
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.section-title em {
  font-style: italic;
  color: var(--dusty-rose);
}

.section-body {
  font-family: 'Jost', sans-serif;
  font-size: clamp(15px, 2.2vw, 17px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-mid);
  max-width: 680px;
}

.thin-rule {
  width: 80px;
  height: 1px;
  background: var(--warm-gold);
  margin: 32px 0;
}

/* ── PHOTO STRIPS ── */
.photo-strip {
  display: flex;
  height: clamp(220px, 40vw, 420px);
  gap: 0;
  overflow: hidden;
  position: relative;
}

/* Fade top: blanco (section-dear) → foto */
.photo-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18%;
  background: linear-gradient(to bottom, #ffffff, transparent);
  z-index: 1;
  pointer-events: none;
}
/* Fade bottom: foto → verde (section-date) */
.photo-strip::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 18%;
  background: linear-gradient(to top, #7a8c6e, transparent);
  z-index: 1;
  pointer-events: none;
}

.photo-slot {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.photo-strip-single {
  height: clamp(280px, 50vw, 520px);
  overflow: hidden;
  position: relative;
}

/* FotoPortada: arriba → crema oscuro (cover), abajo → blanco (section-dear) */
.photo-strip-single.foto-portada::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18%;
  background: linear-gradient(to bottom, #e8e0d0, transparent);
  z-index: 1;
  pointer-events: none;
}
.photo-strip-single.foto-portada::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 18%;
  background: linear-gradient(to top, #ffffff, transparent);
  z-index: 1;
  pointer-events: none;
}

/* FotoIntermedia: arriba → verde (section-date), abajo → crema medio (section-location) */
.foto-intermedia::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18%;
  background: linear-gradient(to bottom, #7a8c6e, transparent);
  z-index: 1;
  pointer-events: none;
}
.foto-intermedia::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 18%;
  background: linear-gradient(to top, #ede8dc, transparent);
  z-index: 1;
  pointer-events: none;
}

.photo-strip-single img,
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Foto intermedia — base mobile */
.foto-intermedia {
  height: clamp(260px, 55vw, 420px);
}
.section-dear {
  background: var(--white);
  text-align: center;
  padding: 80px clamp(24px, 12vw, 160px);
}
.section-dear .section-body {
  max-width: 100%;
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 2;
  color: var(--text-mid);
}
.section-dear .thin-rule { margin: 32px auto; }
.section-dear .section-label { justify-content: center; display: flex; }
.section-dear .section-title { font-size: clamp(40px, 8vw, 60px); }

/* ── DATE ── */
.section-date {
  background: var(--sage-dark);
  color: white;
  text-align: center;
  padding: 80px clamp(24px, 10vw, 140px);
}
.section-date .section-label { color: var(--sage-light); display: flex; justify-content: center; }
.section-date .section-title { color: white; font-size: clamp(36px, 7vw, 64px); }
.section-date .section-body { color: rgba(255,255,255,0.7); max-width: 100%; font-size: clamp(15px, 2.2vw, 18px); }
.section-date .thin-rule { background: var(--sage-light); opacity: 0.5; margin: 32px auto; }

.date-big {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(72px, 18vw, 120px);
  line-height: 1;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.date-month-year {
  font-family: 'Jost', sans-serif;
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 48px;
}

/* ── COUNTDOWN ── */
.countdown-wrap {
  margin-top: 48px;
}
.countdown-grid {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 28px);
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
}
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 0;
  max-width: clamp(60px, 18vw, 96px);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: clamp(8px, 2vw, 22px) clamp(4px, 1.5vw, 18px);
}
.countdown-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(20px, 5vw, 56px);
  line-height: 1;
  color: white;
  letter-spacing: -0.02em;
}
.countdown-label {
  font-family: 'Jost', sans-serif;
  font-size: clamp(7px, 1.5vw, 11px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-light);
}
.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 3.5vw, 36px);
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  line-height: 1;
  margin-bottom: 24px;
  align-self: center;
  flex-shrink: 0;
}

/* ── LOCATION ── */
.section-location {
  background: var(--cream-mid);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.location-text {
  flex: 1;
  padding: 70px clamp(24px, 10vw, 140px);
  text-align: center;
}
.location-text .section-label { display: flex; justify-content: center; }
.location-text .thin-rule { margin: 32px auto; }
.location-map-placeholder {
  flex: 1;
  min-height: 300px;
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-light);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.location-map-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text-mid);
  font-weight: 300;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.location-detail-icon {
  width: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--sage);
}

/* ── PAYMENT ── */
.section-payment {
  background: var(--white);
  text-align: center;
  padding: 80px clamp(20px, 10vw, 140px);
}
.section-payment .thin-rule { margin: 32px auto; }
.section-payment .section-label { display: flex; justify-content: center; }

.alias-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  border-radius: 16px;
  padding: 22px clamp(16px, 4vw, 40px);
  margin: 36px auto;
  flex-wrap: wrap;
  justify-content: center;
}
.alias-icon {
  width: 44px; height: 44px;
  background: var(--sage-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alias-label {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
  text-align: left;
}
.alias-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 500;
  color: var(--text-dark);
}
.copy-btn {
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.copy-btn:hover { background: var(--sage-dark); }

.card-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}
.card-item {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 14px;
  padding: 24px 28px;
  min-width: 140px;
  text-align: center;
  flex: 1 1 140px;
  max-width: 220px;
}
.card-item-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}
.card-item-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 400;
  color: var(--text-dark);
}
.card-item-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ── GIFT ── */
.section-gift {
  background: var(--blush-light);
  text-align: center;
  padding: 80px clamp(24px, 12vw, 160px);
}
.section-gift .thin-rule { margin: 32px auto; background: var(--dusty-rose); opacity: 0.4; }
.section-gift .section-label { display: flex; justify-content: center; color: var(--dusty-rose); }
.section-gift .section-title em { color: var(--dusty-rose); }
.gift-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 700px;
  margin: 0 auto 36px;
}

/* ── DRESS CODE ── */
.section-dresscode {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  min-height: auto;
}
.dresscode-visual {
  width: 100%;
  min-height: 200px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 24px;
  flex-shrink: 0;
  padding: 40px 24px;
}
.dresscode-text {
  padding: 60px clamp(24px, 8vw, 70px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.dresscode-tag {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dark);
  background: var(--cream);
  padding: 8px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.dresscode-items {
  list-style: none;
  margin-top: 24px;
  width: 100%;
}
.dresscode-items li {
  font-family: 'Jost', sans-serif;
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 300;
  color: var(--text-mid);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.dresscode-items li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lavender);
  flex-shrink: 0;
}

/* ── CONFIRM ── */
.section-confirm {
  background: var(--sage-dark);
  text-align: center;
  padding: 80px clamp(24px, 12vw, 160px);
  color: white;
}
.section-confirm .section-label { color: var(--cream-dark); display: flex; justify-content: center; }
.section-confirm .section-title { color: white; }
.section-confirm .section-body { color: rgba(255,255,255,0.7); max-width: 100%; }
.section-confirm .thin-rule { background: var(--sage-light); opacity: 0.4; margin: 32px auto; }

.confirm-deadline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 300;
  color: var(--cream-dark);
  margin: 24px 0;
  font-style: italic;
}

/* ── WHATSAPP ── */
.section-whatsapp {
  background: var(--cream);
  text-align: center;
  padding: 70px clamp(24px, 12vw, 160px);
}
.section-whatsapp .thin-rule { margin: 28px auto; }
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #25D366;
  color: white;
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 18px 36px;
  border-radius: 50px;
  margin-top: 28px;
  transition: background 0.2s, transform 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.wa-btn:hover { background: #128C7E; transform: scale(1.02); }
.wa-btn:active { transform: scale(0.98); }

/* ── CLOSING ── */
.section-closing {
  background: var(--cream-dark);
  text-align: center;
  padding: 100px clamp(24px, 12vw, 160px) 120px;
  position: relative;
  overflow: hidden;
}
.closing-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 30% 50%, rgba(168,197,166,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 70% 50%, rgba(232,196,184,0.12) 0%, transparent 70%);
}
.closing-inner { position: relative; z-index: 2; }
.closing-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(54px, 12vw, 90px);
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.closing-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 3.5vw, 28px);
  color: var(--text-mid);
  font-weight: 300;
}
.closing-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 400;
  color: var(--dusty-rose);
  margin-top: 40px;
}
.closing-date-tag {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 24px;
}

/* ── AMPERSAND PORTADA con Playfair Display ── */
.cover-amp-char {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
}

/* ── FLORAL DECORATIONS ── */
.floral-deco {
  opacity: 0.13;
  position: absolute;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   DESKTOP: tablet/desktop layout overrides
══════════════════════════════════════════ */
@media (min-width: 700px) {
  /* Imágenes más altas en desktop */
  .photo-strip {
    height: clamp(380px, 45vw, 580px);
  }
  .photo-strip-single {
    height: clamp(420px, 55vw, 680px);
  }
  /* Foto intermedia aún más alta */
  .photo-strip-single.foto-intermedia {
    height: clamp(500px, 70vw, 860px);
  }

  .section-location {
    flex-direction: row;
  }
  .location-text {
    padding: 90px 70px 90px clamp(60px, 10vw, 140px);
  }
  .location-text .section-label { display: flex; justify-content: center; }
  .location-text .thin-rule { margin: 32px auto; }
  .location-detail {
    margin-left: auto;
    margin-right: auto;
  }
  .location-map-placeholder {
    min-height: 420px;
  }

  .section-dresscode {
    flex-direction: row;
    min-height: 420px;
  }
  .dresscode-visual {
    width: 340px;
    min-height: unset;
    flex-direction: column;
    padding: 40px 24px;
  }
  .dresscode-text {
    padding: 80px 60px 80px 60px;
  }
  .dresscode-items li {
    justify-content: center;
  }
}

/* ══════════════════════════════════════════
   MOBILE: extra tweaks under 480px
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .cover-corner {
    width: 140px;
    height: 140px;
  }

  .photo-strip {
    flex-direction: column;
    height: auto;
  }
  .photo-slot {
    height: 220px;
  }

  .alias-box {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 20px;
  }
  .alias-label { text-align: center; }

  .card-grid {
    gap: 12px;
  }
  .card-item {
    min-width: 120px;
  }

  .cover-pre {
    font-size: 11px;
    letter-spacing: 0.25em;
  }
}
