/* ============================================================
   TREVOR & XIME — Bodas de Plata
   effects.css  ·  capa de diseño (se carga después de styles.css)

   Paleta de los novios:
     profundo  #2C2514   fondos oscuros y texto
     arena     #CAAD88   secciones cálidas, acentos sobre oscuro
     bronce    #8A7452   cronograma, acentos de texto
     salvia    #A19D73   secciones suaves
     oliva     #67673D   momentos profundos (díptico, video)
     lino      #F3ECE2   tinte claro de la arena, base luminosa
   Las secciones se funden con un fondo único que cambia de color (.fx-backdrop).

   Tipografía:
     Italiana  → títulos y nombres (serif fina, aireada)
     Cormorant Garamond itálica → acentos legibles (&, “sí”, citas, firmas)
     Jost      → texto
   ============================================================ */

:root {
  --font-serif: 'Italiana', 'Didot', Georgia, serif;
  --font-script: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', system-ui, -apple-system, sans-serif;
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --c-ivory: #f3ece2;
  --c-mist: #e9dfcf;
  --c-dusty: #caad88;
  --c-olive: #67673d;
  --c-forest: #2c2514;
  --c-clay: #8a7452;
  --c-amber: #a19d73;
  --c-ink: #2c2514;
  --c-white: #ffffff;
}

/* ── Tipografía ─────────────────────────────────────────────── */
body { font-family: var(--font-sans); font-weight: 300; }
p, li { font-weight: 300; }
.font-display, .font-serif { font-family: var(--font-serif) !important; font-weight: 400 !important; }
.font-sans { font-family: var(--font-sans) !important; }
.font-light { font-weight: 300; }

/* Itálica de acento (Italiana no tiene cursiva): Cormorant Garamond, legible y fina */
.font-script, .font-display.italic, section h2 em, .fx-yes, .hero-kicker, .hero-amp,
.loader-subtitle, .loader-ampersand, .pareja-versiculo-text, .fx-memories-title,
.fx-polaroid figcaption, .fx-gift-sign, .fx-video-caption, footer blockquote, .fx-viewer p {
  font-family: var(--font-script) !important;
  font-style: italic !important;
  font-weight: 500 !important;
  letter-spacing: 0.005em !important;
}
.fx-yes { font-size: 1.08em; padding: 0 0.04em; color: rgb(var(--rgb-accent)); }

/* ── Temas de color ─────────────────────────────────────────── */
/* Paleta: #2C2514 profundo · #CAAD88 arena · #8A7452 bronce · #A19D73 salvia · #67673D oliva
   (+ lino #F3ECE2, tinte claro de la arena, como base luminosa) */
:root,
[data-theme="espresso"], [data-theme="forest"] {          /* profundo #2C2514 */
  --rgb-bg: 44 37 20;      --rgb-bg2: 58 49 30;
  --rgb-ink: 246 240 228;  --rgb-accent: 202 173 136;  --rgb-accent2: 161 157 115;
}
[data-theme="ivory"] {                                    /* lino #F3ECE2 */
  --rgb-bg: 243 236 226;   --rgb-bg2: 235 226 212;
  --rgb-ink: 44 37 20;     --rgb-accent: 138 116 82;   --rgb-accent2: 103 103 61;
}
[data-theme="rose"], [data-theme="dusty"], [data-theme="sand"] {  /* arena #CAAD88 */
  --rgb-bg: 202 173 136;   --rgb-bg2: 212 187 154;
  --rgb-ink: 44 37 20;     --rgb-accent: 88 72 46;     --rgb-accent2: 74 74 40;
}
[data-theme="sage"] {                                     /* salvia #A19D73 */
  --rgb-bg: 161 157 115;   --rgb-bg2: 171 167 126;
  --rgb-ink: 44 37 20;     --rgb-accent: 72 60 38;     --rgb-accent2: 72 72 40;
}
[data-theme="olive"] {                                    /* oliva #67673D */
  --rgb-bg: 103 103 61;    --rgb-bg2: 114 114 70;
  --rgb-ink: 246 240 228;  --rgb-accent: 202 173 136;  --rgb-accent2: 214 211 180;
}
[data-theme="bronze"] {                                   /* bronce #8A7452 */
  --rgb-bg: 138 116 82;    --rgb-bg2: 150 128 94;
  --rgb-ink: 248 243 233;  --rgb-accent: 236 220 196;  --rgb-accent2: 214 211 180;
}
:root, [data-theme] {
  --petroleum: rgb(var(--rgb-bg));
  --petroleum-light: rgb(var(--rgb-bg2));
  --champagne: rgb(var(--rgb-ink));
  --champagne-dark: rgb(var(--rgb-ink) / 0.8);
  --gold: rgb(var(--rgb-accent));
  --gold-light: rgb(var(--rgb-accent2));
  --line: rgb(var(--rgb-ink) / 0.13);
  --line-strong: rgb(var(--rgb-ink) / 0.24);
}
body { background: rgb(44 37 20); }
[data-theme] { color: rgb(var(--rgb-ink)); }
section[data-theme], div[data-theme], footer[data-theme] { background-color: rgb(var(--rgb-bg)) !important; background-image: none !important; }

::selection { background: rgb(202 173 136 / 0.5); color: var(--c-ink); }
::-webkit-scrollbar-thumb { background: var(--c-dusty); }

/* ── Transiciones entre secciones ────────────────────────────
   Con JS (html.fx-morph) las secciones son transparentes y un único fondo
   fijo (.fx-backdrop) cambia de color con un fundido largo al cruzar cada
   sección el centro de la pantalla: no hay bordes entre colores.
   Las fotos de fondo se disuelven en el color con mask-image. */
.section-fade-bottom::after, .section-dark::before, .hero-bottom-fade { display: none !important; }
#rsvp { z-index: auto; }
#historia .from-petroleum, #vestimenta .from-petroleum { display: none; }
#historia, #vestimenta, #galeria, #entonces { overflow: hidden; }

/* Degradado de entrada: del color de la sección anterior al propio, con
   curva ease-in-out (sin bandas). Ocupa el margen superior reservado, por lo
   que nunca hay texto encima. */
:root { --blend-h: clamp(150px, 26vh, 300px); }
.fx-blend {
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: var(--blend-h);
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgb(var(--fx-prev)) 0%,
    rgb(var(--fx-prev) / 0.987) 8.1%,
    rgb(var(--fx-prev) / 0.951) 15.5%,
    rgb(var(--fx-prev) / 0.896) 22.5%,
    rgb(var(--fx-prev) / 0.825) 29%,
    rgb(var(--fx-prev) / 0.741) 35.3%,
    rgb(var(--fx-prev) / 0.648) 41.2%,
    rgb(var(--fx-prev) / 0.55) 47.1%,
    rgb(var(--fx-prev) / 0.45) 52.9%,
    rgb(var(--fx-prev) / 0.352) 58.8%,
    rgb(var(--fx-prev) / 0.259) 64.7%,
    rgb(var(--fx-prev) / 0.175) 71%,
    rgb(var(--fx-prev) / 0.104) 77.5%,
    rgb(var(--fx-prev) / 0.049) 84.5%,
    rgb(var(--fx-prev) / 0.013) 91.9%,
    rgb(var(--fx-prev) / 0) 100%);
}
section.fx-has-blend, footer.fx-has-blend { position: relative; padding-top: calc(var(--blend-h) + 1.5rem) !important; }
.fx-has-blend > *:not(.fx-blend):not(.absolute) { position: relative; z-index: 2; }

/* Fotos de fondo que se disuelven arriba y abajo */
#historia > .absolute.inset-0,
#vestimenta > .absolute.inset-0 {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
/* Hero a pantalla completa (móvil / tablet vertical): la foto se funde hacia abajo */
#heroSlideshow {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  #heroSlideshow { -webkit-mask-image: none; mask-image: none; }
}

/* ── Títulos de sección ─────────────────────────────────────── */
section h2.font-display {
  color: rgb(var(--rgb-ink));
  letter-spacing: 0.01em;
  line-height: 1.1;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem) !important;
}
section h2.font-display em { font-size: 1.12em; color: rgb(var(--rgb-accent)); }

/* Etiqueta superior: texto pequeño con líneas que se dibujan */
section span.text-gold.uppercase.block {
  display: inline-flex !important;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-sans) !important;
  font-weight: 400;
  font-size: 0.66rem !important;
  letter-spacing: 0.36em !important;
  color: rgb(var(--rgb-accent)) !important;
}
section span.text-gold.uppercase.block::before,
.text-center span.text-gold.uppercase.block::after {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease-out) 0.2s;
}
section span.text-gold.uppercase.block::before { transform-origin: right center; }
.text-center span.text-gold.uppercase.block::after { transform-origin: left center; }
section span.text-gold.uppercase.block.fx-in::before,
.text-center span.text-gold.uppercase.block.fx-in::after { transform: scaleX(1); }

/* Títulos: las palabras aparecen con un fundido lento */
.fx-split .fx-w { display: inline-block; }
.fx-split .fx-w > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 1.4s var(--ease-soft), transform 1.6s var(--ease-out);
  transition-delay: calc(var(--i) * 90ms);
}
.fx-split.fx-in .fx-w > span { opacity: 1; transform: none; }

/* Párrafos y bloques que suben con suavidad */
.fx-rise { opacity: 0; transform: translateY(24px); transition: opacity 1.4s var(--ease-soft), transform 1.6s var(--ease-out); }
.fx-rise.fx-in { opacity: 1; transform: none; }

/* Imágenes: fundido con leve acercamiento */
.fx-soft { opacity: 0; transition: opacity 1.8s var(--ease-soft); }
.fx-soft.fx-in { opacity: 1; }

/* Imágenes con parallax dentro de su marco (lo mueve effects.js) */
.fx-inner-parallax { overflow: hidden; }
.fx-inner-parallax img { will-change: transform; transform: scale(1.12); }

/* Grano de papel, fijo y casi imperceptible */
.fx-grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.17  0 0 0 0 0.15  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Desplazamiento suave (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ── Loader: solo blanco ────────────────────────────────────── */
.page-loader { background: rgb(44 37 20) !important; }
.loader-particles { display: none !important; }
.loader-name { font-family: var(--font-serif) !important; font-weight: 400 !important; letter-spacing: 0.04em !important; color: var(--c-white) !important; }
.loader-ampersand { margin: 0 0.3em; color: var(--c-white) !important; font-size: 1.3em !important; }
.loader-subtitle { font-size: 1.5rem !important; color: rgb(255 255 255 / 0.85) !important; }
.loader-overline { font-family: var(--font-sans) !important; font-weight: 400; color: rgb(255 255 255 / 0.75) !important; }
.loader-line { background: var(--c-white) !important; opacity: 0.3; }
.loader-rings-svg circle { stroke: rgb(255 255 255 / 0.8) !important; }
#loaderGuestGreeting { color: rgb(255 255 255 / 0.8) !important; }
.loader-enter-btn {
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--c-white) !important;
  border: 1px solid rgb(255 255 255 / 0.55) !important;
  box-shadow: none !important;
  padding: 1rem 2.1rem !important;
  transition: background 0.8s var(--ease-soft), color 0.8s var(--ease-soft) !important;
}
.loader-enter-btn:hover { background: var(--c-white) !important; color: var(--c-ink) !important; }
.loader-enter-btn .loader-btn-text {
  font-family: var(--font-sans) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase;
  color: inherit !important;
}
.loader-btn-shimmer { display: none !important; }

/* ── Hero: solo letras blancas ──────────────────────────────── */
.hero-slide { object-position: var(--fp, center 35%); transform: scale(1.06); transition: opacity 2.8s var(--ease-soft), transform 12s linear !important; }
.hero-slide.active { transform: scale(1); }
.hero-bg-overlay {
  background: linear-gradient(180deg, rgb(26 21 11 / 0.5) 0%, rgb(26 21 11 / 0.22) 35%, rgb(26 21 11 / 0.45) 68%, rgb(26 21 11 / 0.8) 100%) !important;
}
.hero-content .hero-text-item { transition-duration: 1.8s !important; }
#heroContent, #heroContent * { color: var(--c-white) !important; -webkit-text-fill-color: var(--c-white) !important; }
#heroContent .hero-text-item { text-shadow: 0 1px 20px rgb(0 0 0 / 0.25); }
.hero-kicker { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: -0.4rem 0 0.4rem; }
#heroContent > p.text-gold { font-weight: 400; opacity: 0.9; }
.hero-h1 { gap: 0.05em !important; }
.hero-h1-line1, .hero-h1-line2 {
  font-family: var(--font-serif) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0.02em !important;
  background: none !important;
}
.hero-h1-line1 { font-size: clamp(3.6rem, 15vw, 8rem) !important; line-height: 1 !important; }
.hero-h1-line2 { font-size: clamp(3.6rem, 15vw, 8rem) !important; line-height: 1 !important; }
.hero-amp { font-size: 0.9em; margin-right: 0.1em; display: inline-block; }
.hero-venue { font-family: var(--font-sans) !important; font-weight: 400 !important; letter-spacing: 0.32em !important; font-size: 0.68rem !important; }
.hero-venue::before, .hero-venue::after { content: ''; display: inline-block; width: 26px; height: 1px; vertical-align: middle; margin: 0 0.8rem; background: var(--c-white); opacity: 0.45; }

/* Insignia 25 · Bodas de Plata */
.fx-silver-badge { display: inline-flex; flex-direction: column; align-items: center; margin: 0 auto 1.1rem; line-height: 1; }
.fx-silver-num { font-family: var(--font-serif); font-weight: 400; font-size: clamp(3rem, 10vw, 4.4rem); letter-spacing: 0.04em; }
.fx-silver-text {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
}
.fx-silver-text::before, .fx-silver-text::after { content: ''; width: 22px; height: 1px; background: var(--c-white); opacity: 0.45; }

/* Cuenta regresiva */
.countdown-item {
  background: none !important;
  border: 0 !important;
  border-left: 1px solid rgb(255 255 255 / 0.25) !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 0.25rem 1.15rem !important;
  min-width: 0 !important;
}
.countdown-item:first-child { border-left: 0 !important; }
#countdown { gap: 0 !important; }
.countdown-num { font-family: var(--font-serif) !important; font-weight: 400 !important; font-size: clamp(2rem, 6vw, 2.8rem) !important; font-variant-numeric: tabular-nums; line-height: 1.05; }
.countdown-item > span:last-child { font-family: var(--font-sans) !important; letter-spacing: 0.22em !important; opacity: 0.75; }
.countdown-num.fx-tick { animation: fxTick 1s var(--ease-soft); }
@keyframes fxTick { from { opacity: 0.3; } to { opacity: 1; } }

/* Escritorio / tablet horizontal: hero partido (texto | foto vertical) */
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .hero-section { align-items: stretch !important; background: rgb(44 37 20) !important; }
  #heroSlideshow {
    left: 50% !important;
    top: 1.5rem !important; right: 1.5rem !important; bottom: 1.5rem !important;
    overflow: hidden;
  }
  .hero-bg-overlay { background: linear-gradient(180deg, transparent 70%, rgb(26 21 11 / 0.25)) !important; }
  #heroContent {
    width: 50% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: clamp(2.5rem, 6vw, 7rem) !important;
    padding-right: clamp(2rem, 4vw, 4rem) !important;
    padding-top: 4.5rem !important;
    align-self: flex-start;
    text-align: left !important;
  }
  #heroContent .hero-venue { margin-bottom: 2rem !important; }
  #heroContent #countdownWrap { margin-bottom: 2.25rem !important; }
  #heroContent .hero-h1 { align-items: flex-start !important; text-align: left !important; }
  #heroContent .fx-silver-badge { align-items: flex-start; }
  #heroContent #countdown, #heroContent > .flex { justify-content: flex-start !important; }
  #heroContent .countdown-item:first-child { padding-left: 0 !important; }
  .hero-h1-line1, .hero-h1-line2 { font-size: clamp(4rem, 7vw, 7rem) !important; }
  .hero-h1-line2 { padding-left: 0.9em; }
  .hero-venue::before { display: none; }
  .hero-venue::after { width: 48px; }
}

/* Pétalos (pocos y lentos, solo en el hero) */
#fxPetals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }

/* ── Botones ────────────────────────────────────────────────── */
a.bg-gold, button.bg-gold, .rsvp-btn, .sticky-bar-cta, .wish-submit-btn,
.rsvp-modal-btn-confirm, .success-modal-btn, .fx-btn--solid {
  background: rgb(var(--rgb-ink)) !important;
  color: rgb(var(--rgb-bg)) !important;
  border: 1px solid rgb(var(--rgb-ink)) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-sans) !important;
  font-weight: 400 !important;
  letter-spacing: 0.26em !important;
  transition: background 0.8s var(--ease-soft), color 0.8s var(--ease-soft), border-color 0.8s var(--ease-soft) !important;
}
a.bg-gold:hover, button.bg-gold:hover, .rsvp-btn:hover, .wish-submit-btn:hover,
.rsvp-modal-btn-confirm:hover, .success-modal-btn:hover, .fx-btn--solid:hover {
  background: transparent !important;
  color: rgb(var(--rgb-ink)) !important;
  transform: none !important;
}
.gold-glow:hover, .gold-glow:focus-visible { box-shadow: none !important; transform: none !important; }
#heroContent a.bg-gold { background: transparent !important; border-color: rgb(255 255 255 / 0.7) !important; }
#heroContent a.bg-gold:hover { background: var(--c-white) !important; color: var(--c-ink) !important; -webkit-text-fill-color: var(--c-ink) !important; }

.fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background 0.8s var(--ease-soft), color 0.8s var(--ease-soft), border-color 0.8s var(--ease-soft);
}
.fx-btn .material-icons { font-size: 17px; }
.fx-btn--ghost { color: rgb(var(--rgb-ink)); border: 1px solid var(--line-strong); }
.fx-btn--ghost:hover { border-color: rgb(var(--rgb-ink)); }

/* ── Header / barra inferior ────────────────────────────────── */
.main-header a.font-script { font-family: var(--font-script) !important; font-size: 1.8rem; color: var(--c-white) !important; }
.main-header.scrolled { background: rgb(44 37 20 / 0.94) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }
#particlesLayer { display: none !important; }
.sticky-bar { background: rgb(44 37 20 / 0.94) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.sticky-bar-cta { background: var(--c-ivory) !important; color: var(--c-ink) !important; border-color: var(--c-ivory) !important; }
.scroll-progress { background: var(--c-dusty) !important; height: 2px !important; }

/* ── Formularios ─────────────────────────────────────────────── */
.rsvp-form-container {
  background: rgb(var(--rgb-bg2)) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.rsvp-input { border-bottom: 1px solid var(--line-strong) !important; font-family: var(--font-sans); font-weight: 300; color: rgb(var(--rgb-ink)) !important; transition: border-color 0.8s var(--ease-soft) !important; }
.rsvp-input:focus { border-color: rgb(var(--rgb-ink)) !important; box-shadow: none; }
.rsvp-input::placeholder { color: rgb(var(--rgb-ink) / 0.45) !important; }

/* FAQ como lista editorial */
.faq-bento { display: flex !important; flex-direction: column; gap: 0 !important; border-bottom: 1px solid var(--line-strong); }
.faq-card {
  background: none !important;
  border: 0 !important;
  border-top: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}
.faq-card-icon-wrap { display: none !important; }
.faq-card-q { font-family: var(--font-serif) !important; font-weight: 400 !important; font-size: clamp(1.3rem, 3.4vw, 1.7rem) !important; letter-spacing: 0.01em; color: rgb(var(--rgb-ink)) !important; }
.faq-card-a { color: rgb(var(--rgb-ink) / 0.78) !important; font-family: var(--font-sans); font-weight: 300; }
.faq-card::before, .faq-card::after { display: none !important; }

/* Cronograma: tarjetas de papel marfil sobre oliva */
.tl-card {
  --rgb-ink: 44 37 20; --rgb-accent: 138 116 82; --rgb-accent2: 103 103 61;
  --champagne: rgb(44 37 20); --gold: rgb(138 116 82); --gold-light: rgb(103 103 61);
  background: #faf5ec !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 22px 36px -26px rgb(0 0 0 / 0.5) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.tl-card::before, .tl-card::after { display: none !important; }
.tl-card-icon { background: none !important; border: 1px solid rgb(44 37 20 / 0.16) !important; border-radius: 50% !important; box-shadow: none !important; }
.tl-card-icon .material-icons { color: var(--c-olive) !important; }
.tl-card-time { font-family: var(--font-serif) !important; font-weight: 400 !important; font-size: 2.4rem !important; line-height: 1.05 !important; color: var(--c-clay) !important; }
.tl-card-title { font-family: var(--font-serif) !important; font-weight: 400 !important; font-size: 1.45rem !important; color: rgb(44 37 20) !important; }
.tl-card-desc { color: rgb(44 37 20 / 0.72) !important; font-weight: 300; }
.tl-card-step { font-family: var(--font-sans) !important; color: rgb(44 37 20 / 0.4) !important; }

/* Mensajes */
.wish-card { border-radius: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgb(var(--rgb-bg2)) !important; border-color: var(--line) !important; }

/* ── Ceremonia ──────────────────────────────────────────────── */
.fx-date-hero { display: flex; flex-direction: column; align-items: center; margin: 0 auto 3rem; line-height: 1; }
.fx-date-day, .fx-date-month { font-family: var(--font-sans); font-weight: 400; font-size: 0.66rem; letter-spacing: 0.44em; text-transform: uppercase; color: rgb(var(--rgb-ink) / 0.6); }
.fx-date-num { font-family: var(--font-serif); font-weight: 400; font-size: clamp(6.5rem, 26vw, 11rem); color: rgb(var(--rgb-ink)); margin: 0.06em 0 0; }

.fx-times {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  gap: 0 !important;
  margin-bottom: 3rem !important;
}
@media (min-width: 640px) { .fx-times { grid-template-columns: 1fr 1fr; } }
.fx-time-card { padding: 2.2rem 0.5rem; text-align: center; }
.fx-time-card + .fx-time-card { border-top: 1px solid var(--line-strong); }
@media (min-width: 640px) { .fx-time-card + .fx-time-card { border-top: 0; border-left: 1px solid var(--line-strong); } }
.fx-time-icon { display: none !important; }
.fx-time-hour { display: block; font-family: var(--font-serif); font-weight: 400; font-size: clamp(3.2rem, 10vw, 4.6rem); line-height: 1; color: rgb(var(--rgb-ink)); }
.fx-time-label { display: block; margin-top: 0.8rem; font-family: var(--font-sans); font-weight: 400; font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: rgb(var(--rgb-accent)); }
.fx-time-note { margin-top: 0.5rem; font-size: 0.92rem; color: rgb(var(--rgb-ink) / 0.7); }

.fx-venue-card { display: grid; grid-template-columns: 1fr; background: rgb(var(--rgb-bg2)); border: 1px solid var(--line); overflow: hidden; }
@media (min-width: 1024px) { .fx-venue-card { grid-template-columns: 1fr 1.1fr; } }
.fx-venue-info { padding: 2.25rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 1024px) { .fx-venue-info { padding: 3.25rem; } }
.fx-venue-overline { font-family: var(--font-sans); font-weight: 400; font-size: 0.66rem; letter-spacing: 0.36em; text-transform: uppercase; color: rgb(var(--rgb-accent2)); }
.fx-venue-name { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.3rem, 6.5vw, 3.2rem); line-height: 1.05; margin: 0.6rem 0 1.1rem; color: rgb(var(--rgb-ink)); }
.fx-venue-address { display: flex; gap: 0.6rem; align-items: flex-start; color: rgb(var(--rgb-ink) / 0.75); font-size: 0.98rem; line-height: 1.65; margin-bottom: 1.75rem; }
.fx-venue-address .material-icons { color: rgb(var(--rgb-accent)); font-size: 19px; margin-top: 3px; }
.fx-venue-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fx-venue-map { position: relative; min-height: 300px; }
.fx-venue-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.55) sepia(0.15) contrast(0.95); transition: filter 1.4s var(--ease-soft); }
.fx-venue-card:hover .fx-venue-map iframe { filter: grayscale(0.1); }

/* ── Entonces & Ahora ───────────────────────────────────────── */
.fx-then-now-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .fx-then-now-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; } }
.fx-compare {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  box-shadow: 0 30px 60px -36px rgb(0 0 0 / 0.5);
}
@media (min-width: 640px) and (max-width: 899px) { .fx-compare { max-width: 380px; } }
.fx-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-compare-now { object-position: 50% 40%; }
.fx-compare-then { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.fx-compare-then img { filter: sepia(0.3) contrast(1.04) saturate(0.85); object-position: 50% 30%; }
.fx-compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: rgb(255 255 255 / 0.9); pointer-events: none; }
.fx-compare-handle .material-icons {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 18px;
  color: var(--c-ink);
  background: var(--c-ivory);
}
.fx-compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.fx-compare-tag {
  position: absolute; bottom: 0.9rem;
  font-family: var(--font-sans); font-weight: 400;
  font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.6);
  pointer-events: none;
}
.fx-compare-tag--then { left: 1rem; }
.fx-compare-tag--now { right: 1rem; }

.fx-memories-title { font-size: clamp(2.4rem, 7vw, 3.4rem); color: rgb(var(--rgb-ink)); text-align: center; margin-bottom: 1.5rem; line-height: 1.2; }
.fx-polaroids { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.5rem, 2vw, 1rem); }
.fx-polaroid {
  margin: 0;
  padding: 0.45rem 0.45rem 0.4rem;
  background: #fffdfa;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 16px 28px -18px rgb(0 0 0 / 0.4);
  rotate: var(--r, 0deg);
  transition: rotate 1.2s var(--ease-out), translate 1.2s var(--ease-out);
  cursor: zoom-in;
}
.fx-polaroid:hover { rotate: 0deg; translate: 0 -4px; position: relative; z-index: 2; }
.fx-polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: sepia(0.12); display: block; }
.fx-polaroid figcaption { color: #4a3f2a; font-size: clamp(0.95rem, 2.8vw, 1.25rem); text-align: center; padding-top: 0.35rem; line-height: 1.15; }
.fx-years { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.fx-years > div { padding: 1.25rem 0.25rem; }
.fx-years > div + div { border-left: 1px solid var(--line-strong); }
.fx-years-num { display: block; font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.05; font-variant-numeric: tabular-nums; color: rgb(var(--rgb-accent)); }
.fx-years-label { display: block; margin-top: 0.45rem; font-family: var(--font-sans); font-weight: 400; font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgb(var(--rgb-ink) / 0.6); }

.fx-viewer {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center; padding: 1.5rem;
  background: rgb(44 37 20 / 0.95);
  opacity: 0; transition: opacity 0.8s var(--ease-soft); cursor: zoom-out;
}
.fx-viewer.open { opacity: 1; }
.fx-viewer img { max-width: min(92vw, 1100px); max-height: 80vh; }
.fx-viewer p { margin-top: 1rem; text-align: center; font-size: 1.9rem; color: var(--c-ivory); }

/* ── Historia ───────────────────────────────────────────────── */
.historia-img-wrap { border-radius: 0 !important; border: 0 !important; }
.historia-img-wrap img { object-position: 50% 45%; }
.historia-img-overlay { display: none; }
#historia .space-y-5 { font-family: var(--font-sans) !important; font-weight: 300 !important; font-size: 1.05rem !important; line-height: 1.85 !important; }
#historia .space-y-5 p:first-child::first-letter { font-family: var(--font-serif); color: rgb(var(--rgb-accent)); }
#preludio p.font-display { font-size: clamp(1.9rem, 5vw, 3rem) !important; line-height: 1.35 !important; color: rgb(var(--rgb-ink)) !important; }

/* ── Momento: díptico + versículo sobre oliva ───────────────── */
.fx-moment { position: relative; padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3rem) 0; }
.fx-diptych {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  max-width: 1180px;
  margin: 0 auto;
}
.fx-frame { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; }
.fx-frame img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; transform: scale(1.12); }
.fx-frame--a img { object-position: 50% 62%; }
.fx-frame--b img { object-position: 50% 66%; }
.fx-frame--b { display: none; }
@media (min-width: 768px) {
  .fx-diptych { grid-template-columns: 1fr 1fr; }
  .fx-frame--b { display: block; margin-top: clamp(2rem, 6vw, 5rem); }
  .fx-frame { aspect-ratio: 3 / 4; }
}
.fx-moment .pareja-versiculo { background: none !important; padding-top: clamp(3rem, 7vw, 5rem) !important; padding-bottom: clamp(5rem, 10vw, 8rem) !important; }
.pareja-versiculo-text { font-size: clamp(2rem, 5.5vw, 3.2rem) !important; line-height: 1.3 !important; color: rgb(var(--rgb-ink)) !important; }
.pareja-versiculo-ref { font-family: var(--font-sans) !important; letter-spacing: 0.3em !important; color: rgb(var(--rgb-accent)) !important; }
.pareja-versiculo-line { background: var(--line-strong) !important; }

/* Fondos con foto: parallax leve */
.fx-parallax { will-change: transform; transform: scale(1.1); }

/* ── Galería ────────────────────────────────────────────────── */
.sg-card { border-radius: 0 !important; }
.sg-card img { object-position: 50% 40%; }
.sg-grain { display: none; }

/* ── Video ──────────────────────────────────────────────────── */
.fx-video { position: relative; max-width: 400px; margin: 0 auto; aspect-ratio: 9 / 16; overflow: hidden; background: #211b0e; box-shadow: 0 30px 60px -36px rgb(0 0 0 / 0.6); }
@media (min-width: 640px) and (max-width: 1023px) { .fx-video { max-width: 360px; } }
.fx-video.fx-video--wide { max-width: 100%; aspect-ratio: 16 / 9; }
.fx-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-video::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 0.5)); transition: opacity 0.8s var(--ease-soft); }
.fx-video.is-playing::after, .fx-video.is-playing .fx-video-caption { opacity: 0; }
.fx-video-play {
  position: absolute; top: 50%; left: 50%;
  width: 74px; height: 74px; margin: -37px 0 0 -37px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.8);
  background: rgb(255 255 255 / 0.1);
  color: var(--c-white);
  cursor: pointer; z-index: 2;
  transition: background 0.8s var(--ease-soft), color 0.8s var(--ease-soft), opacity 0.8s;
}
.fx-video-play .material-icons { font-size: 32px; margin-left: 3px; }
.fx-video-play:hover { background: var(--c-white); color: var(--c-ink); }
.fx-video-ring { display: none; }
.fx-video.is-playing .fx-video-play { opacity: 0; pointer-events: none; }
.fx-video-caption { position: absolute; left: 0; right: 0; bottom: 1.2rem; text-align: center; font-size: 2.4rem; color: var(--c-white); z-index: 1; transition: opacity 0.8s; pointer-events: none; }

/* ── Regalos ────────────────────────────────────────────────── */
.fx-gift h2 { margin: 1rem 0 1.75rem; }
.fx-gift-text { max-width: 36rem; margin: 0 auto; font-size: clamp(1rem, 2.4vw, 1.12rem); line-height: 1.85; color: rgb(var(--rgb-ink) / 0.85); }
.fx-gift-sign { margin-top: 2rem; font-size: 2rem; color: rgb(var(--rgb-accent)); }

/* ── Footer ─────────────────────────────────────────────────── */
footer blockquote { color: rgb(var(--rgb-ink)) !important; line-height: 1.3 !important; }
footer .text-gold\/75 { color: rgb(var(--rgb-accent)) !important; font-family: var(--font-serif) !important; }
.fx-footer-silver { margin-top: 0.75rem; font-family: var(--font-sans); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.36em; text-transform: uppercase; color: rgb(var(--rgb-ink) / 0.7); }

/* ── Accesibilidad: menos movimiento ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 1s ease !important; transform: none !important; }
  #fxPetals { display: none !important; }
  .fx-split .fx-w > span, .fx-rise, .fx-soft { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .fx-frame img, .fx-inner-parallax img { transform: none !important; }
  section span.text-gold.uppercase.block::before, .text-center span.text-gold.uppercase.block::after { transform: none !important; }
}

/* ── Tamaños de la itálica de acento (Cormorant es de ojo pequeño) ── */
.font-display.italic { font-size: clamp(1.2rem, 2.8vw, 1.5rem); }
#preludio p.font-display.italic { font-size: clamp(1.8rem, 4.6vw, 2.9rem) !important; line-height: 1.35 !important; font-weight: 400 !important; }
footer blockquote.font-display.italic { font-size: clamp(1.9rem, 4.6vw, 3rem) !important; font-weight: 400 !important; }
.hero-kicker { font-size: clamp(1.45rem, 4vw, 2rem) !important; }
.hero-amp { font-weight: 400 !important; font-size: 1em !important; }
.loader-ampersand { font-weight: 400 !important; font-size: 1.1em !important; }
.loader-subtitle { font-size: 1.3rem !important; }
.pareja-versiculo-text { font-size: clamp(1.7rem, 4.4vw, 2.7rem) !important; font-weight: 400 !important; line-height: 1.35 !important; }
.fx-memories-title { font-size: clamp(1.9rem, 5vw, 2.6rem) !important; }
.fx-polaroid figcaption { font-size: clamp(0.85rem, 2.4vw, 1.05rem) !important; font-weight: 600 !important; }
.fx-gift-sign { font-size: 1.6rem !important; }
.fx-video-caption { font-size: 1.9rem !important; }
.fx-viewer p { font-size: 1.5rem !important; }
/* Monograma del encabezado en Italiana */
.main-header a.font-script { font-family: var(--font-serif) !important; font-size: 1.35rem !important; letter-spacing: 0.12em !important; }

/* ── Pantalla de entrada (loader) con foto de fondo ─────────── */
.fx-loader-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.fx-loader-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 46% 36%;
  filter: brightness(0.42) saturate(0.85);
  transform: scale(1.08);
  opacity: 0;
  transition: opacity 2.4s var(--ease-soft), transform 14s var(--ease-out);
}
.fx-loader-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgb(26 21 11 / 0.15), rgb(26 21 11 / 0.65));
}
.page-loader.animating .fx-loader-photo img { opacity: 1; transform: scale(1); }
.page-loader .loader-center, .page-loader .loader-line { position: relative; z-index: 2; }
.page-loader .loader-line { position: absolute; }
.loader-rings-container { display: none !important; }
.loader-name { font-size: clamp(2.6rem, 11vw, 4.6rem) !important; }
.loader-overline { letter-spacing: 0.42em !important; font-size: 0.66rem !important; }
.loader-subtitle { margin-top: 0.6rem !important; }
.loader-enter-btn { margin-top: 2.2rem !important; }
/* Salida: el contenido sube y se desvanece; la foto se aclara */
.page-loader.done .loader-center { transform: translateY(-18px); opacity: 0; transition: transform 1.2s var(--ease-out), opacity 0.9s var(--ease-soft); }
.page-loader.done .fx-loader-photo img { transform: scale(1.04); filter: brightness(0.6) saturate(0.9); transition: transform 1.2s var(--ease-out), filter 1.2s var(--ease-soft); }

/* ── Ventana de acceso al panel (contraseña) ────────────────── */
.password-modal { background: rgb(26 21 11 / 0.7) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.fx-login-card {
  background: var(--c-ivory) !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 2.75rem 2.25rem 2.25rem !important;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.6);
}
.fx-login-card .material-icons { font-size: 26px !important; color: var(--c-clay) !important; }
.fx-login-card h3 { font-size: 1.9rem !important; color: var(--c-ink) !important; margin-bottom: 0.4rem !important; }
.fx-login-card p { color: rgb(44 37 20 / 0.6) !important; }
.fx-login-card input {
  border: 0 !important;
  border-bottom: 1px solid rgb(44 37 20 / 0.3) !important;
  border-radius: 0 !important;
  color: var(--c-ink) !important;
  font-family: var(--font-sans) !important;
  letter-spacing: 0.2em;
  transition: border-color 0.6s var(--ease-soft) !important;
}
.fx-login-card input:focus { border-bottom-color: var(--c-ink) !important; }
.fx-login-card input::placeholder { color: rgb(44 37 20 / 0.4); letter-spacing: 0.1em; }
.fx-login-card button {
  border-radius: 0 !important;
  font-family: var(--font-sans) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase;
  transition: background 0.6s var(--ease-soft), color 0.6s var(--ease-soft), border-color 0.6s var(--ease-soft) !important;
}
#pwdCancel { color: rgb(44 37 20 / 0.7) !important; border-color: rgb(44 37 20 / 0.25) !important; }
#pwdCancel:hover { color: var(--c-ink) !important; border-color: var(--c-ink) !important; }
#pwdSubmit { background: var(--c-ink) !important; color: var(--c-ivory) !important; border: 1px solid var(--c-ink) !important; }
#pwdSubmit:hover { background: transparent !important; color: var(--c-ink) !important; }
.loader-ampersand { font-size: clamp(2.2rem, 9vw, 3.8rem) !important; line-height: 1 !important; margin: 0 0.18em !important; }

/* Fondos de tono medio (bronce, salvia): los textos semitransparentes ganan contraste */
[data-theme="bronze"] .text-champagne\/40, [data-theme="bronze"] .text-champagne\/50, [data-theme="bronze"] .text-champagne\/60,
[data-theme="sage"] .text-champagne\/40, [data-theme="sage"] .text-champagne\/50, [data-theme="sage"] .text-champagne\/60,
[data-theme="sand"] .text-champagne\/40, [data-theme="sand"] .text-champagne\/50, [data-theme="sand"] .text-champagne\/60 {
  color: rgb(var(--rgb-ink) / 0.82) !important;
}

/* Video Save the Date: fecha bajo el título */
.fx-video-caption span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-sans) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
}

/* ============================================================
   HERO — misma composición editorial en todas las pantallas
   Escritorio: texto | foto enmarcada.  Móvil/tablet: foto enmarcada
   arriba y texto debajo, sobre el fondo liso (nunca sobre la foto).
   ============================================================ */

/* Marco de la foto: filete fino interior + indicador de fotos */
#heroSlideshow::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgb(255 255 255 / 0.35);
  pointer-events: none;
  z-index: 3;
}
.fx-slide-dots {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 4;
}
.fx-slide-dots span {
  position: relative;
  width: 26px; height: 2px;
  background: rgb(255 255 255 / 0.35);
  overflow: hidden;
}
.fx-slide-dots span::after {
  content: '';
  position: absolute; inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
.fx-slide-dots span.is-done::after { transform: scaleX(1); }
.fx-slide-dots span.is-active::after { transform: scaleX(1); transition: transform var(--slide-ms, 7000ms) linear; }

/* Escritorio: texto centrado en vertical en su columna */
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .hero-section { justify-content: center !important; }
  #heroContent { align-self: flex-start; padding-top: 3rem !important; padding-bottom: 3rem; }
  #heroContent .hero-h1 { margin-bottom: 1.4rem !important; }
}

/* Móvil y tablet: foto a pantalla completa; el texto se apoya en la parte
   baja sobre un velo degradado, así las caras quedan despejadas arriba y
   las letras siempre se leen. */
@media (max-width: 1023px), (max-aspect-ratio: 5/4) {
  .hero-section {
    justify-content: flex-end !important;
    align-items: center !important;
    min-height: 100svh !important;
    padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 3rem) !important;
  }
  #heroSlideshow::after { display: none; }              /* sin filete a pantalla completa */
  .fx-slide-dots { top: calc(env(safe-area-inset-top, 0px) + 1.6rem); bottom: auto; left: auto; right: 1.25rem; transform: none; }
  .fx-slide-dots span { width: 16px; }
  /* Velo: suave arriba (encabezado), despejado en las caras, denso donde va el texto */
  .hero-bg-overlay {
    background: linear-gradient(180deg,
      rgb(26 21 11 / 0.45) 0%,
      rgb(26 21 11 / 0) 16%,
      rgb(26 21 11 / 0) 30%,
      rgb(26 21 11 / 0.35) 44%,
      rgb(26 21 11 / 0.72) 62%,
      rgb(26 21 11 / 0.88) 80%,
      rgb(26 21 11 / 0.94) 100%) !important;
  }
  #heroContent {
    padding: 0 1.5rem !important;
    max-width: 560px !important;
  }
  #heroContent .hero-text-item {
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 2px 18px rgb(0 0 0 / 0.45);
  }
  .fx-silver-badge { margin-bottom: 0.7rem; }
  .fx-silver-num { font-size: clamp(2.4rem, 8.5vw, 3.2rem); }
  .hero-kicker { margin: 0 0 0.2rem !important; }
  .hero-h1-line1, .hero-h1-line2 { font-size: clamp(3.1rem, 13vw, 5.2rem) !important; }
  .hero-h1-line2 { margin-top: -0.05em; }
  #heroContent .hero-venue { margin-bottom: 1.5rem !important; }
  #heroContent #countdownWrap { margin-bottom: 1.6rem !important; }
  #heroContent .countdown-item { border-left-color: rgb(255 255 255 / 0.35) !important; }
  #heroContent a.bg-gold { background: rgb(26 21 11 / 0.25) !important; border-color: rgb(255 255 255 / 0.85) !important; }
}
/* Tablet vertical: algo más de aire */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-section { padding-bottom: 4.5rem !important; }
}

/* ── Legibilidad en fondos de tono medio (arena, salvia, bronce) ──
   Texto pequeño a color pleno y con más peso; sin transparencias. */
[data-theme="sand"], [data-theme="sage"], [data-theme="bronze"] { --line-strong: rgb(var(--rgb-ink) / 0.4); }
[data-theme="sand"] [class*="text-champagne/"],
[data-theme="sage"] [class*="text-champagne/"],
[data-theme="bronze"] [class*="text-champagne/"] { color: rgb(var(--rgb-ink) / 0.9) !important; }
[data-theme="sand"] section span.text-gold.uppercase.block, [data-theme="sand"] span.text-gold.uppercase.block,
[data-theme="sage"] span.text-gold.uppercase.block,
[data-theme="bronze"] span.text-gold.uppercase.block {
  color: rgb(var(--rgb-ink)) !important;
  font-weight: 500 !important;
  font-size: 0.72rem !important;
}
[data-theme="sand"] .font-display.italic,
[data-theme="sage"] .font-display.italic,
[data-theme="bronze"] .font-display.italic { color: rgb(var(--rgb-ink) / 0.9) !important; font-weight: 600 !important; }
[data-theme="sand"] p, [data-theme="sage"] p, [data-theme="bronze"] p { font-weight: 400; }
[data-theme="sand"] .fx-years-num { color: rgb(var(--rgb-ink)) !important; }
[data-theme="sand"] .fx-years-label,
[data-theme="sage"] .fx-years-label { color: rgb(var(--rgb-ink) / 0.85) !important; font-weight: 500 !important; font-size: 0.62rem !important; }
[data-theme="sand"] .fx-memories-title { color: rgb(var(--rgb-ink)) !important; font-weight: 600 !important; }
[data-theme="sand"] .fx-polaroid figcaption { color: #2c2514 !important; }

/* ============================================================
   LUGAR + MAPA — integrado al tema
   ============================================================ */
.fx-venue-card {
  background: rgb(var(--rgb-bg2)) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 40px 80px -60px rgb(44 37 20 / 0.55);
}
@media (min-width: 1024px) { .fx-venue-card { grid-template-columns: 0.95fr 1.05fr !important; } }
.fx-venue-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0 1.75rem;
  margin: 0 0 2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.fx-venue-facts dt { font-family: var(--font-sans); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgb(var(--rgb-accent)); }
.fx-venue-facts dd { margin: 0.35rem 0 0; font-family: var(--font-serif); font-size: 1.25rem; color: rgb(var(--rgb-ink)); white-space: nowrap; }
@media (max-width: 420px) { .fx-venue-facts { grid-template-columns: 1fr 1fr; gap: 0.9rem 1.5rem; } .fx-venue-facts > div:first-child { grid-column: 1 / -1; } }
.fx-btn--link {
  background: none; border: 0; padding-left: 0.4rem; padding-right: 0.4rem;
  color: rgb(var(--rgb-ink) / 0.8);
  cursor: pointer;
}
.fx-btn--link .fx-copy-label { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.fx-btn--link:hover { color: rgb(var(--rgb-ink)); }
.fx-btn--link.is-copied { color: rgb(var(--rgb-accent2)); }

/* Mapa con el tono de la página */
.fx-venue-map { min-height: 360px !important; overflow: hidden; background: #e7dccb; }
@media (min-width: 1024px) { .fx-venue-map { min-height: 460px !important; } }
.fx-venue-map iframe { filter: grayscale(1) contrast(0.92) brightness(1.06) !important; transition: filter 1.2s var(--ease-soft) !important; }
.fx-venue-card:hover .fx-venue-map iframe { filter: grayscale(1) contrast(0.92) brightness(1.06) !important; }
.fx-map-tint {
  position: absolute; inset: 0;
  pointer-events: none;
  background: rgb(202 173 136 / 0.55);
  mix-blend-mode: multiply;
  transition: opacity 1.2s var(--ease-soft);
}
.fx-map-frame { position: absolute; inset: 12px; border: 1px solid rgb(44 37 20 / 0.28); pointer-events: none; }
.fx-map-badge {
  position: absolute; left: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  background: rgb(44 37 20 / 0.92);
  color: #f6f0e4;
  font-family: var(--font-sans); font-weight: 500;
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  pointer-events: none;
}
.fx-map-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c-dusty); }
.fx-map-pulse::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--c-dusty);
  animation: fxPulse 2.8s var(--ease-soft) infinite;
}
@keyframes fxPulse { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

/* Entrada animada (effects.js añade .fx-in) */
.fx-venue-card .fx-v-item { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease-soft), transform 1.3s var(--ease-out); }
.fx-venue-card .fx-v-item:nth-child(2) { transition-delay: 0.1s; }
.fx-venue-card .fx-v-item:nth-child(3) { transition-delay: 0.2s; }
.fx-venue-card .fx-v-item:nth-child(4) { transition-delay: 0.3s; }
.fx-venue-card .fx-v-item:nth-child(5) { transition-delay: 0.4s; }
.fx-venue-card .fx-venue-map { clip-path: inset(0 0 0 100%); transition: clip-path 1.6s var(--ease-out) 0.15s; }
.fx-venue-card.fx-in .fx-v-item { opacity: 1; transform: none; }
.fx-venue-card.fx-in .fx-venue-map { clip-path: inset(0 0 0 0); }
@media (max-width: 1023px) {
  .fx-venue-card .fx-venue-map { clip-path: inset(100% 0 0 0); }
  .fx-venue-card.fx-in .fx-venue-map { clip-path: inset(0 0 0 0); }
}

/* ============================================================
   MOMENTOS DEL DÍA — agenda vertical con eje que se rellena
   ============================================================ */
.fx-agenda {
  --rail-x: 50%;
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 1rem 0;
  max-width: 920px;
}
.fx-agenda-rail {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--rail-x);
  width: 1px;
  margin-left: -0.5px;
  background: rgb(var(--rgb-ink) / 0.22);
}
.fx-agenda-fill {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgb(var(--rgb-ink));
  transform-origin: top center;
  transform: scaleY(var(--fill, 0));
}
.fx-mr {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: start;
  padding: 2.4rem 0;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.2s var(--ease-soft), transform 1.4s var(--ease-out);
}
.fx-mr.fx-in { opacity: 1; transform: none; }
.fx-mr-time { text-align: right; padding-top: 0.1rem; }
.fx-mr-hour {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  color: rgb(var(--rgb-ink));
  letter-spacing: 0.01em;
}
.fx-mr-word {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  color: rgb(var(--rgb-ink) / 0.9);
}
.fx-mr-node {
  justify-self: center;
  margin-top: 1.1rem;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 1px solid rgb(var(--rgb-ink) / 0.55);
  background: rgb(var(--rgb-bg));
  position: relative;
  z-index: 1;
  transition: background 0.8s var(--ease-soft), border-color 0.8s var(--ease-soft), transform 0.8s var(--ease-out);
}
.fx-mr.is-reached .fx-mr-node { background: rgb(var(--rgb-ink)); border-color: rgb(var(--rgb-ink)); transform: scale(1.15); }
.fx-mr--key .fx-mr-node { width: 17px; height: 17px; margin-top: 0.95rem; }
.fx-mr--key .fx-mr-node::after {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid rgb(var(--rgb-ink) / 0.35);
}
.fx-mr-body { padding-top: 0.35rem; max-width: 22rem; }
.fx-mr-num { font-family: var(--font-sans); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.34em; color: rgb(var(--rgb-ink) / 0.75); }
.fx-mr-title { margin: 0.45rem 0 0.5rem; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.15; color: rgb(var(--rgb-ink)); }
.fx-mr-desc { margin: 0; font-size: 0.98rem; line-height: 1.7; font-weight: 400; color: rgb(var(--rgb-ink) / 0.88); }
.fx-mr--key .fx-mr-title { font-size: clamp(1.8rem, 3.8vw, 2.4rem); }

/* Móvil: el eje va a la izquierda */
@media (max-width: 767px) {
  .fx-agenda { --rail-x: 22px; padding-left: 0; }
  .fx-mr { grid-template-columns: 44px 1fr; grid-template-areas: "node time" "node body"; padding: 1.8rem 0; }
  .fx-mr-node { grid-area: node; margin-top: 0.75rem; }
  .fx-mr-time { grid-area: time; text-align: left; }
  .fx-mr-body { grid-area: body; padding-top: 0.6rem; }
  .fx-mr-hour { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-mr, .fx-venue-card .fx-v-item { opacity: 1 !important; transform: none !important; }
  .fx-venue-card .fx-venue-map { clip-path: none !important; }
  .fx-map-pulse::after { animation: none; }
}

/* Hero vertical: la foto sube un poco para que las caras queden sobre el texto */
@media (max-width: 1023px), (max-aspect-ratio: 5/4) {
  .hero-slide { top: -12% !important; height: 112% !important; }
}

/* ============================================================
   NUESTRA HISTORIA — cita de fe
   ============================================================ */
.fx-faith { margin: 2.2rem 0 0; padding: 0.2rem 0 0.2rem 1.4rem; border-left: 1px solid rgb(var(--rgb-accent) / 0.7); }
.fx-faith blockquote {
  margin: 0;
  font-family: var(--font-script) !important;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 1.9rem) !important;
  line-height: 1.3 !important;
  color: rgb(var(--rgb-ink));
}
.fx-faith figcaption { margin-top: 0.5rem; font-family: var(--font-sans); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: rgb(var(--rgb-accent)); }

/* ============================================================
   EL LUGAR — ficha flotante sobre el mapa
   ============================================================ */
.fx-venue-card {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column;
}
.fx-venue-map { order: -1; min-height: 320px !important; }
.fx-venue-info {
  position: relative;
  z-index: 2;
  margin: -56px 1rem 0;
  padding: 2.1rem 1.6rem !important;
  background: #fbf7f0;
  border: 1px solid rgb(44 37 20 / 0.1);
  box-shadow: 0 30px 60px -36px rgb(44 37 20 / 0.45);
}
@media (min-width: 640px) { .fx-venue-info { margin: -72px 2rem 0; padding: 2.5rem 2.25rem !important; } }
@media (min-width: 1024px) {
  .fx-venue-card { display: grid !important; grid-template-columns: 1fr !important; }
  .fx-venue-map, .fx-venue-info { grid-area: 1 / 1; }
  .fx-venue-map { min-height: 580px !important; }
  .fx-venue-info {
    align-self: center;
    justify-self: start;
    width: min(470px, 44%);
    margin: 0 0 0 2.75rem;
    padding: 2.9rem 2.75rem !important;
  }
}
/* Entrada: el mapa se revela y la ficha sube */
.fx-venue-card .fx-venue-info { opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease-soft) 0.35s, transform 1.4s var(--ease-out) 0.35s; }
.fx-venue-card.fx-in .fx-venue-info { opacity: 1; transform: none; }
.fx-venue-card .fx-venue-map { clip-path: inset(0 0 100% 0) !important; transition: clip-path 1.6s var(--ease-out) !important; }
.fx-venue-card.fx-in .fx-venue-map { clip-path: inset(0 0 0 0) !important; }
.fx-venue-name { font-size: clamp(2.2rem, 5.5vw, 3rem) !important; }

/* ============================================================
   GALERÍA — columnas escalonadas con parallax suave
   ============================================================ */
.fx-gallery {
  --shift: 0px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.8vw, 1.4rem);
  padding-bottom: 14%;
}
@media (min-width: 768px) { .fx-gallery { grid-template-columns: repeat(3, 1fr); padding-bottom: 9%; } }
.fx-gitem {
  position: relative;
  display: block;
  padding: 0; border: 0; background: rgb(var(--rgb-bg2));
  aspect-ratio: 2 / 3;
  overflow: hidden;
  cursor: zoom-in;
  opacity: 0;
  translate: 0 30px;
  transition: opacity 1.2s var(--ease-soft), translate 1.4s var(--ease-out);
}
.fx-gitem.fx-in { opacity: 1; translate: 0 0; }
/* Escalonado: columna par (móvil) / columna central (escritorio) desplazada */
.fx-gitem:nth-child(2n) { transform: translateY(calc(16% + var(--shift))); }
@media (min-width: 768px) {
  .fx-gitem:nth-child(2n) { transform: none; }
  .fx-gitem:nth-child(3n+2) { transform: translateY(calc(12% + var(--shift))); }
}
.fx-gitem img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
  transition: transform 1.6s var(--ease-out), filter 1s var(--ease-soft);
}
.fx-gitem::after {
  content: '';
  position: absolute; inset: 10px;
  border: 1px solid rgb(255 255 255 / 0);
  transition: border-color 0.8s var(--ease-soft), inset 0.8s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .fx-gitem:hover img { transform: scale(1.05); filter: brightness(0.92); }
  .fx-gitem:hover::after { border-color: rgb(255 255 255 / 0.7); inset: 14px; }
}
.fx-gitem:focus-visible { outline: 2px solid rgb(var(--rgb-ink)); outline-offset: 3px; }
.fx-gallery-hint {
  margin-top: 1.5rem;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgb(var(--rgb-ink) / 0.8);
}

/* Visor de fotos */
.fx-lb {
  position: fixed; inset: 0;
  z-index: 9500;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgb(26 21 11 / 0.97);
  color: #f6f0e4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-soft), visibility 0.6s;
}
.fx-lb.is-open { opacity: 1; visibility: visible; }
.fx-lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1.25rem 0.75rem; }
.fx-lb-count { font-family: var(--font-serif); font-size: 1.3rem; letter-spacing: 0.08em; }
.fx-lb-count span { opacity: 0.55; }
.fx-lb-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgb(246 240 228 / 0.35);
  background: transparent;
  color: #f6f0e4;
  cursor: pointer;
  transition: background 0.5s var(--ease-soft), color 0.5s var(--ease-soft), border-color 0.5s;
}
.fx-lb-btn:hover { background: #f6f0e4; color: #2c2514; border-color: #f6f0e4; }
.fx-lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 1rem; touch-action: pan-y; }
.fx-lb-stage img {
  max-width: min(92vw, 900px);
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.5s var(--ease-soft), transform 0.7s var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
}
.fx-lb-stage img.is-ready { opacity: 1; transform: none; }
.fx-lb-prev, .fx-lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.fx-lb-prev { left: 1.25rem; }
.fx-lb-next { right: 1.25rem; }
@media (max-width: 767px) { .fx-lb-prev, .fx-lb-next { display: none; } }
.fx-lb-thumbs {
  display: flex; gap: 0.5rem;
  justify-content: center;
  padding: 1rem 1rem calc(env(safe-area-inset-bottom, 0px) + 1.1rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.fx-lb-thumbs::-webkit-scrollbar { display: none; }
.fx-lb-thumbs button {
  flex: 0 0 auto;
  width: 44px; height: 60px;
  padding: 0; border: 0;
  background: none;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.5s var(--ease-soft), outline-color 0.5s;
  outline: 1px solid transparent;
  outline-offset: 2px;
}
.fx-lb-thumbs button.is-active { opacity: 1; outline-color: #f6f0e4; }
.fx-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) {
  .fx-gitem { opacity: 1 !important; translate: none !important; }
  .fx-venue-card .fx-venue-info { opacity: 1 !important; transform: none !important; }
}
/* Ficha del lugar: fecha en su propia línea, horas debajo; mapa más alto */
.fx-venue-facts { grid-template-columns: 1fr 1fr !important; gap: 0.9rem 1.5rem !important; }
.fx-venue-facts > div:first-child { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .fx-venue-map { min-height: 680px !important; }
  .fx-venue-info { margin-top: 3rem; margin-bottom: 3rem; }
}

/* ============================================================
   HERO ESCRITORIO — foto a pantalla completa, composición de portada:
   nombres abajo a la izquierda; lugar, cuenta regresiva y botones abajo
   a la derecha. Las caras quedan despejadas en el tercio superior.
   ============================================================ */
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  .hero-section {
    justify-content: flex-end !important;
    align-items: stretch !important;
    padding: 0 0 clamp(2.5rem, 7vh, 4.75rem) !important;
  }
  #heroSlideshow { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }
  #heroSlideshow::after { display: block; inset: 22px; border-color: rgb(255 255 255 / 0.28); }
  .hero-slide { top: -18% !important; height: 118% !important; }
  .fx-slide-dots { top: 2.4rem; bottom: auto; left: auto; right: 2.75rem; transform: none; }
  .hero-bg-overlay {
    background: linear-gradient(180deg,
      rgb(26 21 11 / 0.42) 0%,
      rgb(26 21 11 / 0) 16%,
      rgb(26 21 11 / 0) 38%,
      rgb(26 21 11 / 0.4) 55%,
      rgb(26 21 11 / 0.78) 78%,
      rgb(26 21 11 / 0.92) 100%) !important;
  }
  #heroContent {
    display: grid !important;
    grid-template-columns: 1fr auto;
    column-gap: 4rem;
    align-items: end;
    width: 100% !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 0 clamp(3rem, 5.5vw, 5.5rem) !important;
    align-self: center;
    text-align: left !important;
  }
  #heroContent .hero-text-item { text-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 2px 22px rgb(0 0 0 / 0.4); }
  #heroContent > .fx-silver-badge   { grid-column: 1; grid-row: 1; align-items: flex-start; margin: 0 0 0.8rem; }
  #heroContent > p.text-gold        { grid-column: 1; grid-row: 2; margin: 0 0 0.6rem !important; }
  #heroContent > .hero-kicker       { grid-column: 1; grid-row: 3; margin: 0 0 0.2rem !important; }
  #heroContent > .hero-h1           { grid-column: 1; grid-row: 4; margin: 0 !important; align-items: flex-start !important; }
  #heroContent > .hero-venue        { grid-column: 2; grid-row: 2; justify-self: end; margin: 0 0 0.4rem !important; }
  #heroContent > #countdownWrap     { grid-column: 2; grid-row: 3; justify-self: end; margin: 0 0 1.6rem !important; }
  #heroContent > div.flex           { grid-column: 2; grid-row: 4; justify-self: end; align-self: end; justify-content: flex-end !important; padding: 0 !important; margin-bottom: 0.6rem; }
  #heroContent #countdown { justify-content: flex-end !important; }
  #heroContent .countdown-item:first-child { padding-left: 1.1rem !important; }
  #heroContent .countdown-item:last-child { padding-right: 0 !important; }
  .hero-venue::before { display: inline-block !important; }
  .hero-venue::after { display: none !important; }
  .hero-h1-line1, .hero-h1-line2 { font-size: clamp(4.4rem, 7.6vw, 8rem) !important; }
  .hero-h1-line2 { padding-left: 0.9em; }
  .fx-silver-num { font-size: clamp(2.8rem, 4vw, 3.6rem); }
}
@media (min-width: 1024px) and (min-aspect-ratio: 5/4) {
  /* Los nombres ocupan dos filas; la columna derecha baja a la franja inferior */
  #heroContent > .hero-h1       { grid-row: 4 / span 2; }
  #heroContent > .hero-venue    { grid-row: 3; align-self: end; margin-bottom: 1rem !important; }
  #heroContent > #countdownWrap { grid-row: 4; align-self: end; margin-bottom: 1.4rem !important; }
  #heroContent > div.flex       { grid-row: 5; }
  .hero-bg-overlay {
    background: linear-gradient(180deg,
      rgb(26 21 11 / 0.42) 0%,
      rgb(26 21 11 / 0) 15%,
      rgb(26 21 11 / 0) 34%,
      rgb(26 21 11 / 0.5) 52%,
      rgb(26 21 11 / 0.84) 72%,
      rgb(26 21 11 / 0.94) 100%) !important;
  }
}


/* ============================================================
   SELECTOR DE IDIOMA (ES / EN)
   ============================================================ */
.fx-lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgb(255 255 255 / 0.35); border-radius: 999px; }
.fx-lang button {
  min-width: 34px; height: 26px; padding: 0 0.55rem;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.16em;
  color: rgb(255 255 255 / 0.75);
  transition: background 0.5s var(--ease-soft), color 0.5s var(--ease-soft);
}
.fx-lang button.is-active { background: #fff; color: #2c2514; }
.fx-lang button:not(.is-active):hover { color: #fff; }
.fx-lang--loader { position: relative; z-index: 3; margin-top: 1.6rem; }
.main-header { justify-content: space-between !important; align-items: center !important; }
/* Indicador de fotos del hero, centrado arriba (deja libres el monograma y el idioma) */
.fx-slide-dots { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }

/* ============================================================
   INFORMACIÓN PRÁCTICA
   ============================================================ */
.fx-info-grid { display: grid; grid-template-columns: 1fr; gap: clamp(0.9rem, 2vw, 1.4rem); }
@media (min-width: 768px) { .fx-info-grid { grid-template-columns: 1fr 1fr; } }
.fx-info-card {
  position: relative;
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 2rem 1.75rem 2.1rem;
  background: #fbf7f0;
  color: #2c2514;
  border: 1px solid rgb(44 37 20 / 0.08);
  box-shadow: 0 24px 44px -34px rgb(44 37 20 / 0.55);
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.1s var(--ease-soft), transform 1.3s var(--ease-out);
}
.fx-info-card.fx-in { opacity: 1; transform: none; }
.fx-info-card:nth-child(2) { transition-delay: 0.1s; }
.fx-info-card:nth-child(3) { transition-delay: 0.2s; }
.fx-info-card:nth-child(4) { transition-delay: 0.3s; }
.fx-info-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgb(44 37 20 / 0.16);
  color: #67673d; font-size: 22px !important;
  margin-bottom: 0.4rem;
}
.fx-info-title { font-family: var(--font-serif); font-weight: 400; font-size: 1.65rem; line-height: 1.15; margin: 0; color: #2c2514; }
.fx-info-text { margin: 0; font-size: 0.97rem; line-height: 1.7; font-weight: 400; color: rgb(44 37 20 / 0.82); }
.fx-info-list { margin: 0.2rem 0 0; padding: 0; list-style: none; }
.fx-info-list li { position: relative; padding: 0.5rem 0 0.5rem 1.4rem; border-top: 1px solid rgb(44 37 20 / 0.1); font-size: 0.97rem; font-weight: 400; color: rgb(44 37 20 / 0.85); }
.fx-info-list li:first-child { border-top: 0; }
.fx-info-list li::before { content: ""; position: absolute; left: 0.15rem; top: 1.05rem; width: 6px; height: 6px; border-radius: 50%; background: #8a7452; }
.fx-info-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem; font-family: var(--font-sans); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: #2c2514; border-bottom: 1px solid currentColor; align-self: flex-start; padding-bottom: 3px; }
.fx-info-link .material-icons { font-size: 16px; transition: transform 0.6s var(--ease-out); }
.fx-info-link:hover .material-icons { transform: translateX(4px); }
.fx-info-btn { align-self: flex-start; margin-top: 0.6rem; background: #2c2514 !important; color: #fbf7f0 !important; border-color: #2c2514 !important; }
.fx-info-btn:hover { background: transparent !important; color: #2c2514 !important; }
.fx-weather-temp { margin: 0.1rem 0 0.2rem; font-family: var(--font-serif); font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1; color: #2c2514; }
.fx-info-note { margin: 0.3rem 0 0; font-family: var(--font-sans); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8a7452; }
.fx-info-card--weather.is-live .fx-info-note::before { content: "\25CF  "; color: #67673d; }

/* ============================================================
   LIBRO DE BENDICIONES CON VOZ
   ============================================================ */
.fx-voice {
  margin: 2.5rem auto 0;
  max-width: 520px;
  padding: 2.25rem 1.75rem 1.75rem;
  background: #fbf7f0;
  color: #2c2514;
  text-align: center;
  box-shadow: 0 30px 60px -40px rgb(0 0 0 / 0.6);
  --rgb-ink: 44 37 20; --line-strong: rgb(44 37 20 / 0.25);
}
.fx-voice-label { display: block; text-align: left; font-family: var(--font-sans); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: #8a7452; margin-bottom: 0.2rem; }
.fx-voice-name { color: #2c2514 !important; }
.fx-voice-stage { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin: 2rem 0 1rem; }
.fx-voice-rec {
  position: relative;
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: #2c2514; color: #fbf7f0;
  transition: transform 0.5s var(--ease-out), background 0.5s var(--ease-soft);
}
.fx-voice-rec .material-icons { font-size: 34px; }
.fx-voice-rec:hover { transform: scale(1.04); }
.fx-voice-rec:disabled { opacity: 0.35; cursor: not-allowed; }
.fx-voice-ring { position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgb(44 37 20 / 0.2); pointer-events: none; }
.fx-voice[data-state="recording"] .fx-voice-rec { background: #8a3c2c; }
.fx-voice[data-state="recording"] .fx-voice-ring { border-color: #8a3c2c; animation: fxRec 1.6s var(--ease-soft) infinite; }
@keyframes fxRec { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.fx-voice[data-state="sent"] .fx-voice-rec { background: #67673d; pointer-events: none; }
.fx-voice-time { margin: 0; font-family: var(--font-serif); font-size: 1.6rem; font-variant-numeric: tabular-nums; color: #2c2514; }
.fx-voice-hint { margin: 0; font-size: 0.9rem; color: rgb(44 37 20 / 0.75); }
.fx-voice-preview { width: 100%; margin-top: 0.6rem; }
.fx-voice-file { margin-top: 0.6rem; font-size: 0.85rem; }
.fx-voice-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.fx-voice-actions[hidden] { display: none; }
.fx-voice-actions .fx-btn--ghost { color: #2c2514; border-color: rgb(44 37 20 / 0.3); }
.fx-voice-actions .fx-btn--solid { background: #2c2514 !important; color: #fbf7f0 !important; border-color: #2c2514 !important; }
.fx-voice-actions .fx-btn--solid:hover { background: transparent !important; color: #2c2514 !important; }
.fx-voice-msg { min-height: 1.4em; margin: 1rem 0 0; font-size: 0.95rem; font-weight: 500; color: #67673d; }
.fx-voice-msg.is-error { color: #8a3c2c; }
.fx-voice-private { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0.6rem 0 0; font-family: var(--font-sans); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgb(44 37 20 / 0.6); }
.fx-voice-private .material-icons { font-size: 14px; }

/* Panel: lista de bendiciones de voz */
.fx-admin-voice { display: grid; gap: 0.75rem; }
.fx-admin-voice-empty { opacity: 0.5; font-size: 0.85rem; padding: 0.5rem 0 1rem; }
.fx-admin-voice-item { padding: 0.9rem 1rem; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 8px; }
.fx-admin-voice-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; margin-bottom: 0.5rem; }
.fx-admin-voice-head span { opacity: 0.6; font-size: 0.75rem; }
.fx-admin-voice-item audio { width: 100%; height: 36px; }
.fx-admin-voice-actions { display: flex; gap: 1rem; margin-top: 0.5rem; font-size: 0.75rem; }
.fx-admin-voice-actions a, .fx-admin-voice-actions button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; opacity: 0.75; text-decoration: underline; }
.fx-admin-voice-actions button { color: #f87171; }

/* ============================================================
   MODO DÍA DEL EVENTO
   ============================================================ */
.fx-live {
  position: fixed;
  left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 5.25rem);
  transform: translateX(-50%);
  z-index: 55;
  display: flex; align-items: center; gap: 0.9rem;
  width: max-content; max-width: calc(100% - 1.5rem);
  padding: 0.7rem 0.8rem 0.7rem 1.1rem;
  background: rgb(44 37 20 / 0.95);
  color: #f6f0e4;
  border: 1px solid rgb(202 173 136 / 0.35);
  border-radius: 999px;
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.6);
  animation: fxLiveIn 1s var(--ease-out) both;
}
.fx-live[hidden] { display: none; }
@keyframes fxLiveIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (min-width: 1024px) { .fx-live { bottom: auto; top: 1.1rem; } }
.fx-live-dot { position: relative; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #e05a47; }
.fx-live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid #e05a47; animation: fxPulse 2s var(--ease-soft) infinite; }
.fx-live-text { display: flex; flex-direction: column; line-height: 1.25; }
.fx-live-text strong { font-family: var(--font-sans); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: #caad88; }
.fx-live-text span { font-family: var(--font-serif); font-size: 1.05rem; }
.fx-live-actions { display: flex; gap: 0.4rem; }
.fx-live-actions:empty { display: none; }
.fx-live-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 0.8rem; border-radius: 999px;
  background: #f6f0e4; color: #2c2514;
  font-family: var(--font-sans); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
}
.fx-live-btn .material-icons { font-size: 15px; }
@media (max-width: 420px) { .fx-live-btn { padding: 0.45rem 0.6rem; } .fx-live-text span { font-size: 0.92rem; } }
/* Agenda: momento en curso */
.fx-mr--now .fx-mr-node { background: #e05a47 !important; border-color: #e05a47 !important; }
.fx-mr--now .fx-mr-node::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid #e05a47; animation: fxPulse 2s var(--ease-soft) infinite;
}
.fx-mr--now .fx-mr-num::after { content: " \00B7  AHORA"; color: #f6c9b8; letter-spacing: 0.3em; }
html[lang="en"] .fx-mr--now .fx-mr-num::after { content: " \00B7  NOW"; }
@media (prefers-reduced-motion: reduce) {
  .fx-info-card { opacity: 1 !important; transform: none !important; }
  .fx-voice[data-state="recording"] .fx-voice-ring, .fx-live-dot::after, .fx-mr--now .fx-mr-node::before { animation: none; }
}

/* Barra del día del evento: arriba, bajo el encabezado (no tapa botones) */
.fx-live { bottom: auto !important; top: calc(env(safe-area-inset-top, 0px) + 3.6rem) !important; }
@media (min-width: 1024px) { .fx-live { top: 1rem !important; } }

/* ── Cambio de idioma en el mismo lugar: fundido suave ─────── */
body { transition: opacity 0.32s cubic-bezier(0.25, 0.1, 0.25, 1); }
html.fx-i18n-out body { opacity: 0; }

/* ── Hero escritorio: sin filete blanco interior ───────────── */
#heroSlideshow::after { display: none !important; }

/* ── Monograma T & X ───────────────────────────────────────── */
.fx-mono {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  color: #fff;
  line-height: 1;
  text-decoration: none;
  transition: letter-spacing 0.8s var(--ease-out), opacity 0.6s var(--ease-soft);
}
.fx-mono-l { font-family: var(--font-serif); font-size: 1.7rem; letter-spacing: 0.04em; }
.fx-mono-amp {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  color: #caad88;
  transform: translateY(-0.04em);
  transition: transform 0.8s var(--ease-out);
}
.fx-mono:hover .fx-mono-amp { transform: translateY(-0.04em) rotate(-8deg); }
.fx-mono:hover { opacity: 0.9; }
@media (min-width: 1024px) { .fx-mono-l { font-size: 1.9rem; } .fx-mono-amp { font-size: 1.6rem; } }

/* ── Título del hero: que ninguna letra salte de línea ─────────
   app.js anima el título dividiendo cada letra en un <span> inline-block;
   cada uno es un punto de corte, y en pantallas estrechas la "e" de
   "Xime" bajaba sola a otra línea. Cada nombre va siempre en una línea. */
.hero-h1-line1, .hero-h1-line2 { white-space: nowrap; }
@media (max-width: 380px) {
  .hero-h1-line1, .hero-h1-line2 { font-size: clamp(2.6rem, 15vw, 3.1rem) !important; }
}

/* ── Link personal: tarjeta con el nombre del invitado ───────── */
.loader-guest-card {
  margin: 0.9rem auto 0.4rem;
  max-width: 22rem;
  padding: 0 1rem;
  text-align: center;
  animation: guestCardIn 1s cubic-bezier(0.16, 1, 0.3, 1) 2.6s both;
}
.loader-guest-card.hidden { display: none; }
.loader-guest-eyebrow {
  font-family: var(--font-sans) !important;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.7) !important;
}
.loader-guest-name {
  font-family: var(--font-script) !important;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.9rem, 7.5vw, 2.6rem);
  line-height: 1.15;
  color: var(--c-white);
  margin: 0.35rem 0 0.45rem;
  text-wrap: balance;
}
.loader-guest-name::after {
  content: '';
  display: block;
  width: 42px;
  height: 1px;
  margin: 0.6rem auto 0;
  background: rgb(255 255 255 / 0.45);
}
.loader-guest-passes {
  font-family: var(--font-sans) !important;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.75) !important;
}
@keyframes guestCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .loader-guest-card { animation: none; }
}

/* ============================================================
   PANEL DE GESTIÓN — misma paleta y tipografía de la invitación
   Lino de fondo, tinta #2C2514, acentos bronce/oliva,
   Italiana en títulos y nombres, Cormorant itálica en citas, Jost en texto.
   ============================================================ */
.adm {
  --adm-ink: 44 37 20;
  --adm-si: #67673d;     /* oliva  → asiste */
  --adm-no: #9b5a46;     /* terracota apagada → no asiste */
  --adm-pend: #8a7452;   /* bronce → pendiente */
  padding: 0 !important;
  display: block !important;
  color: rgb(var(--adm-ink));
  font-family: var(--font-sans);
}
.adm-panel {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 4rem;
  transform: translateY(16px);
  transition: transform 0.5s var(--ease-out);
}
.adm.open .adm-panel { transform: none; }
.adm .material-icons { font-size: 18px; }

/* Encabezado */
.adm-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding-bottom: 1.4rem; margin-bottom: 1.6rem;
  border-bottom: 1px solid rgb(var(--adm-ink) / 0.15);
}
.adm-eyebrow { font-size: 0.64rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--c-clay); margin: 0 0 0.5rem; }
.adm-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.3rem, 7vw, 3.6rem); line-height: 1; margin: 0; letter-spacing: 0.02em; }
.adm-title em { font-family: var(--font-script); font-style: italic; font-weight: 500; margin: 0 0.08em; }
.adm-sub { font-size: 0.8rem; letter-spacing: 0.06em; color: rgb(var(--adm-ink) / 0.6); margin: 0.6rem 0 0; }
.adm-head-actions { display: flex; gap: 0.5rem; }
.adm-icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgb(var(--adm-ink) / 0.2); border-radius: 50%;
  background: transparent; color: rgb(var(--adm-ink) / 0.75); cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.adm-icon-btn:hover { border-color: rgb(var(--adm-ink)); color: rgb(var(--adm-ink)); }

/* Resumen */
.adm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 2rem; }
.adm-stat { background: rgb(235 226 212); padding: 1rem 1.1rem 0.9rem; display: flex; flex-direction: column; gap: 0.35rem; }
.adm-stat-num { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; }
.adm-stat-label { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgb(var(--adm-ink) / 0.6); }
.adm-stat--si .adm-stat-num { color: var(--adm-si); }
.adm-stat--no .adm-stat-num { color: var(--adm-no); }
.adm-stat--pend .adm-stat-num { color: var(--adm-pend); }
.adm-progress { grid-column: 1 / -1; position: relative; height: 2px; background: rgb(var(--adm-ink) / 0.1); margin-top: 0.9rem; }
.adm-progress span { position: absolute; inset: 0 auto 0 0; background: var(--adm-si); transition: width 0.8s var(--ease-out); }
.adm-progress em { position: absolute; right: 0; top: 0.5rem; font-style: normal; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--adm-ink) / 0.55); }
@media (max-width: 639px) {
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Pestañas */
.adm-tabs {
  display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid rgb(var(--adm-ink) / 0.15); margin: 2.2rem 0 1.4rem;
}
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab {
  flex: none; background: none; border: 0; cursor: pointer; padding: 0.85rem 0;
  font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgb(var(--adm-ink) / 0.5); border-bottom: 1px solid transparent; margin-bottom: -1px;
  transition: color 0.3s, border-color 0.3s;
}
.adm-tab:hover { color: rgb(var(--adm-ink)); }
.adm-tab.is-active { color: rgb(var(--adm-ink)); border-bottom-color: rgb(var(--adm-ink)); }
.adm-count { color: var(--c-clay); letter-spacing: 0; margin-left: 0.2rem; }
.adm-pane[hidden] { display: none; }

/* Barra de herramientas */
.adm-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.9rem 1.2rem; margin-bottom: 1rem; }
.adm-toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.adm-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.adm .admin-filter {
  background: transparent; border: 1px solid rgb(var(--adm-ink) / 0.2); border-radius: 0;
  color: rgb(var(--adm-ink) / 0.7); cursor: pointer; padding: 0.5rem 0.9rem;
  font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.adm .admin-filter:hover { border-color: rgb(var(--adm-ink)); color: rgb(var(--adm-ink)); }
.adm .admin-filter.is-active { background: rgb(var(--adm-ink)); border-color: rgb(var(--adm-ink)); color: var(--c-ivory); }
.adm-search { display: flex; align-items: center; gap: 0.4rem; border-bottom: 1px solid rgb(var(--adm-ink) / 0.3); padding: 0.35rem 0; min-width: 190px; flex: 1; }
.adm-search .material-icons { color: rgb(var(--adm-ink) / 0.45); }
.adm-search input { background: transparent; border: 0; outline: 0; width: 100%; font-family: var(--font-sans); font-size: 0.85rem; color: rgb(var(--adm-ink)); }
.adm-search input::placeholder { color: rgb(var(--adm-ink) / 0.4); }
.adm-search:focus-within { border-bottom-color: rgb(var(--adm-ink)); }
.adm-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; white-space: nowrap;
  background: transparent; color: rgb(var(--adm-ink)); border: 1px solid rgb(var(--adm-ink)); border-radius: 0;
  padding: 0.6rem 1rem; font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.adm-btn:hover { background: rgb(var(--adm-ink)); color: var(--c-ivory); }
.adm-btn--solid { background: rgb(var(--adm-ink)); color: var(--c-ivory); }
.adm-btn--solid:hover { background: transparent; color: rgb(var(--adm-ink)); }
.adm-btn .material-icons { font-size: 16px; }

/* Lista de invitados */
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th {
  text-align: left; font-weight: 400; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgb(var(--adm-ink) / 0.55); padding: 0.8rem 0.6rem; border-bottom: 1px solid rgb(var(--adm-ink) / 0.25);
}
.adm-table th.adm-th-actions { text-align: right; }
.adm-table td { padding: 0.9rem 0.6rem; border-bottom: 1px solid rgb(var(--adm-ink) / 0.08); vertical-align: middle; }
.adm-table tbody tr { transition: background 0.2s; }
.adm-table tbody tr:hover { background: rgb(var(--adm-ink) / 0.03); }
.adm-name { display: block; font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.2; margin: 0; }
.adm-companions { display: block; font-size: 0.74rem; color: rgb(var(--adm-ink) / 0.55); margin-top: 0.2rem; }
.adm-num { font-family: var(--font-serif); font-size: 1.3rem; }
.adm-date { font-size: 0.76rem; color: rgb(var(--adm-ink) / 0.55); white-space: nowrap; }
.adm-empty { text-align: center; padding: 2.5rem 0 !important; font-family: var(--font-script); font-style: italic; font-size: 1.2rem; color: rgb(var(--adm-ink) / 0.5); }

/* Respuesta: Sí / No / — */
.adm-seg { display: inline-flex; border: 1px solid rgb(var(--adm-ink) / 0.2); }
.adm-seg button {
  background: transparent; border: 0; cursor: pointer; min-width: 2.4rem; padding: 0.4rem 0.6rem;
  font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.1em; color: rgb(var(--adm-ink) / 0.6);
  transition: background 0.2s, color 0.2s;
}
.adm-seg button + button { border-left: 1px solid rgb(var(--adm-ink) / 0.2); }
.adm-seg button:not(.on):hover { background: rgb(var(--adm-ink) / 0.07); color: rgb(var(--adm-ink)); }
.adm-seg button.on { color: var(--c-ivory); cursor: default; }
.adm-seg .on.adm-si { background: var(--adm-si); }
.adm-seg .on.adm-no { background: var(--adm-no); }
.adm-seg .on.adm-pend { background: var(--adm-pend); }
.adm-si-txt { color: var(--adm-si); }
.adm-no-txt { color: var(--adm-no); }
.adm-pend-txt { color: var(--adm-pend); }

/* Acciones por invitado */
.adm-actions { display: flex; gap: 0.35rem; justify-content: flex-end; align-items: center; }
.adm-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  height: 34px; min-width: 34px; padding: 0 0.5rem; cursor: pointer;
  background: transparent; border: 1px solid rgb(var(--adm-ink) / 0.15); border-radius: 0;
  color: rgb(var(--adm-ink) / 0.7); transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.adm-act .material-icons { font-size: 17px; }
.adm-act:hover { border-color: rgb(var(--adm-ink)); color: rgb(var(--adm-ink)); }
.adm-act--link { border-color: var(--adm-si); color: var(--adm-si); padding: 0 0.7rem; }
.adm-act--link:hover { background: var(--adm-si); color: var(--c-ivory); border-color: var(--adm-si); }
.adm-act-txt { font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; }
.adm-act--del:hover { border-color: var(--adm-no); color: var(--adm-no); }

/* Móvil: tarjetas */
.adm-cards { display: flex; flex-direction: column; }
.adm-card { padding: 1rem 0; border-bottom: 1px solid rgb(var(--adm-ink) / 0.1); }
.adm-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; }
.adm-pases { flex: none; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-clay); padding-top: 0.35rem; }
.adm-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: 0.8rem; }

/* Canciones, mensajes y deseos */
.adm-list { display: flex; flex-direction: column; }
.adm-item { display: flex; align-items: flex-start; gap: 0.9rem; padding: 1.1rem 0; border-bottom: 1px solid rgb(var(--adm-ink) / 0.1); }
.adm-item > div:first-of-type { flex: 1; min-width: 0; }
.adm-item-icon { color: var(--c-clay); margin-top: 0.2rem; }
.adm-item-title { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.adm-item-by { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-clay); margin: 0.45rem 0 0; }
.adm-quote { font-family: var(--font-script); font-style: italic; font-weight: 500; font-size: 1.2rem; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.adm .admin-wish-edit-form:not(.hidden) { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.adm-input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgb(var(--adm-ink) / 0.3); border-radius: 0;
  padding: 0.5rem 0; font-family: var(--font-sans); font-size: 0.9rem; color: rgb(var(--adm-ink)); outline: 0; resize: vertical;
}
.adm-input:focus { border-bottom-color: rgb(var(--adm-ink)); }
.adm .admin-wish-edit-form .adm-actions { justify-content: flex-start; }

/* Bendiciones de voz */
.adm .fx-admin-voice-item { border: 0; border-bottom: 1px solid rgb(var(--adm-ink) / 0.1); border-radius: 0; padding: 1.1rem 0; }
.adm .fx-admin-voice-head strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.25rem; }
.adm .fx-admin-voice-actions button { color: var(--adm-no); }
.adm .fx-admin-voice-empty { text-align: center; padding: 2.5rem 0; font-family: var(--font-script); font-style: italic; font-size: 1.2rem; opacity: 0.55; }

/* Ventanas del panel: agregar/editar invitado y confirmaciones */
#guestModal, #adminConfirmModal { background-color: rgb(26 21 11 / 0.6) !important; backdrop-filter: none !important; }
#guestModal .admin-modal-content, #adminConfirmModal .admin-confirm-box {
  background: var(--c-ivory); color: var(--c-ink); border: 0; border-radius: 0;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.6);
}
#guestModal .admin-modal-content { padding: clamp(1.4rem, 4vw, 2.4rem); }
#guestModalTitle { font-size: 2rem !important; color: var(--c-ink) !important; }
#guestModal label { color: var(--c-clay) !important; letter-spacing: 0.22em !important; }
#guestModal .admin-modal-input {
  background: transparent; border: 0; border-bottom: 1px solid rgb(44 37 20 / 0.3); border-radius: 0;
  color: var(--c-ink); padding: 0.55rem 0;
}
#guestModal .admin-modal-input:focus { border-bottom-color: var(--c-ink); }
#guestModal button { border-radius: 0 !important; font-family: var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.68rem !important; }
#guestModal button[type="submit"] { background: var(--c-ink) !important; color: var(--c-ivory) !important; }
#guestModal #copyInviteLinkBtn { background: transparent !important; border: 1px solid var(--c-olive) !important; color: var(--c-olive) !important; }
#guestModalClose { border-radius: 50% !important; }
.admin-confirm-box { padding: 2.2rem 1.8rem 1.6rem !important; }
.admin-confirm-icon { background: transparent !important; border-color: rgb(44 37 20 / 0.2) !important; }
.admin-confirm-icon .material-icons { color: var(--c-clay) !important; }
.admin-confirm-icon.danger .material-icons { color: #9b5a46 !important; }
.admin-confirm-title { font-family: var(--font-serif) !important; font-size: 1.8rem !important; font-weight: 400 !important; color: var(--c-ink) !important; }
.admin-confirm-msg { color: rgb(44 37 20 / 0.65) !important; font-size: 0.85rem !important; }
.admin-confirm-cancel, .admin-confirm-ok { border-radius: 0 !important; font-size: 0.68rem !important; letter-spacing: 0.2em !important; padding: 0.75rem 1rem !important; }
.admin-confirm-cancel { border: 1px solid rgb(44 37 20 / 0.25) !important; color: rgb(44 37 20 / 0.7) !important; }
.admin-confirm-ok { background: var(--c-ink) !important; border: 1px solid var(--c-ink) !important; color: var(--c-ivory) !important; }
.admin-confirm-ok.danger { background: #9b5a46 !important; border-color: #9b5a46 !important; }

/* ── Vestimenta: aviso "sin blanco" ─────────────────────────── */
.fx-no-white {
  display: inline-flex; align-items: center; gap: 1rem; text-align: left;
  margin: 0 auto; padding: 0.9rem 1.3rem;
  border: 1px solid rgb(var(--rgb-ink) / 0.35);
}
.fx-no-white-swatch {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
}
.fx-no-white-swatch::after {   /* línea diagonal de "prohibido" */
  content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px;
  background: #9b5a46; width: 2px; transform: translateX(-50%) rotate(45deg);
}
.fx-no-white p { margin: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.fx-no-white strong { font-weight: 400; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.fx-no-white span:not(.fx-no-white-swatch) { font-family: var(--font-script); font-style: italic; font-weight: 500; font-size: 1.15rem; opacity: 0.85; }

/* Panel en móvil: nada se sale de la pantalla */
.adm, .adm-panel { overflow-x: hidden; }
.adm-num { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 400; }
@media (max-width: 639px) {
  .adm-panel { padding-left: 1rem; padding-right: 1rem; }
  .adm-head { gap: 0.6rem; }
  .adm-icon-btn { width: 38px; height: 38px; }
  .adm-stat { padding: 0.8rem 0.9rem 0.75rem; }
  .adm-toolbar, .adm-toolbar-right { width: 100%; }
  .adm-filters { display: grid; grid-template-columns: repeat(4, auto); gap: 0.3rem; width: 100%; }
  .adm .admin-filter { width: auto; padding: 0.5rem 0.3rem; font-size: 0.58rem; letter-spacing: 0.08em; text-align: center; }
  .adm-search { flex: 1 1 100%; min-width: 0; }
  .adm-toolbar-right .adm-btn { flex: 1; justify-content: center; }
  .adm-card-foot .adm-actions { margin-left: auto; }
}

/* ============================================================
   CONFIRMACIÓN — pase, animación y tarjeta final
   Papel lino con tinta oscura: se lee bien sobre cualquier sección.
   ============================================================ */

/* ── Pase del invitado ── */
.rsvp-pass-card.fx-pass {
  background: var(--c-ivory) !important;
  color: var(--c-ink);
  border-radius: 0 !important;
  box-shadow: 0 30px 60px -30px rgb(26 21 11 / 0.55) !important;
  padding: 1.6rem clamp(1.2rem, 5vw, 2.4rem) 0;
  text-align: center;
  overflow: hidden;
}
.fx-pass::before {   /* filete interior, como una tarjeta impresa */
  content: '' !important; position: absolute; inset: 8px; height: auto !important;
  border: 1px solid rgb(44 37 20 / 0.18); background: none !important; pointer-events: none;
}
.fx-pass::after { display: none !important; }
.fx-pass-top {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--c-clay); padding: 0.2rem 0.4rem 0;
}
.fx-pass-couple { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: 0.06em; margin: 1.6rem 0 0; color: var(--c-ink); }
.fx-pass-couple em { font-family: var(--font-script); font-style: italic; font-weight: 500; }
.fx-pass-for { font-family: var(--font-script); font-style: italic; font-weight: 500; font-size: 1.15rem; color: rgb(44 37 20 / 0.7); margin: 1.3rem 0 0.3rem; }
.fx-pass .pass-guest-name {
  font-family: var(--font-serif) !important; font-weight: 400 !important;
  font-size: clamp(2rem, 7vw, 2.9rem) !important; line-height: 1.12 !important;
  color: var(--c-ink) !important; text-shadow: none !important; margin: 0 0 0.4rem !important;
  overflow-wrap: anywhere; text-wrap: balance;
}
.fx-pass .pass-companion-tag {
  font-family: var(--font-sans) !important; font-size: 0.7rem !important; letter-spacing: 0.22em !important;
  text-transform: uppercase; color: var(--c-clay) !important; margin: 0 !important;
}
.fx-pass .pass-companions { position: relative; margin: 1.2rem auto 0; padding: 0; border: 0; background: none; max-width: 24rem; }
.fx-pass .pass-companions-label { font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-clay) !important; margin-bottom: 0.5rem; }
.fx-pass .pass-companions-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1rem; }
.fx-pass .pass-companion-dot { display: none; }
.fx-pass .pass-companion-name { font-family: var(--font-script) !important; font-style: italic; font-weight: 500; font-size: 1.1rem !important; color: var(--c-ink) !important; }
.fx-pass .pass-companion-tipo { color: rgb(44 37 20 / 0.55) !important; font-size: 0.85em; }
.fx-pass-stub {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 1.8rem calc(-1 * clamp(1.2rem, 5vw, 2.4rem)) 0;
  border-top: 1px dashed rgb(44 37 20 / 0.3);
}
.fx-pass-stub::before, .fx-pass-stub::after {   /* muescas de troquel */
  content: ''; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: rgb(var(--rgb-bg));
}
.fx-pass-stub::before { left: -11px; }
.fx-pass-stub::after { right: -11px; }
.fx-pass-stub > div { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 0.4rem 1.2rem; }
.fx-pass-stub > div + div { border-left: 1px solid rgb(44 37 20 / 0.12); }
.fx-pass-stub span { font-family: var(--font-sans); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-clay); }
.fx-pass-stub strong { font-family: var(--font-sans); font-weight: 400; font-size: 0.92rem; color: var(--c-ink); letter-spacing: 0.04em; }
.rsvp-modal-note { font-family: var(--font-sans); font-size: 0.9rem; line-height: 1.6; text-align: center; opacity: 0.8; margin: 0; }

/* ── Animación al confirmar ── */
.fx-confirm {
  position: fixed; inset: 0; z-index: 9999; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-ivory); color: var(--c-ink);
  opacity: 0; transition: opacity 0.6s var(--ease-soft);
}
.fx-confirm.is-on { opacity: 1; }
.fx-confirm.is-out { opacity: 0; transition-duration: 0.8s; }
.fx-confirm-center { text-align: center; padding: 0 1.5rem; }
.fx-confirm-rings { width: min(220px, 56vw); height: auto; overflow: visible; }
.fx-confirm-rings circle {
  fill: none; stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 151; stroke-dashoffset: 151;
}
.fx-confirm-rings .r1 { stroke: var(--c-clay); }
.fx-confirm-rings .r2 { stroke: var(--c-olive); }
.fx-confirm.is-on .r1 { animation: fxRingDraw 1.1s var(--ease-out) 0.2s forwards, fxRingL 0.9s var(--ease-out) 1.2s both; }
.fx-confirm.is-on .r2 { animation: fxRingDraw 1.1s var(--ease-out) 0.45s forwards, fxRingR 0.9s var(--ease-out) 1.2s both; }
@keyframes fxRingDraw { to { stroke-dashoffset: 0; } }
@keyframes fxRingL { from { transform: translateX(-10px); } to { transform: translateX(0); } }
@keyframes fxRingR { from { transform: translateX(10px); } to { transform: translateX(0); } }
.fx-confirm-kicker, .fx-confirm-title, .fx-confirm-date { opacity: 0; transform: translateY(12px); }
.fx-confirm.is-on .fx-confirm-kicker { animation: fxRise 0.9s var(--ease-out) 1.3s forwards; }
.fx-confirm.is-on .fx-confirm-title  { animation: fxRise 1s var(--ease-out) 1.5s forwards; }
.fx-confirm.is-on .fx-confirm-date   { animation: fxRise 0.9s var(--ease-out) 1.8s forwards; }
@keyframes fxRise { to { opacity: 1; transform: none; } }
.fx-confirm-kicker { font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--c-clay); margin: 1.4rem 0 0.6rem; }
.fx-confirm-title { font-family: var(--font-serif); font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: 1; margin: 0; }
.fx-confirm-date { font-family: var(--font-script); font-style: italic; font-weight: 500; font-size: 1.35rem; color: rgb(44 37 20 / 0.7); margin: 0.9rem 0 0; }
.fx-confirm-petals i {
  position: absolute; top: -20px; height: auto; aspect-ratio: 1 / 1.5; border-radius: 80% 0 80% 0; opacity: 0;
  animation-name: fxPetal; animation-timing-function: cubic-bezier(0.3, 0.1, 0.6, 1); animation-fill-mode: forwards;
}
@keyframes fxPetal {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0); }
  10%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--drift), 105vh) rotate(var(--spin)); }
}

/* ── Tarjeta final: ¡Nos vemos pronto! / Gracias por responder ── */
.fx-done {
  position: relative; max-width: 520px; margin: 1.5rem auto 0; text-align: center;
  background: var(--c-ivory); color: var(--c-ink);
  padding: clamp(2.2rem, 6vw, 3.2rem) clamp(1.4rem, 6vw, 2.8rem);
  box-shadow: 0 30px 60px -30px rgb(26 21 11 / 0.55);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.fx-done::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgb(44 37 20 / 0.18); pointer-events: none; }
.fx-done.is-visible { opacity: 1; transform: none; }
.fx-done-mark { width: 54px; height: 54px; margin: 0 auto 1rem; display: block; }
.fx-done-mark circle, .fx-done-mark path { fill: none; stroke: var(--c-olive); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fx-done-mark circle { stroke-dasharray: 151; --len: 151; }
.fx-done-mark path { stroke-dasharray: 40; --len: 40; }
.fx-done.is-visible .fx-done-mark circle { animation: fxDrawIn 0.9s var(--ease-out) 0.3s both; }
.fx-done.is-visible .fx-done-mark path { animation: fxDrawIn 0.5s var(--ease-out) 1s both; }
@keyframes fxDrawIn { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .fx-done.is-visible .fx-done-mark circle, .fx-done.is-visible .fx-done-mark path { animation: none; } }
.fx-done-kicker { font-family: var(--font-sans); font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-clay); margin: 0 0 0.7rem; }
.fx-done-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.3rem, 8vw, 3.2rem); line-height: 1.05; margin: 0; color: var(--c-ink); }
.fx-done-name { font-family: var(--font-script); font-style: italic; font-weight: 500; font-size: clamp(1.35rem, 4.5vw, 1.65rem); line-height: 1.3; margin: 0.8rem 0 0; color: var(--c-ink); overflow-wrap: anywhere; }
.fx-done-msg { font-family: var(--font-sans); font-size: 0.95rem; line-height: 1.65; color: rgb(44 37 20 / 0.78); max-width: 24rem; margin: 1rem auto 0; }
.fx-done-details { margin: 1.6rem 0 0; border-top: 1px solid rgb(44 37 20 / 0.15); }
.fx-done-details > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid rgb(44 37 20 / 0.1); text-align: right; }
.fx-done-details span { font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-clay); flex: none; }
.fx-done-details strong { font-family: var(--font-sans); font-weight: 400; font-size: 0.9rem; color: var(--c-ink); }
.fx-done-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.6rem; cursor: pointer;
  background: var(--c-ink); color: var(--c-ivory); border: 1px solid var(--c-ink); border-radius: 0;
  padding: 0.85rem 1.4rem; font-family: var(--font-sans); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.4s, color 0.4s;
}
.fx-done-btn:hover { background: transparent; color: var(--c-ink); }
.fx-done-btn .material-icons { font-size: 17px; }
.fx-done-sign { font-family: var(--font-serif); font-size: 1.4rem; margin: 1.4rem 0 0; }
.fx-done-sign em { font-family: var(--font-script); font-style: italic; font-weight: 500; }

/* Panel: botón Link copiado */
.adm-act--link.is-copied { background: var(--adm-si); color: var(--c-ivory); }

/* Panel: campo de pases con − / + */
.adm-stepper { display: flex; align-items: stretch; max-width: 11rem; }
.adm-stepper .admin-modal-input { text-align: center; font-size: 1.1rem !important; -moz-appearance: textfield; }
.adm-stepper .admin-modal-input::-webkit-inner-spin-button, .adm-stepper .admin-modal-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#guestModal .adm-step {
  flex: none; width: 44px; background: transparent; color: var(--c-ink); cursor: pointer;
  border: 1px solid rgb(44 37 20 / 0.25); font-size: 1.1rem !important; letter-spacing: 0 !important; line-height: 1;
}
#guestModal .adm-step:hover { border-color: var(--c-ink); }
.adm-hint { font-family: var(--font-sans); font-size: 0.75rem; color: rgb(44 37 20 / 0.55); margin-top: 0.4rem; }
