/* ==========================================================================
   MegaEventos.co — Sistema visual "Nocturne"
   Colores corporativos: morado (acción) y ocre (acento) · Tema oscuro por defecto + versión clara
   Títulos: Plus Jakarta Sans · Texto: Inter · Logo: Fraunces (se conserva el logotipo original)
   El tema se elige con el selector del encabezado (cookie me_theme → <html data-theme>).
   ========================================================================== */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #12131b;
  --bg-deep: #0d0e15;
  --surface: #1a1b23;
  --surface-2: #1e1f27;
  --surface-3: #292932;
  --surface-4: #33343d;
  --text: #e3e1ed;
  --text-2: #cfc2d6;
  --muted: #988d9f;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --primary: #ddb7ff;          /* morado para textos e íconos */
  --primary-strong: #b76dff;   /* morado de relleno */
  --primary-deep: #6001d1;
  --primary-soft: rgba(183, 109, 255, .14);
  --secondary: #d2bbff;
  --on-primary: #ffffff;
  --accent: #ffb95f;           /* ocre para textos e íconos */
  --accent-fill: #ffb95f;      /* ocre de relleno */
  --accent-soft: rgba(255, 185, 95, .14);
  --on-accent: #472a00;
  --grad: linear-gradient(135deg, #a855f7 0%, #6001d1 100%);
  --grad-text: linear-gradient(90deg, #ddb7ff 0%, #d2bbff 50%, #ffddb8 100%);
  --band: #0d0e15;             /* franjas oscuras destacadas */
  --band-2: #1a1b23;
  --on-band: #e3e1ed;
  --on-band-2: rgba(227, 225, 237, .72);
  --band-line: rgba(255, 255, 255, .1);
  --header-bg: rgba(18, 19, 27, .86);
  --scrim: 18, 19, 27;
  --input-bg: #0d0e15;
  --logo-text: #ffffff;
  --logo-em: #ffc53d;
  --ok: #7ee2a8;  --ok-bg: rgba(126, 226, 168, .12);
  --bad: #ffb4ab; --bad-bg: rgba(147, 0, 10, .32);
  --warn: #ffb95f; --warn-bg: rgba(255, 185, 95, .13);
  --info: #bcc9ff; --info-bg: rgba(120, 146, 255, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .22);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .5);
  --glow: 0 12px 34px rgba(183, 109, 255, .36);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f4fa;
  --bg-deep: #ece8f4;
  --surface: #ffffff;
  --surface-2: #f8f6fc;
  --surface-3: #efeaf7;
  --surface-4: #e3dcee;
  --text: #1c1726;
  --text-2: #4a4259;
  --muted: #6c6480;
  --line: rgba(28, 23, 38, .1);
  --line-2: rgba(28, 23, 38, .18);
  --primary: #7b2fd6;
  --primary-strong: #8a3cf0;
  --primary-deep: #6001d1;
  --primary-soft: rgba(123, 47, 214, .09);
  --secondary: #5b2bb8;
  --on-primary: #ffffff;
  --accent: #975800;
  --accent-fill: #ffb24d;
  --accent-soft: rgba(202, 129, 0, .12);
  --on-accent: #3b2300;
  --grad: linear-gradient(135deg, #9346f5 0%, #6001d1 100%);
  --grad-text: linear-gradient(90deg, #7b2fd6 0%, #6001d1 55%, #b56a00 100%);
  --band: #1d1233;
  --band-2: #2a1c47;
  --on-band: #f5f0fc;
  --on-band-2: rgba(245, 240, 252, .74);
  --band-line: rgba(255, 255, 255, .12);
  --header-bg: rgba(255, 255, 255, .88);
  --scrim: 246, 244, 250;
  --input-bg: #ffffff;
  --logo-text: #1c1726;
  --logo-em: #b37a00;
  --ok: #157a44;  --ok-bg: #dcf5e6;
  --bad: #b3261e; --bad-bg: #fde4e1;
  --warn: #8a5300; --warn-bg: #fff1d9;
  --info: #2b4fb8; --info-bg: #e4ebff;
  --shadow: 0 1px 2px rgba(28, 23, 38, .06), 0 10px 28px rgba(60, 30, 110, .08);
  --shadow-lg: 0 24px 60px rgba(60, 30, 110, .16);
  --glow: 0 10px 28px rgba(123, 47, 214, .28);
}
:root {
  --f-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-logo: "Fraunces", Georgia, "Times New Roman", serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --header-h: 72px;
  /* Alias de la versión anterior (panel y vistas heredadas) */
  --night: var(--band);
  --night-2: var(--band-2);
  --night-3: var(--surface-4);
  --bulb: var(--accent);
  --bulb-2: var(--accent-fill);
  --bulb-deep: var(--accent);
  --ember: var(--accent);
  --cream: var(--bg);
  --cream-2: var(--surface-2);
  --paper: var(--surface);
  --ink: var(--text);
  --ink-2: var(--text-2);
  --line-dark: var(--band-line);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; font: 16px/1.6 var(--f-body); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--primary-strong); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-family: var(--f-display); letter-spacing: -.02em; }
h4 { font-family: var(--f-body); letter-spacing: 0; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.link { color: var(--primary); font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link:hover { color: var(--text); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.center { text-align: center; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.c-primary { color: var(--primary); }
.c-accent { color: var(--accent); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.45em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad); color: var(--on-primary); box-shadow: var(--glow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-accent { background: var(--accent-fill); color: var(--on-accent); box-shadow: 0 10px 28px rgba(255, 185, 95, .24); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-dark { background: var(--surface-3); color: var(--text); border-color: var(--line-2); }
.btn-dark:hover { background: var(--surface-4); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost-light { background: rgba(255, 255, 255, .06); color: var(--on-band); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); }
.btn-ghost-light:hover { border-color: var(--primary); color: #fff; background: rgba(255, 255, 255, .1); }
.site-header .btn-ghost-light { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.site-header .btn-ghost-light:hover { color: var(--primary); border-color: var(--primary); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--bad-bg); color: var(--bad); border-color: currentColor; }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px);
  color: var(--text); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: var(--header-h); max-width: 1320px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--logo-text); flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font-family: var(--f-logo); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; line-height: 1; }
.brand-word em { font-style: italic; font-weight: 500; color: var(--logo-em); }
.brand-word small { font-family: var(--f-mono); font-size: .56em; font-weight: 500; color: var(--muted); margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; padding: 9px 11px; border-radius: 999px; white-space: nowrap; }
.section-organizadores .nav a { text-transform: none; letter-spacing: 0; font-size: .88rem; padding: 8px 10px; }
.nav a:hover, .nav a.is-active { color: var(--primary); background: var(--primary-soft); }
.nav a.nav-app { color: var(--accent); }
.nav-cta { display: flex; gap: 8px; align-items: center; margin-left: 6px; }
.nav-login { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 8px; white-space: nowrap; }
.nav-login:hover { color: var(--primary); }
.btn-create { background: var(--surface-3); color: var(--text); border-color: var(--line); }
.btn-create:hover { background: var(--surface-4); }
.country-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; color: var(--text-2); white-space: nowrap; }
.flag-co { width: 16px; height: 11px; border-radius: 2px; background: linear-gradient(#FCD116 0 50%, #003893 50% 75%, #CE1126 75%); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 8px; cursor: pointer; }
.brand-tag { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-soft); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.header-search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 340px; min-width: 160px; margin-left: 8px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 14px; height: 42px; color: var(--muted); }
.header-search input { background: none; border: 0; color: var(--text); width: 100%; font-size: .9rem; outline: none; min-width: 0; }
.header-search input::placeholder { color: var(--muted); }
.header-search:focus-within { border-color: var(--primary); }

/* Selector de tema */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .ic { width: 18px; height: 18px; }
.theme-toggle .when-light, [data-theme="light"] .theme-toggle .when-dark { display: none; }
[data-theme="light"] .theme-toggle .when-light { display: block; }
.theme-toggle-wide { width: auto; gap: 8px; padding: 0 14px; font-size: .86rem; font-weight: 600; }

@media (max-width: 1599px) { .site-header .country-pill { display: none; } }
.section-organizadores .site-header .country-pill { display: none; }
@media (max-width: 1679px) { .section-organizadores .brand-tag { display: none; } }
@media (max-width: 1360px) { .section-organizadores .nav a.nav-app { display: none; } }
@media (max-width: 1320px) { .site-header .btn-create { display: none; } }
@media (max-width: 1200px) {
  .menu-toggle { display: inline-flex; order: 11; }
  .site-header .theme-toggle { margin-left: auto; }
  .nav, .nav-cta { display: none; }
  .site-header.is-open .nav, .site-header.is-open .nav-cta {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; background: var(--bg); padding: 12px 24px;
  }
  .site-header.is-open .nav { top: var(--header-h); margin: 0; }
  .site-header.is-open .nav-cta { top: calc(var(--header-h) + var(--nav-h, 200px)); margin: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .site-header.is-open .nav a { padding: 12px 10px; font-size: .9rem; }
  .site-header.is-open .btn-create { display: inline-flex; }
}
@media (max-width: 760px) { .header-search { display: none; } }
@media (min-width: 761px) and (max-width: 1200px) { .site-header .header-search ~ .theme-toggle { margin-left: 0; } }

/* ---------- Avisos ---------- */
.flashes { max-width: var(--wrap); margin: 16px auto 0; padding: 0 24px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; }
.flash-success { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.flash-error { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.flash-info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }

/* ---------- Marquesina (borde de bombillos del logo original) ---------- */
.marquee { position: relative; }
.marquee::before {
  content: ""; position: absolute; inset: -14px; border-radius: 28px; padding: 11px; pointer-events: none;
  background: radial-gradient(circle, #ffdc85 0 2.4px, rgba(255, 185, 95, .35) 3.2px, transparent 5.5px) 0 0 / 18px 18px;
  -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);
  animation: chase 1.4s steps(2) infinite;
}
@keyframes chase { to { background-position: 9px 0; } }
@media (prefers-reduced-motion: reduce) { .marquee::before { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Hero (sección organizadores) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--text); padding: 80px 0 96px; isolation: isolate;
  background:
    radial-gradient(900px 520px at 85% 15%, rgba(183, 109, 255, .28), transparent 60%),
    radial-gradient(760px 560px at 5% 95%, rgba(255, 185, 95, .16), transparent 60%),
    var(--bg);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.028em; line-height: 1.04; margin-bottom: 22px; }
.hero h1 em, .h2 em, .page-hero h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero .lead { font-size: 1.12rem; color: var(--text-2); max-width: 38em; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero .btn-ghost-light { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.hero .btn-ghost-light:hover { color: var(--primary); border-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .8rem; font-weight: 500; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); background: var(--surface-2); }
.chips li strong { color: var(--accent); font-weight: 700; }

/* Boleta de muestra del hero */
.hero-ticket { margin: 18px; background: var(--surface); color: var(--text); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(1.5deg); border: 1px solid var(--line); }
.hero-ticket .ht-top { padding: 22px 22px 18px; background: radial-gradient(circle at 100% 0, rgba(255, 185, 95, .25), transparent 50%), linear-gradient(135deg, #3a0a78, #120b24); color: #fff; }
.ht-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffb95f; }
.ht-title { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; margin: 6px 0 4px; }
.ht-meta { font-size: .86rem; color: rgba(255, 255, 255, .72); }
.ht-body { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 22px 22px; position: relative; border-top: 2px dashed var(--line-2); }
.ht-body::before, .ht-body::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ht-body::before { left: -12px; } .ht-body::after { right: -12px; }
.ht-row { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 5px 0; border-bottom: 1px solid var(--line); }
.ht-row b { font-variant-numeric: tabular-nums; }
.ht-qr { width: 104px; height: 104px; background: #fff; border-radius: 12px; display: grid; place-items: center; }
.ht-qr svg { width: 88px; height: 88px; }
.ht-live { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--ok); }
.ht-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

/* ---------- Franja de dolores ---------- */
.pains { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pains .wrap { display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 0; align-items: stretch; }
.pains-label { display: flex; align-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; padding: 26px 24px 26px 0; color: var(--text); }
.pain { display: flex; gap: 12px; align-items: center; padding: 26px 20px; border-left: 1px solid var(--line); font-weight: 600; font-size: .93rem; color: var(--text-2); }
.pain .ic { width: 22px; height: 22px; color: var(--accent); }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; }
.section-sm { padding: 64px 0; }
.section-dark {
  background: radial-gradient(700px 420px at 90% 0%, rgba(96, 1, 209, .35), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(255, 185, 95, .1), transparent 60%), var(--band);
  color: var(--on-band); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line);
}
.section-paper { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; display: block; }
.section-dark .kicker { color: #ffb95f; }
.h2 { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.03em; line-height: 1.06; }
.section-dark .h2 em { background: linear-gradient(90deg, #ddb7ff, #ffddb8); -webkit-background-clip: text; background-clip: text; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section-dark .section-head p, .section-dark p { color: var(--on-band-2); }
.section-dark .checklist li, .section-dark h3 { color: var(--on-band); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.icon-tile { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; }
.icon-tile .ic { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; font-weight: 700; }
.card p { color: var(--muted); margin: 0; }

/* Recorrido / video */
.tour { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ic { color: #ffb95f; margin-top: 3px; }
.video-frame { aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: var(--band-2); border: 1px solid var(--band-line); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* Maqueta del panel */
.mock { background: #f7f5fb; color: #1c1726; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 64px 1fr; min-height: 340px; box-shadow: var(--shadow-lg); border: 1px solid var(--band-line); }
.mock-side { background: #1d1233; padding: 14px 10px; display: grid; gap: 10px; align-content: start; }
.mock-side i { display: block; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.mock-side i:first-child { background: var(--grad); }
.mock-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { background: #fff; border-radius: 10px; padding: 10px 12px; border: 1px solid #e6e0ef; }
.mock-kpi small { display: block; font-size: .64rem; color: #6c6480; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.mock-kpi b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.mock-chart { background: #fff; border: 1px solid #e6e0ef; border-radius: 10px; padding: 14px; height: 150px; display: flex; align-items: flex-end; gap: 6px; }
.mock-chart span { flex: 1; background: linear-gradient(180deg, #b76dff, #6001d1); border-radius: 4px 4px 0 0; }
.mock-chart span:nth-child(3n) { background: linear-gradient(180deg, #ffb95f, #ca8100); }
.mock-rows { background: #fff; border: 1px solid #e6e0ef; border-radius: 10px; padding: 6px 12px; }
.mock-rows div { display: flex; justify-content: space-between; font-size: .76rem; padding: 7px 0; border-bottom: 1px solid #eee8f5; }
.mock-rows div:last-child { border: 0; }
.mock-rows em { font-style: normal; font-weight: 700; color: #157a44; }

/* Funcionalidades */
.feature { position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.feature:hover::after { transform: scaleX(1); }
.feature .sub { color: var(--muted); font-size: .95rem; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: .92rem; color: var(--text-2); }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a45cf5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Tarifa */
.pricing { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: center; color: var(--on-band); border-radius: 28px; padding: 48px 56px; position: relative; overflow: hidden; border: 1px solid var(--band-line);
  background: radial-gradient(circle at 100% 0%, rgba(255, 185, 95, .22), transparent 40%), linear-gradient(135deg, #3a0a78 0%, #1d1233 55%, #12131b 100%); }
.price-big { font-family: var(--f-display); font-size: clamp(4.2rem, 9vw, 7rem); font-weight: 800; line-height: .9; color: #ffb95f; letter-spacing: -.05em; }
.price-big small { display: block; font-family: var(--f-body); font-size: 1rem; letter-spacing: 0; color: var(--on-band-2); font-weight: 600; margin-top: 10px; }
.pricing ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.pricing li { display: flex; gap: 10px; }
.pricing li .ic { color: #ffb95f; }
.pricing .fine { grid-column: 1 / -1; font-size: .82rem; color: var(--on-band-2); margin-top: 6px; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34px; border-top: 2px dashed var(--line-2); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num { position: relative; width: 68px; height: 68px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; font-family: var(--f-display); font-size: 1.8rem; font-weight: 800; color: var(--primary); box-shadow: var(--shadow); }
.step:nth-child(even) .step-num { color: var(--accent); }
.step h3 { font-size: 1.08rem; font-weight: 700; }
.step p { font-size: .93rem; color: var(--muted); }
.step-ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.fineprint { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; margin-top: 16px; }

/* Preguntas frecuentes */
.faq { max-width: 860px; margin: 0 auto; }
.faq-group { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ffb95f; margin: 36px 0 10px; padding-left: 12px; border-left: 3px solid #b76dff; }
.faq details { border-bottom: 1px solid var(--band-line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.04rem; position: relative; color: var(--on-band); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; font-weight: 400; color: #ddb7ff; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--on-band-2); padding: 0 40px 20px 0; margin: 0; }
.section-dark.faq-dots { background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), radial-gradient(700px 420px at 90% 0%, rgba(96, 1, 209, .35), transparent 60%); background-size: 22px 22px, auto; }

/* App Access */
.app-band { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--band-line); color: var(--on-band); text-decoration: none; min-width: 200px; cursor: pointer; }
.store-btn:hover { border-color: #ddb7ff; }
.store-btn small { display: block; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-band-2); }
.store-btn b { font-size: 1.02rem; }
.store-btn .ic { width: 28px; height: 28px; color: #ffb95f; }
.phone { width: 260px; height: 520px; border-radius: 38px; background: #0b0a12; padding: 12px; border: 1px solid #3a3048; box-shadow: var(--shadow-lg); }
.phone-screen { height: 100%; border-radius: 28px; background: linear-gradient(180deg, #1d1233, #0d0e15); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.phone-top { padding: 18px 16px 8px; font-size: .78rem; color: rgba(255, 255, 255, .7); display: flex; justify-content: space-between; }
.phone-scan { margin: 10px 18px; border-radius: 18px; position: relative; background: rgba(255, 255, 255, .04); display: grid; place-items: center; }
.phone-scan::before { content: ""; position: absolute; inset: 22px; border: 3px solid #b76dff; border-radius: 14px; clip-path: polygon(0 0, 28% 0, 28% 4%, 4% 4%, 4% 28%, 0 28%, 0 72%, 4% 72%, 4% 96%, 28% 96%, 28% 100%, 72% 100%, 72% 96%, 96% 96%, 96% 72%, 100% 72%, 100% 28%, 96% 28%, 96% 4%, 72% 4%, 72% 0, 100% 0, 100% 100%, 0 100%); }
.phone-scan::after { content: ""; position: absolute; left: 30px; right: 30px; height: 2px; background: #ffb95f; box-shadow: 0 0 12px #ffb95f; animation: scan 2.4s ease-in-out infinite; top: 30%; }
@keyframes scan { 50% { top: 70%; } }
.phone-ok { margin: 12px 16px 18px; padding: 14px; border-radius: 14px; background: #14532d; color: #dcfce7; font-weight: 800; display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.phone-ok small { display: block; font-weight: 500; opacity: .8; font-size: .75rem; }

/* CTA final */
.final-cta { text-align: center; }
.final-cta .h2 { max-width: 16em; margin: 0 auto 16px; }

/* ==========================================================================
   Componentes compartidos del estilo Nocturne (portada, cartelera, organizadores)
   ========================================================================== */
.nx-c-primary { color: var(--primary); }
.nx-c-secondary { color: var(--secondary); }
.nx-c-tertiary { color: var(--accent); }
.nx-c-outline { color: var(--muted); }
.nx-wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 54px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent; font: 700 .95rem/1 var(--f-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, filter .2s ease;
}
.nx-btn:hover { transform: translateY(-1px); }
.nx-btn:active { transform: translateY(0) scale(.98); }
.nx-btn .ic { width: 18px; height: 18px; }
.nx-btn--grad { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.nx-btn--grad:hover { filter: brightness(1.08); }
.nx-btn--glass { background: color-mix(in srgb, var(--surface-2) 70%, transparent); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nx-btn--glass:hover { border-color: color-mix(in srgb, var(--primary) 55%, transparent); }
.nx-btn--solid { background: var(--primary); color: var(--on-primary); }
[data-theme="dark"] .nx-btn--solid, :root:not([data-theme]) .nx-btn--solid { color: #490080; }
.nx-btn--solid:hover { filter: brightness(1.08); }
.nx-btn--muted { background: var(--surface-4); color: var(--text-2); }
.nx-btn--amber { background: var(--accent-fill); color: var(--on-accent); box-shadow: 0 12px 32px rgba(255, 185, 95, .25); }
.nx-btn--amber:hover { filter: brightness(1.05); }
.nx-btn--sm { height: 40px; padding: 0 18px; font-size: .85rem; gap: 6px; }
.nx-btn--lg { height: 60px; padding: 0 32px; font-size: 1rem; }

.nx-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  font: 700 .68rem/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent;
}
.nx-badge .ic { width: 14px; height: 14px; }
.nx-badge--tertiary { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.nx-badge--glass { background: color-mix(in srgb, var(--surface-2) 60%, transparent); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nx-badge--error { background: #93000a; color: #ffdad6; }
.nx-badge--secondary { background: #4b0aa6; color: #eaddff; border-color: rgba(210, 187, 255, .25); }
.nx-badge--primary { background: var(--primary-soft); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.nx-ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }
.nx-ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--primary); animation: nxping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes nxping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.nx-section { padding-top: 104px; }
.nx-section--tight { padding-top: 72px; }
.nx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.nx-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.nx-kicker .ic { width: 16px; height: 16px; }
.nx-h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 14px; color: var(--text); text-wrap: balance; }
.nx-lead { color: var(--text-2); font-size: 1.05rem; line-height: 1.6; max-width: 38em; margin: 0; }
.nx-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.nx-pills { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 26px; scrollbar-width: none; }
.nx-pills::-webkit-scrollbar { display: none; }
.nx-pills--wrap { flex-wrap: wrap; overflow: visible; margin-bottom: 0; }
.nx-pill {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 999px; flex: none;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font: 600 .9rem/1 var(--f-body);
  white-space: nowrap; cursor: pointer; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nx-pill .ic { width: 18px; height: 18px; }
.nx-pill:hover { background: var(--surface-3); color: var(--text); border-color: var(--line-2); }
.nx-pill.is-active { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.nx-pill.is-active .ic { color: inherit; }
.nx-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-4); color: var(--text-2); font-size: .72rem; font-weight: 700; }
.nx-pill.is-active .nx-count { background: var(--primary); color: var(--bg); }

/* Tarjeta de evento */
.nx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nx-grid--4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.nx-card {
  --tone: var(--primary);
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nx-card.is-in { animation: nxin .45s ease both; }
@keyframes nxin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.nx-tone-secondary { --tone: var(--secondary); }
.nx-tone-tertiary { --tone: var(--accent); }
.nx-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tone) 40%, transparent); box-shadow: 0 24px 50px -12px rgba(96, 1, 209, .35); }
.nx-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.nx-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.nx-card:hover .nx-card-media img { transform: scale(1.06); }
.nx-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 55%, color-mix(in srgb, var(--surface) 92%, transparent) 100%); }
.nx-card-badge { position: absolute; top: 14px; left: 14px; z-index: 2; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
/* Sobre la foto las etiquetas van sólidas para que se lean en ambos temas */
.nx-card-badge.nx-badge--primary { background: #7b2fd6; color: #fff; border-color: transparent; }
.nx-card-badge.nx-badge--tertiary { background: #ffb95f; color: #472a00; border-color: transparent; }
.nx-card-badge.nx-badge--secondary { background: #4b0aa6; color: #fff; }
.nx-fav {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(13, 14, 21, .55); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nx-fav:hover { background: rgba(13, 14, 21, .8); transform: scale(1.06); }
.nx-fav .ic { width: 18px; height: 18px; }
.nx-fav.is-fav { background: #b76dff; color: #fff; border-color: #b76dff; }
.nx-fav.is-fav .ic { fill: currentColor; }
.nx-card-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -40px 18px 0; position: relative; z-index: 2; }
.nx-tag { display: inline-flex; padding: 6px 12px; border-radius: 999px; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tone); background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-price { padding: 7px 13px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line-2); font: 700 .86rem/1 var(--f-body); color: var(--accent); white-space: nowrap; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; }
.nx-price:empty { display: none; }
.nx-card-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 16px 22px 22px; }
.nx-card-body h3 { font-weight: 700; font-size: 1.22rem; line-height: 1.18; letter-spacing: -.015em; margin: 0 0 10px; }
.nx-card-body h3 a { color: var(--text); text-decoration: none; }
.nx-card-body h3 a:hover { color: var(--tone); }
.nx-card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nx-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); font-weight: 500; }
.nx-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.nx-card-meta .ic { width: 15px; height: 15px; }
.nx-card-body p { margin: 10px 0 0; font-size: .9rem; line-height: 1.55; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.nx-mini { display: inline-flex; align-items: center; gap: 9px; font-size: .8rem; color: var(--muted); min-width: 0; }
.nx-mini b { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--surface-3); color: var(--tone); font-size: .76rem; font-weight: 800; }
.nx-mini b .ic { width: 15px; height: 15px; }
.nx-card .nx-fav, .nx-card .nx-card-badge { z-index: 3; }
.nx-more { text-align: center; margin-top: 44px; }
.nx-more p { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.nx-empty { text-align: center; padding: 72px 24px; border-radius: 28px; background: var(--surface); border: 1px dashed var(--line-2); }
.nx-empty > .ic { width: 52px; height: 52px; margin-bottom: 14px; color: var(--primary); }
.nx-empty h3 { font-size: 1.6rem; margin: 0 0 10px; }
.nx-empty p { color: var(--text-2); max-width: 34em; margin: 0 auto 24px; }

/* ---------- Encabezado de página (cartelera, organizador, academia) ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: 64px 0 48px; border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 360px at 88% 0%, rgba(183, 109, 255, .24), transparent 62%), radial-gradient(600px 360px at 0% 120%, rgba(255, 185, 95, .12), transparent 60%), var(--bg);
}
.page-hero h1 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.03em; margin: 0 0 10px; }
.page-hero .lead, .page-hero p { color: var(--text-2); max-width: 42em; font-size: 1.05rem; margin: 0; }
.page-hero .kicker a { color: inherit; text-decoration: none; }
.org-hero { display: flex; gap: 22px; align-items: center; }
.org-hero img { width: 88px; height: 88px; border-radius: 22px; object-fit: cover; background: #fff; box-shadow: var(--shadow); flex: none; }
.org-hero a { color: var(--primary); }

/* Filtros de la cartelera */
.filters {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 6px; padding: 8px; margin: -34px 0 32px; position: relative; z-index: 2;
  background: color-mix(in srgb, var(--surface-2) 94%, transparent); border: 1px solid var(--line-2); border-radius: 28px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.filters .input, .filters .select { border: 0; background: transparent; border-radius: 22px; padding: 14px 18px; font-weight: 600; box-shadow: none; }
.filters .input:hover, .filters .select:hover, .filters .input:focus, .filters .select:focus { background: var(--surface-3); box-shadow: none; }
.filters .btn { border-radius: 22px; }
.result-count { color: var(--muted); margin-bottom: 18px; font-size: .92rem; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: .86rem; color: var(--text); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--input-bg); color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23988d9f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.select option { background: var(--surface-2); color: var(--text); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.textarea { min-height: 120px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 10px; cursor: pointer; color: var(--text-2); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary-strong); flex: none; }
.check a { color: var(--primary); }
.hp { position: absolute; left: -9999px; }

/* ---------- Página de evento ---------- */
.event-hero { position: relative; overflow: hidden; color: var(--text); padding: 56px 0 64px; isolation: isolate; border-bottom: 1px solid var(--line); }
.event-hero-bg { position: absolute; inset: -40px; z-index: -2; }
.event-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(34px) saturate(1.3); opacity: .55; transform: scale(1.1); }
.event-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--scrim), .97) 0%, rgba(var(--scrim), .86) 50%, rgba(var(--scrim), .6) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(var(--scrim), 0) 40%); }
.event-hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
/* Portada del evento: se ve completa (sin recorte) y se amplía al tocarla */
.event-hero .cover { position: relative; display: grid; place-items: center; border-radius: 24px; overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); min-height: 200px; cursor: zoom-in; isolation: isolate; }
.event-hero .cover-fill { position: absolute; inset: 0; z-index: -1; }
.event-hero .cover-fill img { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.2); transform: scale(1.15); opacity: .55; }
.event-hero .cover-img { display: block; width: 100%; height: auto; max-height: min(64vh, 540px); object-fit: contain; transition: transform .35s ease; }
.event-hero .cover:hover .cover-img { transform: scale(1.015); }
.event-hero .cover:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.cover-zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; background: rgba(12, 10, 20, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .18); opacity: .92; transition: opacity .2s, transform .2s; pointer-events: none; }
.cover-zoom .ic { width: 15px; height: 15px; }
.event-hero .cover:hover .cover-zoom { opacity: 1; transform: translateY(-2px); }
.event-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
.event-hero .subtitle { color: var(--text-2); font-size: 1.1rem; }
.event-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.event-facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; color: var(--text-2); }
.event-facts li { display: flex; gap: 10px; align-items: center; }
.event-facts .ic { color: var(--accent); }
.org-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-2); margin-bottom: 14px; text-decoration: none; }
.org-chip strong { color: var(--text); }
.org-chip:hover strong { color: var(--primary); }
.org-chip img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; background: #fff; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 36px; align-items: start; padding-top: 40px; padding-bottom: 96px; }
.event-layout h2 { font-size: 1.5rem; }
.buy-box { position: sticky; top: calc(var(--header-h) + 20px); }
.buy-box .card { border-radius: 24px; }
.buy-box h2 { font-size: 1.4rem; margin-bottom: 4px; }
.tt { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.tt:last-of-type { border-bottom: 0; }
.tt-name { font-weight: 700; }
.tt-desc { font-size: .84rem; color: var(--muted); }
.tt-price { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.tt-state { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.tt-state.soldout, .tt-state.ended { color: var(--bad); }
.tt-state.locked, .tt-state.soon { color: var(--muted); }
.tt-state.low { color: var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 1.2rem; font-weight: 700; cursor: pointer; color: var(--primary); }
.qty button:hover { background: var(--primary-soft); }
.qty input { width: 38px; text-align: center; border: 0; font-weight: 700; background: none; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; font-weight: 700; border-top: 1px solid var(--line-2); margin-top: 8px; }
.buy-total b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.test-banner { background: var(--warn-bg); color: var(--warn); font-size: .85rem; font-weight: 600; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; display: flex; gap: 8px; }
.prose { font-size: 1.02rem; color: var(--text-2); }
.prose p { margin-bottom: 1em; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
.info-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.info-item small { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: block; }
.info-item b { font-size: .98rem; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: .9rem; margin-bottom: 16px; align-items: flex-start; }
.callout .ic { margin-top: 2px; flex: none; }
.callout p { margin: 0; }
.callout-info { background: var(--info-bg); color: var(--info); }
.callout-warn { background: var(--warn-bg); color: var(--warn); }
.callout-ok { background: var(--ok-bg); color: var(--ok); }
.callout-dark { background: var(--band); color: var(--on-band); }
.callout-dark .ic { color: #ffb95f; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; padding-top: 40px; padding-bottom: 96px; }
.checkout h1, .checkout h2 { font-size: 1.5rem; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .95rem; }
.summary-line span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.summary-line.total { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 1.1rem; }
.summary-line.total span:last-child { color: var(--accent); }
.holder-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.secure-note { display: flex; gap: 8px; font-size: .82rem; color: var(--muted); margin-top: 12px; }
.steps-bar { display: flex; gap: 8px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.steps-bar b { color: var(--primary); }

/* ---------- Orden y boletas ---------- */
.order-status { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius); margin-bottom: 24px; border: 1px solid transparent; }
.order-status .ic { width: 36px; height: 36px; flex: none; }
.order-status.paid { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.order-status.pending { background: var(--warn-bg); color: var(--warn); }
.order-status.failed, .order-status.expired, .order-status.cancelled, .order-status.refunded { background: var(--bad-bg); color: var(--bad); }
.order-status h1 { font-size: 1.4rem; margin: 0; }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.ticket { background: var(--surface); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); break-inside: avoid; }
.ticket-head { background: radial-gradient(circle at 100% 0, rgba(255, 185, 95, .25), transparent 50%), linear-gradient(135deg, #3a0a78, #120b24); color: #fff; padding: 16px 18px; }
.ticket-head small { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffb95f; }
.ticket-head h3 { font-size: 1.15rem; margin: 4px 0 2px; color: #fff; }
.ticket-head p { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .72); }
.ticket-body { padding: 18px; display: grid; justify-items: center; gap: 10px; border-top: 2px dashed var(--line-2); position: relative; }
.ticket-body::before, .ticket-body::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; background: var(--bg); border-radius: 50%; }
.ticket-body::before { left: -11px; } .ticket-body::after { right: -11px; }
.qr-box { width: 220px; height: 220px; display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 10px; }
.qr-box svg, .qr-box img { width: 100%; height: 100%; }
.ticket-code { font-family: var(--f-mono); font-weight: 600; letter-spacing: .12em; font-size: 1.05rem; }
.ticket-holder { font-weight: 800; }
.ticket-type { font-size: .85rem; color: var(--muted); }
.ticket.is-used { opacity: .55; }

/* ---------- Simulador de pagos ---------- */
.sim { max-width: 540px; margin: 48px auto; }
.sim-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.sim-methods label { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; text-align: center; cursor: pointer; font-weight: 700; font-size: .88rem; background: var(--surface-2); }
.sim-methods input { display: none; }
.sim-methods input:checked + span { color: var(--primary); }
.sim-methods label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

/* ---------- Autenticación ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-side { color: var(--on-band); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  background: radial-gradient(circle at 100% 100%, rgba(255, 185, 95, .22), transparent 45%), radial-gradient(circle at 0% 0%, rgba(183, 109, 255, .35), transparent 50%), #120b24; }
.auth-side .brand { color: #fff; }
.auth-side .brand-word em { color: #ffc53d; }
.auth-quote { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; max-width: 13em; position: relative; z-index: 1; color: #fff; }
.auth-quote em { font-style: normal; color: #ffb95f; }
.auth-side-note { color: rgba(255, 255, 255, .72); position: relative; z-index: 1; margin: 0; }
.auth-side-foot { color: rgba(255, 255, 255, .5); position: relative; z-index: 1; font-size: .8rem; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; position: relative; }
.auth-main .theme-toggle { position: absolute; top: 20px; right: 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.auth-card .brand { margin-bottom: 18px; }

/* ---------- Legal, academia y documentos ---------- */
.doc { max-width: 840px; margin: 0 auto; padding: 56px 24px 96px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.doc h2 { font-size: 1.3rem; margin-top: 2em; }
.doc a { color: var(--primary); }
.doc .draft-note { background: var(--warn-bg); color: var(--warn); border-radius: 14px; padding: 12px 16px; font-size: .9rem; margin-bottom: 24px; }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.guide summary { padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 1.05rem; display: flex; gap: 12px; align-items: center; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary .num { font-family: var(--f-mono); color: var(--accent); font-size: .85rem; }
.guide .guide-body { padding: 0 22px 20px 22px; color: var(--text-2); }
.guide ol { padding-left: 1.2em; }
.guide li { margin-bottom: 6px; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--bg-deep); color: var(--text-2); padding: 72px 0 28px; font-size: .92rem; border-top: 1px solid var(--line); }
.site-footer .wrap { max-width: 1320px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid > * { min-width: 0; overflow-wrap: anywhere; }
.site-footer h4 { color: var(--text); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer .mono { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }

/* Suscripción a preventas */
.newsletter { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 340px; }
.newsletter-title { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.newsletter-row { display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; }
.newsletter-row:focus-within { border-color: var(--primary); }
.newsletter-row input { flex: 1; width: 0; min-width: 0; background: none; border: 0; color: var(--text); padding: 8px 12px; outline: none; font-size: .9rem; }
.newsletter-row input::placeholder { color: var(--muted); }
.newsletter-row button { border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 800; background: var(--accent-fill); color: var(--on-accent); cursor: pointer; }
.newsletter-row button:hover { filter: brightness(1.05); }
.newsletter-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .74rem; color: var(--muted); line-height: 1.4; }
.newsletter-consent input { margin-top: 2px; accent-color: var(--primary-strong); }
.newsletter-consent a { text-decoration: underline; }

/* ---------- Utilidades ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-mute { background: var(--surface-3); color: var(--muted); }
.badge-gold { background: var(--accent-soft); color: var(--accent); }
.badge-purple { background: var(--primary-soft); color: var(--primary); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; font-weight: 700; font-size: .88rem; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--grad); color: #fff; border-color: transparent; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ic { width: 44px; height: 44px; color: var(--primary); margin-bottom: 10px; }

/* Calculadora de tarifa */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.calc-out { color: var(--on-band); border-radius: 24px; padding: 28px; display: grid; gap: 14px; align-content: start; border: 1px solid var(--band-line);
  background: radial-gradient(circle at 100% 0%, rgba(255, 185, 95, .2), transparent 45%), linear-gradient(135deg, #3a0a78 0%, #1d1233 60%, #12131b 100%); }
.calc-out .row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--band-line); padding-bottom: 12px; }
.calc-out .row:last-child { border-bottom: 0; }
.calc-out b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.calc-out .big b { font-size: 1.9rem; color: #ffb95f; }
.calc-out small { color: var(--on-band-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pains .wrap { grid-template-columns: repeat(2, 1fr); }
  .pains-label { grid-column: 1 / -1; padding: 22px 0 0; }
  .pain { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .nx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero .wrap, .tour, .app-band, .event-hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
  .pricing { grid-template-columns: 1fr; padding: 36px 28px; gap: 24px; }
  .event-layout, .checkout { grid-template-columns: minmax(0, 1fr); }
  .buy-box { position: static; }
  .event-layout .buy-box { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .filters { grid-template-columns: 1fr 1fr; border-radius: 24px; }
  .filters .input { grid-column: 1 / -1; }
  .filters .btn { grid-column: 1 / -1; }
  .phone-wrap { display: none; }
  .calc { grid-template-columns: 1fr; }
  .event-hero .cover { order: -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 16px; }
  .nx-wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .grid-3, .grid-2, .row-2, .row-3 { grid-template-columns: 1fr; }
  .pains .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; margin-top: -28px; }
  .sim-methods { grid-template-columns: 1fr; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .hero-ticket { transform: none; }
  .card { padding: 22px; }
  .nx-grid { grid-template-columns: 1fr; gap: 18px; }
  .page-hero { padding: 44px 0 52px; }
  .event-hero { padding: 28px 0 40px; }
  .org-hero { flex-direction: column; align-items: flex-start; }
  .site-header .wrap { gap: 10px; }
  .brand-word { font-size: 1.18rem; }
}

@media print {
  :root, [data-theme] { --bg: #fff; --surface: #fff; --text: #111; --text-2: #333; --muted: #555; --line: #ccc; --line-2: #999; }
  .site-header, .site-footer, .no-print, .flashes, .theme-toggle { display: none !important; }
  body { background: #fff; color: #111; }
  .ticket { box-shadow: none; border: 1px solid #999; page-break-inside: avoid; }
  .tickets { grid-template-columns: 1fr 1fr; }
}

/* Transición suave al cambiar de tema */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: background-color .3s ease, color .3s ease, border-color .3s ease !important; }
@media (min-width: 1201px) { .site-header .theme-toggle { order: 10; } }

/* ---------- Barra de anuncio, vista previa del borrador, redes y pie configurable ---------- */
.announce { display: flex; align-items: center; justify-content: center; gap: 10px; height: 38px; padding: 0 16px; font-size: .85rem; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; }
.announce span { overflow: hidden; text-overflow: ellipsis; }
.announce a { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: inherit; flex: none; }
.announce a .ic { width: 15px; height: 15px; }
.announce--purple { background: linear-gradient(90deg, #6001d1, #a855f7); color: #fff; }
.announce--ocre { background: #ffb95f; color: #472a00; }
.site-header.has-announce { --announce-h: 38px; }
@media (max-width: 1200px) {
  .site-header.has-announce.is-open .nav { top: calc(var(--header-h) + var(--announce-h)); }
  .site-header.has-announce.is-open .nav-cta { top: calc(var(--header-h) + var(--announce-h) + var(--nav-h, 200px)); }
}
.preview-bar {
  position: fixed; z-index: 90; left: 50%; bottom: 18px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px);
  display: flex; gap: 10px; align-items: center; padding: 10px 18px; border-radius: 999px; background: #ffb95f; color: #472a00;
  font-size: .86rem; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); flex-wrap: wrap; justify-content: center;
}
.preview-bar a { font-weight: 800; color: inherit; }
.social-links { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; }
.social-links a:hover { border-color: var(--primary); }
.social-links .ic { width: 13px; height: 13px; }
.footer-grid--0 { grid-template-columns: 1fr; }
.footer-grid--1 { grid-template-columns: 1.4fr 1fr; }
.footer-grid--2 { grid-template-columns: 1.4fr 1fr 1fr; }
.footer-grid--4 { grid-template-columns: 1.3fr repeat(4, 1fr); }
@media (max-width: 960px) { .footer-grid[class*="footer-grid--"] { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid[class*="footer-grid--"] { grid-template-columns: 1fr; } }

/* Venta externa y «Organiza» sin página propia */
span.org-chip { cursor: default; }
span.org-chip:hover strong { color: var(--text); }
.buy-external-price { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; color: var(--accent); margin: 6px 0 4px; }
.buy-external .btn { margin-top: 14px; }

/* Galería del evento (debajo de «Boletas») */
.buy-box.has-gallery { position: static; }
.ev-gallery { margin-top: 18px; border-radius: 24px; }
.ev-gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ev-gallery-head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 0; }
.ev-gallery-head h2 .ic { width: 20px; height: 20px; color: var(--primary); }
.ev-gallery-head .muted { font-size: .84rem; }
.ev-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev-gallery-grid--1 { grid-template-columns: 1fr; }
.ev-gallery-grid--2, .ev-gallery-grid--4 { grid-template-columns: repeat(2, 1fr); }
.ev-gallery-item { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-3); cursor: zoom-in; }
.ev-gallery-grid--1 .ev-gallery-item { aspect-ratio: 16 / 10; }
.ev-gallery-item[hidden] { display: none; }
.ev-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s; }
.ev-gallery-item:hover img { transform: scale(1.06); }
.ev-gallery-item:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.ev-gallery-more { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; color: #fff; background: rgba(12, 10, 20, .58); }

/* Visor de imágenes a pantalla completa */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: 1fr auto; align-items: center; background: rgba(8, 6, 14, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; animation: lb-in .18s ease; touch-action: pan-y; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { grid-column: 2; grid-row: 1; margin: 0; height: 100%; min-height: 0; display: grid; place-items: center; padding: 56px 0 8px; }
.lb-img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none; }
.lb-bar { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; align-items: baseline; gap: 14px; padding: 12px 20px 22px; font-size: .92rem; color: rgba(255, 255, 255, .85); text-align: center; }
.lb-count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .6); font-size: .84rem; white-space: nowrap; }
.lb-btn { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-btn:focus-visible { outline: 2px solid #b76dff; outline-offset: 3px; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { grid-column: 1; grid-row: 1; justify-self: center; }
.lb-next { grid-column: 3; grid-row: 1; justify-self: center; }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lb.is-single .lb-prev, .lb.is-single .lb-next, .lb.is-single .lb-count { display: none; }
@media (max-width: 640px) {
  .lb { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lb-fig { padding: 64px 8px 0; }
  .lb-prev, .lb-next { position: absolute; bottom: 14px; }
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
  .lb-bar { padding: 12px 76px 24px; min-height: 76px; align-items: center; flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .lb { animation: none; } .ev-gallery-item img, .event-hero .cover-img { transition: none; } }
.lb[hidden] { display: none; }
.prose a.link { overflow-wrap: anywhere; }
/* Video del evento (YouTube / Vimeo) */
.ev-video { position: relative; aspect-ratio: 16 / 9; margin-top: 14px; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.ev-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ev-video-title { margin-top: 32px; }
