/* Fuentes incluidas en la carpeta (funcionan sin internet) */
@font-face { font-family: "Pinyon Script"; src: url("assets/fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  /* Paleta tomada de la invitación impresa */
  --marfil: #f9f1e5;         /* fondo crema */
  --crema: #f3e8d6;          /* fondo alterno */
  --esmeralda: #1f4a39;      /* verde principal */
  --esmeralda-osc: #133729;  /* verde profundo (caja RSVP, ola) */
  --dorado: #c9a55c;         /* líneas y adornos */
  --dorado-claro: #ebc586;
  --dorado-med: #d9ad66;
  --texto: #1f3a2f;
  --texto-suave: #4e5f55;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-variant-numeric: lining-nums;
  background: var(--marfil);
  color: var(--texto);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.55;
  text-align: center;
  overflow-x: hidden;
}
body.bloqueado { overflow: hidden; height: 100vh; }

.script { font-family: var(--script); font-weight: 400; color: var(--esmeralda); }
.eyebrow, .intro {
  font-family: var(--serif); font-weight: 500; font-size: .95rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--esmeralda);
}
.titulo {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--esmeralda); margin-bottom: 1.4rem;
}
.titulo::after, .divisor {
  content: ""; display: block; width: 190px; height: 14px; margin: .6rem auto 0;
  background:
    linear-gradient(var(--dorado), var(--dorado)) left 50% / 40% 1px no-repeat,
    linear-gradient(var(--dorado), var(--dorado)) right 50% / 40% 1px no-repeat;
}
.divisor { position: relative; margin: 1rem auto; }
.divisor span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--esmeralda); font-size: .9rem; line-height: 1; }
.titulo::after {
  background:
    linear-gradient(var(--dorado), var(--dorado)) left 50% / 42% 1px no-repeat,
    linear-gradient(var(--dorado), var(--dorado)) right 50% / 42% 1px no-repeat,
    radial-gradient(circle, var(--esmeralda) 0 3px, transparent 3.5px) center / 14px 14px no-repeat;
}
.sub { color: var(--texto-suave); font-style: italic; margin-bottom: 1.6rem; }

/* Marco dorado fino alrededor de la página */
.marco { position: fixed; inset: 10px; border: 1px solid var(--dorado); pointer-events: none; z-index: 40; opacity: .7; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; cursor: pointer; text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .85rem 2rem; border: 1px solid var(--esmeralda); border-radius: 999px;
  background: var(--esmeralda); color: var(--marfil); transition: all .3s;
}
.btn:hover { background: var(--esmeralda-osc); }
.btn-dorado {
  background: linear-gradient(180deg, var(--dorado-claro), var(--dorado-med));
  border-color: #c99a52; color: var(--esmeralda-osc);
  box-shadow: 0 3px 10px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.5);
  text-transform: none; letter-spacing: .03em; font-size: 1.15rem;
}
.btn-dorado:hover { background: linear-gradient(180deg, #f3d59c, var(--dorado-claro)); }
.btn-outline { background: transparent; color: var(--esmeralda); }
.btn-outline:hover { background: var(--esmeralda); color: var(--marfil); }
.btn-outline-claro { background: transparent; color: var(--marfil); border-color: var(--dorado); }
.btn-sm { padding: .55rem 1.3rem; font-size: .75rem; }

/* ---------- Flores (recortes de tu invitación) ---------- */
.flor { position: absolute; pointer-events: none; z-index: 1; height: auto; }
.flor-sup { top: 0; left: 0; width: min(330px, 52vw); }
.flor-inf { bottom: 0; right: 0; width: min(360px, 58vw); }

/* ---------- Sobre ---------- */
.sobre {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(circle at 50% 50%, #fdf8ef, var(--marfil) 70%);
  transition: opacity .9s ease, visibility .9s;
}
.sobre.abierto { opacity: 0; visibility: hidden; }
.sobre-contenido { position: relative; z-index: 2; max-width: 440px; }
.sobre h1 { font-size: clamp(2.8rem, 11vw, 4rem); margin: .4rem 0 1.8rem; line-height: 1.25; }
.sobre-pareja {
  display: block; height: min(38vh, 300px); width: auto; margin: 1.2rem auto .4rem;
}
.sello {
  width: 110px; height: 110px; margin: 1.4rem auto .6rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #2f6650, var(--esmeralda-osc));
  color: var(--dorado-claro); font-family: var(--script); font-size: 2.3rem;
  box-shadow: 0 6px 20px rgba(19,55,41,.35), 0 0 0 4px var(--marfil), 0 0 0 5px var(--dorado);
}

/* ---------- Portada ---------- */
.portada {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 5rem 16px; overflow: hidden;
  background: var(--marfil) center/cover no-repeat;
}
.portada-overlay { position: absolute; inset: 0; }
.portada.con-foto .portada-overlay { background: linear-gradient(rgba(249,241,229,.55), rgba(249,241,229,.8)); }
.portada-texto { position: relative; z-index: 2; max-width: 640px; padding: 0 22px; }
.intro { font-size: clamp(.8rem, 2.6vw, 1.05rem); line-height: 1.8; max-width: 520px; margin: 0 auto 1rem; }
.nombres { font-size: clamp(4rem, 15vw, 7.5rem); line-height: 1.05; margin: .4rem 0; }
.nombres .y { display: block; font-size: .45em; line-height: 1; margin: .1em 0; position: relative; }
.nombres .y::before, .nombres .y::after {
  content: ""; position: absolute; top: 55%; width: 22%; height: 1px; background: var(--esmeralda); opacity: .7;
}
.nombres .y::before { right: 56%; }
.nombres .y::after { left: 56%; }
.nombres span.n { display: block; }
.fecha-larga {
  font-family: var(--serif); font-weight: 500; font-size: clamp(.8rem, 2.6vw, 1.05rem); line-height: 1.8;
  letter-spacing: .18em; text-transform: uppercase; color: var(--esmeralda);
}
.ciudad { font-size: .9rem; letter-spacing: .25em; text-transform: uppercase; color: var(--texto-suave); margin-top: .3rem; }
.scroll-down {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--esmeralda); font-size: 2rem; text-decoration: none; animation: rebote 2s infinite;
}
@keyframes rebote { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Secciones ---------- */
.seccion { padding: 5rem 24px; position: relative; }
.seccion > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.fondo-suave { background: var(--crema); }

.frase blockquote { font-size: clamp(1.4rem, 4vw, 1.9rem); font-style: italic; line-height: 1.45; max-width: 600px; margin: 0 auto; }
.frase cite { display: block; margin-top: .8rem; font-style: normal; font-size: 1rem; letter-spacing: .08em; color: var(--texto-suave); }
.frase cite::after { content: "♥"; display: block; color: var(--esmeralda); margin-top: .4rem; font-size: .9rem; }

/* Cuenta regresiva */
.countdown { display: flex; justify-content: center; gap: clamp(.5rem, 3vw, 1.6rem); margin: 0 auto 2.2rem; flex-wrap: wrap; }
.countdown .unidad { width: 96px; padding: 1rem 0; background: var(--marfil); border: 1px solid var(--dorado); border-radius: 6px; }
.countdown .num { font-size: 2.6rem; line-height: 1; color: var(--esmeralda); font-weight: 600; }
.countdown .lbl { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--texto-suave); margin-top: .4rem; }

/* Familia */
.familia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 0; }
.familia-grid > div { padding: 0 1.2rem; }
.familia-grid > div + div { border-left: 1px solid rgba(201,165,92,.6); }
.familia-grid h3, .tarjeta h3, .detalle h3 {
  font-weight: 600; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--esmeralda); margin-bottom: .2rem;
}
.familia-grid h3::after, .detalle h3::after {
  content: ""; display: block; width: 140px; height: 12px; margin: .3rem auto .6rem;
  background:
    linear-gradient(var(--esmeralda), var(--esmeralda)) left 50% / 42% 1px no-repeat,
    linear-gradient(var(--esmeralda), var(--esmeralda)) right 50% / 42% 1px no-repeat,
    linear-gradient(45deg, transparent 45%, var(--esmeralda) 45% 55%, transparent 55%) center / 8px 8px no-repeat;
}
.familia-grid p { font-size: 1.2rem; }

/* Lugares */
.lugares-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2rem; max-width: 980px; }
.tarjeta { padding: 0 0 1rem; display: flex; flex-direction: column; align-items: center; }
.tarjeta .btn { margin-top: auto !important; }
.tarjeta .foto { width: 100%; max-width: 380px; height: 240px; object-fit: contain; display: block; margin: 0 auto 1rem; }
.tarjeta .icono { color: var(--esmeralda); margin-bottom: .4rem; }
.tarjeta h3 { font-size: 1rem; }
.tarjeta h3::after { content: ""; display: block; width: 220px; max-width: 80%; height: 1px; background: var(--dorado); margin: .5rem auto .7rem; }
.tarjeta .lugar { font-size: 1.45rem; line-height: 1.3; }
.tarjeta .dato { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: 1.3rem; margin-top: .3rem; }
.tarjeta .dato svg { color: var(--esmeralda); flex: none; }
.tarjeta .direccion { color: var(--texto-suave); margin-top: .3rem; }
.tarjeta iframe { width: 100%; flex: none; height: 190px; border: 0; margin: 1.2rem 0 1rem; border-radius: 6px; }
.tarjeta .btn { margin-top: 1rem; }

/* Itinerario */
.timeline { position: relative; max-width: 520px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--dorado); }
.paso { position: relative; display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; margin-bottom: 1.4rem; }
.paso .punto { width: 14px; height: 14px; margin: 0 auto; border-radius: 50%; background: var(--esmeralda); box-shadow: 0 0 0 4px var(--marfil), 0 0 0 5px var(--dorado); }
.paso .h { text-align: right; font-size: 1.3rem; color: var(--esmeralda); font-weight: 600; padding-right: .8rem; }
.paso .e { text-align: left; padding-left: .8rem; }

/* Detalles: vestimenta + regalos */
.detalles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; max-width: 860px; }
.detalle { padding: 0 1rem; }
.detalle .icono { color: var(--esmeralda); margin-bottom: .6rem; }
.detalle .tipo { font-size: 1.45rem; font-weight: 600; }
.detalle .nota { display: inline-flex; align-items: center; gap: .6rem; margin-top: .5rem; font-size: 1.2rem; }
.detalle .destacado { font-family: var(--script); font-size: 2rem; color: var(--esmeralda); line-height: 1.3; margin-top: .3rem; }
.paleta { display: flex; justify-content: center; gap: .7rem; margin-top: 1.2rem; flex-wrap: wrap; }
.paleta span { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 3px var(--marfil), 0 0 0 4px var(--dorado); }
.regalos-grid { display: grid; gap: 1rem; margin-top: 1.2rem; }

/* Hospedaje / hashtag */
.hotel { margin-top: 1.2rem; }
.hotel strong { font-size: 1.3rem; }
.hashtag-txt { font-size: 2rem; color: var(--esmeralda); font-weight: 600; letter-spacing: .03em; word-break: break-word; }

/* ---------- RSVP ---------- */
.rsvp-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem; align-items: end; max-width: 900px; }
.pareja { width: 100%; max-width: 300px; height: auto; margin: 0 auto; display: block; }
.rsvp-caja {
  background: var(--esmeralda-osc); color: var(--marfil); border-radius: 18px; padding: 2.2rem 1.8rem 1.8rem;
  box-shadow: 0 0 0 4px var(--marfil), 0 0 0 5px var(--dorado), 0 14px 30px rgba(19,55,41,.25);
  position: relative;
}
.rsvp-caja::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(201,165,92,.7); border-radius: 12px; pointer-events: none; }
.rsvp-icono { color: var(--marfil); }
.rsvp-titulo { font-weight: 500; font-size: 1.3rem; letter-spacing: .14em; text-transform: uppercase; margin: .3rem 0 .4rem; }
.rsvp-titulo::after { content: ""; display: block; width: 70%; height: 1px; background: var(--dorado); margin: .6rem auto 0; }
.rsvp-caja .sub { color: #e9e2d3; font-style: normal; margin-bottom: 1.2rem; }
.rsvp-form { display: flex; flex-direction: column; gap: .9rem; text-align: left; position: relative; z-index: 1; }
.rsvp-form label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; display: flex; flex-direction: column; gap: .35rem; color: #e9e2d3; }
.rsvp-form input[type=text], .rsvp-form select, .rsvp-form textarea {
  font-family: var(--serif); font-size: 1.1rem; padding: .6rem .9rem; border: 1px solid rgba(201,165,92,.6);
  background: rgba(255,255,255,.07); color: var(--marfil); border-radius: 8px; text-transform: none; letter-spacing: 0;
}
.rsvp-form ::placeholder { color: rgba(255,255,255,.5); }
.rsvp-form select option { color: var(--texto); }
.opciones-asistencia { display: flex; gap: .7rem; flex-wrap: wrap; }
.radio { flex: 1 1 140px; flex-direction: row !important; cursor: pointer; }
.radio input { display: none; }
.radio span { flex: 1; text-align: center; padding: .65rem; border: 1px solid rgba(201,165,92,.6); border-radius: 8px; font-size: 1.1rem; letter-spacing: 0; text-transform: none; transition: .25s; color: var(--marfil); }
.radio input:checked + span { background: var(--dorado-claro); color: var(--esmeralda-osc); border-color: var(--dorado-claro); }
.rsvp-form .btn { margin-top: .5rem; }
.rsvp-numero { margin-top: 1rem; font-size: 1rem; color: #e9e2d3; position: relative; z-index: 1; }
.rsvp-numero strong { display: block; color: var(--marfil); font-size: 1.15rem; font-weight: 500; }

/* ---------- Pie ---------- */
.pie { position: relative; padding: 4rem 24px 11rem; overflow: hidden; }
.agradecimiento { font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.3; max-width: 560px; margin: 0 auto; position: relative; z-index: 2; }
.despedida { font-style: italic; font-size: 1.2rem; max-width: 460px; margin: 0 auto; position: relative; z-index: 2; }
.pie-nombres { font-size: 2.6rem; margin-top: 1rem; position: relative; z-index: 2; }
.pie .flor-inf { z-index: 3; width: min(320px, 55vw); }
.rama { position: absolute; pointer-events: none; }
.rama-izq { left: 0; top: 2rem; width: 52px; opacity: .95; }
.ola { position: absolute; left: 0; bottom: 0; width: 100%; height: 90px; z-index: 2; }

/* ---------- Música ---------- */
.btn-musica {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 50px; height: 50px; border-radius: 50%;
  border: 2px solid var(--dorado); background: var(--esmeralda); color: var(--dorado-claro); font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.btn-musica.sonando { animation: girar 4s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
#yt-wrap { position: fixed; left: -9999px; top: 0; width: 240px; height: 240px; overflow: hidden; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--esmeralda-osc); color: var(--marfil); padding: .7rem 1.3rem; font-size: .95rem; border-radius: 8px; opacity: 0; transition: .3s; pointer-events: none; z-index: 200; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Animación al hacer scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 700px) {
  .rsvp-layout { grid-template-columns: 1fr; }
  .pareja { max-width: 190px; }
  .familia-grid > div + div { border-left: 0; }
}
@media (max-width: 520px) {
  body { font-size: 18px; }
  .marco { inset: 6px; }
  .countdown .unidad { width: 70px; }
  .countdown .num { font-size: 2rem; }
  .portada { padding-top: 9rem; padding-bottom: 8rem; }
  .rsvp-caja { padding: 2rem 1.1rem 1.4rem; }
}

[hidden] { display: none !important; }

/* =========================================================
   FORMATO ÚNICO: todo el texto igual que "Con la bendición…"
   (solo los nombres de los novios mantienen la letra caligráfica)
   ========================================================= */
body, body *:not(svg):not(path):not(rect):not(circle) {
  font-family: var(--serif) !important;
  font-style: normal !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: .16em !important;
}
body p, body blockquote, body cite, body label, body .btn, body h3, body strong, body li,
.tarjeta .lugar, .tarjeta .dato, .tarjeta .direccion, .detalle .tipo, .detalle .nota, .detalle .destacado,
.familia-grid p, .frase blockquote, .frase cite, .agradecimiento, .despedida, .sub, .hashtag-txt,
.fecha-larga, .intro, .eyebrow, .rsvp-numero, .rsvp-numero strong, .radio span, .countdown .lbl {
  font-size: clamp(.8rem, 2.6vw, 1.02rem) !important;
  line-height: 1.85 !important;
}
.titulo, .rsvp-titulo { font-size: clamp(.95rem, 3vw, 1.2rem) !important; }
.countdown .num { font-size: 2.4rem !important; letter-spacing: 0 !important; }
.paso .h { font-size: clamp(.8rem, 2.6vw, 1.02rem) !important; }
.frase blockquote, .agradecimiento, .despedida, .detalle .destacado, .hashtag-txt { color: var(--esmeralda); }
.agradecimiento { max-width: 600px; }
.detalle .destacado { margin-top: .2rem; }
.frase cite::after { letter-spacing: 0 !important; }

/* Nombres de los novios: caligrafía */
#nombres, #nombres span, #sobre-nombres, #pie-nombres {
  font-family: var(--script) !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#pie-nombres { font-size: 2.6rem !important; line-height: 1.3 !important; }
#sobre-nombres { line-height: 1.25 !important; }

/* Lo que escribe el invitado en el formulario se ve tal cual lo escribe */
input, textarea, select { text-transform: none !important; letter-spacing: .04em !important; font-size: 1.05rem !important; }
.countdown .lbl { font-size: .68rem !important; letter-spacing: .08em !important; }

/* Botón de música: icono perfectamente centrado */
.btn-musica {
  display: flex; align-items: center; justify-content: center;
  padding: 0 !important; line-height: 1 !important; letter-spacing: 0 !important;
}
.btn-musica[hidden] { display: none !important; }
.btn-musica svg { display: block; }
.btn-musica:not(.sonando) svg { transform: translateX(1px); } /* el triángulo de play se ve centrado */

/* Botón de música más pequeño */
.btn-musica { width: 38px !important; height: 38px !important; right: 18px !important; bottom: 18px !important; border-width: 1.5px !important; }
.btn-musica svg { width: 16px; height: 16px; }

/* Padres: dibujo lineal + frase caligráfica */
.familia-dibujo { display: block; width: min(105px, 28vw); height: auto; margin: 0 auto 1.4rem; }
body .familia-intro {
  font-family: var(--script) !important; font-weight: 400 !important;
  text-transform: none !important; letter-spacing: 0 !important;
  font-size: clamp(2rem, 6.5vw, 2.9rem) !important; line-height: 1.35 !important;
  color: var(--esmeralda); max-width: 560px; margin: 0 auto 2.2rem;
}

/* ---------- Calendario "Guarda la fecha" ---------- */
.calendario { max-width: 460px; margin: 0 auto 2.5rem; }
body .cal-titulo {
  font-family: var(--script) !important; font-weight: 400 !important; text-transform: none !important;
  letter-spacing: 0 !important; font-size: clamp(2.4rem, 8vw, 3.2rem) !important; line-height: 1.2 !important;
  color: var(--esmeralda);
}
.cal-sub { margin: .2rem 0 2.6rem; color: var(--esmeralda); }
.cal-marco { position: relative; width: min(310px, 74vw); aspect-ratio: 1 / 1; margin: 0 auto; }
.cal-lineas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cal-lineas polygon { fill: none; stroke: var(--dorado); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.cal-flor { position: absolute; pointer-events: none; z-index: 2; height: auto; }
.cal-flor-a { top: -11%; left: -11%; width: 46%; }
.cal-flor-b { bottom: -9%; right: -9%; width: 48%; }
.cal-contenido { position: absolute; inset: 20% 12% 14% 14%; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.cal-mes { color: var(--esmeralda); margin-bottom: .5rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: .15rem; }
.cal-grid span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; position: relative;
  font-size: clamp(.78rem, 2.6vw, .98rem) !important; letter-spacing: 0 !important; color: var(--texto); }
.cal-grid .cal-cab { color: var(--dorado-med); font-weight: 600 !important; }
.cal-dia.elegido svg { position: absolute; inset: -14%; width: 128%; height: 128%; fill: none; stroke: var(--esmeralda); stroke-width: 2; }
.cal-dia.elegido b { position: relative; color: var(--esmeralda); font-weight: 600 !important; }
.cal-cuenta { margin-top: 3.4rem; color: var(--esmeralda); }
/* Bordes de las flores del calendario: fundido suave con el fondo */
.cal-flor-a {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, transparent 0, #000 22%);
  mask-composite: intersect;
}
.cal-flor-b {
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 22%);
  mask-composite: intersect;
}
/* Menos espacio entre la frase de Colosenses y "Nos vamos a casar" */
#frase { padding-bottom: 1.5rem; }
#cuenta { padding-top: 1.5rem; }
.cal-grid span { font-size: clamp(.68rem, 2.2vw, .85rem) !important; }
.cal-mes { font-size: clamp(.72rem, 2.3vw, .9rem) !important; margin-bottom: .3rem; }
/* Cuenta regresiva: siempre en una fila y más compacta en móviles pequeños */
.countdown { flex-wrap: nowrap !important; gap: clamp(.35rem, 2vw, 1.2rem) !important; max-width: 420px; padding: 0 4px; }
.countdown .unidad { flex: 1 1 0; width: auto !important; max-width: 92px; min-width: 0; padding: .7rem 0 !important; }
.countdown .num { font-size: clamp(1.5rem, 7vw, 2.3rem) !important; }
.countdown .lbl { font-size: clamp(.5rem, 2.1vw, .66rem) !important; letter-spacing: .05em !important; margin-top: .3rem; }

/* Dress code: dibujo lineal pequeño */
.dresscode-dibujo { display: block; width: min(95px, 26vw); height: auto; margin: 0 auto .9rem; }

/* Toques en el móvil: sin recuadro azul ni texto seleccionado al pulsar botones */
* { -webkit-tap-highlight-color: transparent; }
button, .btn, a, .radio, .radio span, .btn-musica, #abrir {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
button:focus, .btn:focus, a:focus, input:focus, select:focus, textarea:focus { outline: none; }
/* Para quien navega con teclado, un aro dorado discreto */
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--dorado); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--dorado-claro) !important; }

/* Portada en pantallas estrechas: el texto empieza debajo de las flores */
@media (max-width: 700px) {
  .portada .flor-sup { width: min(300px, 50vw); }
  .portada .flor-inf { width: min(320px, 54vw); }
  .portada { padding-top: calc(min(300px, 50vw) * 0.95) !important; padding-bottom: calc(min(320px, 54vw) * 0.7) !important; }
}
/* Menos espacio entre la cuenta regresiva y la sección de los padres */
#cuenta { padding-bottom: 1.5rem !important; }
#familia { padding-top: 1.5rem !important; }
/* Padres y padrinos: si no caben en una fila, la segunda fila queda centrada */
.familia-grid { display: flex !important; flex-wrap: wrap; justify-content: center; }
.familia-grid > div { flex: 1 1 220px; max-width: 280px; }
/* Menos espacio entre los padres y "¿Dónde y cuándo?" */
#familia { padding-bottom: 2rem !important; }
#lugares { padding-top: 2.5rem !important; }
/* Espaciado más compacto entre todas las secciones */
.seccion { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
#lugares { padding-bottom: 2rem !important; }
#detalles { padding-top: 2rem !important; }
.tarjeta { padding-bottom: 0 !important; }
.pie { padding-top: 2.5rem !important; }

/* ---------- Sobre personalizado por invitado ---------- */
.sobre-personal { margin-bottom: .2rem; }
.sobre-invitados { display: flex; flex-direction: column; align-items: center; gap: .15rem; margin: 1.1rem 0 1rem; }
body .sobre-invitado { font-size: clamp(1.15rem, 4.6vw, 1.55rem) !important; line-height: 1.35 !important; color: var(--esmeralda); font-weight: 600 !important; }
body .sobre-y { font-family: var(--script) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 1.6rem !important; line-height: 1 !important; color: var(--dorado-med); }
.sobre-cupos {
  display: inline-block; margin: .2rem auto 1.6rem; padding: .35rem 1.2rem; border: 1px solid var(--dorado);
  border-radius: 999px; color: var(--esmeralda); background: rgba(255,255,255,.45);
}
.sobre-boda { margin-bottom: .2rem; }
.sobre h1#sobre-nombres { margin-top: .2rem; }

/* ---------- Regalos: "Un regalo para compartir en Navidad" ---------- */
.detalles-grid { grid-template-columns: 1fr !important; max-width: 420px !important; }
#regalos { padding-top: 1rem !important; }
.reg-tarjeta {
  position: relative; max-width: 760px; margin: 0 auto; padding: 2.4rem 1.6rem 2.6rem;
  border: 1.5px solid var(--esmeralda); border-radius: 4px; background: var(--marfil); overflow: hidden;
}
.reg-tarjeta::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(31,74,57,.25); border-radius: 2px; pointer-events: none; }
.reg-flor { position: absolute; pointer-events: none; height: auto; z-index: 0; }
.reg-flor-a { top: -6px; left: -6px; width: min(180px, 34%); }
.reg-flor-b { bottom: -6px; right: -6px; width: min(190px, 36%); }
.reg-contenido { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.reg-cabecera { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: .6rem; }
.reg-cabecera .reg-linea { flex: 0 1 90px; height: 1px; background: var(--dorado); }
body .reg-cabecera b { color: var(--dorado-med); font-size: .9rem !important; letter-spacing: 0 !important; }
.reg-icono { width: clamp(64px, 16vw, 92px); height: auto; }
body .reg-titulo { font-size: clamp(1.05rem, 4.2vw, 1.6rem) !important; font-weight: 600 !important; letter-spacing: .1em !important; color: var(--esmeralda); line-height: 1.3 !important; }
body .reg-script, body .reg-gracias {
  font-family: var(--script) !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important;
  color: var(--esmeralda);
}
body .reg-script { font-size: clamp(2.6rem, 10vw, 3.8rem) !important; line-height: 1.1 !important; margin-top: .1rem; }
body .reg-gracias { font-size: clamp(1.7rem, 6vw, 2.3rem) !important; line-height: 1.35 !important; max-width: 480px; margin: 0 auto; }
.reg-trazo { width: 170px; height: 10px; margin: .2rem auto 1.3rem; border-bottom: 2px solid var(--dorado); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
body .reg-texto { text-transform: none !important; letter-spacing: .02em !important; font-size: clamp(1rem, 3.6vw, 1.2rem) !important; line-height: 1.6 !important; margin-bottom: 1rem; color: var(--esmeralda); }
body .reg-destacado { display: block; font-weight: 700 !important; text-transform: none !important; letter-spacing: .01em !important; font-size: inherit !important; }
.reg-divisor { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: 1.3rem 0 .8rem; }
.reg-divisor span { flex: 0 1 110px; height: 1px; background: var(--esmeralda); opacity: .6; }
body .reg-divisor b { color: var(--dorado-med); letter-spacing: 0 !important; }
@media (max-width: 520px) { .reg-tarjeta { padding: 2rem 1.1rem 2.2rem; } .reg-flor-a { width: 38%; } .reg-flor-b { width: 40%; } }

/* Icono de regalo propio (línea verde, como el resto de iconos) */
.reg-icono { width: auto !important; color: var(--esmeralda); display: inline-flex; }
.reg-icono svg { width: 52px; height: 52px; }

/* Regalos: solo texto, sin marco ni flores */
.reg-tarjeta { border: 0 !important; background: transparent !important; padding: 0 .4rem !important; overflow: visible !important; }
.reg-tarjeta::before { display: none !important; }

/* Portada: mensaje debajo de los nombres */
.portada-mensaje { max-width: 520px; margin: 0 auto; }
.portada-mensaje .intro { margin-bottom: .9rem; }
.portada-mensaje .portada-firma { margin-bottom: 0; }

/* ---------- Letra pequeña un poco más grande en toda la página ---------- */
body p, body blockquote, body cite, body label, body .btn, body h3, body strong, body li,
.tarjeta .lugar, .tarjeta .dato, .tarjeta .direccion, .detalle .tipo, .detalle .nota,
.familia-grid p, .frase blockquote, .frase cite, .agradecimiento, .despedida, .sub,
.fecha-larga, .intro, .eyebrow, .rsvp-numero, .rsvp-numero strong, .radio span, .sobre-cupos {
  font-size: clamp(.92rem, 3.2vw, 1.12rem) !important;
}
.titulo, .rsvp-titulo { font-size: clamp(1.05rem, 3.6vw, 1.3rem) !important; }
.countdown .lbl { font-size: clamp(.6rem, 2.5vw, .74rem) !important; }
.cal-grid span { font-size: clamp(.78rem, 2.8vw, .95rem) !important; }
.cal-mes { font-size: clamp(.82rem, 2.9vw, 1rem) !important; }
body .reg-texto { font-size: clamp(1.05rem, 3.9vw, 1.25rem) !important; }
body .reg-titulo { font-size: clamp(1.12rem, 4.4vw, 1.65rem) !important; }
/* Regalo de Navidad: párrafos en mayúsculas, como el resto de la página */
body .reg-texto, body .reg-destacado {
  text-transform: uppercase !important; letter-spacing: .16em !important;
  font-size: clamp(.92rem, 3.2vw, 1.12rem) !important; line-height: 1.85 !important;
}
body .reg-destacado { font-weight: 700 !important; }

/* Foto real de los novios junto a "Confirma tu asistencia" */
.rsvp-layout { align-items: center !important; }
.pareja.pareja-foto {
  width: 100%; max-width: 340px !important; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 40%;
  border-radius: 18px; box-shadow: 0 0 0 4px var(--marfil), 0 0 0 5px var(--dorado), 0 14px 30px rgba(19,55,41,.22);
}
@media (max-width: 700px) { .pareja.pareja-foto { max-width: min(320px, 82vw) !important; margin-bottom: .6rem; } }

/* Regalo: "Tú eres nuestro mejor regalo" */
body .reg-script-corazon { font-family: var(--serif) !important; font-size: .45em !important; color: var(--dorado-med); margin-left: .25em; vertical-align: middle; letter-spacing: 0 !important; }
body .reg-subtitulo { font-size: clamp(1.05rem, 3.8vw, 1.3rem) !important; letter-spacing: .14em !important; color: var(--esmeralda); margin: .2rem 0 0; }
#regalos .reg-subtitulo + .reg-divisor { margin: .9rem 0 1.4rem; }
