/* ============================================================
   Inolvidia · motor de invitaciones · base.css
   Layout mobile-first, componentes neutros y clases públicas (§5).
   Los temas solo redefinen variables y decoran clases públicas.
   ============================================================ */

:root {
  /* — contrato de temas (§5) — */
  --bg: #fbf8f3;
  --bg-alt: #f3ede4;
  --surface: #ffffff;
  --ink: #2b2522;
  --ink-soft: #6d625b;
  --accent: #8b1e2d;
  --accent-2: #c8a96a;
  --accent-ink: #ffffff;
  --line: rgba(43, 37, 34, .14);
  --font-display: 'Cormorant Garamond', 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-script: 'Pinyon Script', 'Fraunces', Georgia, serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55));
  --hero-ink: #ffffff;
  --intro-bg: #efe6d8;
  --intro-ink: #2b2522;
  --seal: #8b1e2d;
  --pattern: none;
  --ornament: none;

  /* — internas del motor (no contractuales) — */
  --col: 560px;
  --gutter: clamp(20px, 6vw, 34px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --bar-space: 0px;
  --iris: linear-gradient(120deg, #FFD89B 0%, #FF8A7A 45%, #C58BFF 100%);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg-alt);
  background-image:
    radial-gradient(70vw 70vh at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(60vw 60vh at 100% 100%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
    var(--pattern);
  background-attachment: fixed;
}
html.is-locked, html.is-intro { overflow: hidden; }
html.has-actionbar { --bar-space: calc(84px + env(safe-area-inset-bottom)); scroll-padding-bottom: var(--bar-space); }
html.is-embed.has-actionbar { --bar-space: 0px; }

body.inv {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); text-underline-offset: .2em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.inv-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
/* destinos de foco programático (títulos): sin anillo */
[tabindex='-1']:focus, [tabindex='-1']:focus-visible { outline: none; }

.inv-icon { flex: none; }
/* Destellos (icons.js sparkle): el <svg> lleva fill="currentColor" y el <path> lo hereda, así que se
   colorean con «color» (como aquí abajo) y los temas pueden usar «color» o «fill» indistintamente. */

/* ---------- raíz, arranque y columna ---------- */
.inv-root { position: relative; min-height: 100vh; min-height: 100dvh; }

.inv-boot {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: var(--intro-bg);
}
.inv-boot__spark {
  width: 44px; height: 44px; fill: var(--accent-2);
  animation: invBoot 1.4s var(--ease-io) infinite;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent-2) 60%, transparent));
}
@keyframes invBoot {
  0%, 100% { transform: scale(.6) rotate(0); opacity: .45; }
  50% { transform: scale(1) rotate(45deg); opacity: 1; }
}

.inv-noscript { padding: 40px 24px; text-align: center; }

.inv-page {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--bg);
  overflow-x: clip;
  min-height: 100vh;
}

/* Capa de efectos de tema: fija y sin eventos de puntero */
.inv-fx {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden;
}

/* ---------- tipografía pública ---------- */
.inv-eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .85rem;
}
.inv-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.05rem, 8.6vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0 0 .9rem;
  text-wrap: balance;
}
.inv-script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; }
.inv-text {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
  max-width: 34em;
  margin: 0 auto;
  text-wrap: pretty;
}
.inv-text + .inv-text { margin-top: 1em; }

/* ---------- secciones ---------- */
.inv-main { position: relative; }
.inv-section {
  position: relative;
  padding: clamp(68px, 17vw, 100px) var(--gutter);
  text-align: center;
  background: var(--bg);
}
.inv-section.is-alt { background: var(--bg-alt); }
.inv-wrap { position: relative; max-width: 470px; margin: 0 auto; }
.inv-head { margin: 0 auto 2.2rem; max-width: 30rem; }
.inv-head .inv-text { font-size: .98rem; }

/* ---------- tarjetas y botones ---------- */
.inv-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
}

.inv-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .78em 1.35em;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 75%, transparent);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, opacity .25s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.inv-btn::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
@media (hover: hover) {
  .inv-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
  .inv-btn:hover::after { transform: translateX(120%); }
}
.inv-btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.inv-btn .inv-icon { width: 1.15em; height: 1.15em; }
.inv-btn--ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}
.inv-btn--ghost::after { background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--accent) 14%, transparent) 50%, transparent 70%); }
@media (hover: hover) { .inv-btn--ghost:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: none; } }
.inv-btn--lg { min-height: 56px; font-size: 1rem; padding-inline: 1.8em; }
.inv-btn:disabled, .inv-btn[aria-disabled='true'] { opacity: .6; cursor: not-allowed; transform: none; }
.inv-btn.is-draft {
  opacity: 1;
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 12%, var(--surface)) 0 10px, color-mix(in srgb, var(--accent) 6%, var(--surface)) 10px 20px);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: none;
}
/* WhatsApp con contraste AA. Relleno: blanco sobre #0E7A40 (5,4:1). Contorno: con tinta oscura
   (tema claro) el verde se oscurece a ~#0D7435 y con tinta clara (tema oscuro) es el verde de marca
   #25D366: ≥ 5,2:1 sobre las tarjetas de los 10 temas. Sin color relativo: mezcla con la tinta. */
.inv-btn--wa { --accent: #0e7a40; --accent-ink: #fff; }
.inv-btn--wa.inv-btn--ghost { --accent: color-mix(in oklab, #1faf55 45%, var(--ink)); }
@supports (color: oklch(from red l c h)) {
  .inv-btn--wa.inv-btn--ghost {
    --accent: oklch(from var(--ink) calc(.49 + .27 * clamp(0, (l - .5) * 10, 1)) calc(.13 + .07 * clamp(0, (l - .5) * 10, 1)) 150);
  }
}

/* ---------- revelado al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.inv-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
}
.inv-hero__content {
  position: relative;
  width: 100%;
  max-width: 30rem;
  padding: 0 var(--gutter) calc(92px + env(safe-area-inset-bottom));
}
.inv-hero__eyebrow { color: inherit; opacity: .92; margin-bottom: .4rem; }
/* Los nombres no se parten a media palabra: si la palabra más larga no cabe, el motor
   (fitWords en util.js, vía watchHeroTitle) reduce el tamaño de letra justo lo necesario. */
.inv-hero__title {
  font-size: clamp(3.3rem, 16.5vw, 5.4rem);
  line-height: 1;
  font-weight: 400;
  color: inherit;
  margin: .1em 0 .2em;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.inv-amp {
  display: block;
  font-size: .52em;
  line-height: 1.1;
  color: var(--accent-2);
  margin: -.05em 0 -.02em;
}
.inv-hero__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  opacity: .92;
  max-width: 22rem;
  margin: 0 auto;
}
.inv-hero__date {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 19.5rem;
  margin: 1.5rem auto .9rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.inv-hero__date-side {
  padding: .6em 0;
  border-block: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 55%, transparent);
  white-space: nowrap;
}
.inv-hero__date-day {
  font-family: var(--font-display);
  font-size: 3.3rem;
  font-weight: 400;
  line-height: .9;
  letter-spacing: 0;
}
.inv-hero__time { grid-column: 1 / -1; font-size: .7rem; letter-spacing: .3em; opacity: .85; }
.inv-hero__date--text { display: block; font-size: .78rem; line-height: 1.8; }
.inv-hero__date--text .inv-hero__time { display: block; }
.inv-hero__place {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .9rem; letter-spacing: .04em; opacity: .9;
}

/* Saludo del pase */
.inv-guest {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 20px 13px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.inv-guest__label { font-size: .64rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.inv-guest__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.inv-guest__passes { font-size: .82rem; opacity: .8; }
.inv-hero__guest { margin: 1.3rem auto 0; max-width: 21rem; }

/* Indicador para deslizar */
.inv-hero__cue {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: inherit; text-decoration: none;
  font-size: .62rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  opacity: 0;
  transition: opacity 1s var(--ease) 1.6s;
}
.is-revealed .inv-hero__cue { opacity: .8; }
.inv-hero__cue .inv-icon { animation: invCue 2s var(--ease-io) infinite; }
@keyframes invCue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Imagen */
.inv-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.inv-hero__img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1);
  transition: transform 2.6s var(--ease), opacity .8s;
}
.is-revealed .inv-hero__img { transform: scale(1); }
/* foto que aún no llega (red muy lenta, más allá de la espera del sobre): entra con un fundido, nunca de golpe */
.inv-hero__img:not(.is-loaded) { opacity: 0; }
.inv-hero__shade { position: absolute; inset: 0; background: var(--hero-overlay); }

/* Entrada del hero tras abrir la intro */
.hero-anim { opacity: 0; transform: translateY(18px); }
.is-revealed .hero-anim { animation: invUp 1.15s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * .11s); }
@keyframes invUp {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* — layout photo — */
.inv-hero--photo { color: var(--hero-ink); background: #1b1716; }
.inv-hero--photo .inv-guest {
  background: color-mix(in srgb, #000 22%, transparent);
  border-color: color-mix(in srgb, var(--hero-ink) 32%, transparent);
  color: var(--hero-ink);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.inv-hero--photo .inv-hero__title { text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
/* Sobre la foto el título usa --hero-ink aunque el tema coloree .inv-title o .inv-hero__title
   («html[data-theme] .inv-title» pesa 0-2-1; esto 0-4-0). Si un tema quiere otro color sobre la
   foto, lo declara con .inv-hero--photo en el selector (0-4-1 o más). */
.inv-hero--photo:not(.inv-hero--noimg) .inv-hero__title.inv-title { color: var(--hero-ink); }
.inv-hero--photo :focus-visible { outline-color: var(--hero-ink); }

/* — layout framed — */
.inv-hero--framed { justify-content: center; padding-top: clamp(56px, 12vh, 96px); }
.inv-hero--framed .inv-hero__media {
  position: relative; inset: auto; z-index: 0;
  width: min(72%, 320px);
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 22px 22px;
  padding: 8px;
  border: 1px solid var(--accent-2);
  overflow: visible;
}
.inv-hero--framed .inv-hero__img { border-radius: 999px 999px 16px 16px; }
.inv-hero--framed .inv-hero__shade { display: none; }
.inv-hero--framed .inv-hero__media::before {
  content: ''; position: absolute; inset: -16px; border-radius: 999px 999px 30px 30px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 45%, transparent);
}
.inv-hero--framed .inv-hero__content { padding-top: 22px; }
.inv-hero--framed .inv-hero__title { font-size: clamp(3rem, 14.5vw, 4.8rem); }

/* — layout split — */
.inv-hero--split { justify-content: flex-start; }
.inv-hero--split .inv-hero__media {
  position: relative; inset: auto; z-index: 0;
  width: 100%; height: 56svh; min-height: 320px;
  border-radius: 0 0 36px 36px;
}
.inv-hero--split .inv-hero__shade { background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .25)); }
.inv-hero--split .inv-hero__content {
  margin-top: -64px;
  width: calc(100% - 2 * var(--gutter));
  padding: 30px 22px calc(84px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.inv-hero--split .inv-hero__cue { bottom: 30px; }

/* — layout type y sin imagen — */
.inv-hero--type, .inv-hero--noimg {
  justify-content: center;
  background-color: var(--bg);
  background-image: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%), var(--pattern);
}
.inv-hero--type .inv-hero__content, .inv-hero--noimg .inv-hero__content { padding-top: 40px; }
.inv-hero--noimg.inv-hero--photo { color: var(--ink); }
.inv-hero--noimg.inv-hero--photo .inv-guest { background: var(--surface); color: var(--ink); border-color: var(--line); backdrop-filter: none; }
.inv-hero__art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.inv-hero__art::before {
  content: ''; position: absolute; left: 50%; top: 46%;
  width: min(120vw, 620px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent-2) 45%, transparent);
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent-2) 6%, transparent), inset 0 0 0 36px color-mix(in srgb, var(--accent-2) 5%, transparent);
}
.inv-hero__art-spark { position: absolute; color: var(--accent-2); animation: invTwinkle 3.2s var(--ease-io) infinite; }
.inv-hero__art-spark.s1 { width: 34px; top: 14%; left: 16%; }
.inv-hero__art-spark.s2 { width: 20px; top: 24%; right: 18%; animation-delay: -1.1s; }
.inv-hero__art-spark.s3 { width: 26px; bottom: 20%; right: 12%; animation-delay: -2.2s; }
@keyframes invTwinkle {
  0%, 100% { transform: scale(.55) rotate(0); opacity: .35; }
  50% { transform: scale(1) rotate(45deg); opacity: 1; }
}

/* ============================================================
   SECCIONES
   ============================================================ */

/* quote */
.inv-quote { position: relative; margin: 0 auto; max-width: 28rem; padding-top: 1.6rem; }
.inv-quote__mark {
  position: absolute; top: -.35em; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 6.5rem; line-height: 1;
  color: var(--accent-2); opacity: .55; pointer-events: none;
}
.inv-quote__text { margin: 0; }
.inv-quote__text p {
  position: relative;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.45rem, 6.2vw, 1.85rem); line-height: 1.42; color: var(--ink);
  text-wrap: balance;
}
.inv-quote__author {
  margin-top: 1.3rem; font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft);
}
.inv-quote__author::before { content: ''; display: block; width: 36px; height: 1px; background: var(--accent-2); margin: 0 auto .9rem; }

/* countdown */
.inv-countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-width: 400px; margin: 0 auto;
}
.inv-countdown__unit {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 4px 13px;
  border-radius: calc(var(--radius) - 4px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.inv-countdown__unit::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px;
  background: var(--line); opacity: .7;
}
.inv-countdown__num {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.6rem); font-weight: 500; line-height: 1;
  font-variant-numeric: tabular-nums lining-nums; color: var(--ink);
}
.inv-countdown__num.is-tick { animation: invTick .5s var(--ease); }
@keyframes invTick {
  0% { transform: translateY(-40%) rotateX(70deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.inv-countdown__lbl { font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.inv-countdown__date { margin-top: 1.5rem; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.inv-countdown__done { font-family: var(--font-display); font-size: 1.8rem; font-style: italic; color: var(--accent); }

/* story */
.inv-story__figure { position: relative; margin: 0 auto 2rem; width: min(82%, 340px); }
.inv-story__figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}
.inv-story__figure::after {
  content: ''; position: absolute; inset: -10px; border-radius: 999px 999px calc(var(--radius) + 8px) calc(var(--radius) + 8px);
  border: 1px solid color-mix(in srgb, var(--accent-2) 60%, transparent); pointer-events: none;
}
.inv-story__glow { position: absolute; inset: 40% -20% -10%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent); }
.inv-story__body .inv-text { margin-top: 1em; }
.inv-story__body .inv-text:first-child::first-letter {
  float: left; font-family: var(--font-display); font-size: 3.4em; line-height: .85; padding: .06em .1em 0 0; color: var(--accent);
}
.inv-story__body .inv-text:first-child { text-align: left; }
.inv-story__sig { margin-top: 1.6rem; font-size: 2.3rem; color: var(--accent); line-height: 1.1; }

/* people */
.inv-people { display: grid; gap: 30px; }
.inv-people__group { position: relative; padding-bottom: 30px; }
.inv-people__group:last-child { padding-bottom: 0; }
.inv-people__group:last-child .inv-people__spark { display: none; }
.inv-people__label { margin-bottom: .6rem; }
.inv-people__names li { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.45; color: var(--ink); }
.inv-people__spark { position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px; transform: translateX(-50%); color: var(--accent-2); }

/* events */
.inv-events { display: grid; gap: 22px; }
.inv-event { padding: 0 0 24px; overflow: hidden; text-align: center; }
.inv-event:not(.has-img) { padding-top: 30px; }
.inv-event__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 0; background: var(--bg-alt); }
.inv-event__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
@media (hover: hover) { .inv-event:hover .inv-event__media img { transform: scale(1.04); } }
.inv-event__icon {
  width: 60px; height: 60px; margin: 0 auto 12px; display: grid; place-items: center;
  border-radius: 50%; color: var(--accent);
  background: color-mix(in srgb, var(--accent-2) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent-2) 50%, transparent);
}
.inv-event.has-img .inv-event__icon { margin-top: -30px; position: relative; background: var(--surface); box-shadow: var(--shadow); }
.inv-event .inv-eyebrow { margin-bottom: .35rem; }
.inv-event__name { font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; line-height: 1.2; padding: 0 20px; }
.inv-event__meta { display: grid; gap: 6px; margin: 14px 22px 0; color: var(--ink-soft); font-size: .92rem; }
.inv-event__meta li { display: flex; align-items: flex-start; justify-content: center; gap: 8px; text-align: left; }
.inv-event__meta .inv-icon { margin-top: .22em; color: var(--accent); width: 17px; height: 17px; }
.inv-event__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 20px 0; }
.inv-event__map {
  position: relative; margin: 18px 20px 0; aspect-ratio: 16 / 10; border-radius: calc(var(--radius) - 6px); overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--line);
}
.inv-event__map.is-loading::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--surface) 70%, transparent) 50%, transparent 70%) 0 0 / 200% 100%;
  animation: invShimmer 1.4s linear infinite;
}
.inv-event__map iframe { width: 100%; height: 100%; border: 0; }
@keyframes invShimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* timeline */
.inv-timeline__wrap { position: relative; max-width: 400px; margin: 0 auto; text-align: left; }
.inv-timeline { position: relative; display: grid; gap: 6px; }
.inv-timeline::before {
  content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1.5px;
  background: linear-gradient(var(--accent-2), color-mix(in srgb, var(--accent-2) 20%, transparent));
  transform-origin: top; transform: scaleY(0); transition: transform 1.8s var(--ease) .2s;
}
.inv-timeline__wrap.is-in .inv-timeline::before { transform: scaleY(1); }
.inv-timeline__item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 10px 0; }
.inv-timeline__dot {
  position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  color: var(--accent); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent-2) 60%, transparent);
  box-shadow: 0 0 0 6px var(--bg), var(--shadow);
}
.inv-section.is-alt .inv-timeline__dot { box-shadow: 0 0 0 6px var(--bg-alt), var(--shadow); }
.inv-timeline__body { padding-top: 5px; }
.inv-timeline__time { font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.inv-timeline__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; line-height: 1.25; color: var(--ink); margin-top: 2px; }
.inv-timeline__text { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; margin-top: 3px; }

/* dresscode + chips */
.inv-dress { display: flex; flex-direction: column; align-items: center; }
.inv-dress__icon {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 14px;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent);
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
}
.inv-dress__code { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.1; color: var(--ink); margin-bottom: .6rem; }
.inv-dress__label { margin: 1.8rem 0 .8rem; font-size: .68rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
.inv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.inv-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 6px 14px 6px 8px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .86rem; color: var(--ink);
  transition: transform .35s var(--spring), box-shadow .35s;
}
.inv-chip__swatch { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .12); }
@media (hover: hover) { .inv-chip--color:hover { transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow); } }
.inv-chip--avoid { padding-left: 12px; color: var(--ink-soft); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-soft) 60%, transparent); }
.inv-chip--avoid .inv-icon { color: var(--accent); }
.reveal.is-in .inv-chip--color { animation: invPop .6s var(--spring) both; animation-delay: calc(.3s + var(--i, 0) * 70ms); }
@keyframes invPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* gallery */
.inv-section--gallery { padding-inline: 0; }
.inv-section--gallery .inv-head { padding-inline: var(--gutter); }
.inv-gallery__item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--bg-alt); border-radius: calc(var(--radius) - 4px); overflow: hidden;
}
.inv-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s; opacity: 0; }
.inv-gallery__item img.is-loaded { opacity: 1; }
@media (hover: hover) { .inv-gallery__item:hover img { transform: scale(1.05); } }
.inv-gallery--carousel { position: relative; }
.inv-gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.inv-gallery__track::-webkit-scrollbar { display: none; }
.inv-gallery__track .inv-gallery__item { aspect-ratio: 4 / 5; scroll-snap-align: center; box-shadow: var(--shadow); }
.inv-gallery__nav {
  position: absolute; top: calc(50% - 10px); transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); cursor: pointer; transition: opacity .3s, transform .3s var(--ease);
}
.inv-gallery__nav.is-prev { left: 10px; }
.inv-gallery__nav.is-next { right: 10px; }
.inv-gallery__nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .inv-gallery__nav { display: none; } }
.inv-gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.inv-gallery__dots span { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .4s var(--ease), background .4s; }
.inv-gallery__dots span.is-on { width: 22px; background: var(--accent); }
.inv-gallery--grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; gap: 10px; padding: 0 var(--gutter);
}
@media (min-width: 560px) { .inv-gallery--grid { grid-auto-rows: 230px; } }
.inv-gallery--grid .inv-gallery__item:nth-child(5n + 1) { grid-row: span 2; }
.inv-gallery--grid .inv-gallery__item:nth-child(5n + 4) { grid-column: span 2; }
.inv-gallery--polaroids { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; padding: 8px var(--gutter) 0; }
.inv-gallery--polaroids .inv-gallery__item {
  padding: 8px 8px 38px; background: #fff; border-radius: 4px; overflow: visible;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .28), 0 2px 4px rgba(0, 0, 0, .06);
  transform: rotate(var(--r, -3deg)); transition: transform .5s var(--spring), box-shadow .5s;
}
.inv-gallery--polaroids .inv-gallery__item:nth-child(3n + 2) { --r: 2.5deg; margin-top: 18px; }
.inv-gallery--polaroids .inv-gallery__item:nth-child(3n) { --r: -1.5deg; }
.inv-gallery--polaroids .inv-gallery__item.reveal { transform: translateY(28px) rotate(var(--r, -3deg)); }
.inv-gallery--polaroids .inv-gallery__item.reveal.is-in { transform: rotate(var(--r, -3deg)); }
@media (hover: hover) { .inv-gallery--polaroids .inv-gallery__item:hover { transform: rotate(0) scale(1.04); z-index: 2; } }
.inv-gallery--polaroids .inv-gallery__item img { aspect-ratio: 1; border-radius: 2px; }
.inv-gallery__cap {
  position: absolute; left: 8px; right: 8px; bottom: 6px; font-size: 1.25rem; line-height: 1.1; color: #3a3330;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* lightbox */
.inv-lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: 1fr auto;
  background: rgba(12, 10, 14, .94); color: #fff;
  opacity: 0; transition: opacity .3s var(--ease);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.inv-lightbox.is-in { opacity: 1; }
.inv-lightbox__stage { display: grid; place-items: center; padding: 64px 12px 8px; touch-action: pan-y; user-select: none; overflow: hidden; }
.inv-lightbox__img {
  max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 8px;
  opacity: 0; transform: scale(.96); transition: opacity .45s var(--ease), transform .45s var(--ease);
  -webkit-user-drag: none;
}
.inv-lightbox__img.from-r { transform: translateX(40px); }
.inv-lightbox__img.from-l { transform: translateX(-40px); }
.inv-lightbox__img.is-in { opacity: 1; transform: none; }
.inv-lightbox__bar { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); text-align: center; }
.inv-lightbox__count { font-size: .72rem; letter-spacing: .24em; opacity: .7; }
.inv-lightbox__cap { font-size: .95rem; opacity: .9; min-height: 1.4em; }
.inv-lightbox__btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
  transition: background .25s, transform .25s var(--ease);
}
.inv-lightbox__btn:hover { background: rgba(255, 255, 255, .18); }
.inv-lightbox__btn:focus-visible { outline-color: #fff; }
.inv-lightbox__btn.is-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.inv-lightbox__btn.is-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.inv-lightbox__btn.is-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (hover: none) { .inv-lightbox__btn.is-prev, .inv-lightbox__btn.is-next { display: none; } }

/* gifts y hotels */
.inv-gifts, .inv-hotels { display: grid; gap: 16px; text-align: left; }
.inv-gift, .inv-hotel { display: grid; grid-template-columns: 52px 1fr; gap: 6px 16px; align-items: start; padding: 22px 20px; }
.inv-gift__icon, .inv-hotel__icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: var(--accent);
  background: color-mix(in srgb, var(--accent-2) 16%, var(--surface));
}
.inv-gift__title, .inv-hotel__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.2; color: var(--ink); padding-top: 2px; }
.inv-gift__detail, .inv-hotel__detail { margin-top: 4px; font-size: .92rem; color: var(--ink-soft); white-space: pre-line; line-height: 1.55; }
.inv-gift__copy {
  margin-top: 10px; padding: 8px 12px; border-radius: 10px; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: .9rem; letter-spacing: .04em; color: var(--ink); background: var(--bg-alt); border: 1px dashed var(--line);
  overflow-wrap: anywhere; user-select: all;
}
.inv-gift__actions, .inv-hotel__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inv-gift__actions .inv-btn, .inv-hotel__actions .inv-btn { min-height: 44px; font-size: .88rem; padding: .6em 1.1em; flex: 1 1 auto; }
.inv-hotel__code { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 8px; font-size: .78rem; color: var(--ink-soft); }
.inv-hotel__code span { letter-spacing: .14em; text-transform: uppercase; font-weight: 600; font-size: .66rem; }
.inv-hotel__code strong { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--accent); font-size: .92rem; letter-spacing: .08em; }
.inv-copy.is-done { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.inv-copy.is-done .inv-icon { animation: invPop .5s var(--spring); }

/* formularios */
.inv-field { display: grid; gap: 6px; text-align: left; }
.inv-field + .inv-field, .inv-field + .inv-btn, * + .inv-field { margin-top: 14px; }
.inv-field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.inv-field__label small { font-weight: 500; letter-spacing: 0; color: var(--ink-soft); font-size: .74rem; }
.inv-field__count { justify-self: end; font-size: .72rem; color: var(--ink-soft); margin-top: -2px; }
.inv-input {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.4;
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.inv-input::placeholder { color: color-mix(in srgb, var(--ink-soft) 75%, transparent); }
.inv-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); background: var(--surface); }
.inv-input.is-invalid { border-color: #c2413a; animation: invShake .4s; }
.inv-textarea { resize: vertical; min-height: 96px; }
@keyframes invShake { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

/* playlist */
.inv-playlist__player { margin: 0 auto 18px; border-radius: var(--radius); overflow: hidden; }
.inv-playlist__player.is-live { height: 352px; background: #121212; }
.inv-playlist__player:not(.is-tall).is-live { height: 152px; }
.inv-playlist__player iframe { width: 100%; height: 100%; border: 0; }
.inv-playlist__poster {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 16px 18px; border: 0; border-radius: var(--radius); cursor: pointer; text-align: left;
  background: linear-gradient(135deg, #1a1a1f, #2a2233); color: #fff; box-shadow: var(--shadow);
  transition: transform .4s var(--ease);
}
@media (hover: hover) { .inv-playlist__poster:hover { transform: translateY(-2px); } .inv-playlist__poster:hover .inv-playlist__disc { transform: rotate(40deg); } }
.inv-playlist__disc {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  background: repeating-radial-gradient(circle, #111 0 2px, #222 2px 4px); box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  transition: transform 1s var(--ease);
}
.inv-playlist__label { position: absolute; inset: 22px; border-radius: 50%; background: var(--iris); }
.inv-playlist__txt { display: grid; gap: 2px; }
.inv-playlist__txt strong { font-size: 1.02rem; }
.inv-playlist__txt span { font-size: .8rem; opacity: .7; }
.inv-playlist__play { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #1ed760; color: #0b0b0b; }
.inv-playlist__play .inv-icon { fill: currentColor; margin-left: 3px; }
.inv-playlist__form { text-align: left; display: grid; gap: 0; }
.inv-playlist__form .inv-btn { margin-top: 14px; width: 100%; }
.inv-playlist__added { justify-content: flex-start; margin-top: 12px; }
.inv-playlist__added:empty { display: none; }
.inv-playlist__added .inv-chip { padding-left: 12px; animation: invPop .5s var(--spring); }
.inv-chip.is-pending { opacity: .6; }

/* wishes */
.inv-wishes__form { text-align: left; }
.inv-wishes__form .inv-btn { width: 100%; margin-top: 16px; }
.inv-wishes__wall { display: grid; gap: 14px; margin-top: 26px; text-align: left; }
.inv-wishes__wall.is-collapsed > :nth-child(n + 7) { display: none; }
.inv-wishes__wall.is-loading::before {
  content: ''; height: 90px; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--bg-alt) 30%, var(--surface) 50%, var(--bg-alt) 70%) 0 0 / 200% 100%;
  animation: invShimmer 1.3s linear infinite;
}
.inv-wishes__empty { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-soft); font-size: .92rem; padding: 10px; }
.inv-wishes__spark { width: 16px; height: 16px; color: var(--accent-2); }
.inv-wishes__more { margin: 16px auto 0; }
.inv-wish {
  position: relative; margin: 0; padding: 20px 20px 16px 22px;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.inv-wish::before {
  content: '“'; position: absolute; top: 2px; right: 16px; font-family: var(--font-display); font-size: 3.6rem; line-height: 1; color: var(--accent-2); opacity: .45;
}
.inv-wish:nth-child(3n + 2) { background: color-mix(in srgb, var(--accent-2) 10%, var(--surface)); }
.inv-wish__msg { margin: 0; }
.inv-wish__msg p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.inv-wish__meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .8rem; color: var(--ink-soft); }
.inv-wish__meta strong { color: var(--ink); font-weight: 600; }
.inv-wish.is-pending { opacity: .65; }
.inv-wish.is-new { animation: invWishIn .7s var(--spring); }
/* demo: mensaje en revisión (solo lo ve quien lo envió) */
.inv-wish.is-pending-review { border-style: dashed; border-color: color-mix(in srgb, var(--accent-2) 70%, transparent); box-shadow: none; }
.inv-wish.is-pending-review .inv-wish__time { color: var(--accent); font-weight: 600; }
.inv-chip.is-pending-review { opacity: .75; border-style: dashed; }
.inv-chip__note { margin-left: 4px; font-size: .7rem; color: var(--accent); }

/* Turnstile (§12.2): contenedor vacío e invisible hasta que Cloudflare pida interacción */
.inv-turnstile { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.inv-turnstile:empty { display: none; }
.inv-turnstile > * { max-width: 100%; }
.inv-turnstile iframe { margin-top: 14px; }
@keyframes invWishIn { from { transform: translateY(-12px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* faq */
.inv-faq { display: grid; gap: 10px; text-align: left; }
.inv-faq__item { border-radius: calc(var(--radius) - 4px); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s; }
.inv-faq__item.is-open { box-shadow: var(--shadow); }
.inv-faq__item h3 { margin: 0; }
.inv-faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 60px; padding: 14px 16px 14px 20px; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; line-height: 1.3; color: var(--ink);
}
.inv-faq__icon {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--accent-2) 16%, transparent); color: var(--accent);
  transition: transform .45s var(--spring), background .3s;
}
.inv-faq__item.is-open .inv-faq__icon { transform: rotate(135deg); background: var(--accent); color: var(--accent-ink); }
.inv-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.inv-faq__item.is-open .inv-faq__a { grid-template-rows: 1fr; }
.inv-faq__a > div { overflow: hidden; }
.inv-faq__a p { padding: 0 20px 18px; color: var(--ink-soft); font-size: .95rem; line-height: 1.65; }

/* note */
.inv-note {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; text-align: left;
  padding: 22px 22px 22px 18px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent-2) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent-2) 45%, transparent);
  box-shadow: inset 4px 0 0 var(--accent);
}
.inv-note__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--accent); }
.inv-note__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; line-height: 1.25; color: var(--ink); margin-bottom: 4px; }
.inv-note .inv-text { margin: 0; font-size: .95rem; }
.inv-note .inv-eyebrow { margin-bottom: .4rem; }

/* album */
.inv-album { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.inv-album__qr {
  width: 188px; height: 188px; padding: 12px; border-radius: 20px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(0, 0, 0, .35); position: relative;
}
.inv-album__qr.is-loading::after, .inv-vip__qr.is-loading::after {
  content: ''; position: absolute; inset: 12px; border-radius: 8px;
  background: linear-gradient(100deg, #f1f1f1 30%, #fff 50%, #f1f1f1 70%) 0 0 / 200% 100%; animation: invShimmer 1.2s linear infinite;
}
.inv-album__qr.is-failed { display: none; }
.inv-qr { width: 100%; height: 100%; }
.inv-album__icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent-2) 16%, var(--surface)); }
.inv-album__body { display: grid; justify-items: center; gap: 14px; }
.inv-album__hint { font-size: .86rem; color: var(--ink-soft); max-width: 16rem; }

/* vip */
.inv-vip {
  position: relative; display: grid; grid-template-rows: auto auto; max-width: 360px; margin: 0 auto; text-align: left;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .18));
  --notch: 13px;
}
.inv-vip__main, .inv-vip__stub { position: relative; background: var(--accent); color: var(--accent-ink); }
.inv-vip__main {
  padding: 24px 24px 22px; border-radius: 20px 20px 0 0;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent-2) 45%, transparent), transparent 60%), var(--accent);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.inv-vip__main::after {
  content: ''; position: absolute; left: 22px; right: 22px; bottom: 0; border-bottom: 2px dashed color-mix(in srgb, var(--accent-ink) 40%, transparent);
}
.inv-vip__kicker { display: flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; opacity: .9; }
.inv-vip__spark { width: 14px; height: 14px; color: var(--accent-2); }
.inv-vip__event { margin-top: 12px; font-family: var(--font-display); font-size: 1.05rem; opacity: .85; }
.inv-vip__name { font-size: 2.4rem; line-height: 1.1; margin-top: 2px; overflow-wrap: anywhere; }
.inv-vip__grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; margin: 16px 0 0; }
.inv-vip__grid dt { font-size: .58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.inv-vip__grid dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.inv-vip__stub {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 20px 24px 22px; border-radius: 0 0 20px 20px;
  background: color-mix(in srgb, var(--accent) 88%, #000);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
}
.inv-vip__qr { grid-row: span 2; position: relative; width: 104px; height: 104px; padding: 7px; border-radius: 12px; background: #fff; }
.inv-vip__qr.is-generic { display: grid; place-items: center; background: color-mix(in srgb, var(--accent-ink) 12%, transparent); border: 1px dashed color-mix(in srgb, var(--accent-ink) 45%, transparent); }
.inv-vip__qrspark { width: 44px; height: 44px; animation: invTwinkle 3s var(--ease-io) infinite; }
.inv-vip__code { align-self: end; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: .12em; }
.inv-vip__hint { align-self: start; font-size: .78rem; opacity: .8; line-height: 1.4; margin-top: 3px; }

/* video */
.inv-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #111; box-shadow: var(--shadow); }
.inv-video iframe, .inv-video video { width: 100%; height: 100%; border: 0; object-fit: cover; }
.inv-video__poster { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: #111; }
.inv-video__img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform 1s var(--ease), opacity .4s; }
.inv-video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--accent);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--surface) 25%, transparent), 0 16px 40px rgba(0, 0, 0, .35);
  transition: transform .45s var(--spring);
}
.inv-video__play .inv-icon { fill: currentColor; margin-left: 4px; }
@media (hover: hover) { .inv-video__poster:hover .inv-video__play { transform: translate(-50%, -50%) scale(1.08); } .inv-video__poster:hover .inv-video__img { transform: scale(1.04); opacity: 1; } }

/* divider */
.inv-section--divider { padding: 6px var(--gutter); background: transparent; }
.inv-divider { display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 320px; margin: 0 auto; color: var(--accent-2); min-height: 40px; }
.inv-divider__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.inv-divider__line:last-child { background: linear-gradient(270deg, transparent, currentColor); }
.inv-divider__spark { width: 18px; height: 18px; fill: currentColor; }
.reveal.is-in .inv-divider__spark { animation: invSpin 1.4s var(--ease) both; }
@keyframes invSpin { from { transform: rotate(-90deg) scale(0); } to { transform: none; } }
.inv-divider.has-ornament { height: 56px; max-width: 280px; background: var(--ornament) center / contain no-repeat; }

/* pie */
.inv-footer {
  position: relative; padding: 72px var(--gutter) calc(28px + var(--bar-space)); text-align: center;
  background: var(--bg-alt);
}
.inv-footer__orn { width: 26px; height: 26px; margin: 0 auto 14px; color: var(--accent-2); }
.inv-footer__text { font-size: 2.3rem; line-height: 1.15; color: var(--ink); }
.inv-footer__date { margin-top: 12px; font-size: .74rem; letter-spacing: .3em; color: var(--ink-soft); }
.inv-footer__credit {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 42px; padding: 8px 14px; border-radius: 99px;
  font-size: .78rem; color: var(--ink-soft); text-decoration: none; border: 1px solid transparent;
  transition: border-color .3s, color .3s;
}
.inv-footer__credit:hover { border-color: var(--line); color: var(--ink); }
/* Crédito «Hecha con Inolvidia» (§20.8). Respaldo del componente de identidad (/brand/credito.css, que va después y
   manda): logo v2 horizontal mini a 1,25 em (mínimo 16 px = 81 px de ancho, su tamaño mínimo), centrado con el texto;
   hereda color y tamaño del pie del tema. */
.ino-credito { align-items: center; gap: .4em; text-decoration: none; white-space: nowrap; }
.ino-credito__logo { display: inline-block; height: max(16px, 1.25em); width: auto; aspect-ratio: 1212 / 240; flex: none; transition: opacity .3s; }
.inv-footer__credit:hover .ino-credito__logo { opacity: .86; }
/* el componente hereda la letra del contexto (font: inherit): en el pie la píldora conserva su tamaño */
.inv-footer__credit.ino-credito { font-size: .8125rem; line-height: 1.2; --ino-credito-foco: var(--accent); } /* 13 px: logo de 16 px de alto (81 px de ancho) */
.inv-footer__links { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.inv-footer__links .inv-footer__credit { margin-top: 42px; }
/* Save the Date (§14.5): enlace discreto a la landing */
.inv-footer__std {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
  font-size: .78rem; font-weight: 600; color: var(--accent); text-decoration: none; border: 1px solid transparent;
  transition: border-color .3s;
}
.inv-footer__std:hover { border-color: var(--line); }
.inv-footer__std-spark { width: 12px; height: 12px; color: var(--accent-2); }
/* Conmutador «Versión con letra grande» (§14.3) */
.inv-footer__access {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 4px; padding: 8px 16px; border-radius: 99px;
  font-size: .82rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; border: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}
.inv-footer__access:hover { color: var(--ink); border-color: var(--ink-soft); }
/* Privacidad y términos (§18.1): discretos, siempre presentes */
.inv-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; margin-top: 6px; }
.inv-footer__legal a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 8px; border-radius: 99px;
  font-size: .72rem; color: var(--ink-soft); text-decoration: none; transition: color .3s;
}
/* sin opacidad: con el --ink-soft de cada tema llegan a AA (4,5:1); con .85 quedaban en 3,6–4,1:1 en los temas claros */
.inv-footer__legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
html[data-access='1'] .inv-footer__legal a { min-height: 48px; font-size: .9rem; }

/* Save the Date (§14.5): bloque «La invitación completa llegará pronto» */
.inv-std { display: grid; justify-items: center; gap: 8px; padding: 36px 24px 30px; text-align: center; }
/* kit v2: arriba el calendario (como la maqueta de la landing) y, tras el título, el hilo corto en lugar del ✦ */
.inv-std__ico { width: 34px; height: 34px; margin-bottom: 6px; color: var(--accent); }
.inv-std__title { font-size: clamp(1.7rem, 7.4vw, 2.3rem); margin-bottom: .4rem; }
.inv-std__star { color: var(--accent-2); white-space: nowrap; }
.inv-std__hilo { display: inline-block; width: .9em; height: .9em; vertical-align: -.12em; }
.inv-std__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

/* Candado de tiempo (§14.5): tarjeta con cuenta regresiva que se sustituye por la sección real */
.inv-locked { display: grid; justify-items: center; gap: 10px; padding: 34px 20px 30px; text-align: center; }
.inv-locked__icon {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 4px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 7%, transparent);
  transition: transform .4s var(--spring);
}
.inv-locked__title { font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 500; line-height: 1.15; color: var(--ink); text-wrap: balance; }
.inv-locked__when { font-size: .92rem; color: var(--ink-soft); }
.inv-locked .inv-countdown { margin-top: 10px; width: 100%; max-width: 360px; }
.inv-countdown.is-compact { gap: 6px; }
.inv-countdown.is-compact .inv-countdown__unit { padding: 10px 2px 9px; gap: 3px; background: var(--bg); box-shadow: none; }
.inv-countdown.is-compact .inv-countdown__num { font-size: clamp(1.4rem, 6.4vw, 1.9rem); }
.inv-countdown.is-compact .inv-countdown__lbl { font-size: .56rem; letter-spacing: .16em; }
.inv-locked .inv-countdown__done { font-size: 1.4rem; }
.inv-locked.is-unlocking .inv-locked__icon { animation: invShake .7s var(--ease-io) infinite; }
@keyframes invShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg) scale(1.05); } 75% { transform: rotate(8deg) scale(1.05); } }
.inv-unlocked { animation: invUnlock 1s var(--ease) both; }
@keyframes invUnlock {
  from { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* Modo accesible: franja superior con «Ver versión normal» (§14.3) */
.inv-access {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px;
  padding: 12px var(--gutter); background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line);
  font-size: .95rem; font-weight: 600;
}
.inv-access__txt { display: inline-flex; align-items: center; gap: 8px; }
.inv-access__link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 99px;
  border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 700;
}
.inv-access__link:hover { background: var(--ink); color: var(--bg); }

/* ============================================================
   RSVP
   ============================================================ */
.inv-rsvp { background-image: radial-gradient(90% 50% at 50% 0%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%); }
.inv-rsvp__guest { margin: -8px auto 22px; max-width: 22rem; }
.inv-rsvp__seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 8px; }
.inv-rsvp__seats i {
  width: 12px; height: 12px; border-radius: 4px 4px 3px 3px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  transition: background .35s var(--ease), transform .35s var(--spring);
}
.inv-rsvp__seats i.is-on { background: var(--accent); transform: translateY(-2px); }
.inv-rsvp__form { text-align: left; padding: 22px 18px 24px; }
.inv-rsvp__choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.inv-rsvp__opt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.inv-rsvp__radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inv-rsvp__face {
  display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%;
  padding: 18px 10px 16px; border-radius: 18px; text-align: center;
  border: 1.5px solid var(--line); background: var(--bg);
  transition: transform .4s var(--spring), border-color .25s, background .25s, box-shadow .3s, color .25s;
}
.inv-rsvp__face-ico {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); color: var(--accent); box-shadow: 0 0 0 1px var(--line);
  transition: transform .5s var(--spring), background .3s, color .3s;
}
.inv-rsvp__face-ico .inv-sparkle { width: 26px; height: 26px; }
.inv-rsvp__face-txt { display: grid; gap: 2px; }
.inv-rsvp__face-txt strong { font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.inv-rsvp__face-txt small { font-size: .74rem; color: var(--ink-soft); line-height: 1.3; }
@media (hover: hover) { .inv-rsvp__opt:hover .inv-rsvp__face { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); } }
.inv-rsvp__opt:active .inv-rsvp__face { transform: scale(.97); }
.inv-rsvp__radio:focus-visible + .inv-rsvp__face { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.inv-rsvp__radio:checked + .inv-rsvp__face {
  border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}
.is-yes .inv-rsvp__radio:checked + .inv-rsvp__face .inv-rsvp__face-ico { transform: scale(1.12) rotate(90deg); background: var(--ink); }
.is-no .inv-rsvp__radio:checked + .inv-rsvp__face .inv-rsvp__face-ico { transform: scale(1.08); background: var(--accent); color: var(--accent-ink); }
.inv-rsvp__form:not(.has-choice) .inv-rsvp__opt.is-yes .inv-rsvp__face { animation: invNudge 2.8s var(--ease-io) 1.2s infinite; }
@keyframes invNudge { 0%, 86%, 100% { transform: none; } 90% { transform: translateY(-4px) rotate(-1deg); } 95% { transform: translateY(0) rotate(1deg); } }
.inv-rsvp__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.inv-rsvp__form.has-choice .inv-rsvp__more { grid-template-rows: 1fr; }
.inv-rsvp__inner { overflow: hidden; padding: 0 2px; }
.inv-rsvp__form.has-choice .inv-rsvp__inner { padding-top: 18px; }
/* Dos contadores lado a lado: columnas que pueden encogerse (minmax(0, 1fr)) y controles que se
   ajustan al ancho real de cada contador (cqi), para que el «+» nunca se recorte a 360 px ni con
   fuentes display anchas. Sin soporte de unidades de contenedor quedan los valores fijos previos. */
.inv-rsvp__counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.inv-rsvp__counts:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.inv-stepper {
  min-width: 0; container-type: inline-size;
  display: grid; gap: 6px; padding: 12px 8px; border-radius: 16px; background: var(--bg); border: 1.5px solid var(--line); text-align: center;
}
.inv-stepper__label { min-width: 0; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.inv-stepper__ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px; }
.inv-stepper__btn {
  width: 38px; height: 38px; width: clamp(32px, 31cqi, 42px); height: clamp(32px, 31cqi, 42px);
  display: grid; place-items: center; border-radius: 50%; padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); background: var(--surface); color: var(--accent);
  cursor: pointer; transition: transform .3s var(--spring), background .2s, opacity .2s;
  touch-action: manipulation;
}
.inv-stepper__btn:active { transform: scale(.88); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.inv-stepper__btn:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.inv-stepper__val {
  min-width: 0; font-family: var(--font-display); font-size: 1.75rem; font-size: clamp(1.4rem, 24cqi, 2rem);
  font-weight: 500; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; text-align: center; white-space: nowrap;
}
.inv-stepper__val.is-bump { animation: invBump .35s var(--spring); }
@keyframes invBump { 50% { transform: scale(1.3); color: var(--accent); } }
.inv-rsvp__hint { margin-top: 8px; text-align: center; font-size: .82rem; color: var(--ink-soft); }
.inv-rsvp__error {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; line-height: 1.5;
  color: #8f1d17; background: #fdecea; border: 1px solid #f5c2bd;
}
.inv-rsvp__error a { color: inherit; font-weight: 700; }
.inv-rsvp__submit { width: 100%; margin-top: 20px; }
.inv-rsvp__call { width: 100%; margin-top: 12px; }
.inv-rsvp__form.is-sending .inv-rsvp__submit { pointer-events: none; }
.inv-rsvp__form.is-sending .inv-rsvp__submit .inv-icon { animation: invSend .9s var(--ease-io) infinite; }
@keyframes invSend { 50% { transform: translate(4px, -4px) scale(.8); opacity: .4; } }
.inv-rsvp__alt { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.inv-rsvp__alt:hover { color: var(--accent); }
.inv-rsvp__done, .inv-rsvp__closed { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 22px 28px; text-align: center; }
.inv-rsvp__badge {
  position: relative; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 6px;
  color: var(--accent-ink); background: var(--accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 14%, transparent), 0 16px 34px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
.inv-rsvp__badge.is-no { background: var(--surface); color: var(--accent); box-shadow: 0 0 0 1px var(--line), 0 0 0 8px color-mix(in srgb, var(--accent-2) 16%, transparent); }
.is-fresh .inv-rsvp__badge { animation: invBadge .8s var(--spring) both; }
.is-fresh .inv-rsvp__badge::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent);
  animation: invRing 1.2s var(--ease) .15s both;
}
.is-fresh .inv-rsvp__badge .inv-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: invDraw .6s var(--ease) .35s forwards; }
@keyframes invBadge { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
@keyframes invRing { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes invDraw { to { stroke-dashoffset: 0; } }
.inv-rsvp__done-title { font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1.15; color: var(--ink); outline: none; }
.inv-rsvp__summary { font-size: .9rem; color: var(--ink-soft); }
.inv-rsvp__summary strong { color: var(--ink); }
.inv-rsvp__note {
  display: flex; gap: 8px; align-items: flex-start; text-align: left; margin-top: 6px; padding: 10px 12px; border-radius: 12px;
  font-size: .84rem; line-height: 1.45; color: var(--ink-soft); background: var(--bg-alt);
}
.inv-rsvp__note .inv-icon { margin-top: 2px; color: var(--accent); }
.inv-rsvp__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.inv-rsvp__change {
  margin-top: 8px; padding: 8px 10px; border: 0; background: none; cursor: pointer;
  font-size: .86rem; font-weight: 600; color: var(--ink-soft); text-decoration: underline; text-underline-offset: .25em;
}
.inv-rsvp__change:hover { color: var(--accent); }

/* ============================================================
   BARRA DE ACCIONES, MÚSICA, TOASTS, HOJA, CINTA
   ============================================================ */
.inv-actionbar {
  position: fixed; z-index: 40; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(calc(100% - 20px), 520px);
  display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 4px; padding: 6px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .06);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .8s var(--spring), opacity .5s var(--ease);
}
.inv-actionbar.is-in { transform: translate(-50%, 0); opacity: 1; }
.inv-actionbar__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 56px; padding: 6px 2px; border: 0; border-radius: 18px; background: transparent; color: var(--ink);
  font-size: .68rem; font-weight: 600; letter-spacing: .02em; cursor: pointer; text-decoration: none;
  transition: background .25s, transform .3s var(--spring), color .25s;
  touch-action: manipulation;
}
/* más de 4 acciones (modo accesible: Llamar/Escuchar): dos filas de tres */
.inv-actionbar.is-wrap { grid-template-columns: repeat(3, 1fr); }
html.has-actionbar.has-actionbar-2 { --bar-space: calc(150px + env(safe-area-inset-bottom)); }
.inv-actionbar__btn.is-on { background: var(--ink); color: var(--bg); }
.inv-actionbar__btn .inv-icon { transition: transform .4s var(--spring); }
@media (hover: hover) { .inv-actionbar__btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); } .inv-actionbar__btn:hover .inv-icon { transform: translateY(-2px); } }
.inv-actionbar__btn:active { transform: scale(.92); }
.inv-actionbar__btn.is-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 90%, transparent); }
@media (hover: hover) { .inv-actionbar__btn.is-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); } }

.inv-music {
  position: fixed; z-index: 41; top: calc(12px + env(safe-area-inset-top)); right: max(12px, calc(50% - var(--col) / 2 + 12px));
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px; border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .35);
  cursor: pointer; opacity: 0; transform: translateY(-20px) scale(.9);
  transition: opacity .6s var(--ease), transform .7s var(--spring), max-width .5s var(--ease);
  max-width: 44px; overflow: hidden;
}
.inv-music.is-in { opacity: 1; transform: none; }
.inv-music__icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.inv-music__icon .inv-icon { fill: currentColor; stroke: none; }
.inv-music__icon .inv-icon:last-child, .inv-music.is-playing .inv-music__icon .inv-icon:first-child { display: none; }
.inv-music.is-playing .inv-music__icon .inv-icon:last-child { display: block; }
.inv-music__eq { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.inv-music.is-playing .inv-music__eq { display: flex; }
.inv-music__eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: bottom; animation: invEq 1s ease-in-out infinite; }
.inv-music__eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .8s; }
.inv-music__eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.1s; }
.inv-music__eq i:nth-child(4) { animation-delay: -.15s; animation-duration: .9s; }
@keyframes invEq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.inv-music__label { font-size: .78rem; font-weight: 600; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .3s; }
.inv-music.is-playing, .inv-music.is-hint { max-width: 230px; }
.inv-music.is-playing .inv-music__label, .inv-music.is-hint .inv-music__label { opacity: 1; }
.inv-music.is-hint .inv-music__icon { animation: invPulse 2s var(--ease-io) infinite; }
@keyframes invPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }

.inv-toasts {
  position: fixed; z-index: 95; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: grid; gap: 8px; justify-items: center; width: min(calc(100% - 32px), 420px); pointer-events: none;
}
html:not(.has-actionbar) .inv-toasts { bottom: calc(24px + env(safe-area-inset-bottom)); }
.inv-toast {
  padding: 12px 18px; border-radius: 14px; background: #1c1a22; color: #fff; font-size: .9rem; font-weight: 500; line-height: 1.4;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); text-align: center;
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .35s var(--ease), transform .45s var(--spring);
}
.inv-toast--ok::before { content: '✓'; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: #3ecf8e; color: #0c2b1c; font-size: .75rem; font-weight: 800; }
.inv-toast.is-in { opacity: 1; transform: none; }
.inv-toast.is-out { opacity: 0; transform: translateY(-8px); }

.inv-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.inv-sheet__backdrop { position: absolute; inset: 0; background: rgba(10, 8, 14, .45); opacity: 0; transition: opacity .35s; }
.inv-sheet.is-in .inv-sheet__backdrop { opacity: 1; }
.inv-sheet__panel {
  position: relative; width: min(100%, 520px); padding: 12px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0; background: var(--surface); color: var(--ink); text-align: center;
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4);
  transform: translateY(100%); transition: transform .5s var(--ease);
}
.inv-sheet.is-in .inv-sheet__panel { transform: none; }
.inv-sheet__grip { display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 18px; }
.inv-sheet__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; line-height: 1.2; }
.inv-sheet__when { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 18px; font-size: .86rem; color: var(--ink-soft); }
.inv-sheet__opt {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 10px; padding: 14px 16px; border-radius: 18px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer;
  transition: border-color .25s, transform .3s var(--spring);
}
.inv-sheet__opt:hover { border-color: var(--accent); }
.inv-sheet__opt:active { transform: scale(.98); }
.inv-sheet__opt strong { display: block; font-size: .98rem; }
.inv-sheet__opt small { display: block; font-size: .78rem; color: var(--ink-soft); }
.inv-sheet__ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); color: var(--accent); box-shadow: 0 0 0 1px var(--line); }
.inv-sheet__close { margin-top: 14px; width: 100%; }

/* Modo propuesta (borrador) */
.inv-draft {
  position: fixed; z-index: 60; top: 0; left: 0; width: 184px; height: 184px; overflow: hidden; pointer-events: none;
}
/* la banda cruza la esquina en diagonal: el tramo visible mide ≈ 250 px, justo para «Vista previa · logo»
   (el logo v2 es la horizontal mini, 81 px: su tamaño mínimo). Kit v2: la banda baja 15 px y el contenido se corre
   24 px hacia su comienzo (padding derecho) para que el final del logo quede a 30 px o más del borde superior
   (antes rozaba la esquina y, en la vista previa del editor, la isla del teléfono tapaba «…DIA») */
.inv-draft__band {
  position: absolute; top: 71px; left: -49px; width: 300px; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 48px 7px 0;
  /* interfaz de Inolvidia (kit v2): noche, marfil y el hilo oro rosa luz */
  background: #1B1630; color: #FBF6F2;
  font: 700 .58rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); border-block: 1px solid rgba(227, 178, 164, .7);
}
.inv-draft__txt { margin-right: -.18em; }
.inv-draft__dot { color: #E3B2A4; letter-spacing: 0; }
.inv-draft__logo { display: block; height: 16px; width: auto; flex: none; }
/* marca de agua: solo «Vista previa» (el nombre de la marca nunca va en mayúsculas sostenidas, §20.1) */
html[data-status='draft'] .inv-page::after {
  content: 'Vista previa'; text-transform: uppercase; position: fixed; left: 50%; top: 50%; z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-28deg); white-space: nowrap;
  font: 800 clamp(1.6rem, 9vw, 3rem)/1 var(--font-body); letter-spacing: .12em; color: var(--ink); opacity: .045;
}
html[data-status='draft'][lang^='en'] .inv-page::after { content: 'Preview'; }
html[data-status='draft'][lang^='pt'] .inv-page::after { content: 'Prévia'; }

/* Efectos */
.inv-burst { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; pointer-events: none; }
.inv-sparks { position: fixed; z-index: 99; width: 0; height: 0; pointer-events: none; }
.inv-sparks .inv-sparkle {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; color: var(--accent-2);
  animation: invSparkOut .9s var(--ease) both;
}
@keyframes invSparkOut {
  0% { transform: translate(0, 0) scale(0) rotate(0); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(var(--s)) rotate(90deg); opacity: 0; }
}

/* Error / no encontrado */
.inv-error {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 40px 28px; text-align: center; background: var(--bg);
}
/* página propia de Inolvidia (sin tema): marfil, noche y botón principal noche (kit v2, marca/logo/tokens-v2.css) */
html.is-brand { --bg: #FBF6F2; --bg-alt: #F3EAE3; --ink: #1B1630; --ink-soft: #5C5370; --accent: #1B1630; --accent-ink: #FBF6F2; --line: rgba(27, 22, 48, .14); background: #FBF6F2; }
.inv-error__brand { display: inline-block; margin-bottom: 18px; border-radius: 8px; }
.inv-error__logo { display: block; width: 180px; height: auto; }
.inv-error__brand:focus-visible { outline: 2px solid #5B3E8A; outline-offset: 6px; }
.inv-error .inv-btn { margin-top: 12px; }

/* ============================================================
   FASE B (§16, tanda 1): nota de voz, fondo de experiencias y playlist con votos
   ============================================================ */

/* — nota de voz (§16.1): tarjeta arriba del hero, bajo el botón de música si existe — */
.inv-hero { --voice-top: calc(14px + env(safe-area-inset-top)); }
html.has-music .inv-hero { --voice-top: calc(66px + env(safe-area-inset-top)); }
html[data-status='draft'] .inv-hero { --voice-top: calc(74px + env(safe-area-inset-top)); }
html[data-access='1'] .inv-hero { --voice-top: 16px; }
/* el hero reserva el alto de la tarjeta (--voice-h lo mide voice.js); en split la tarjeta flota sobre la foto */
.inv-page .inv-hero.has-voice:not(.inv-hero--split) { padding-top: calc(var(--voice-top) + var(--voice-h, 96px) + 18px); }
.inv-voice {
  position: absolute; z-index: 5; top: var(--voice-top); left: 0; right: 0; margin: 0 auto;
  width: min(calc(100% - 2 * var(--gutter)), 420px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px;
  padding: 12px 16px 12px 12px;
  border-radius: clamp(12px, var(--radius), 24px);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .06);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  color: var(--ink); text-align: left; letter-spacing: 0; text-transform: none;
  opacity: 0;
}
.is-revealed .inv-voice { animation: invVoiceIn .9s var(--spring) .55s both; }
@keyframes invVoiceIn { from { opacity: 0; transform: translateY(-16px) scale(.97); } to { opacity: 1; transform: none; } }
.inv-voice :focus-visible { outline-color: var(--accent); }
.inv-voice__play {
  position: relative; width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 85%, transparent);
  transition: transform .35s var(--spring), box-shadow .35s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .inv-voice__play:hover { transform: scale(1.06); } }
.inv-voice__play:active { transform: scale(.92); }
.inv-voice__icon { display: grid; }
.inv-voice__icon .inv-icon { grid-area: 1 / 1; fill: currentColor; stroke: none; }
.inv-voice__icon .inv-icon:first-child { margin-left: 3px; }
.inv-voice__icon .inv-icon:last-child, .inv-voice.is-playing .inv-voice__icon .inv-icon:first-child { display: none; }
.inv-voice.is-playing .inv-voice__icon .inv-icon:last-child { display: block; }
/* halo que invita a tocar (3 veces, sin reproducción automática); al cargar se vuelve un giro */
.inv-voice__halo {
  position: absolute; inset: -5px; border-radius: 50%; pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); opacity: 0;
}
.is-revealed .inv-voice:not(.was-played) .inv-voice__halo { animation: invVoiceHalo 2.4s var(--ease-io) 1.8s 3; }
@keyframes invVoiceHalo { 0% { transform: scale(.85); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.inv-voice.is-loading .inv-voice__halo {
  opacity: 1; border-color: color-mix(in srgb, var(--accent) 22%, transparent); border-top-color: var(--accent);
  animation: invVoiceSpin .9s linear infinite !important;
}
@keyframes invVoiceSpin { to { transform: rotate(1turn); } }
.inv-voice__body { min-width: 0; display: grid; gap: 1px; }
.inv-voice__title { font-family: var(--font-display); font-size: 1.16rem; font-weight: 500; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.inv-voice__from { display: flex; align-items: center; gap: 5px; min-width: 0; font-family: var(--font-body); font-size: .76rem; font-weight: 600; line-height: 1.35; color: var(--ink-soft); }
.inv-voice__from span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-voice__from .inv-icon { flex: none; color: var(--accent); }
.inv-voice__track { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 6px; }
.inv-voice__wave, .inv-voice__seek { grid-area: 1 / 1; }
.inv-voice__wave { display: flex; align-items: center; gap: 2px; height: 24px; border-radius: 6px; }
.inv-voice__wave i {
  flex: 1 1 0; min-width: 2px; height: calc(var(--h) * 100%); border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 22%, transparent); transition: background-color .25s;
}
.inv-voice__wave i.is-on { background: var(--accent); }
.inv-voice.is-playing .inv-voice__wave i { animation: invVoiceBar .9s var(--ease-io) infinite alternate; animation-delay: calc(var(--k) * -61ms); }
@keyframes invVoiceBar { from { transform: scaleY(.55); } to { transform: scaleY(1.08); } }
.inv-voice__seek { position: relative; z-index: 1; width: 100%; height: 32px; margin: 0; opacity: 0; cursor: pointer; }
.inv-voice__seek:disabled { pointer-events: none; }
.inv-voice__track:has(.inv-voice__seek:focus-visible) .inv-voice__wave { outline: 2.5px solid var(--accent); outline-offset: 4px; }
.inv-voice__time { min-width: 2.6em; font-family: var(--font-body); font-size: .74rem; font-weight: 600; text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.inv-voice__err { grid-column: 1 / -1; font-family: var(--font-body); font-size: .8rem; line-height: 1.4; color: var(--ink); }
.inv-voice__err:empty { display: none; }
.inv-voice.is-error .inv-voice__play { background: var(--surface); color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }

/* — fondo de experiencias (§16.2) — */
.inv-fund { display: grid; gap: 20px; text-align: left; }
.inv-fund__item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; padding: 0 0 20px; overflow: hidden; }
.inv-fund__item > * { grid-column: 1 / -1; margin-inline: 20px; }
.inv-fund__item > .inv-fund__media { margin: 0; }
.inv-fund__item:not(.has-img) { column-gap: 14px; padding-top: 22px; }
.inv-fund__item:not(.has-img) > .inv-fund__icon { grid-column: 1; margin-right: 0; }
.inv-fund__item:not(.has-img) > .inv-fund__body { grid-column: 2; margin-left: 0; padding-top: 2px; }
.inv-fund__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.inv-fund__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.inv-fund__img.is-broken { visibility: hidden; }
@media (hover: hover) { .inv-fund__item:hover .inv-fund__img { transform: scale(1.04); } }
.inv-fund__icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: var(--accent);
  background: color-mix(in srgb, var(--accent-2) 16%, var(--surface));
}
.inv-fund__body { padding-top: 16px; }
.inv-fund__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.inv-fund__detail { margin-top: 4px; font-size: .92rem; line-height: 1.55; color: var(--ink-soft); }
.inv-fund__progress { margin-top: 16px; }
.inv-fund__bar { position: relative; height: 10px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.inv-fund__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; overflow: hidden;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)));
  transition: width 1.5s var(--ease) .15s;
}
.inv-fund__fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .42) 50%, transparent 70%) 0 0 / 200% 100%;
  animation: invShimmer 2.6s linear infinite;
}
.inv-fund__item.is-in .inv-fund__fill, html[data-access='1'] .inv-fund__fill { width: calc(var(--p, 0) * 100%); }
.inv-section--fund.is-loading .inv-fund__bar { background: linear-gradient(100deg, color-mix(in srgb, var(--ink) 8%, transparent) 30%, color-mix(in srgb, var(--ink) 16%, transparent) 50%, color-mix(in srgb, var(--ink) 8%, transparent) 70%) 0 0 / 200% 100%; animation: invShimmer 1.3s linear infinite; }
.inv-fund__nums { margin-top: 9px; font-size: .86rem; line-height: 1.45; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.inv-fund__nums strong { color: var(--ink); font-weight: 700; }
.inv-fund__cta { margin-top: 16px; }
.inv-fund__mine { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 10px; font-size: .84rem; color: var(--ink); }
.inv-fund__mine .inv-icon { color: var(--accent); }
.inv-fund__again {
  min-height: 36px; padding: 4px 2px; border: 0; background: none; cursor: pointer;
  font-size: .84rem; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: .2em;
}
.inv-fund__done {
  display: none; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 99px;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
}
.inv-fund__media .inv-fund__done { position: absolute; top: 12px; left: 12px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }
.inv-fund__done.is-inline { margin-top: 8px; width: fit-content; }
.inv-fund__done-spark { width: 12px; height: 12px; color: var(--accent-2); }
.inv-fund__item.is-complete .inv-fund__done { display: inline-flex; }

/* hoja de aporte y datos de pago (diálogo: hoja inferior en móvil, ventana centrada en escritorio) */
.inv-sheet.is-dialog .inv-sheet__panel { max-height: min(92dvh, 820px); overflow-y: auto; overscroll-behavior: contain; text-align: left; }
.inv-sheet.is-dialog .inv-sheet__title, .inv-sheet.is-dialog .inv-sheet__panel > .inv-eyebrow { text-align: center; }
.inv-sheet.is-dialog .inv-sheet__title { outline: none; text-wrap: balance; }
.inv-fund__sheetdetail { max-width: 26rem; margin: 6px auto 0; text-align: center; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
.inv-fund__form { display: grid; margin-top: 18px; }
.inv-fund__amounts { min-width: 0; margin: 0; padding: 0; border: 0; }
.inv-fund__amounts legend { padding: 0; margin-bottom: 10px; }
.inv-fund__quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; margin-bottom: 10px; }
.inv-fund__chip {
  min-height: 52px; padding: 8px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: .98rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s, transform .3s var(--spring), box-shadow .25s;
  touch-action: manipulation;
}
.inv-fund__chip:active { transform: scale(.95); }
.inv-fund__chip[aria-checked='true'] {
  border-color: var(--accent); color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.inv-fund__otherwrap {
  display: flex; align-items: center; min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.inv-fund__otherwrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); background: var(--surface); }
.inv-fund__sym { flex: none; padding-left: 15px; font-weight: 700; color: var(--ink-soft); }
.inv-fund__other { min-height: 46px; border: 0; background: transparent; padding-left: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.inv-fund__other:focus { box-shadow: none; background: transparent; }
.inv-fund__otherwrap:has(.is-invalid) { border-color: #c2413a; }
.inv-fund__submit { width: 100%; margin-top: 18px; }
.inv-fund__form.is-sending .inv-fund__submit { pointer-events: none; }
.inv-fund__form.is-sending .inv-fund__submit .inv-icon { animation: invSend .9s var(--ease-io) infinite; }
.inv-fund__cancel { width: 100%; margin-top: 6px; border-color: transparent; }
.inv-pay__badge { margin: 6px auto 12px; }
.inv-pay__lead { margin-top: 6px; text-align: center; font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }
.inv-pay__text { margin-top: 14px; text-align: center; font-size: .92rem; line-height: 1.5; color: var(--ink); }
.inv-pay { display: grid; gap: 8px; margin: 16px 0 0; }
.inv-pay__row { padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.inv-pay__row dt { font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.inv-pay__row dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 0; }
.inv-pay__val { min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.inv-pay__row.is-amount .inv-pay__val { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.inv-pay__row .inv-copy { flex: none; min-height: 40px; padding: .5em .95em; font-size: .82rem; }
.inv-pay__link { width: 100%; margin-top: 12px; }
.inv-pay__note {
  display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 14px;
  font-size: .9rem; line-height: 1.5; color: var(--ink); background: color-mix(in srgb, var(--accent-2) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
}
.inv-pay__spark { flex: none; width: 15px; height: 15px; margin-top: 4px; color: var(--accent); }
.inv-pay__preview { margin-top: 10px; }
.inv-pay__close { width: 100%; margin-top: 14px; }

/* — playlist con votos (§16.3) — */
.inv-search { padding: 16px; text-align: left; }
.inv-search__form { position: relative; display: flex; align-items: center; }
.inv-search__icon { position: absolute; left: 16px; display: grid; color: var(--ink-soft); pointer-events: none; transition: color .25s; }
.inv-search__input { padding-left: 46px; padding-right: 46px; border-radius: 999px; }
.inv-search__input::-webkit-search-cancel-button, .inv-search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.inv-search__clear {
  position: absolute; right: 6px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer;
}
.inv-search__clear:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.inv-search.is-searching .inv-search__icon { color: var(--accent); animation: invSearch 1s var(--ease-io) infinite; }
@keyframes invSearch { 50% { transform: scale(.82) rotate(-12deg); } }
.inv-search__status { margin: 10px 4px 0; font-size: .82rem; line-height: 1.45; color: var(--ink-soft); }
.inv-search__status:empty { display: none; }
.inv-tracks { display: grid; margin-top: 6px; }
.inv-tracks:empty { display: none; }
.inv-track {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 2px;
  border-top: 1px solid var(--line); animation: invTrackIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
}
.inv-track:first-child { border-top: 0; }
@keyframes invTrackIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.inv-track__cover {
  position: relative; width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px;
  overflow: hidden; color: var(--accent); background: color-mix(in srgb, var(--accent-2) 18%, var(--surface));
  -webkit-tap-highlight-color: transparent;
}
.inv-track__cover.is-btn { cursor: pointer; }
.inv-track__img, .inv-track__noimg, .inv-track__pp { grid-area: 1 / 1; }
.inv-track__img { width: 100%; height: 100%; object-fit: cover; }
.inv-track__img.is-broken { visibility: hidden; }
.inv-track__pp {
  position: relative; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(10, 10, 14, .58); color: #fff; transition: transform .3s var(--spring), background-color .25s;
}
.inv-track__pp .inv-icon { grid-area: 1 / 1; fill: currentColor; stroke: none; }
.inv-track__pp .inv-icon:first-child { margin-left: 2px; }
.inv-track__pp .inv-icon:last-child, .inv-track__cover.is-playing .inv-track__pp .inv-icon:first-child { display: none; }
.inv-track__cover.is-playing .inv-track__pp .inv-icon:last-child { display: block; }
.inv-track__cover.is-playing .inv-track__pp { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .inv-track__cover.is-btn:hover .inv-track__pp { transform: scale(1.12); } }
.inv-track__cover.is-loading .inv-track__pp { animation: invPulseSoft 1s var(--ease-io) infinite; }
@keyframes invPulseSoft { 50% { opacity: .55; transform: scale(.9); } }
/* anillo de avance del adelanto de 30 s */
.inv-track__cover.is-btn::after {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 3px; pointer-events: none;
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 1turn), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .25s;
}
.inv-track__cover.is-playing::after { opacity: 1; }
.inv-track__info, .inv-song__info { min-width: 0; display: grid; gap: 1px; }
.inv-track__title, .inv-song__title { font-size: .95rem; font-weight: 700; line-height: 1.3; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-track__artist, .inv-song__artist { font-size: .8rem; line-height: 1.35; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-track__add { min-height: 40px; padding: .5em .95em; gap: .35em; font-size: .82rem; box-shadow: none; }
.inv-track__add.is-done { background: transparent; color: var(--accent); }
.inv-track__add.is-sending { opacity: .7; }
.inv-search__more {
  display: block; margin: 4px auto 0; min-height: 40px; padding: 6px 14px; border: 0; background: none; cursor: pointer;
  font-size: .84rem; font-weight: 700; color: var(--accent);
}
.inv-search__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px;
  margin-top: 12px; padding-top: 6px; border-top: 1px dashed var(--line);
}
.inv-search__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 2px; border: 0; background: none; cursor: pointer;
  font-size: .84rem; font-weight: 600; color: var(--accent); text-align: left;
}
.inv-search__by { font-size: .72rem; color: var(--ink-soft); text-decoration: none; letter-spacing: .02em; padding: 6px 0; }
.inv-search__by:hover { text-decoration: underline; }
.inv-search__manual { margin-top: 10px; }
.inv-playlist__form.is-compact { padding: 16px; background: var(--bg); box-shadow: none; }
.inv-songs__card { margin-top: 18px; padding: 18px 14px 12px; text-align: left; }
.inv-songs__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 6px 8px; }
.inv-songs__title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.2; color: var(--ink); }
.inv-songs__title .inv-icon { color: var(--accent); fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.inv-songs__total { flex: none; font-size: .76rem; color: var(--ink-soft); }
.inv-songs { display: grid; }
.inv-songs__card.is-loading .inv-songs {
  min-height: 170px; border-radius: 12px;
  background: linear-gradient(100deg, var(--bg-alt) 30%, var(--surface) 50%, var(--bg-alt) 70%) 0 0 / 200% 100%;
  animation: invShimmer 1.3s linear infinite;
}
.inv-song { display: grid; grid-template-columns: 24px 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); border-radius: 10px; }
.inv-song:first-child { border-top-color: transparent; }
.inv-song__rank { font-family: var(--font-body); font-size: .86rem; font-weight: 700; line-height: 1; text-align: center; color: var(--ink-soft); font-variant-numeric: tabular-nums lining-nums; }
.inv-song.is-top .inv-song__rank { color: var(--accent); font-weight: 600; }
.inv-song__cover { width: 48px; height: 48px; border-radius: 10px; }
.inv-song__vote {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 64px; min-height: 40px; padding: 0 12px;
  border-radius: 99px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: border-color .25s, background-color .25s, color .25s, transform .3s var(--spring);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.inv-song__vote .inv-icon { color: var(--accent); transition: transform .35s var(--spring); }
.inv-song__vote:active { transform: scale(.93); }
.inv-song__vote[aria-pressed='true'] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.inv-song__vote[aria-pressed='true'] .inv-icon { fill: currentColor; }
.inv-song__vote.is-pop .inv-icon { animation: invHeartPop .55s var(--spring); }
@keyframes invHeartPop { 40% { transform: scale(1.45); } }
.inv-song.is-new { animation: invSongNew 1.6s var(--ease); }
@keyframes invSongNew { 0%, 35% { background: color-mix(in srgb, var(--accent-2) 24%, transparent); } 100% { background: transparent; } }
.inv-songs__more { display: flex; margin: 10px auto 2px; }
.inv-songs__empty { padding: 8px 6px 6px; text-align: center; }
.inv-songs__note { font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.inv-songs__legacy { margin-top: 10px; }
.inv-songs__legacy .inv-chip { padding-left: 12px; }
.inv-chip__by { font-size: .74rem; color: var(--ink-soft); }
.inv-playlist__player--after { margin: 18px auto 0; }
@media (max-width: 374px) {
  .inv-track__add span { display: none; } /* solo el ícono: la etiqueta accesible sigue completa */
  .inv-track__add { padding-inline: .8em; }
}

/* ============================================================
   ESCRITORIO
   ============================================================ */
@media (min-width: 700px) {
  .inv-page { box-shadow: 0 0 0 1px var(--line), 0 40px 120px -30px rgba(0, 0, 0, .28); }
  .inv-hero { min-height: min(100vh, 980px); }
  .inv-hero__title { font-size: 5.6rem; }
  .inv-actionbar { bottom: 18px; }
  /* modo accesible (§14.3): en pantallas anchas las 6 acciones caben en una sola fila */
  .inv-actionbar.is-wrap { grid-template-columns: repeat(var(--n, 6), 1fr); width: min(calc(100% - 20px), 600px); }
  html.has-actionbar.has-actionbar-2 { --bar-space: calc(84px + env(safe-area-inset-bottom)); }
  .inv-lightbox__stage { padding: 72px 90px 12px; }
}

/* ============================================================
   MOVIMIENTO REDUCIDO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal, .hero-anim { opacity: 1 !important; transform: none !important; filter: none !important; transition: opacity .4s ease !important; }
  .is-revealed .hero-anim { animation: none !important; }
  .inv-hero__img { transform: none !important; }
  .inv-burst, .inv-sparks { display: none !important; }
  .inv-actionbar, .inv-music { transition: opacity .3s ease !important; }
}

/* ============================================================
   MODO ACCESIBLE «abuelita» (§14.3) — html[data-access="1"]
   Texto 1,25×, interlineado 1,6, contraste reforzado, botones ≥ 56 px, foco grueso, sin partículas.
   Los colores reforzados se calculan en body a partir de los del tema (ahí sí se pueden leer las de html)
   y se aplican a los hijos directos de body (página, barra, música, hoja, intro…).
   ============================================================ */
body.inv {
  --ink-strong: #141414;
  --ink-soft-strong: #3a3a3a;
  --line-strong: rgba(0, 0, 0, .42);
}
@supports (color: oklch(from red l c h)) {
  body.inv {
    /* tinta clara (tema oscuro) → casi blanco; tinta oscura → casi negro; sin perder el matiz */
    --ink-strong: oklch(from var(--ink) clamp(.13, l + (l - .5) * 4, .99) min(c, .04) h);
    --ink-soft-strong: oklch(from var(--ink) clamp(.3, l + (l - .5) * 4, .93) min(c, .05) h);
    --line-strong: oklch(from var(--ink) l c h / .45);
  }
}
html[data-access='1'] body.inv > * { --ink: var(--ink-strong); --ink-soft: var(--ink-soft-strong); --line: var(--line-strong); }
html[data-access='1'] body.inv { font-size: clamp(19px, calc(1.25em + .2vw), 22px); line-height: 1.6; }
/* Los párrafos y textos secundarios tienen tamaño en rem (base y temas: «.inv-text { font-size: 1rem }»), así que el
   body a 1,25× no los agrandaba. !important: los temas cargan después y con la misma especificidad; aquí manda la lectura fácil. */
html[data-access='1'] .inv-text { font-size: clamp(19px, calc(1.25rem + .2vw), 22px) !important; line-height: 1.6; max-width: 32em; }
html[data-access='1'] .inv-event__meta, html[data-access='1'] .inv-timeline__text, html[data-access='1'] .inv-hotel__code { font-size: 1.1rem !important; }
html[data-access='1'] .inv-eyebrow { font-size: .8rem; letter-spacing: .18em; }
html[data-access='1'] .inv-hero__subtitle, html[data-access='1'] .inv-hero__place { font-size: 1.05rem; opacity: 1; }
html[data-access='1'] .inv-hero__time { font-size: .85rem; opacity: 1; }
html[data-access='1'] .inv-hero__date--text { font-size: .95rem; }
html[data-access='1'] .inv-guest__label { font-size: .74rem; opacity: 1; }
html[data-access='1'] .inv-guest__passes { font-size: .95rem; opacity: 1; }
html[data-access='1'] .inv-hero__cue { font-size: .72rem; }
/* fotos de portada: velo más oscuro para que el texto blanco pase AA */
html[data-access='1'] .inv-hero__shade { background: linear-gradient(180deg, rgba(0, 0, 0, .48), rgba(0, 0, 0, .8)); }
html[data-access='1'] .inv-hero--split .inv-hero__shade { background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .35)); }
html[data-access='1'] .inv-hero--photo .inv-hero__title { text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
html[data-access='1'] .inv-hero--photo .inv-guest { background: rgba(0, 0, 0, .62); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(255, 255, 255, .55); }
/* superficies sólidas (sin transparencias ni desenfoques) */
html[data-access='1'] .inv-actionbar, html[data-access='1'] .inv-music {
  background: var(--surface); border-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-access='1'] .inv-card, html[data-access='1'] .inv-countdown__unit, html[data-access='1'] .inv-guest { border-width: 1.5px; }
/* botones y controles grandes, foco grueso */
html[data-access='1'] .inv-btn { min-height: 56px; font-size: 1rem; padding-inline: 1.5em; border-width: 2px; }
html[data-access='1'] .inv-btn--lg { min-height: 60px; font-size: 1.05rem; }
html[data-access='1'] .inv-actionbar__btn { min-height: 64px; font-size: .8rem; gap: 4px; }
html[data-access='1'] .inv-actionbar__btn:not(.is-primary):not(.is-on) { border: 1.5px solid var(--line); }
html[data-access='1'] .inv-music { height: 56px; max-width: 56px; }
html[data-access='1'] .inv-music.is-playing, html[data-access='1'] .inv-music.is-hint { max-width: 260px; }
html[data-access='1'] .inv-music__icon { width: 42px; height: 42px; }
html[data-access='1'] .inv-stepper__btn { width: clamp(44px, 34cqi, 56px); height: clamp(44px, 34cqi, 56px); border-width: 2px; }
html[data-access='1'] .inv-input { min-height: 56px; font-size: 1.05rem; }
html[data-access='1'] .inv-faq__q { min-height: 56px; }
html[data-access='1'] .inv-footer__credit, html[data-access='1'] .inv-footer__std { min-height: 48px; font-size: .9rem; }
html[data-access='1'] :focus-visible { outline-width: 4px; outline-offset: 4px; }
html[data-access='1'] .inv-rsvp__radio:focus-visible + .inv-rsvp__face { outline-width: 4px; }
html[data-access='1'] .inv-rsvp__face-txt small { font-size: .85rem; }
html[data-access='1'] .inv-rsvp__alt { font-size: .95rem; min-height: 44px; }
/* sin partículas, destellos ni animaciones decorativas; contenido visible sin esperar al scroll */
html[data-access='1'] .inv-fx, html[data-access='1'] .inv-burst, html[data-access='1'] .inv-sparks { display: none !important; }
html[data-access='1'] *, html[data-access='1'] *::before, html[data-access='1'] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
html[data-access='1'] .reveal, html[data-access='1'] .hero-anim { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
html[data-access='1'] .is-revealed .hero-anim { animation: none !important; }
html[data-access='1'] .inv-hero__img { transform: none !important; }
html[data-access='1'] .inv-actionbar, html[data-access='1'] .inv-music { transition: opacity .3s ease !important; }
html[data-access='1'] .inv-rsvp__form:not(.has-choice) .inv-rsvp__opt.is-yes .inv-rsvp__face { animation: none; }

/* Fase B (§16): diálogo centrado en escritorio, movimiento reducido y modo accesible */
@media (min-width: 700px) {
  .inv-sheet.is-dialog { align-items: center; padding: 24px; }
  .inv-sheet.is-dialog .inv-sheet__panel {
    border-radius: 28px; padding-top: 26px;
    transform: translateY(26px) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .3s var(--ease);
  }
  .inv-sheet.is-dialog.is-in .inv-sheet__panel { transform: none; opacity: 1; }
  .inv-sheet.is-dialog .inv-sheet__grip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .inv-fund__fill { transition: none; }
  .inv-fund__fill::after { display: none; }
}
html[data-access='1'] .inv-fund__fill { transition: none; }
html[data-access='1'] .inv-fund__fill::after { display: none; }
html[data-access='1'] .inv-voice {
  background: var(--surface); border: 1.5px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 14px 18px 14px 14px;
}
html[data-access='1'] .inv-voice__play { width: 64px; height: 64px; }
html[data-access='1'] .inv-voice__play .inv-icon { width: 26px; height: 26px; }
html[data-access='1'] .inv-voice__title { font-size: 1.35rem; }
html[data-access='1'] .inv-voice__from, html[data-access='1'] .inv-voice__time, html[data-access='1'] .inv-voice__err { font-size: .95rem; }
html[data-access='1'] .inv-voice__wave { height: 30px; }
html[data-access='1'] .inv-fund__detail, html[data-access='1'] .inv-fund__nums, html[data-access='1'] .inv-fund__mine,
html[data-access='1'] .inv-fund__again, html[data-access='1'] .inv-pay__lead, html[data-access='1'] .inv-pay__note { font-size: 1.05rem; }
html[data-access='1'] .inv-fund__chip { min-height: 60px; font-size: 1.1rem; border-width: 2px; }
html[data-access='1'] .inv-fund__otherwrap { min-height: 56px; border-width: 2px; }
html[data-access='1'] .inv-pay__val { font-size: 1.1rem; }
html[data-access='1'] .inv-pay__row dt { font-size: .78rem; letter-spacing: .14em; }
html[data-access='1'] .inv-song__vote { min-height: 52px; min-width: 72px; font-size: .95rem; border-width: 2px; }
html[data-access='1'] .inv-track { grid-template-columns: 56px minmax(0, 1fr); }
html[data-access='1'] .inv-track__add { grid-column: 1 / -1; width: 100%; }
html[data-access='1'] .inv-track__cover { width: 56px; height: 56px; }
html[data-access='1'] .inv-track__title, html[data-access='1'] .inv-song__title,
html[data-access='1'] .inv-track__artist, html[data-access='1'] .inv-song__artist { white-space: normal; }
html[data-access='1'] .inv-track__title, html[data-access='1'] .inv-song__title { font-size: 1.1rem; }
html[data-access='1'] .inv-track__artist, html[data-access='1'] .inv-song__artist, html[data-access='1'] .inv-search__status,
html[data-access='1'] .inv-search__link, html[data-access='1'] .inv-songs__note { font-size: 1rem; }
html[data-access='1'] .inv-search__link, html[data-access='1'] .inv-search__more { min-height: 48px; }
html[data-access='1'] .inv-song__cover { width: 48px; height: 48px; }
