/* ============================================================
   BODA GÓMEZ CASTILLO · sistema de diseño v2
   Tokens 2024: dorados + crema + pizarra · Brittany/Hadriel ·
   Cinzel/Serlio · CubaLibre · Perpetua
   Reglas de oro de esta hoja:
   1) El espaciado vertical se hace con GRID + gap (nunca márgenes
      negativos ni line-height apretado): los bloques NO PUEDEN solaparse.
   2) Las caligrafías llevan line-height ≥1.25 y padding vertical .12em:
      las colas de Brittany/Hadriel bajan mucho más que su em-box.
   ============================================================ */

@font-face { font-family: "Hadriel";  src: url("../fonts/Hadriel-3zwXL.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Brittany"; src: url("../fonts/BrittanySignature.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Cinzel";   src: url("../fonts/CinzelDecorative-Bold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Serlio";   src: url("../fonts/OPTISerlio.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "CubaLibre";src: url("../fonts/OPTICubaLibreTwo.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Perpetua"; src: url("../fonts/PERTILI.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Perpetua"; src: url("../fonts/PERTIBD-1.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --oro: #b98139;
  --oro-oscuro: #8e632b;
  --cafe: #693c00;
  --pizarra: #54595f;
  --tinta: #333333;
  /* 4.7:1 sobre crema (el #7a7a7a original daba 3.9:1 — fallaba WCAG AA) */
  --gris: #6d6357;
  /* coral/esmeralda oscurecidos para TEXTO BLANCO encima (≥4.5:1);
     los tokens puros --coral/--esmeralda quedan para superficies decorativas */
  --coral-feedback: #c2543f;
  --esmeralda-feedback: #2a6e51;
  --crema: #faf7f1;
  --marfil: #f3ede2;
  --blanco: #ffffff;
  --coral: #e8836f;
  --esmeralda: #2e7d5b;

  --script: "Brittany", cursive;
  --script2: "Hadriel", cursive;
  --display: "Cinzel", serif;
  --serif: "Serlio", serif;
  --numeros: "CubaLibre", serif;
  --cuerpo: "Perpetua", Georgia, serif;

  /* escala de espaciado — TODO el ritmo vertical sale de aquí */
  --sp-1: clamp(6px, 1vw, 10px);
  --sp-2: clamp(12px, 2vw, 18px);
  --sp-3: clamp(20px, 3vw, 30px);
  --sp-4: clamp(32px, 5vw, 48px);
  --sp-5: clamp(52px, 8vw, 84px);

  --ancho: 1080px;
  --sombra: 0 18px 50px rgba(105, 60, 0, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* la nav fija mide ~48px: sin este padding, cada ancla del menú
   dejaría el título de la sección TAPADO bajo la nav */
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  font-family: var(--cuerpo);
  font-size: 18px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--crema);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--oro-oscuro); }
p, h1, h2, h3, h4, blockquote { overflow-wrap: break-word; }

/* foco de teclado visible y consistente (dorado, nunca el azul del UA) */
:focus-visible {
  outline: 3px solid var(--oro);
  outline-offset: 3px;
  border-radius: 4px;
}
.icono-svg { width: 1em; height: 1em; stroke-width: 1.6; }

/* caligrafías: SIEMPRE con aire para las colas */
.caligrafia, .titulo h2, .compuerta-caja .nombres-port, .hero-caja h1,
.gracias, .nav-logo, .nota-mensaje .quien, footer.pie .nombres,
.rol, .lienzo-titulo {
  line-height: 1.3;
  padding-block: 0.12em;
}

.textura {
  background-image: radial-gradient(rgba(185, 129, 57, 0.10) 1px, transparent 1.4px);
  background-size: 22px 22px;
}

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 22px; }
section { padding-block: var(--sp-5); position: relative; }

/* título de sección: grid + gap (nada se pisa) */
.titulo {
  display: grid;
  gap: var(--sp-1);
  justify-items: center;
  text-align: center;
  margin-bottom: var(--sp-4);
}
.titulo .pre {
  font-family: var(--serif);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: clamp(11px, 1.6vw, 13px);
  color: var(--pizarra);
  line-height: 1.6;
}
.titulo h2 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 68px);
  color: var(--oro-oscuro);
}
.titulo::after {
  content: "";
  width: 130px;
  height: 2px;
  margin-top: var(--sp-1);
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
}
.intro {
  text-align: center;
  color: var(--gris);
  max-width: 640px;
  margin: calc(var(--sp-3) * -0.5) auto var(--sp-4);
  line-height: 1.8;
}

/* ---------- PORTADA-COMPUERTA ---------- */
#compuerta {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 22px;
  background:
    linear-gradient(rgba(35, 24, 8, 0.55), rgba(35, 24, 8, 0.62)),
    url("../img/hero.jpeg") center 30% / cover no-repeat;
  transition: opacity 0.9s ease, visibility 0.9s;
}
#compuerta.abierta { opacity: 0; visibility: hidden; pointer-events: none; }
.compuerta-caja {
  display: grid;
  gap: var(--sp-2);
  justify-items: center;
  text-align: center; color: var(--blanco);
  padding: clamp(30px, 6vw, 48px) clamp(22px, 5vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  outline: 1px dashed rgba(255, 255, 255, 0.35);
  outline-offset: 8px;
  background: rgba(35, 24, 8, 0.28);
  backdrop-filter: blur(3px);
  max-width: min(90vw, 540px);
}
.compuerta-caja .peq {
  font-family: var(--serif);
  letter-spacing: 0.32em; text-transform: uppercase;
  font-size: clamp(10px, 1.6vw, 12px);
  line-height: 1.7;
  opacity: 0.92;
}
.compuerta-caja .nombres-port {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(46px, 9vw, 80px);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}
.compuerta-caja .fecha {
  font-family: var(--numeros);
  font-size: clamp(16px, 2.6vw, 22px);
  letter-spacing: 0.26em;
  color: #f3d9ac;
  line-height: 1.5;
}
.btn {
  display: inline-block;
  font-family: var(--serif);
  letter-spacing: 0.26em; text-transform: uppercase;
  font-size: clamp(11px, 1.6vw, 13px);
  line-height: 1.4;
  color: var(--blanco);
  background: linear-gradient(135deg, var(--oro), var(--oro-oscuro));
  border: none; cursor: pointer;
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(105, 60, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(105, 60, 0, 0.45); }
.btn.claro { background: var(--blanco); border: 1px solid var(--oro); color: var(--oro-oscuro); box-shadow: none; }

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(185, 129, 57, 0.25);
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}
body.dentro nav { transform: translateY(0); }
.nav-int {
  max-width: var(--ancho); margin: 0 auto; padding: 8px 22px;
  display: flex; align-items: center; gap: 16px;
}
.nav-logo {
  font-family: var(--script); font-size: 24px; color: var(--oro-oscuro);
  text-decoration: none; margin-right: auto; white-space: nowrap;
}
nav a.enlace {
  font-family: var(--serif); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pizarra); text-decoration: none;
  /* área táctil ≥44px de alto */
  padding: 14px 6px; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
nav a.enlace:hover, nav a.enlace.activo { color: var(--oro-oscuro); border-bottom-color: var(--oro); }
#nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.hamb { display: none; }

/* ---------- HERO ---------- */
header.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  position: relative; isolation: isolate;
  padding: 96px 20px 72px;
}
.hero-fondos { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-fondos img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 32%;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-fondos img.visible { opacity: 1; }
.hero-fondos::after {
  content: ""; position: absolute; inset: 0;
  /* scrim con piso más alto: las 4 fotos del crossfade tienen luminosidades
     muy distintas y el texto blanco debe aguantar sobre TODAS */
  background: linear-gradient(rgba(30, 20, 6, 0.44), rgba(30, 20, 6, 0.62));
}
/* grid + gap: cada línea del hero tiene su fila; solaparse es imposible */
.hero-caja {
  display: grid;
  gap: var(--sp-2);
  justify-items: center;
  text-align: center;
  color: var(--blanco);
  max-width: 900px;
}
.hero-caja .peq {
  font-family: var(--serif); letter-spacing: 0.38em;
  text-transform: uppercase; font-size: clamp(11px, 1.8vw, 13px);
  line-height: 1.7;
}
.hero-caja h1 {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(52px, 10vw, 100px);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.hero-caja .fecha-grande {
  font-family: var(--numeros);
  font-size: clamp(20px, 3.6vw, 34px);
  letter-spacing: 0.28em;
  color: #f3d9ac;
  line-height: 1.5;
}
.hero-caja .gran-dia {
  font-family: var(--display);
  font-size: clamp(15px, 2.4vw, 20px);
  letter-spacing: 0.12em;
  color: var(--blanco);
  background: rgba(35, 24, 8, 0.35);
  border: 1px solid rgba(243, 217, 172, 0.5);
  border-radius: 999px;
  padding: 10px 24px;
}
.hero-caja .cita {
  font-family: var(--script2);
  font-size: clamp(17px, 2.4vw, 23px);
  max-width: 640px;
  line-height: 1.65;
  opacity: 0.95;
  padding-block: 0.15em;
}

/* ---------- BENDICIÓN ---------- */
.bendicion { background: var(--blanco); }
.padres {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-3) 60px; max-width: 720px; margin: 0 auto;
  text-align: center;
}
.padres > div { display: grid; gap: 8px; }
.padres p {
  font-family: var(--serif); letter-spacing: 0.14em;
  font-size: clamp(13px, 1.8vw, 15px);
  color: var(--pizarra); text-transform: uppercase;
  line-height: 1.6;
}
.padres .rol {
  font-family: var(--script2); text-transform: none; letter-spacing: 0;
  font-size: clamp(18px, 2.4vw, 21px); color: var(--oro);
}
.bendicion .gracias {
  text-align: center; margin-top: var(--sp-4);
  font-family: var(--script2);
  font-size: clamp(21px, 3.4vw, 30px);
  color: var(--pizarra);
  line-height: 1.55;
}

/* ---------- CELEBRACIÓN ---------- */
.celebracion { background: var(--marfil); }
.tarjetas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--sp-3); max-width: 860px; margin: 0 auto;
}
.tarjeta {
  display: grid;
  gap: var(--sp-1);
  justify-items: center;
  background: var(--blanco);
  border: 1px solid rgba(185, 129, 57, 0.28);
  box-shadow: var(--sombra);
  padding: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 30px);
  text-align: center;
  border-radius: 8px;
  position: relative;
}
.tarjeta::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px dashed rgba(185, 129, 57, 0.35);
  border-radius: 5px; pointer-events: none;
}
.tarjeta .icono { color: var(--oro); line-height: 0; }
.tarjeta .icono .icono-svg { width: 42px; height: 42px; stroke-width: 1.3; }
.tarjeta h3 {
  font-family: var(--display); font-size: clamp(17px, 2.4vw, 21px);
  color: var(--oro-oscuro); letter-spacing: 0.06em;
  line-height: 1.45;
}
.tarjeta .lugar {
  font-family: var(--serif); text-transform: uppercase;
  letter-spacing: 0.16em; font-size: clamp(12px, 1.8vw, 14px);
  color: var(--pizarra); line-height: 1.6;
}
.tarjeta .hora { font-family: var(--numeros); font-size: clamp(28px, 4vw, 34px); color: var(--cafe); line-height: 1.3; }
.tarjeta .dir { color: var(--gris); font-size: 15.5px; line-height: 1.6; }
.tarjeta .btn { margin-top: var(--sp-1); padding: 12px 26px; font-size: 11.5px; position: relative; z-index: 1; }

/* ---------- CITA GRANDE ---------- */
.citarel {
  display: grid;
  gap: var(--sp-2);
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(35, 24, 8, 0.60), rgba(35, 24, 8, 0.66)),
    url("../img/pareja2.jpg") center 22% / cover no-repeat;
  color: var(--blanco);
  padding: var(--sp-5) 22px;
}
.citarel blockquote {
  font-family: var(--script2);
  font-size: clamp(21px, 3.4vw, 32px);
  max-width: 760px;
  line-height: 1.65;
  padding-block: 0.15em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.citarel footer { font-family: var(--serif); letter-spacing: 0.3em; text-transform: uppercase; font-size: 12px; color: #f3d9ac; line-height: 1.6; }

/* ---------- NUESTROS MOMENTOS · carrusel estilo vera ---------- */
.momentos { background: var(--blanco); }
.carrusel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-block: var(--sp-2) var(--sp-4);
  cursor: grab;
}
.carrusel::-webkit-scrollbar { display: none; }
.carrusel.arrastrando { cursor: grabbing; scroll-snap-type: none; }
.carrusel-pista {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  padding: 10px max(22px, calc((100vw - var(--ancho)) / 2 + 22px));
  width: max-content;
}
.carrusel-pista img {
  width: clamp(230px, 62vw, 330px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid var(--blanco);
  box-shadow: var(--sombra);
  scroll-snap-align: center;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.3s ease;
}
.carrusel-pista img:hover { transform: translateY(-4px); }

/* affordance del carrusel: flechas en pantallas con puntero + pista táctil */
.carrusel-zona { position: relative; }
.carrusel-flecha {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 46px; height: 46px;
  display: none; place-items: center;
  border: 1px solid rgba(185, 129, 57, 0.45);
  border-radius: 50%;
  background: rgba(250, 247, 241, 0.92);
  color: var(--oro-oscuro);
  cursor: pointer;
  box-shadow: var(--sombra);
  transition: transform 0.2s ease, background 0.2s ease;
}
.carrusel-flecha:hover { background: var(--blanco); transform: translateY(-50%) scale(1.06); }
.carrusel-flecha .icono-svg { width: 20px; height: 20px; }
.carrusel-flecha.prev { left: clamp(8px, 2vw, 26px); }
.carrusel-flecha.sig { right: clamp(8px, 2vw, 26px); }
@media (hover: hover) and (pointer: fine) {
  .carrusel-flecha { display: grid; }
}
.carrusel-hint {
  text-align: center;
  font-family: var(--serif); letter-spacing: 0.24em; text-transform: uppercase;
  font-size: 11px; color: var(--gris);
  line-height: 1.6;
}
@media (hover: hover) and (pointer: fine) {
  .carrusel-hint { display: none; }
}

.subtitulo { text-align: center; margin-bottom: var(--sp-3); }
.lienzo-titulo {
  font-family: var(--script2);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 27px);
  color: var(--pizarra);
  line-height: 1.6;
}

/* ---------- GALERÍA (recuerdos de invitados) ---------- */
.galeria-grid {
  columns: 4 240px; column-gap: 14px;
  max-width: var(--ancho); margin: 0 auto;
}
.galeria-grid a {
  display: block; margin-bottom: 14px; break-inside: avoid;
  border-radius: 8px; overflow: hidden;
  border: 3px solid var(--blanco); box-shadow: var(--sombra);
}
/* width/height reales en cada <img> + height:auto = espacio reservado
   desde el primer frame (cero saltos de layout al cargar) */
.galeria-grid img { width: 100%; height: auto; background: var(--marfil); transition: transform 0.35s ease, opacity 0.35s ease; }
/* .cargando la pone el JS solo mientras la miniatura baja (fail-safe: visible) */
.galeria-grid img.cargando { opacity: 0; }
.galeria-grid a:hover img { transform: scale(1.04); }
.galeria-mas { text-align: center; margin-top: var(--sp-3); }

dialog.visor {
  border: none; background: rgba(20, 14, 4, 0.92);
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  /* aire abajo para la barra de controles: en pantallas bajas tapaba la foto */
  padding: 56px 30px 96px;
}
/* display SOLO abierto: forzarlo en el estado base rompe el display:none
   del user-agent y los controles fixed se filtran a la página */
dialog.visor[open] { display: grid; place-items: center; animation: aparecer 0.25s ease; }
@keyframes aparecer { from { opacity: 0 } to { opacity: 1 } }
/* con el visor abierto, la página de atrás no scrollea */
body:has(dialog[open]) { overflow: hidden; }
dialog.visor img {
  max-width: min(92vw, 1200px);
  max-height: calc(100svh - 170px);
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s ease;
}
.visor-barra {
  position: fixed; bottom: 22px; left: 0; right: 0;
  display: flex; gap: 18px; justify-content: center; align-items: center;
  color: var(--blanco); font-family: var(--serif);
  letter-spacing: 0.2em; text-transform: uppercase; font-size: 12px;
}
.visor-btn {
  background: rgba(255, 255, 255, 0.12); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px; padding: 10px 18px;
  min-width: 44px; min-height: 44px;
  display: grid; place-items: center;
  cursor: pointer; font-size: 14px;
}
.visor-btn .icono-svg { width: 18px; height: 18px; }
.visor-x { position: fixed; top: 18px; right: 22px; }

/* ---------- ITINERARIO ---------- */
.itinerario { background: var(--marfil); }
.linea {
  max-width: 660px; margin: 0 auto; position: relative;
  padding-left: 26px;
}
.linea::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--oro), rgba(185, 129, 57, 0.15));
}
.hito {
  position: relative;
  display: grid; gap: 4px;
  padding: 0 0 var(--sp-3) 26px;
}
.hito::before {
  content: ""; position: absolute; left: -26px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--crema);
  border: 3px solid var(--oro);
  box-shadow: 0 0 0 4px rgba(185, 129, 57, 0.15);
}
.hito .hora { font-family: var(--numeros); font-size: clamp(21px, 3vw, 25px); color: var(--cafe); line-height: 1.3; }
.hito h4 {
  font-family: var(--serif); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: clamp(13px, 1.9vw, 15px);
  color: var(--pizarra); line-height: 1.5;
}
.hito p { color: var(--gris); font-size: 16px; line-height: 1.6; }

/* ---------- VESTIMENTA ---------- */
.vestimenta { background: var(--blanco); text-align: center; }
.vestimenta .deco { max-width: min(280px, 70vw); margin: 0 auto var(--sp-2); }
.paleta { display: flex; gap: 14px; justify-content: center; margin-bottom: var(--sp-2); }
.paleta i {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--marfil); box-shadow: var(--sombra); display: block;
}
.paleta .coral { background: var(--coral); }
.paleta .esmeralda { background: var(--esmeralda); }
.vestimenta p.nota { color: var(--gris); max-width: 560px; margin: 0 auto; line-height: 1.8; }

/* ---------- LA CANCIÓN ---------- */
.cancion { background: var(--marfil); }
.cancion-cols {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-4); max-width: 980px; margin: 0 auto; align-items: start;
}
.letra {
  font-family: var(--script2);
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 2.0;
  color: var(--pizarra);
  white-space: pre-line;
  border-left: 3px solid var(--oro);
  padding-left: 24px;
  max-height: 560px; overflow: auto;
  /* pista de que hay más letra: se desvanece al fondo hasta llegar al final */
  mask-image: linear-gradient(#000 82%, transparent 99%);
  scrollbar-width: thin;
  scrollbar-color: rgba(185, 129, 57, 0.5) transparent;
}
.letra strong { color: var(--oro-oscuro); font-weight: 400; letter-spacing: 0.2em; }
.cancion-nota { color: var(--gris); font-size: 15.5px; margin-top: var(--sp-2); line-height: 1.6; }
.playlist-invita {
  font-family: var(--script2);
  font-size: clamp(19px, 2.6vw, 23px);
  color: var(--oro-oscuro);
  text-align: center;
  line-height: 1.6;
  margin-bottom: var(--sp-2);
  padding-block: 0.12em;
}
/* espacio reservado + mensaje de carga DETRÁS del iframe: mientras
   Spotify responde nunca se ve una caja blanca "rota" */
.spotify-marco {
  position: relative;
  border-radius: 14px; overflow: hidden; box-shadow: var(--sombra);
  background: linear-gradient(160deg, #f3ede2, #efe5d2);
  min-height: 440px;
}
.spotify-marco::before {
  content: "Cargando la playlist…";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif); letter-spacing: 0.22em; text-transform: uppercase;
  font-size: 12px; color: var(--oro-oscuro);
}
.spotify-marco iframe { position: relative; display: block; width: 100%; height: 440px; border: 0; }

/* ---------- ORACIÓN ---------- */
.oracion { background: var(--blanco); }
.oracion .texto {
  /* 680px ≈ 70 caracteres por línea a 18px (760 pasaba de 80) */
  max-width: 680px; margin: 0 auto;
  color: var(--pizarra); line-height: 1.9; font-size: 18px;
  display: grid; gap: var(--sp-2);
}
.oracion .firma {
  text-align: center; margin-top: var(--sp-3);
  font-family: var(--serif); letter-spacing: 0.24em;
  text-transform: uppercase; font-size: 13px;
  color: var(--oro-oscuro); line-height: 1.6;
}

/* ---------- TRIVIA ---------- */
.trivia { background: var(--marfil); }
.trivia-caja {
  max-width: 620px; margin: 0 auto;
  background: var(--blanco);
  border: 1px solid rgba(185, 129, 57, 0.28);
  border-radius: 12px;
  box-shadow: var(--sombra);
  padding: clamp(24px, 4vw, 40px);
  display: grid; gap: var(--sp-2);
}
.trivia-progreso {
  height: 6px; border-radius: 999px;
  background: rgba(185, 129, 57, 0.15);
  overflow: hidden;
}
.trivia-progreso i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--oro), var(--oro-oscuro));
  transition: width 0.4s ease;
}
.trivia-num {
  font-family: var(--serif); letter-spacing: 0.24em;
  text-transform: uppercase; font-size: 12px; color: var(--gris);
  line-height: 1.5;
}
.trivia-pregunta {
  font-family: var(--display);
  font-size: clamp(18px, 2.8vw, 23px);
  color: var(--cafe);
  line-height: 1.5;
}
.trivia-opciones { display: grid; gap: 10px; }
.trivia-opciones button {
  font-family: var(--cuerpo); font-size: 17px;
  text-align: left;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(185, 129, 57, 0.35);
  background: var(--crema);
  color: var(--tinta);
  cursor: pointer;
  line-height: 1.5;
  transition: transform 0.15s ease, background 0.2s ease;
}
.trivia-opciones button:hover:not(:disabled) { transform: translateX(4px); background: var(--marfil); }
.trivia-opciones button:disabled { cursor: default; opacity: 0.75; }
/* los colores de la boda deciden: esmeralda = acierto, coral = fallo
   (variantes -feedback: contraste ≥4.5:1 con el texto blanco; además
   del color hay marca ✓/✗ — el color nunca es el único indicador) */
.trivia-opciones button.bien { background: var(--esmeralda-feedback); border-color: var(--esmeralda-feedback); color: #fff; opacity: 1; }
.trivia-opciones button.mal { background: var(--coral-feedback); border-color: var(--coral-feedback); color: #fff; opacity: 1; }
.trivia-opciones button.bien::after { content: "  ✓"; font-weight: 700; }
.trivia-opciones button.mal::after { content: "  ✗"; font-weight: 700; }
.trivia-feedback { min-height: 24px; text-align: center; font-size: 16px; color: var(--pizarra); line-height: 1.5; }
.trivia-final { display: grid; gap: var(--sp-2); justify-items: center; text-align: center; }
.trivia-final[hidden] { display: none; }
.trivia-score {
  font-family: var(--numeros);
  font-size: clamp(38px, 7vw, 54px);
  color: var(--oro-oscuro);
  line-height: 1.2;
}
.trivia-mensaje { color: var(--pizarra); font-size: 17.5px; line-height: 1.6; }
.trivia-botones { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- MENSAJES ---------- */
.mensajes { background: var(--blanco); }
.mensajes-form {
  max-width: 620px; margin: 0 auto; display: grid; gap: var(--sp-2);
  justify-items: center;
}
.mensajes-form input, .mensajes-form textarea {
  font-family: var(--cuerpo); font-size: 17px;
  padding: 14px 16px; width: 100%;
  border: 1px solid rgba(185, 129, 57, 0.4);
  border-radius: 8px; background: var(--crema); color: var(--tinta);
  line-height: 1.5;
}
.mensajes-form textarea { min-height: 110px; resize: vertical; }
.mensajes-form input:focus, .mensajes-form textarea:focus { outline: 2px solid var(--oro); border-color: transparent; }
.web-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.mensajes-estado { text-align: center; font-size: 15.5px; min-height: 22px; line-height: 1.5; }
.mensajes-estado.ok { color: var(--esmeralda); }
.mensajes-estado.err { color: #b3423a; }
.muro { max-width: 760px; margin: var(--sp-4) auto 0; display: grid; gap: var(--sp-2); }
.nota-mensaje {
  background: var(--crema);
  border: 1px solid rgba(185, 129, 57, 0.25);
  border-left: 4px solid var(--oro);
  border-radius: 8px; padding: 18px 20px;
  display: grid; gap: 6px;
}
.nota-mensaje .cab { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.nota-mensaje .quien { font-family: var(--script2); font-size: 21px; color: var(--oro-oscuro); }
.nota-mensaje .cuando { font-family: var(--serif); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gris); }
.nota-mensaje p { color: var(--pizarra); line-height: 1.65; }

/* ---------- FOOTER ---------- */
footer.pie {
  background: #2b2214;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: var(--sp-5) 22px var(--sp-4);
  display: grid; gap: var(--sp-2); justify-items: center;
}
footer.pie .nombres { font-family: var(--script); font-size: clamp(36px, 5vw, 46px); color: #f3d9ac; }
footer.pie blockquote {
  font-family: var(--script2); max-width: 640px;
  font-size: clamp(17px, 2.3vw, 19px); line-height: 1.75;
  padding-block: 0.12em;
}
footer.pie .peq { font-family: var(--serif); letter-spacing: 0.3em; text-transform: uppercase; font-size: 12px; color: rgba(255, 255, 255, 0.72); line-height: 1.7; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visto { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ----------
   El menú horizontal (logo + 8 enlaces) necesita ~1050px reales:
   entre 901 y 1099 los enlaces se CORTABAN — la hamburguesa
   vive hasta 1099px, la fila completa solo desde 1100px. */
@media (max-width: 900px) {
  .cancion-cols { grid-template-columns: 1fr; }
}
@media (max-width: 1099px) {
  .hamb {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    margin-left: auto;
    background: none; border: none; cursor: pointer;
    color: var(--oro-oscuro);
  }
  .hamb .icono-svg { width: 26px; height: 26px; }
  #nav-toggle:focus-visible + .hamb { outline: 3px solid var(--oro); outline-offset: 2px; border-radius: 6px; }
  .nav-enlaces {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250, 247, 241, 0.98);
    border-bottom: 1px solid rgba(185, 129, 57, 0.25);
    box-shadow: 0 18px 30px rgba(105, 60, 0, 0.12);
    display: none; flex-direction: column; padding: 8px 22px 14px; gap: 0;
  }
  .nav-enlaces a.enlace { padding: 13px 6px; }
  #nav-toggle:checked ~ .nav-enlaces { display: flex; }
  .nav-logo { margin-right: 0; }
}
@media (min-width: 1100px) {
  .nav-enlaces { display: flex; gap: 14px; align-items: center; }
  #nav-toggle { display: none; }
}
@media (max-width: 520px) {
  .padres { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-fondos img { transition: none; }
  .carrusel { scroll-behavior: auto; }
}
