/* ============================================
   Invitación de boda — mobile-first
   ============================================ */

:root {
  --fondo: #faf7f1;
  --tarjeta: #ffffff;
  --verde: #3f5344;
  --verde-suave: #6b7f6e;
  --dorado: #8f6f3e;
  --dorado-oscuro: #755a30;
  --texto: #3a3a38;
  --texto-suave: #77756f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Cormorant Garamond", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--fondo);
  color: var(--texto);
  font-size: 1.15rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.invitacion {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* ---------- Portada ---------- */

.hero {
  text-align: center;
  padding: 4.5rem 0 2.5rem;
}

.hero-intro {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 1.1rem;
}

.hero-linea {
  display: flex;
  align-items: center;
  width: 160px;
  margin: 0 auto 1.4rem;
}

.hero-linea::before,
.hero-linea::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--dorado);
}

.hero-linea span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dorado);
  margin: 0 10px;
}

.hero-nombres {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 5.5vw, 1.65rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--verde);
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
}

.hero-amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1em;
  color: var(--dorado);
}

.hero-fecha {
  margin-top: 1.5rem;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--texto);
}

.ornamento {
  color: var(--dorado);
  font-size: 1.6rem;
  margin-top: 1.75rem;
}

/* ---------- Tarjetas ---------- */

.tarjeta {
  background: var(--tarjeta);
  border: 1px solid #eee7da;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 14px rgba(63, 83, 68, 0.06);
}

.icono-tarjeta {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 0.7rem;
  color: var(--dorado-oscuro);
}

.tarjeta h2 {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 0.9rem;
}

/* ---------- Mensaje personalizado ---------- */

.mensaje {
  animation: aparecer 0.9s ease both;
}

.mensaje-saludo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--verde);
  margin-bottom: 0.6rem;
}

.mensaje-saludo:empty { display: none; }

.mensaje-texto {
  font-style: italic;
  color: var(--texto);
}

.mensaje-personas {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
}

.mensaje-personas:empty { display: none; }

@keyframes aparecer {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Cuenta regresiva ---------- */

.contador {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.2rem 0;
}

.contador-item {
  min-width: 72px;
  padding: 0.2rem 0.5rem;
  text-align: center;
}

.contador-item + .contador-item {
  border-left: 1px solid #e0d8c6;
}

.contador-item span {
  display: block;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--verde);
  font-variant-numeric: tabular-nums;
}

.contador-item small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
}

/* ---------- Detalles ---------- */

.detalle-hora {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--verde);
}

.detalle-lugar { font-weight: 500; }

.detalle-dir {
  color: var(--texto-suave);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.como-llegar {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 0.6rem;
}

.botones-mapa {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.regalos-nota {
  font-style: italic;
  margin-bottom: 1rem;
}

/* ---------- Botones ---------- */

.boton {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.8rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.boton:active { transform: scale(0.97); }

.boton-principal {
  background: var(--verde);
  color: #fdfcf9;
  box-shadow: 0 4px 16px rgba(63, 83, 68, 0.3);
}

.boton-secundario {
  color: var(--verde);
  border: 1px solid var(--verde-suave);
}

/* ---------- RSVP y pie ---------- */

.rsvp {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

.rsvp h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--verde);
  margin-bottom: 0.4rem;
}

.rsvp p {
  color: var(--texto-suave);
  margin-bottom: 1.4rem;
}

.pie {
  text-align: center;
  padding-top: 2rem;
  color: var(--texto-suave);
  font-style: italic;
}

.botones-regalos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
