/* =====================================================================
   BOLEVA — Sistema de diseño
   Identidad: morado tecnológico sobre fondos oscuros.
   ===================================================================== */

:root {
  --bg: #0d0c16;
  --bg-2: #101019;
  --surface: #161524;
  --card: #1c1b2a;
  --card-2: #242338;
  --card-hover: #262540;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);

  --text: #ffffff;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --muted-2: #71717a;

  --primary: #7c3aed;
  --primary-600: #6d28d9;
  --primary-dark: #4c1d95;
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.14);
  --fuchsia: #c026d3;

  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.14);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.14);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.14);
  --info: #38bdf8;

  --grad: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  --grad-hot: linear-gradient(135deg, #6d28d9 0%, #a21caf 100%);
  --grad-text: linear-gradient(100deg, #c4b5fd 0%, #a78bfa 35%, #e879f9 100%);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 10px 40px rgba(124, 58, 237, 0.35);

  --container: 1200px;
  --nav-h: 72px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(192, 38, 211, 0.08), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: #c4b5fd; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
::selection { background: rgba(124, 58, 237, 0.55); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.xs { font-size: 0.78rem; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.center { text-align: center; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- Iconos ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }
.icon-lg { width: 1.6em; height: 1.6em; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--card-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--text);
  font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, border-color 0.18s, opacity 0.18s;
}
.btn:hover { color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-loading { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); box-shadow: 0 6px 22px rgba(124, 58, 237, 0.38); }
.btn-primary:hover { box-shadow: 0 10px 32px rgba(124, 58, 237, 0.55); }
.btn-hot { background: var(--grad-hot); box-shadow: 0 6px 22px rgba(162, 28, 175, 0.35); }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(167, 139, 250, 0.5); }
.btn-soft { background: var(--violet-soft); color: #ddd6fe; }
.btn-soft:hover { background: rgba(167, 139, 250, 0.24); }
.btn-danger { background: var(--danger-soft); color: #fecaca; border-color: rgba(239, 68, 68, 0.35); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); color: #fff; }
.btn-success { background: var(--success); color: #052e16; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px; border-radius: 12px; }
.is-loading::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 12, 22, 0.82);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 64px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: 0.14em; font-size: 1.2rem; flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(124, 58, 237, 0.55)); }
.brand small { display: block; font-size: 0.6rem; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.nav-search { position: relative; flex: 1; max-width: 520px; display: flex; align-items: center; }
.nav-search .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.nav-search input {
  width: 100%; padding: 10px 14px 10px 42px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 0.9rem; transition: 0.15s;
}
.nav-search input:focus { outline: none; border-color: var(--violet); background: rgba(124, 58, 237, 0.08); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-tool { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.nav-tool:hover, .nav-tool.active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; padding: 8px; cursor: pointer; margin-left: auto; }
.subnav { border-top: 1px solid var(--line); }
.subnav-inner { height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.subnav-cta { display: flex; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a, .nav-more-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 0; background: none;
  color: var(--muted); font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-links a:hover, .nav-more-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a.active, .nav-more-btn.active { color: var(--text); background: var(--violet-soft); }
.nav-more { position: relative; }
.nav-more-menu {
  position: absolute; left: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; z-index: 60;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: 0.18s var(--ease);
}
.nav-more.open .nav-more-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-more-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-size: 0.9rem; }
.nav-more-menu a span { margin-left: auto; }
.nav-more-menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.drawer-only { display: none; }

.user-menu { position: relative; }
.user-trigger {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.user-trigger:hover { border-color: rgba(167, 139, 250, 0.5); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.02em;
}
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 8px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: 0.18s var(--ease);
}
.user-menu.open .user-dropdown { opacity: 1; transform: none; pointer-events: auto; }
.user-dropdown .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-dropdown .who strong { display: block; }
.user-dropdown a, .user-dropdown button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--text-2); background: none; border: 0; font: inherit; font-size: 0.92rem; cursor: pointer; text-align: left;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.role-pill { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; background: var(--violet-soft); color: #ddd6fe; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Banner de demostración ---------- */
.demo-strip {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.25), rgba(192, 38, 211, 0.18));
  border-bottom: 1px solid var(--line); color: #e9d5ff; font-size: 0.8rem; text-align: center; padding: 6px 16px;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 140px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(600px 380px at 18% 22%, rgba(124, 58, 237, 0.55), transparent 65%),
    radial-gradient(520px 360px at 85% 12%, rgba(192, 38, 211, 0.32), transparent 65%),
    radial-gradient(800px 420px at 60% 110%, rgba(76, 29, 149, 0.75), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); font-size: 0.82rem; font-weight: 600; color: #e9d5ff;
}
.eyebrow b { background: var(--grad); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); margin: 22px 0 18px; letter-spacing: -0.035em; line-height: 1.04; }
.hero p.lead { font-size: 1.15rem; color: var(--text-2); max-width: 560px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.6rem; font-weight: 800; }
.hero-stats div span { color: var(--muted); font-size: 0.85rem; }

.hero-visual { position: relative; height: 420px; }
.float-ticket {
  position: absolute; width: 300px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, #241f3d, #17152a); border: 1px solid rgba(167, 139, 250, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  animation: float 7s ease-in-out infinite;
}
.float-ticket.t1 { right: 20px; top: 0; transform: rotate(6deg); }
.float-ticket.t2 { left: 0; bottom: 10px; transform: rotate(-7deg); animation-delay: -3.5s; width: 270px; }
.float-ticket .ft-cover { height: 120px; background-size: cover; background-position: center; }
.float-ticket .ft-body { padding: 16px 18px 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.float-ticket .ft-body strong { display: block; font-size: 1rem; line-height: 1.25; }
.float-ticket .ft-body span { color: var(--muted); font-size: 0.78rem; }
.float-ticket .ft-qr { width: 64px; height: 64px; border-radius: 10px; background: #fff; padding: 6px; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
.chip-float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: rgba(28, 27, 42, 0.9); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 0.85rem; font-weight: 600;
  backdrop-filter: blur(8px);
}
.chip-float.c1 { left: 40px; top: 30px; }
.chip-float.c2 { right: 0; bottom: 70px; }
.chip-float .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }

/* ---------- Buscador ---------- */
.search-wrap { margin-top: -82px; position: relative; z-index: 5; }
.search-card {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 10px; padding: 12px;
  background: rgba(28, 27, 42, 0.92); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.search-field { position: relative; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search-field input, .search-field select { padding-left: 46px; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .label { font-size: 0.86rem; font-weight: 700; color: var(--text-2); }
.field .hint { font-size: 0.78rem; color: var(--muted); }
.field .error-text { font-size: 0.8rem; color: #fca5a5; min-height: 0; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input::placeholder { color: var(--muted-2); }
.input:hover { border-color: rgba(255, 255, 255, 0.2); }
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.22); background: #13121f; }
.input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16); }
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' 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; padding-right: 40px;
}
select.input option { background: var(--card); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.55; }
input[type="datetime-local"].input, input[type="date"].input { color-scheme: dark; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.input-prefix > .input { padding-left: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--card); font-size: 0.92rem;
}
.alert .icon { margin-top: 2px; }
.alert-info { background: var(--violet-soft); border-color: rgba(167, 139, 250, 0.3); color: #ede9fe; }
.alert-warn { background: var(--warning-soft); border-color: rgba(245, 158, 11, 0.35); color: #fde68a; }
.alert-danger { background: var(--danger-soft); border-color: rgba(239, 68, 68, 0.35); color: #fecaca; }
.alert-success { background: var(--success-soft); border-color: rgba(34, 197, 94, 0.35); color: #bbf7d0; }

.segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); width: 100%; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { padding: 10px 12px; border-radius: 10px; text-align: center; cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--muted); transition: 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.segmented input:checked + label { background: var(--grad); color: #fff; box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35); }
.segmented input:focus-visible + label { outline: 2px solid var(--violet); }

/* ---------- Tarjetas ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-glass { background: rgba(28, 27, 42, 0.75); backdrop-filter: blur(10px); }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; margin: 0 0 16px; }
.card-title .icon { color: var(--violet); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.kicker { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }

/* Tarjeta de evento */
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.event-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.event-card:hover { transform: translateY(-5px); border-color: rgba(167, 139, 250, 0.4); box-shadow: var(--shadow), 0 0 0 1px rgba(124, 58, 237, 0.2); color: var(--text); }
.event-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--card-2); }
.event-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.event-card:hover .event-cover img { transform: scale(1.06); }
.event-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13, 12, 22, 0.75)); }
.cat-chip {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  background: rgba(13, 12, 22, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px);
}
.date-badge {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 54px; padding: 6px 0; border-radius: 14px; text-align: center;
  background: #fff; color: #1e1b4b; box-shadow: var(--shadow-sm); line-height: 1.05;
}
.date-badge b { display: block; font-size: 1.35rem; font-weight: 800; }
.date-badge span { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); }
.demo-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 6px; background: rgba(124, 58, 237, 0.85); }
.event-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-body h3 { font-size: 1.08rem; margin: 0; line-height: 1.3; }
.meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.86rem; }
.meta .icon { color: var(--violet); }
.event-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price small { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.price strong { font-size: 1.15rem; font-weight: 800; }
.avail { font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.avail.ok { background: var(--success-soft); color: #86efac; }
.avail.low { background: var(--warning-soft); color: #fcd34d; }
.avail.out { background: var(--danger-soft); color: #fca5a5; }
.avail.off { background: rgba(255, 255, 255, 0.06); color: var(--muted); }

/* Categorías */
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 18px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--text); transition: 0.25s var(--ease); position: relative; overflow: hidden;
}
.cat-tile::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%); opacity: 0; transition: 0.3s; }
.cat-tile:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.4); color: var(--text); }
.cat-tile:hover::before { opacity: 1; }
.cat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); box-shadow: var(--shadow-glow); }
.cat-icon .icon { width: 24px; height: 24px; }
.cat-tile strong { font-size: 1rem; }
.cat-tile span { color: var(--muted); font-size: 0.82rem; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 22px; top: 18px; font-size: 2.6rem; font-weight: 800; color: rgba(167, 139, 250, 0.12); }
.step .cat-icon { margin-bottom: 16px; }
.step p { color: var(--muted); margin: 0; }

/* CTA organizadores */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 56px;
  background: linear-gradient(135deg, #2e1065 0%, #4c1d95 45%, #6d28d9 100%);
  border: 1px solid rgba(167, 139, 250, 0.35); box-shadow: var(--shadow-glow);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.cta::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 121, 249, 0.35), transparent 70%); }
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.cta p { color: #e9d5ff; font-size: 1.05rem; }
.cta ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.cta li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(13, 12, 22, 0.35); border: 1px solid rgba(255, 255, 255, 0.1); font-weight: 600; }
.cta li .icon { color: #c4b5fd; }

/* Footer */
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: rgba(13, 12, 22, 0.6); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-2); font-size: 0.92rem; }
.footer a:hover { color: var(--violet); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; }

/* ---------- Encabezados de página ---------- */
.page-head { padding: 44px 0 26px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--muted); margin: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* ---------- Explorar ---------- */
.explore-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 18px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text-2); font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: 0.15s;
}
.chip:hover { border-color: rgba(167, 139, 250, 0.5); color: var(--text); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }

/* ---------- Detalle de evento ---------- */
.event-hero { position: relative; overflow: hidden; padding: 36px 0 44px; isolation: isolate; }
.event-hero .backdrop { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(24px) saturate(140%); opacity: 0.4; transform: translateZ(0); }
.event-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 12, 22, 0.35), var(--bg) 92%); }
.event-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; }
.event-hero-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); border: 1px solid var(--line-2); background: var(--card-2); }
.event-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.event-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0; }
.info-list { display: grid; gap: 14px; margin: 22px 0 0; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .ii-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); flex: none; }
.info-item strong { display: block; }
.info-item span { color: var(--muted); font-size: 0.9rem; }
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.description { white-space: pre-line; color: var(--text-2); font-size: 1.02rem; }
.buy-card { position: sticky; top: calc(var(--nav-h) + 20px); }
.buy-card .price-big { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
.progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 0.6s var(--ease); }
.progress.warn > span { background: linear-gradient(90deg, #f59e0b, #f97316); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); font-size: 1.3rem; cursor: pointer; }
.stepper button:hover:not([disabled]) { background: var(--violet-soft); }
.stepper button[disabled] { opacity: 0.35; cursor: not-allowed; }
.stepper output { min-width: 48px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--text-2); }
.summary-row.total { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 14px; color: var(--text); font-weight: 800; font-size: 1.15rem; }

/* ---------- Modal ---------- */
dialog.modal {
  width: min(520px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: var(--card); color: var(--text); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
dialog.modal::backdrop { background: rgba(5, 4, 12, 0.72); backdrop-filter: blur(6px); }
dialog.modal[open] { animation: pop 0.25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.modal-head { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 18px 24px; }
.modal-foot { padding: 0 24px 24px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.close-x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.close-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; max-width: min(380px, calc(100% - 40px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  background: var(--card-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 0.92rem;
  animation: toast-in 0.3s var(--ease);
}
.toast.success .icon { color: var(--success); }
.toast.error .icon { color: var(--danger); }
.toast.info .icon { color: var(--violet); }
.toast.leaving { animation: toast-out 0.25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; padding: 64px; display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(500px 360px at 30% 30%, rgba(124, 58, 237, 0.6), transparent 70%),
    radial-gradient(420px 320px at 80% 80%, rgba(192, 38, 211, 0.35), transparent 70%),
    linear-gradient(160deg, #1e1040, #0d0c16);
}
.auth-side h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 460px; }
.auth-side p { color: #ddd6fe; max-width: 420px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 2rem; }
.demo-accounts { display: grid; gap: 8px; margin-top: 18px; }
.demo-accounts button {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px dashed var(--line-2); color: var(--text-2); font: inherit; font-size: 0.86rem; cursor: pointer; text-align: left;
}
.demo-accounts button:hover { border-color: var(--violet); color: var(--text); }

/* ---------- Boletos ---------- */
.tickets-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ticket {
  --notch: 14px;
  position: relative; display: grid; grid-template-columns: 1fr 170px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(150deg, #231e3c 0%, #1a1830 60%, #15132a 100%);
  border: 1px solid rgba(167, 139, 250, 0.25); box-shadow: var(--shadow);
}
.ticket-main { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ticket-main h3 { margin: 0; font-size: 1.1rem; }
.ticket-stub {
  position: relative; padding: 18px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255, 255, 255, 0.03); border-left: 2px dashed rgba(167, 139, 250, 0.35);
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; left: calc(var(--notch) * -1 - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  border-radius: 50%; background: var(--bg);
}
.ticket-stub::before { top: calc(var(--notch) * -1); }
.ticket-stub::after { bottom: calc(var(--notch) * -1); }
.qr-box { width: 130px; height: 130px; border-radius: 14px; background: #fff; padding: 6px; display: grid; place-items: center; }
.qr-box img { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-box.used, .qr-box.cancelled { opacity: 0.35; filter: grayscale(1); }
.code-pill { font-family: var(--mono); font-weight: 700; font-size: 0.85rem; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); letter-spacing: 0.06em; }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-valid, .st-published, .st-paid, .st-active { background: var(--success-soft); color: #86efac; }
.st-used { background: var(--violet-soft); color: #c4b5fd; }
.st-cancelled, .st-refunded, .st-suspended { background: var(--danger-soft); color: #fca5a5; }
.st-draft { background: var(--warning-soft); color: #fcd34d; }
.st-past { background: rgba(255, 255, 255, 0.07); color: var(--muted); }

/* Boleto completo */
.eticket {
  max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(150deg, #241e40, #17152b 70%); border: 1px solid rgba(167, 139, 250, 0.3); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.eticket-cover { height: 180px; background-size: cover; background-position: center; position: relative; }
.eticket-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 21, 43, 0.1), #1f1a38); }
.eticket-main { position: relative; }
.eticket-info { padding: 0 32px 30px; margin-top: -30px; position: relative; z-index: 1; }
.eticket-info h2 { font-size: 1.8rem; margin: 10px 0 18px; }
.eticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.eticket-grid small { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.eticket-grid strong { font-size: 0.98rem; }
.eticket-stub {
  --notch: 18px; position: relative; padding: 32px 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(255, 255, 255, 0.035); border-left: 2px dashed rgba(167, 139, 250, 0.4); text-align: center;
}
.eticket-stub::before, .eticket-stub::after { content: ""; position: absolute; left: calc(var(--notch) * -1 - 1px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2); border-radius: 50%; background: var(--bg); }
.eticket-stub::before { top: calc(var(--notch) * -1); }
.eticket-stub::after { bottom: calc(var(--notch) * -1); }
.eticket .qr-box { width: 220px; height: 220px; border-radius: 18px; padding: 10px; }
.stamp {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg);
  padding: 8px 18px; border: 3px solid currentColor; border-radius: 12px; font-weight: 900; font-size: 1.3rem; letter-spacing: 0.12em;
  background: rgba(13, 12, 22, 0.75); z-index: 2;
}
.stamp.used { color: #c4b5fd; }
.stamp.cancelled { color: #f87171; }
.brand-line { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 0.14em; font-size: 0.9rem; }
.brand-line img { width: 22px; height: 22px; }

/* ---------- Paneles ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi {
  padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.kpi .kpi-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); margin-bottom: 14px; }
.kpi small { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.kpi strong { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.kpi .kpi-sub { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.kpi.accent { background: linear-gradient(140deg, #3b0f7a, #6d28d9); border-color: rgba(167, 139, 250, 0.4); }
.kpi.accent .kpi-icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.kpi.accent small, .kpi.accent .kpi-sub { color: #e9d5ff; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }

.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 180px; padding-top: 10px; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar span.fill { width: 100%; max-width: 26px; min-height: 3px; border-radius: 8px 8px 4px 4px; background: var(--grad); transition: height 0.6s var(--ease); }
.bar span.fill.zero { background: rgba(255, 255, 255, 0.08); }
.bar small { font-size: 0.66rem; color: var(--muted); }
.bar:hover .bar-tip { display: block; }
/* Oculta con display:none (no solo opacidad) para que no amplíe el ancho desplazable. */
.bar-tip { display: none; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--card-2); border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 8px; font-size: 0.72rem; pointer-events: none; z-index: 2; }
/* En los extremos la etiqueta se alinea hacia dentro para no desbordar la página. */
.bar:nth-child(-n+4) .bar-tip { left: 0; transform: none; }
.bar:nth-last-child(-n+4) .bar-tip { left: auto; right: 0; transform: none; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, 0.015); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.thumb { width: 56px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--card-2); }
.cell-event { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-event strong { display: block; line-height: 1.3; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.mini-progress { width: 110px; }
.mini-progress small { display: block; font-size: 0.74rem; color: var(--muted); margin-bottom: 4px; white-space: nowrap; }

.tabs { display: flex; gap: 6px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { padding: 9px 16px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--grad); color: #fff; }
.tab .count { font-size: 0.72rem; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }

/* ---------- Validación ---------- */
.validate-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.code-input { font-family: var(--mono); font-size: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 16px 18px; text-align: center; }
.result-panel {
  min-height: 300px; border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
  background: var(--card); border: 2px dashed var(--line-2); transition: 0.3s var(--ease);
}
.result-panel .big-icon { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); }
.result-panel .big-icon .icon { width: 46px; height: 46px; stroke-width: 2.4; }
.result-panel h2 { margin: 6px 0 0; font-size: 1.6rem; }
.result-panel.valid { background: linear-gradient(160deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.06)); border: 2px solid rgba(34, 197, 94, 0.6); animation: pulse-ok 0.6s var(--ease); }
.result-panel.valid .big-icon { background: var(--success); color: #052e16; box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.18); }
.result-panel.already_used { background: linear-gradient(160deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.05)); border: 2px solid rgba(245, 158, 11, 0.6); animation: shake 0.45s; }
.result-panel.already_used .big-icon { background: var(--warning); color: #451a03; box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.18); }
.result-panel.invalid { background: linear-gradient(160deg, rgba(239, 68, 68, 0.22), rgba(239, 68, 68, 0.05)); border: 2px solid rgba(239, 68, 68, 0.6); animation: shake 0.45s; }
.result-panel.invalid .big-icon { background: var(--danger); color: #450a0a; box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.18); }
@keyframes pulse-ok { 0% { transform: scale(0.97); } 60% { transform: scale(1.01); } 100% { transform: scale(1); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.scanner { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid rgba(167, 139, 250, 0.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); }
.log-list { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; }
.log-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 0.86rem; }
.log-item .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.valid { background: var(--success); }
.dot.already_used { background: var(--warning); }
.dot.invalid { background: var(--danger); }

/* ---------- Formulario de evento ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.form-section { padding: 26px; }
.form-section + .form-section { margin-top: 20px; }
.cover-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cover-option { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--card-2); }
.cover-option img { width: 100%; height: 100%; object-fit: cover; }
.cover-option.selected { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.35); }
.cover-option.selected::after { content: "✓"; position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); font-size: 0.75rem; font-weight: 800; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px; border-radius: 14px;
  border: 2px dashed var(--line-2); background: var(--bg-2); color: var(--muted); text-align: center; cursor: pointer; transition: 0.15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--violet); color: var(--text); background: rgba(124, 58, 237, 0.08); }
.preview-sticky { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 16px; }
.money-split { display: grid; gap: 6px; font-size: 0.9rem; }

/* ---------- Consola API ---------- */
.console-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.preset { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); font: inherit; font-size: 0.86rem; cursor: pointer; text-align: left; }
.preset:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.preset.active { border-color: rgba(167, 139, 250, 0.4); background: var(--violet-soft); color: var(--text); }
.method { display: inline-block; min-width: 64px; text-align: center; padding: 3px 8px; border-radius: 6px; font-family: var(--mono); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; }
.m-get { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.m-post { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.m-put { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.m-patch { background: rgba(167, 139, 250, 0.2); color: #ddd6fe; }
.m-delete { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.m-options { background: rgba(236, 72, 153, 0.16); color: #f9a8d4; }
.m-head { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }
.request-line { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; }
pre.code {
  margin: 0; padding: 16px; border-radius: 14px; background: #0a0912; border: 1px solid var(--line); overflow: auto; max-height: 460px;
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.55; color: #e4e4e7; white-space: pre-wrap; word-break: break-word;
}
.status-code { font-family: var(--mono); font-weight: 800; padding: 4px 10px; border-radius: 8px; }
.sc-2 { background: var(--success-soft); color: #86efac; }
.sc-3 { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.sc-4 { background: var(--warning-soft); color: #fcd34d; }
.sc-5 { background: var(--danger-soft); color: #fca5a5; }

/* ---------- Estados ---------- */
.empty {
  text-align: center; padding: 56px 24px; border-radius: var(--radius); background: var(--card); border: 1px dashed var(--line-2); color: var(--muted);
}
.empty .cat-icon { margin: 0 auto 16px; }
.empty h3 { color: var(--text); }
.skeleton { position: relative; overflow: hidden; background: var(--card); border-radius: var(--radius); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { height: 340px; }
.success-burst { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #052e16; box-shadow: 0 0 0 12px var(--success-soft), 0 0 0 26px rgba(34, 197, 94, 0.06); animation: pop 0.5s var(--ease); }
.success-burst .icon { width: 42px; height: 42px; stroke-width: 3; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-inner { gap: 14px; }
  .nav-tool span { display: none; }
  .nav-links a, .nav-more-btn { padding: 7px 10px; }
}

@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .detail-layout, .form-layout { grid-template-columns: 1fr; }
  .buy-card, .preview-sticky { position: static; }
  .dash-grid, .validate-layout, .console-layout { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; margin-left: 0; }
  .nav-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .nav-search { order: 5; flex-basis: 100%; max-width: none; }
  .nav-tool { display: none; }
  .nav-tools { margin-left: auto; }
  .subnav {
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height 0.25s var(--ease), visibility 0.25s;
  }
  .nav.open .subnav { max-height: 80vh; overflow-y: auto; visibility: visible; }
  .subnav-inner { height: auto; flex-direction: column; align-items: stretch; padding-top: 10px; padding-bottom: 16px; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a, .nav-more-btn { padding: 12px 14px; border-radius: 12px; width: 100%; justify-content: flex-start; }
  .nav-more-menu { position: static; opacity: 1; transform: none; pointer-events: auto; display: none; box-shadow: none; margin: 4px 0 6px 12px; }
  .nav-more.open .nav-more-menu { display: block; }
  .drawer-only { display: block; }
  .subnav-cta { flex-direction: column; }
  .subnav-cta .btn { width: 100%; }
  .nav-actions .btn-ghost.login-btn { display: none; }
  .explore-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .search-card { grid-template-columns: 1fr 1fr; }
  .search-card .search-field:first-child { grid-column: 1 / -1; }
  .search-card .btn { grid-column: 1 / -1; }
  .event-hero-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tickets-grid { grid-template-columns: 1fr; }
  .eticket { grid-template-columns: 1fr; }
  .eticket-stub { border-left: 0; border-top: 2px dashed rgba(167, 139, 250, 0.4); }
  .eticket-stub::before, .eticket-stub::after { top: calc(var(--notch) * -1 - 1px); left: auto; bottom: auto; }
  .eticket-stub::before { left: calc(var(--notch) * -1); }
  .eticket-stub::after { right: calc(var(--notch) * -1); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 120px; }
  .events-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi strong { font-size: 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .cover-picker { grid-template-columns: repeat(2, 1fr); }
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: 0; border-top: 2px dashed rgba(167, 139, 250, 0.35); }
  .ticket-stub::before, .ticket-stub::after { display: none; }
  .search-card { grid-template-columns: 1fr; }
  .request-line { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
  .eticket-info { padding: 0 20px 24px; }
  .eticket-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .user-trigger .uname { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Impresión del boleto ---------- */
@media print {
  body { background: #fff; color: #111; }
  .nav, .footer, .demo-strip, .no-print, .toasts { display: none !important; }
  .eticket { box-shadow: none; border: 2px solid #333; background: #fff; color: #111; }
  .eticket-grid small, .muted { color: #555; }
  .eticket-cover::after { background: none; }
  .eticket-stub { background: #fff; }
  .eticket-stub::before, .eticket-stub::after { background: #fff; }
}
