/* Diseños de las invitaciones. Cada plantilla es una clase .plantilla-<id>
   que define colores, tipografías y decoración vía variables CSS.
   Este archivo lo comparten la vista previa del editor y la página i.html. */

.invitacion {
  --fondo: #faf6ef;
  --tinta: #3f3a33;
  --acento: #b08d3f;
  --acento-suave: rgba(176, 141, 63, 0.14);
  --fuente-titulo: "Great Vibes", cursive;
  --fuente-texto: "Cormorant Garamond", Georgia, serif;
  --decoracion: "✦ ✦ ✦";

  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--fuente-texto);
  font-size: 1.08rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.inv-decoracion { color: var(--acento); letter-spacing: 0.8em; font-size: 0.9rem; opacity: 0.9; }
.inv-decoracion::after { content: var(--decoracion); padding-left: 0.8em; }

.inv-etiqueta {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: var(--acento);
  margin: 0;
}

.inv-nombre {
  font-family: var(--fuente-titulo);
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  font-weight: 400;
  margin: 0.1em 0;
  color: var(--tinta);
}

.inv-fecha { font-size: 1.15rem; margin: 0; }

.inv-countdown { display: flex; gap: 0.7rem; justify-content: center; }
.inv-countdown > div {
  background: var(--acento-suave);
  border: 1px solid var(--acento);
  border-radius: 12px;
  min-width: 64px;
  padding: 0.55rem 0.4rem;
  display: flex;
  flex-direction: column;
}
.inv-countdown span { font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.inv-countdown small { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.62rem; }
.inv-ya-paso { font-size: 1.3rem; margin: 0; }

.inv-mensaje { max-width: 34rem; font-size: 1.18rem; font-style: italic; margin: 0; }

.inv-bloque { max-width: 34rem; }
.inv-bloque h3 { margin: 0 0 0.25rem; font-size: 1.25rem; color: var(--acento); font-family: var(--fuente-texto); }
.inv-bloque p { margin: 0 0 0.6rem; }

.inv-acciones { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

.invitacion .btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--acento);
  background: transparent;
  color: var(--acento);
  font-family: inherit;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.invitacion .btn:hover { background: var(--acento); color: var(--fondo); }
.invitacion .btn-rsvp { background: var(--acento); color: var(--fondo); font-weight: 600; }
.invitacion .btn-rsvp:hover { opacity: 0.88; }

.btn-musica {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 1.3rem;
  text-decoration: none;
  background: var(--acento-suave);
  border: 1px solid var(--acento);
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
}

.inv-marca { margin-top: 1rem; font-size: 0.8rem; opacity: 0.75; }
.inv-marca a { color: var(--tinta); }

/* ---------- Temas ---------- */

.plantilla-clasica { /* usa los valores base */ }

.plantilla-noche {
  --fondo: #10131c;
  --tinta: #ece9f4;
  --acento: #c9a84c;
  --acento-suave: rgba(201, 168, 76, 0.12);
  --fuente-titulo: "Montserrat", sans-serif;
  --fuente-texto: "Montserrat", sans-serif;
  --decoracion: "· · ·";
  background: radial-gradient(circle at 50% 0%, #1d2233 0%, #10131c 65%);
}
.plantilla-noche .inv-nombre {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: clamp(1.9rem, 7vw, 3.1rem);
}

.plantilla-quince {
  --fondo: #fdf1f7;
  --tinta: #5c3350;
  --acento: #c04d8c;
  --acento-suave: rgba(192, 77, 140, 0.12);
  --decoracion: "✨ ✨ ✨";
  background: linear-gradient(160deg, #ffe1ee 0%, #fdf1f7 45%, #eadcff 100%);
}

.plantilla-botanica {
  --fondo: #f3f6ee;
  --tinta: #33412e;
  --acento: #5a7350;
  --acento-suave: rgba(90, 115, 80, 0.13);
  --decoracion: "🌿 ❀ 🌿";
  background: linear-gradient(180deg, #eef3e6 0%, #f6f8f1 100%);
}

.plantilla-fiesta {
  --fondo: #fffdf5;
  --tinta: #2b2350;
  --acento: #ff5a5f;
  --acento-suave: rgba(255, 90, 95, 0.1);
  --fuente-titulo: "Montserrat", sans-serif;
  --fuente-texto: "Montserrat", sans-serif;
  --decoracion: "🎉 🎈 🎊";
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 180, 0, 0.18) 0 4rem, transparent 4rem),
    radial-gradient(circle at 88% 12%, rgba(80, 200, 255, 0.18) 0 3rem, transparent 3rem),
    radial-gradient(circle at 85% 80%, rgba(255, 90, 95, 0.14) 0 4.5rem, transparent 4.5rem),
    #fffdf5;
}
.plantilla-fiesta .inv-nombre { font-weight: 800; font-size: clamp(2.1rem, 8vw, 3.4rem); }

.plantilla-minimal {
  --fondo: #ffffff;
  --tinta: #1d1d1f;
  --acento: #8a8a8f;
  --acento-suave: rgba(0, 0, 0, 0.05);
  --fuente-titulo: "Montserrat", sans-serif;
  --fuente-texto: "Montserrat", sans-serif;
  --decoracion: "—";
}
.plantilla-minimal .inv-etiqueta { color: var(--tinta); opacity: 0.55; }
.plantilla-minimal .inv-nombre {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 300;
  font-size: clamp(1.7rem, 6vw, 2.7rem);
}
.plantilla-minimal .inv-decoracion { letter-spacing: 0; }
.plantilla-minimal .inv-bloque h3 { color: var(--tinta); }

.plantilla-gala {
  --fondo: #14110c;
  --tinta: #f2e9d6;
  --acento: #c9a54e;
  --acento-suave: rgba(201, 165, 78, 0.14);
  --fuente-titulo: "Cormorant Garamond", Georgia, serif;
  --fuente-texto: "Cormorant Garamond", Georgia, serif;
  --decoracion: "◆ ◆ ◆";
  background:
    radial-gradient(circle at 50% -10%, rgba(201, 165, 78, 0.22) 0%, transparent 55%),
    #14110c;
}
.plantilla-gala .inv-nombre {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 3.3rem);
}
.plantilla-gala .inv-decoracion { letter-spacing: 0.5em; font-size: 0.7rem; }

.plantilla-acuarela {
  --fondo: #fbf3f0;
  --tinta: #5c4650;
  --acento: #c67f9a;
  --acento-suave: rgba(198, 127, 154, 0.13);
  --decoracion: "❀ ❀ ❀";
  background:
    radial-gradient(ellipse at 15% 12%, rgba(198, 127, 154, 0.18) 0%, transparent 42%),
    radial-gradient(ellipse at 85% 20%, rgba(140, 170, 210, 0.16) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 90%, rgba(226, 190, 140, 0.16) 0%, transparent 45%),
    #fbf3f0;
}

.plantilla-tropical {
  --fondo: #f2f8ef;
  --tinta: #1f4633;
  --acento: #e06a4a;
  --acento-suave: rgba(224, 106, 74, 0.12);
  --fuente-titulo: "Montserrat", sans-serif;
  --decoracion: "🌴 🌺 🌴";
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 138, 91, 0.18) 0%, transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(224, 106, 74, 0.14) 0%, transparent 40%),
    #f2f8ef;
}
.plantilla-tropical .inv-nombre { font-weight: 700; }
