/* =========================================================
   PLANTILLA "ART DÉCO DORADO" — BODA, glamour de gala (años 20 / Gatsby).
   Hoja de estilo AUTOCONTENIDA (NO depende de base.css/temas.css).
   Comparte el contrato de datos del motor (motor.js): mismas clases/IDs/
   data-rol/data-modulo; cambia el copy y el envoltorio visual.
   Geometría déco dibujada con gradients/SVG inline. Negro azul-noche + oro.
   Mobile-first · accesible (AA) · sin dependencias · sin overflow-x.
   ========================================================= */

:root {
  --noche:    #0a0e1c;   /* azul noche casi negro */
  --noche-2:  #10162b;
  --noche-3:  #161d36;
  --tinta:    #060812;   /* negro déco para superficies más profundas */

  --oro:       #c9a24b;  /* oro base (AA sobre noche) */
  --oro-claro: #e7c878;  /* oro claro para titulares/realces */
  --oro-vivo:  #f3dd9a;  /* destello de oro */
  --oro-prof:  #8c6f33;  /* oro sombra para filetes */

  --marfil:   #f4eedf;   /* texto cuerpo, champagne pálido */
  --marfil-2: #c8c1ae;   /* texto secundario */

  /* Fuentes (las enlaza el render en <head>): display déco + sans cuerpo */
  --f-display: "Cinzel", "Playfair Display", Georgia, serif;
  --f-titulo:  "Poiret One", "Cinzel", Georgia, serif;
  --f-texto:   "Jost", system-ui, -apple-system, sans-serif;

  --esp-1:4px; --esp-2:8px; --esp-3:16px; --esp-4:24px; --esp-5:40px; --esp-6:64px; --esp-7:96px;

  --filete:        rgba(201,162,75,.35);
  --filete-fuerte: rgba(201,162,75,.62);
  --panel:   rgba(231,200,120,.045);
  --panel-2: rgba(6,8,18,.55);
  --radio: 2px;
  --ls: .34em;   /* tracking déco */
  --transicion: .4s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-texto);
  font-size: 16px; line-height: 1.8;
  color: var(--marfil);
  background-color: var(--noche);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Fondo déco: degradado de noche + un sutil reticulado dorado vertical (chevron/columna) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(130% 80% at 50% -8%, var(--noche-3) 0%, var(--noche-2) 40%, var(--noche) 78%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(201,162,75,.05) 46px 47px);
}
/* Brillo dorado de gala, tenue (respeta reduced-motion) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 38% at 50% 0%, rgba(201,162,75,.10), transparent 72%);
  animation: brillo 8s ease-in-out infinite;
}
@keyframes brillo { 0%,100%{opacity:.55} 50%{opacity:1} }

img { max-width: 100%; display: block; }
iframe { border: 0; }

.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.fade-up.is-visible { opacity: 1; transform: none; }

/* =========================================================
   HERO — sunburst déco + marco geométrico dorado
   ========================================================= */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--esp-7) var(--esp-4);
  /* El sunburst déco ES la portada: ignora cualquier foto de hero. */
  background-image: none !important;
  background-color: var(--tinta);
  overflow: hidden;
}
/* Abanico / sunburst déco de rayos dorados desde arriba */
.hero::before {
  content: ""; position: absolute; inset: -30% -30% auto -30%; height: 150%; z-index: -2;
  background:
    repeating-conic-gradient(from 270deg at 50% 0%,
      rgba(201,162,75,.10) 0deg 3deg, transparent 3deg 9deg);
  -webkit-mask-image: radial-gradient(120% 92% at 50% 0%, #000 32%, transparent 78%);
          mask-image: radial-gradient(120% 92% at 50% 0%, #000 32%, transparent 78%);
}
/* Viñeta para asentar el texto */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 70% at 50% 42%, transparent 42%, rgba(6,8,18,.7) 100%);
}
.hero__overlay { display: none; }

.hero__contenido {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: var(--esp-6) var(--esp-4);
}
/* Marco déco escalonado (líneas dobles + esquinas) alrededor del contenido */
.hero__contenido::before,
.hero__contenido::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: min(86vw, 440px); pointer-events: none;
}
.hero__contenido::before { top: 0; height: 0;
  border-top: 1px solid var(--filete-fuerte);
  box-shadow: 0 5px 0 -1px var(--filete);
}
.hero__contenido::after { bottom: 0; height: 0;
  border-bottom: 1px solid var(--filete-fuerte);
  box-shadow: 0 -5px 0 -1px var(--filete);
}

/* Monograma de iniciales en un emblema geométrico déco (rombo dorado) */
.hero__sello {
  position: relative;
  width: 88px; height: 88px; margin-bottom: var(--esp-4);
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 600; font-size: 1.5rem;
  letter-spacing: .04em; color: var(--oro-claro);
  background:
    linear-gradient(var(--tinta), var(--tinta)) padding-box,
    conic-gradient(from 45deg, var(--oro-prof), var(--oro-vivo), var(--oro-prof), var(--oro-vivo), var(--oro-prof)) border-box;
  border: 2px solid transparent;
  /* octágono déco */
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  box-shadow: 0 0 26px rgba(201,162,75,.3);
  text-shadow: 0 0 14px rgba(231,200,120,.5);
}
.hero__sello::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid var(--filete-fuerte);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.hero__sello:empty { display: none; }

.hero__intro {
  font-family: var(--f-texto); text-transform: uppercase; letter-spacing: var(--ls);
  font-size: .78rem; font-weight: 500; color: var(--oro);
  margin-bottom: var(--esp-4);
}
.hero__nombres {
  font-family: var(--f-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(2.6rem, 13vw, 5rem); line-height: 1.05;
  color: var(--oro-claro);
  text-shadow: 0 0 30px rgba(201,162,75,.4), 0 2px 3px rgba(0,0,0,.55);
}
/* ampersand déco — separador escalonado */
.hero__amp {
  display: block; font-family: var(--f-titulo); font-weight: 400;
  font-size: .5em; color: var(--oro); letter-spacing: 0;
  margin: var(--esp-2) 0; opacity: .92;
}
.hero__fecha {
  display: inline-flex; align-items: center; gap: var(--esp-3);
  margin-top: var(--esp-4);
  font-family: var(--f-texto); text-transform: uppercase; letter-spacing: var(--ls);
  font-size: clamp(.78rem, 3.2vw, .95rem); font-weight: 500; color: var(--marfil);
}
.hero__fecha::before, .hero__fecha::after {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--filete-fuerte));
}
.hero__fecha::after { transform: scaleX(-1); }
.hero__scroll {
  margin-top: var(--esp-6); color: var(--oro); text-decoration: none; opacity: .85;
  font-size: 1.5rem; border-radius: var(--radio);
}
.hero__flecha { display: inline-block; animation: flotar 2.2s ease-in-out infinite; }
@keyframes flotar { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* =========================================================
   ESTRUCTURA — secciones de gala
   ========================================================= */
main { padding: var(--esp-6) var(--esp-4) var(--esp-7); }
.bienvenida, .contador, .historia, .evento, .galeria,
.itinerario, .dress-code, .mesa-regalos, .hospedaje, .rsvp {
  max-width: 620px; margin: 0 auto var(--esp-7);
  text-align: center;
}

/* Divisor: abanico/rombo déco dorado (SVG inline) flanqueado por filetes escalonados */
.divisor {
  position: relative; display: block; width: 200px; height: 22px;
  margin: 0 auto var(--esp-5); font-size: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-width='1.4'%3E%3Cpath d='M24 2 L40 12 L24 22 L8 12 Z'/%3E%3Cpath d='M24 7 L33 12 L24 17 L15 12 Z'/%3E%3C/g%3E%3Cpath d='M24 9.5 L27 12 L24 14.5 L21 12 Z' fill='%23e7c878'/%3E%3C/svg%3E") center / 44px 22px no-repeat;
}
.divisor::before, .divisor::after {
  content: ""; position: absolute; top: 50%; width: 56px; height: 5px; transform: translateY(-50%);
  /* dobles líneas déco que se afinan hacia el centro */
  background:
    linear-gradient(90deg, transparent, var(--filete-fuerte)) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--filete)) 0 100% / 100% 1px no-repeat;
}
.divisor::before { left: 0; }
.divisor::after { right: 0; transform: translateY(-50%) scaleX(-1); }

/* Títulos de sección */
.seccion__titulo, .bienvenida__titulo {
  font-family: var(--f-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: clamp(1.45rem, 5.4vw, 2.1rem); line-height: 1.2;
  color: var(--marfil);
  margin-bottom: var(--esp-4);
}
.bienvenida__titulo { color: var(--oro-claro); }
.bienvenida__texto {
  max-width: 500px; margin: 0 auto; color: var(--marfil-2);
  font-size: 1.08rem; font-style: italic; font-family: var(--f-titulo); line-height: 1.7;
}

/* =========================================================
   CUENTA REGRESIVA — cofres déco
   ========================================================= */
.contador__lista { list-style: none; display: flex; gap: var(--esp-3); justify-content: center; flex-wrap: wrap; }
.contador__item {
  position: relative;
  min-width: 78px; padding: var(--esp-4) var(--esp-2) var(--esp-3);
  background: var(--panel); border: 1px solid var(--filete); border-radius: var(--radio);
}
/* esquina déco escalonada */
.contador__item::before {
  content: ""; position: absolute; top: 5px; left: 5px; right: 5px; height: 1px;
  background: var(--filete-fuerte);
}
.contador__num {
  display: block; font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.8rem, 8vw, 2.5rem); line-height: 1; color: var(--oro-claro);
  text-shadow: 0 0 16px rgba(201,162,75,.35);
}
.contador__label {
  display: block; margin-top: var(--esp-2);
  font-size: .6rem; text-transform: uppercase; letter-spacing: .22em; color: var(--marfil-2);
}

/* =========================================================
   HISTORIA / TIMELINE (SOLO BODA) — línea de oro
   ========================================================= */
.historia__linea {
  list-style: none; max-width: 540px; margin: 0 auto; text-align: left;
  position: relative; padding-left: var(--esp-5);
}
.historia__linea::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 7px; width: 1px;
  background: linear-gradient(var(--filete-fuerte), var(--filete), transparent);
}
.historia__item { position: relative; padding-bottom: var(--esp-5); }
.historia__item:last-child { padding-bottom: 0; }
/* rombo déco como nodo del timeline */
.historia__item::before {
  content: ""; position: absolute; left: calc(-1 * var(--esp-5) + 2px); top: 6px;
  width: 11px; height: 11px; transform: rotate(45deg);
  background: var(--oro); border: 1px solid var(--oro-vivo);
  box-shadow: 0 0 12px rgba(201,162,75,.5);
}
.historia__fecha {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .22em;
  color: var(--oro); margin-bottom: var(--esp-1);
}
.historia__titulo {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  font-size: 1.15rem; color: var(--marfil); margin-bottom: var(--esp-2);
}
.historia__texto { color: var(--marfil-2); }
.historia__img {
  width: 100%; margin-top: var(--esp-3); aspect-ratio: 16/10; object-fit: cover;
  border: 1px solid var(--filete); border-radius: var(--radio);
}

/* =========================================================
   EVENTOS (ceremonia / recepción) + MAPA
   ========================================================= */
.evento__hora {
  display: inline-block; font-family: var(--f-texto); font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em; font-size: .82rem; color: var(--oro);
  margin-bottom: var(--esp-2);
}
.evento__lugar { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(1.3rem,5vw,1.8rem); color: var(--marfil); line-height: 1.2; }
.evento__direccion { color: var(--marfil-2); margin: var(--esp-2) 0 var(--esp-4); }
.evento__mapa { border: 1px solid var(--filete); border-radius: var(--radio); overflow: hidden; }
.evento__mapa iframe { width: 100%; height: 300px; display: block; filter: saturate(.65) brightness(.85) contrast(1.05); }
.evento__boton, .mesa-regalos__link, .hospedaje__link {
  display: inline-block; margin-top: var(--esp-4);
  padding: var(--esp-2) var(--esp-5); border: 1px solid var(--oro);
  border-radius: var(--radio); color: var(--oro-claro); text-decoration: none;
  font-family: var(--f-texto); font-weight: 500; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .22em;
  transition: background var(--transicion), color var(--transicion), box-shadow var(--transicion);
}
.evento__boton:hover, .mesa-regalos__link:hover, .hospedaje__link:hover {
  background: var(--oro); color: var(--tinta); box-shadow: 0 0 24px rgba(201,162,75,.4);
}

/* =========================================================
   ITINERARIO — programa de la velada
   ========================================================= */
.itinerario__lista { list-style: none; max-width: 460px; margin: 0 auto; text-align: left; }
.itinerario__item {
  display: grid; grid-template-columns: 100px 1fr; align-items: baseline; gap: var(--esp-3);
  padding: var(--esp-3) 0; border-bottom: 1px solid var(--filete);
}
.itinerario__item:last-child { border-bottom: none; }
.itinerario__hora { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--oro); letter-spacing: .04em; }
.itinerario__actividad { color: var(--marfil); }

/* =========================================================
   DRESS CODE
   ========================================================= */
.dress-code__descripcion { max-width: 480px; margin: 0 auto var(--esp-4); color: var(--marfil-2); }
.dress-code__colores { display: flex; flex-wrap: wrap; gap: var(--esp-3); justify-content: center; }
.dress-code__color { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--filete-fuerte); box-shadow: 0 0 12px rgba(0,0,0,.45); }

/* =========================================================
   MESA DE REGALOS
   ========================================================= */
.mesa-regalos__mensaje { max-width: 480px; margin: 0 auto var(--esp-4); color: var(--marfil-2); }
.mesa-regalos__lista { display: flex; flex-wrap: wrap; gap: var(--esp-3); justify-content: center; }
.mesa-regalos__link { margin-top: 0; }

/* =========================================================
   HOSPEDAJE
   ========================================================= */
.hospedaje__lista { list-style: none; display: grid; gap: var(--esp-3); grid-template-columns: 1fr; }
.hospedaje__item {
  background: var(--panel); border: 1px solid var(--filete); border-radius: var(--radio);
  padding: var(--esp-4) var(--esp-3); text-align: left;
}
.hospedaje__nombre { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; color: var(--marfil); margin-bottom: var(--esp-1); }
.hospedaje__direccion { color: var(--marfil-2); margin-bottom: var(--esp-2); }
.hospedaje__tel { display: inline-block; color: var(--oro); text-decoration: none; letter-spacing: .04em; border-radius: var(--radio); }
.hospedaje__tel:hover { text-decoration: underline; }
.hospedaje__link { margin-top: var(--esp-3); padding: var(--esp-1) var(--esp-3); font-size: .68rem; }

/* =========================================================
   GALERÍA — carrusel con marco déco
   ========================================================= */
.galeria { padding: var(--esp-5) 0 var(--esp-7); max-width: none; margin: 0 0 var(--esp-7); }
.carrusel { position: relative; max-width: 940px; margin: 0 auto; }
.carrusel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.carrusel__track::-webkit-scrollbar { display: none; }
.carrusel__slide { flex: 0 0 84%; scroll-snap-align: center; padding: 0 var(--esp-2); }
.carrusel__slide img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--filete-fuerte); border-radius: var(--radio); cursor: zoom-in; }
.carrusel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--filete-fuerte);
  background: rgba(10,14,28,.65); color: var(--oro); font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.carrusel__nav--prev { left: 10px; } .carrusel__nav--next { right: 10px; }
.carrusel__dots { display: flex; justify-content: center; gap: 10px; margin-top: var(--esp-4); }
.carrusel__dot { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--filete-fuerte); background: transparent; padding: 0; cursor: pointer; }
.carrusel__dot.is-active { background: var(--oro); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(4,6,14,.95); padding: var(--esp-3); opacity: 0; visibility: hidden; transition: opacity var(--transicion); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 100%; max-height: 85vh; border: 1px solid var(--filete-fuerte); border-radius: var(--radio); }
.lightbox__cerrar { position: absolute; top: var(--esp-3); right: var(--esp-3); background: none; border: none; color: var(--oro); font-size: 2.4rem; cursor: pointer; line-height: 1; border-radius: var(--radio); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--oro); font-size: 2.6rem; cursor: pointer; padding: var(--esp-2); border-radius: var(--radio); }
.lightbox__nav--prev { left: var(--esp-1); } .lightbox__nav--next { right: var(--esp-1); }

/* =========================================================
   RSVP
   ========================================================= */
.rsvp__nota { color: var(--marfil-2); margin-bottom: var(--esp-4); font-style: italic; font-family: var(--f-titulo); }
.rsvp__form { max-width: 440px; margin: 0 auto; text-align: left; }
.rsvp__auto { margin: calc(-1 * var(--esp-2)) 0 var(--esp-3); font-size: .8rem; font-style: italic; color: var(--oro); }
.campo { margin-bottom: var(--esp-4); border: none; }
.campo__label { display: block; margin-bottom: var(--esp-2); font-size: .66rem; font-weight: 500; color: var(--oro); text-transform: uppercase; letter-spacing: .2em; }
.campo__input {
  width: 100%; padding: var(--esp-2) 0; font-family: var(--f-texto); font-size: 1.05rem; color: var(--marfil);
  background: transparent; border: none; border-bottom: 1px solid var(--filete-fuerte); border-radius: 0;
  transition: border-color var(--transicion);
}
textarea.campo__input { border: 1px solid var(--filete-fuerte); border-radius: var(--radio); padding: var(--esp-2) var(--esp-3); }
.campo__input::placeholder { color: var(--marfil-2); opacity: .55; }
.campo__input:focus-visible { outline: none; border-color: var(--oro-vivo); box-shadow: 0 1px 0 var(--oro-vivo); }
.rsvp__opciones { display: flex; flex-direction: column; gap: var(--esp-2); }
.rsvp__radio { display: flex; align-items: center; gap: var(--esp-2); cursor: pointer; }
.rsvp__radio input { accent-color: var(--oro); }
.boton {
  display: block; width: 100%; margin-top: var(--esp-3);
  padding: var(--esp-3); border: 1px solid var(--oro); border-radius: var(--radio);
  background: transparent; color: var(--oro-claro);
  font-family: var(--f-texto); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .24em; cursor: pointer;
  transition: background var(--transicion), color var(--transicion), box-shadow var(--transicion);
}
.boton:hover { background: var(--oro); color: var(--tinta); box-shadow: 0 0 28px rgba(201,162,75,.45); }
.boton:active { transform: translateY(1px); }
.boton:disabled { opacity: .55; cursor: default; }
.boton:focus-visible, .evento__boton:focus-visible, .mesa-regalos__link:focus-visible,
.hospedaje__link:focus-visible, .hospedaje__tel:focus-visible, .hero__scroll:focus-visible,
.carrusel__nav:focus-visible, .carrusel__dot:focus-visible, .musica:focus-visible,
.lightbox__cerrar:focus-visible, .lightbox__nav:focus-visible {
  outline: 2px solid var(--oro-vivo); outline-offset: 3px;
}
.rsvp__estado { margin-top: var(--esp-3); text-align: center; font-weight: 600; min-height: 1.4em; }
.rsvp__estado--ok { color: var(--oro-claro); }
.rsvp__estado--error { color: #e98a8a; }

/* =========================================================
   MÚSICA
   ========================================================= */
.musica { position: fixed; bottom: var(--esp-3); right: var(--esp-3); z-index: 40; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--oro); background: rgba(10,14,28,.88); color: var(--oro); cursor: pointer; display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 0 20px rgba(201,162,75,.25); }
.musica[aria-pressed="true"] .musica__icono { animation: girar 4s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* =========================================================
   PIE — colofón déco con firma + monograma
   ========================================================= */
.pie { position: relative; text-align: center; padding: var(--esp-7) var(--esp-4) calc(var(--esp-7) + 60px); background: var(--tinta); }
.pie::before {
  content: ""; position: absolute; top: var(--esp-5); left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px; background: var(--oro);
  box-shadow: 0 0 16px rgba(201,162,75,.5);
}
.pie__nombres { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(1.6rem,7vw,2.4rem); color: var(--oro-claro); text-shadow: 0 0 22px rgba(201,162,75,.4); }
.pie__fecha { text-transform: uppercase; letter-spacing: var(--ls); font-size: .74rem; margin: var(--esp-3) 0 var(--esp-3); color: var(--marfil-2); }
.pie__credito { font-size: .64rem; text-transform: uppercase; letter-spacing: .26em; color: var(--oro); opacity: .7; }

/* =========================================================
   BARRA DE PREVIEW (dev)
   ========================================================= */
.preview { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: rgba(4,6,14,.95); color: #fff; padding: var(--esp-2) var(--esp-3); display: flex; gap: var(--esp-4); flex-wrap: wrap; justify-content: center; font-family: system-ui, sans-serif; }
.preview__chip { background: rgba(255,255,255,.12); color: #fff; border: 1px solid transparent; padding: 4px 10px; border-radius: 999px; font-size: .8rem; cursor: pointer; }
.preview__chip.is-active { background: var(--oro); color: #111; }

/* =========================================================
   FIRMA GLAM DÉCO (aditivo) — movimiento sutil de gala años 20:
   · el sunburst gira lentísimo + destella
   · un sheen metálico barre el oro de titulares/monograma
   · las líneas/marcos déco se TRAZAN al entrar (.fade-up.is-visible)
   Todo apagado por prefers-reduced-motion (al final del archivo).
   ========================================================= */

/* — Sunburst: giro lentísimo (60s) anclado arriba-centro + destello del abanico — */
.hero::before {
  transform-origin: 50% 0%;
  /* vaivén lentísimo del abanico: gira -4deg ↔ +4deg sin exponer bordes (inset -30%) */
  animation: deco-abanico-giro 48s ease-in-out infinite alternate;
}
.hero::after {
  /* destello tenue que late con el abanico (la viñeta queda intacta debajo) */
  animation: deco-abanico-destello 7s ease-in-out infinite;
}
@keyframes deco-abanico-giro {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(4deg); }
}
@keyframes deco-abanico-destello {
  0%, 100% { opacity: 1; }
  50%      { opacity: .86; }
}

/* — Sheen metálico: gradiente claro que recorre el oro de los titulares en bucle
   lento. Dos capas: (1) barrido que viaja, (2) relleno oro-claro sólido debajo
   (clip:text vuelve el glifo transparente, así que esta capa mantiene el oro y su
   contraste AA cuando el barrido no está encima). — */
.hero__nombres,
.pie__nombres {
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
          background-clip: text;
  background-image:
    linear-gradient(115deg,
      transparent 0%, transparent 38%,
      rgba(255,248,224,.9) 48%, rgba(255,252,238,1) 50%, rgba(255,248,224,.9) 52%,
      transparent 62%, transparent 100%),
    linear-gradient(var(--oro-claro), var(--oro-claro));
  background-repeat: no-repeat, no-repeat;
  background-size: 220% 100%, 100% 100%;
  background-position: 220% 0, 0 0;
  animation: deco-sheen 6.5s ease-in-out 1.2s infinite;
}
@keyframes deco-sheen {
  /* el barrido cruza una vez y descansa el resto del ciclo (sin tocar la capa base) */
  0%   { background-position: 220% 0, 0 0; }
  35%  { background-position: -120% 0, 0 0; }
  100% { background-position: -120% 0, 0 0; }
}
/* el ampersand es hijo de .hero__nombres: hereda el clip:text transparente y cae en
   un hueco del gradiente → se volvería invisible. Lo devolvemos a oro sólido. */
.hero__amp {
  -webkit-text-fill-color: var(--oro);
  background: none;
}

/* — Trazado de líneas déco al entrar: el marco del hero y los divisores se dibujan — */
/* marco escalonado del hero: crece de centro a los lados al revelarse */
.hero__contenido::before,
.hero__contenido::after {
  transform: translateX(-50%) scaleX(0);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .15s;
}
/* el hero no usa fade-up, así que lo trazamos al cargar (tras un beat) */
.hero__contenido::before { animation: deco-trazo-x 1.2s cubic-bezier(.2,.7,.2,1) .35s both; }
.hero__contenido::after  { animation: deco-trazo-x 1.2s cubic-bezier(.2,.7,.2,1) .45s both; }
@keyframes deco-trazo-x {
  from { transform: translateX(-50%) scaleX(0); }
  to   { transform: translateX(-50%) scaleX(1); }
}

/* divisor de sección: el rombo central y sus filetes se trazan cuando la sección entra */
.divisor { transform: scaleX(.0001); transform-origin: center; transition: transform .9s cubic-bezier(.2,.7,.2,1) .1s, opacity .9s ease; opacity: 0; }
.fade-up.is-visible .divisor,
.is-visible .divisor { transform: scaleX(1); opacity: 1; }
/* divisor dentro de una sección que YA es .fade-up: la sección misma lleva is-visible */
.bienvenida.is-visible .divisor,
.contador.is-visible .divisor,
.historia.is-visible .divisor,
.evento.is-visible .divisor,
.itinerario.is-visible .divisor,
.dress-code.is-visible .divisor,
.mesa-regalos.is-visible .divisor,
.hospedaje.is-visible .divisor,
.rsvp.is-visible .divisor { transform: scaleX(1); opacity: 1; }

/* línea del timeline de historia: se dibuja de arriba a abajo al revelarse */
.historia__linea::before { transform: scaleY(0); transform-origin: top; transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .2s; }
.historia.is-visible .historia__linea::before { transform: scaleY(1); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 768px) {
  .carrusel__slide { flex: 0 0 56%; }
  .carrusel__slide img { aspect-ratio: 16/10; }
  .hospedaje__lista { grid-template-columns: 1fr 1fr; }
  .evento__mapa iframe { height: 360px; }
  .hero__nombres { font-size: clamp(3.5rem, 9vw, 6rem); }
}

/* =========================================================
   ACCESIBILIDAD — prefers-reduced-motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-up { opacity: 1; transform: none; }

  /* Apaga la firma glam déco y deja TODO visible en su estado final.
     (Sin transición/animación, los estados iniciales colapsados deben revertirse.) */
  .hero::before { transform: none; }
  .hero__contenido::before { transform: translateX(-50%); }
  .hero__contenido::after  { transform: translateX(-50%); }
  .divisor { transform: scaleX(1); opacity: 1; }
  .historia__linea::before { transform: scaleY(1); }
  /* titulares: sin barrido, oro-claro sólido y opaco (contraste AA garantizado) */
  .hero__nombres, .pie__nombres {
    -webkit-text-fill-color: var(--oro-claro);
    background-image: none;
  }
}
