:root {
  --bg: #f8f3f6;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #251d25;
  --muted: #766774;
  --accent: #a06f8f;
  --accent-soft: #e9d5e2;
  --line: rgba(91, 62, 84, 0.18);
  --btn: #2f2230;
  --btn-text: #ffffff;
  --shadow: 0 18px 45px rgba(64, 38, 58, 0.14);
  --shadow-soft: 0 10px 28px rgba(62, 30, 46, 0.10);
  --radius: 24px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
  --script: 'Pinyon Script', 'Brush Script MT', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  background:
    radial-gradient(circle at top left, rgba(223, 193, 209, 0.45), transparent 28%),
    radial-gradient(circle at bottom right, rgba(233, 213, 226, 0.5), transparent 24%),
    linear-gradient(180deg, #fffdfd 0%, var(--bg) 100%);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)),
    radial-gradient(rgba(78, 35, 62, 0.03) 1px, transparent 1px);
  background-size: auto, 16px 16px;
  opacity: .7;
}
img { display: block; max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px 20px;
  background: url('img/portada.jpg') center/cover no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 11, 17, 0.18) 0%, rgba(19, 10, 18, 0.68) 88%),
    radial-gradient(circle at center, rgba(255,255,255,.08), transparent 45%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  color: #fff;
  padding: 20px 12px;
}
.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}
.eyebrow--dark { color: var(--accent); }
.hero h1 {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(84px, 23vw, 170px);
  line-height: .82;
  font-weight: 400;
  text-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.hero__phrase {
  width: min(430px, 100%);
  margin: 18px auto 10px;
  font-size: clamp(21px, 4.8vw, 34px);
  line-height: 1.35;
}
.hero__date {
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 210px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(47, 34, 48, 0.16);
  background: var(--surface-strong);
  color: var(--text);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(62, 30, 46, 0.16); }
.btn--light {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.44);
  color: #fff;
  backdrop-filter: blur(8px);
}
.content {
  width: min(760px, 100%);
  margin: -34px auto 0;
  padding: 0 16px 40px;
  position: relative;
  z-index: 2;
}
.section {
  margin-bottom: 28px;
  padding: 28px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
}
.section--compact { padding-top: 22px; }
.portrait-card,
.feature-photo {
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.portrait-card {
  width: min(290px, 100%);
  margin: 0 auto 20px;
}
.portrait-card__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.script-name {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(56px, 14vw, 86px);
  line-height: .92;
  font-weight: 400;
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px auto 4px;
}
.divider span {
  width: min(120px, 25vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,62,84,.35), transparent);
}
.divider i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}
.divider--small { margin: 22px auto; }
.date-card {
  width: min(270px, 100%);
  margin: 0 auto;
  padding: 24px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,240,245,.94));
  border: 1px solid rgba(91, 62, 84, 0.10);
  box-shadow: var(--shadow-soft);
}
.date-card__month,
.date-card__year,
.date-card__week {
  margin: 0;
  font-family: var(--sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.date-card__month { color: var(--accent); font-weight: 700; font-size: 14px; }
.date-card__day {
  margin: 12px 0;
  font-size: clamp(60px, 18vw, 92px);
  line-height: 1;
  font-weight: 700;
}
.date-card__year { font-size: 16px; font-weight: 700; }
.date-card__week { margin-top: 8px; font-size: 12px; color: var(--muted); }
.countdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.countdown__item {
  padding: 18px 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(91, 62, 84, 0.08);
}
.countdown__item strong {
  display: block;
  font-family: var(--sans);
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1;
}
.countdown__item span,
.countdown__message,
.muted,
.copy-feedback,
.address,
.normal-text,
.dresscode,
.footer {
  font-family: var(--sans);
}
.countdown__item span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.countdown__message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.feature-photo img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}
.info-block > :last-child { margin-bottom: 0; }
.section-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 500;
}
.muted {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.address,
.normal-text,
.dresscode {
  width: min(440px, 100%);
  margin: 0 auto 18px;
  color: #433842;
  line-height: 1.75;
  font-size: 15px;
}
.alias-box {
  width: min(340px, 100%);
  margin: 0 auto 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  border: 1px dashed rgba(91, 62, 84, 0.28);
}
.alias-box span {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.alias-box strong {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: 1px;
}
.copy-feedback {
  display: block;
  min-height: 18px;
  color: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition: .25s ease;
}
.copy-feedback.show { opacity: 1; transform: translateY(0); }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform .35s ease;
  cursor: zoom-in;
}
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item:hover img { transform: scale(1.03); }
.closing-text {
  margin: 0 0 12px;
  font-size: clamp(24px, 6vw, 36px);
  line-height: 1.45;
}
.signature {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(64px, 16vw, 96px);
  line-height: .9;
}
.footer {
  padding: 0 16px 34px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(13, 8, 13, 0.84);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  z-index: 50;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  width: auto;
  max-width: min(92vw, 900px);
  max-height: 84vh;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 700px) {
  .content { padding-inline: 22px; }
  .section { padding: 34px 30px; }
  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .gallery { gap: 16px; }
}
