@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --wine: #0E1B3D;
  --wine-deep: #070F26;
  --gold: #C9A15A;
  --gold-light: #E8D5A3;
  --cream: #F7F4EC;
  --ink: #1B2135;
  --muted: #6b6478;
  --line: rgba(201, 161, 90, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 0 22px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,161,90,0.16), transparent 60%),
    linear-gradient(180deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--cream);
  padding: 60px 20px 76px;
  overflow: hidden;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,161,90,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,161,90,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(140px, 45vw, 260px);
  line-height: 0.8;
  background: linear-gradient(180deg, rgba(201,161,90,0.32), rgba(201,161,90,0.06));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: -6px;
  z-index: 0;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 92px;
  animation: fadeUp 0.7s ease-out both;
}

/* ---------- DESTELLOS ---------- */
.sparkles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sparkles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(232, 213, 163, 0.8);
  animation: twinkle 3.2s ease-in-out infinite;
  opacity: 0;
}

.sparkles span::before {
  content: "";
  position: absolute;
  inset: -6px;
  background: radial-gradient(circle, rgba(232,213,163,0.5) 0%, transparent 70%);
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 10px;
  font-weight: 500;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 7vw, 42px);
  margin: 0 0 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 220px;
  margin: 0 auto 24px;
  color: var(--gold);
}

.hero-divider span { flex: 1; height: 1px; background: var(--line); }
.hero-divider i { font-style: normal; font-size: 11px; }

.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--gold-light);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.pill svg { flex-shrink: 0; opacity: 0.9; }

/* ---------- CUENTA REGRESIVA ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.cd-box {
  background: #fff;
  border-radius: 10px;
  padding: 14px 4px 12px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(14, 27, 61, 0.14);
  border: 1px solid rgba(14,27,61,0.05);
}

.cd-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(22px, 6vw, 30px);
  color: var(--wine);
  line-height: 1;
}

.cd-label {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- VIDEO ---------- */
.video-section { padding: 46px 0 6px; }

.section-label {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 14px;
}

.video-frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(14, 27, 61, 0.22);
  border: 1px solid rgba(14,27,61,0.06);
}

video { width: 100%; display: block; background: #000; }

/* ---------- DETALLES ---------- */
.details {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.details p {
  font-size: 16.5px;
  color: var(--muted);
  margin: 0;
  max-width: 480px;
  margin-inline: auto;
}

/* ---------- UBICACIÓN ---------- */
.location { padding: 6px 0 40px; text-align: center; }

.map-frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(14, 27, 61, 0.14);
  border: 1px solid rgba(14,27,61,0.06);
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(14, 27, 61, 0.2);
  transition: transform 0.15s ease;
}

.map-btn:hover { transform: translateY(-1px); }

/* ---------- FORM ---------- */
.rsvp { padding: 48px 0 60px; }

.rsvp-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px 30px;
  box-shadow: 0 16px 40px rgba(14, 27, 61, 0.10);
  border: 1px solid rgba(14,27,61,0.05);
}

.rsvp h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 25px;
  margin: 0 0 6px;
  color: var(--wine);
}

.rsvp p.sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14.5px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--wine);
  margin: 18px 0 6px;
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E7E0D3;
  border-radius: 8px;
  background: #FBF9F4;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

textarea { resize: vertical; min-height: 70px; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}

button.enviar {
  margin-top: 28px;
  width: 100%;
  padding: 15px;
  background: linear-gradient(180deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--cream);
  border: none;
  border-radius: 8px;
  font-size: 15.5px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px rgba(14, 27, 61, 0.28);
}

button.enviar:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(14, 27, 61, 0.34); }
button.enviar:active { transform: translateY(0); }

.gracias {
  margin-top: 6px;
  padding: 18px 20px;
  background: #FBF7EC;
  border: 1px solid var(--gold);
  border-radius: 10px;
  color: var(--wine-deep);
  font-size: 15px;
  text-align: center;
}

footer {
  text-align: center;
  padding: 34px 20px 54px;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: #9c93a8;
}
