/* /css/app.css — estilos del dashboard del organizador */

body.app-body { background: var(--bg-soft); }

/* ===================== Layout ===================== */

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.sidebar .brand .pp { color: var(--accent); }
.sidebar .nav-list { padding: 12px 8px; flex: 1; }
.sidebar .nav-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  color: var(--fg-soft);
  margin-bottom: 2px;
}
.sidebar .nav-list a:hover { background: var(--bg-soft); color: var(--fg); }
.sidebar .nav-list a.active { background: var(--primary); color: white; }
.sidebar .user-card {
  margin: 12px;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  font-size: 13px;
}
.sidebar .user-card .email { font-weight: 600; word-break: break-all; }
.sidebar .user-card .actions { margin-top: 8px; display: flex; gap: 8px; }
.sidebar .user-card .actions a { font-size: 12px; color: var(--fg-soft); }

.main {
  flex: 1;
  min-width: 0;
  padding: 32px;
}

/* ═══ Mobile topbar (oculto en desktop) ═══ */
.app-topbar { display: none; }

@media (max-width: 800px) {
  .app-shell { flex-direction: column; }
  /* Desktop sidebar oculto en mobile */
  .sidebar { display: none; }
  .main { padding: 16px 14px 28px; }

  /* Mobile topbar visible */
  .app-topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
    padding: 10px 14px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    gap: 10px;
  }
  .app-topbar-brand {
    font-family: var(--font-display);
    font-weight: 800; font-size: 17px;
    color: var(--fg);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .app-topbar-brand .pp { color: var(--accent); }
  .app-topbar-right { display: flex; align-items: center; gap: 10px; }
  .app-topbar-cta {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent); color: var(--accent-text);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(251,191,36,0.35);
  }
  .app-topbar-cta:hover { background: var(--accent-hover); }
  .app-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);
    border: 2px solid var(--line);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px;
    padding: 0; overflow: hidden;
    transition: transform 0.12s, border-color 0.15s;
  }
  .app-avatar:hover { transform: scale(1.06); border-color: var(--accent); }
  .app-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .app-avatar span { line-height: 1; }

  /* Dropdown menu del avatar */
  .app-user-menu {
    position: absolute;
    top: calc(100% + 6px); right: 10px;
    width: min(290px, calc(100vw - 20px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(15,23,42,0.18);
    overflow: hidden;
    z-index: 110;
    animation: app-menu-in 0.16s ease-out;
  }
  .app-user-menu[hidden] { display: none; }
  @keyframes app-menu-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
  }
  .app-user-menu-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
  }
  .app-user-menu-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.15);
  }
  .app-user-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .app-user-menu-id { min-width: 0; flex: 1; }
  .app-user-menu-name {
    font-weight: 700; font-size: 14px; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .app-user-menu-email {
    font-size: 12px; color: rgba(255,255,255,0.65);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .app-user-menu-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px;
    background: transparent; border: 0;
    width: 100%; text-align: left;
    color: var(--fg);
    text-decoration: none;
    font: inherit; font-size: 14px; font-weight: 500;
    cursor: pointer;
  }
  .app-user-menu-item i {
    width: 18px; text-align: center;
    color: var(--fg-soft);
  }
  .app-user-menu-item:hover { background: var(--bg-soft); }
  .app-user-menu-item.active {
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-weight: 700;
  }
  .app-user-menu-item.active i { color: var(--accent-hover); }
  .app-user-menu-item.logout {
    color: var(--bad);
    border-top: 1px solid var(--line-soft);
  }
  .app-user-menu-item.logout i { color: var(--bad); }
  .app-user-menu-sep {
    border: 0; border-top: 1px solid var(--line-soft);
    margin: 4px 0;
  }
}

/* =============================================================
   AUTH SHELL — login dos columnas estilo eleden, paleta Apparchar
============================================================= */

.auth-shell {
  --auth-bg:        #0f172a;
  --auth-bg2:       #1e293b;
  --auth-surface:   rgba(255,255,255,0.04);
  --auth-border:    rgba(251,191,36,0.18);
  --auth-gold:      #fbbf24;
  --auth-gold-soft: rgba(251,191,36,0.12);
  --auth-cream:     #f8fafc;
  --auth-dim:       rgba(248,250,252,0.55);
  --auth-muted:     rgba(248,250,252,0.35);
  --auth-red:       #ef4444;
  --auth-red-soft:  rgba(239,68,68,0.10);
  --auth-radius:    16px;
  --auth-t:         .18s ease;

  display: grid;
  grid-template-columns: 460px 1fr;
  min-height: 100vh;
  font-family: var(--font);
}

.auth-shell, .auth-shell * { box-sizing: border-box; }

/* ── LEFT ── */
.auth-left {
  background: var(--auth-bg);
  color: var(--auth-cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.75rem;
  position: relative;
  z-index: 2;
  border-right: 1px solid var(--auth-border);
}
.auth-left::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at -10% 0%, rgba(251,191,36,.08), transparent 60%),
    radial-gradient(500px 350px at 110% 100%, rgba(124,58,237,.06), transparent 60%);
}

.auth-brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; margin-bottom: 2.25rem;
  position: relative; z-index: 1;
}
.auth-brand-badge {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .45rem .9rem .45rem .55rem;
  border-radius: 999px;
  background: var(--auth-gold-soft);
  border: 1px solid var(--auth-border);
}
.auth-brand-ico {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--auth-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex: 0 0 auto;
}
.auth-brand-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1rem;
  color: var(--auth-gold); letter-spacing: .02em;
}
.auth-brand-name .pp { color: var(--auth-cream); }
.auth-brand-sub {
  font-size: .73rem; font-weight: 400;
  color: var(--auth-dim);
  display: block; margin-top: .05rem;
}

.auth-heading {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--auth-cream);
  line-height: 1.15; letter-spacing: -.01em;
  margin-bottom: .55rem;
  position: relative; z-index: 1;
}
.auth-sub {
  font-size: .92rem; color: var(--auth-dim);
  line-height: 1.55; margin-bottom: 2rem;
  position: relative; z-index: 1;
}

/* Google button */
.btn-google {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .75rem;
  padding: .95rem 1.25rem;
  border-radius: 999px;
  background: var(--auth-cream); color: #111;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  border: none; cursor: pointer;
  transition: transform var(--auth-t), box-shadow var(--auth-t);
  box-shadow: 0 12px 36px rgba(0,0,0,.45), 0 2px 8px rgba(251,191,36,.12);
  position: relative; z-index: 1;
}
.btn-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 4px 14px rgba(251,191,36,.18);
}
.btn-google:active { transform: translateY(0); }
.btn-google:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.google-svg { width: 20px; height: 20px; flex: 0 0 auto; }

.auth-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(0,0,0,.18);
  border-top-color: rgba(0,0,0,.75);
  border-radius: 50%;
  animation: auth-spin .7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-hint {
  margin-top: 1rem; font-size: .78rem;
  color: var(--auth-muted); text-align: center;
  line-height: 1.5; position: relative; z-index: 1;
}
.auth-hint a { color: var(--auth-gold); text-decoration: none; }
.auth-hint a:hover { text-decoration: underline; }

.auth-error {
  display: none; margin-top: 1rem;
  padding: .85rem 1rem; border-radius: 12px;
  background: var(--auth-red-soft);
  border: 1px solid rgba(239,68,68,.25);
  color: var(--auth-red); font-size: .85rem; line-height: 1.45;
}
.auth-error.visible { display: block; }

/* Feats */
.auth-feats {
  display: flex; flex-direction: column; gap: .7rem;
  margin-top: 2rem; position: relative; z-index: 1;
}
.auth-feat {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem .85rem; border-radius: 14px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
}
.auth-feat-ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--auth-gold-soft);
  border: 1px solid var(--auth-border);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; color: var(--auth-gold);
  font-size: 1rem;
}
.auth-feat h6 {
  font-size: .88rem; font-weight: 600;
  color: var(--auth-cream); margin: 0 0 .15rem;
}
.auth-feat p {
  font-size: .78rem; color: var(--auth-dim);
  margin: 0; line-height: 1.4;
}

.auth-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: var(--auth-muted);
  text-decoration: none; margin-top: 1.75rem;
  transition: color var(--auth-t);
  position: relative; z-index: 1;
}
.auth-back:hover { color: var(--auth-gold); }

/* ── RIGHT ── */
.auth-right { position: relative; overflow: hidden; background: var(--auth-bg2); }

/* Fotos de eventos cycling (capa más al fondo) */
.auth-photos { position: absolute; inset: 0; z-index: 0; }
.auth-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-image: var(--auth-photo-img, none);
  opacity: 0;
  transform: scale(1.10);
  will-change: opacity, transform;
  animation: authPhotoFade 35s ease-in-out infinite;
  filter: contrast(1.05) saturate(1.1);
}
@keyframes authPhotoFade {
  0%   { opacity: 0; transform: scale(1.12); }
  4%   { opacity: 1; transform: scale(1.06); }
  26%  { opacity: 1; transform: scale(1.0); }
  30%  { opacity: 0; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(1.12); }
}

/* Overlay sobre las fotos para dejar legibles los gradients/quote */
.auth-photo-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(15,23,42,0.55), rgba(15,23,42,0.78)),
    linear-gradient(180deg, rgba(15,23,42,0.7) 0%, rgba(15,23,42,0.85) 100%);
}

.auth-right::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(800px 700px at 30% -10%, rgba(251,191,36,.18), transparent 60%),
    radial-gradient(600px 500px at 100% 50%, rgba(124,58,237,.12), transparent 55%),
    radial-gradient(700px 600px at 0% 100%, rgba(251,191,36,.08), transparent 60%);
  pointer-events: none;
}
.auth-right::after {
  content: ""; position: absolute; inset: 0; z-index: 2; opacity: .07;
  background-image:
    linear-gradient(to right, rgba(251,191,36,.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(251,191,36,.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}
.auth-right-inner {
  position: relative; z-index: 4; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 3rem;
}

.auth-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 3; }
.auth-orb-1 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(251,191,36,.28), transparent 65%); top: -140px; right: -100px; }
.auth-orb-2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(124,58,237,.22), transparent 65%); bottom: -80px; left: -80px; }
.auth-orb-3 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(251,191,36,.14), transparent 65%); top: 45%; left: 40%; transform: translate(-50%, -50%); }

.auth-right-top { display: flex; justify-content: flex-end; }
.auth-right-logo { display: flex; align-items: center; gap: .6rem; opacity: .5; }
.auth-right-logo-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--auth-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.auth-right-logo-txt {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  color: var(--auth-cream);
}
.auth-right-logo-txt .pp { color: var(--auth-gold); }

.auth-quote-area { flex: 1; display: flex; align-items: center; padding: 3rem 0; }
.auth-quote-block { max-width: 540px; }
.auth-quote-mark {
  font-family: var(--font-display); font-size: 5rem; line-height: .6;
  color: var(--auth-gold); opacity: .55;
  margin-bottom: .5rem; display: block; user-select: none;
}
.auth-quote-text {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  font-style: italic; color: var(--auth-cream);
  line-height: 1.4; margin: 0 0 1rem;
  transition: opacity .4s ease;
}
.auth-quote-author {
  font-size: .9rem; font-weight: 500;
  color: var(--auth-gold);
  display: flex; align-items: center; gap: .5rem;
  transition: opacity .4s ease;
}
.auth-quote-author::before {
  content: ""; display: inline-block;
  width: 24px; height: 1.5px;
  background: var(--auth-gold); opacity: .65;
  flex: 0 0 auto;
}
.auth-quote-dots { display: flex; gap: .4rem; margin-top: 1.5rem; }
.auth-qdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(251,191,36,.3); cursor: pointer;
  transition: background var(--auth-t), transform var(--auth-t);
}
.auth-qdot.active { background: var(--auth-gold); transform: scale(1.35); }

.auth-right-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251,191,36,.12);
}
.auth-strip { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.auth-pill {
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(251,191,36,.09);
  border: 1px solid rgba(251,191,36,.2);
  font-size: .78rem; font-weight: 500;
  color: var(--auth-gold); white-space: nowrap;
}
.auth-strip-label { font-size: .78rem; color: var(--auth-muted); }

/* Responsive */
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-right { display: none; }
  .auth-left { border-right: none; padding: 2.5rem 1.5rem; min-height: 100svh; }
}
@media (max-width: 480px) {
  .auth-left { padding: 2rem 1.25rem; }
  .auth-heading { font-size: 1.65rem; }
}

/* ===================== Page header ===================== */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.page-header .subtitle { color: var(--fg-soft); margin-top: 4px; font-size: 14px; }

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--fg-soft); }
.breadcrumb a:hover { color: var(--fg); }

/* ===================== Stat cards ===================== */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.stat-card .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card .value { font-size: 24px; font-weight: 700; margin-top: 4px; }
.stat-card .delta { font-size: 12px; color: var(--ok); margin-top: 4px; }

/* ===================== Event row in list ===================== */

.evento-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.05s;
}
.evento-row:hover { border-color: var(--muted); }
.evento-row .img {
  width: 80px; height: 60px;
  background: var(--bg-soft);
  background-size: cover; background-position: center;
  border-radius: var(--r-md);
}
.evento-row .info .nombre { font-weight: 600; font-size: 16px; line-height: 1.3; }
.evento-row .info .meta { font-size: 13px; color: var(--fg-soft); margin-top: 2px; }
.evento-row .metrics { text-align: right; font-size: 13px; }
.evento-row .metrics .vendidas { font-weight: 700; font-size: 16px; }

/* ===================== Tabs ===================== */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tabs a {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs a:hover { color: var(--fg); }
.tabs a.active { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }

/* ===================== Tables ===================== */

table.table {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 14px;
}
.table thead th {
  background: var(--bg-soft);
  text-align: left;
  font-weight: 600;
  color: var(--fg-soft);
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg-soft); }

/* ===================== Wizard ===================== */

/* ===================== Wizard pro ===================== */
/* Proporción col-7 / col-5 → form 7fr, preview 5fr (58%/42%) — mismo que /configurar */
.wizard-shell {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 1100px) { .wizard-shell { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px)  { .wizard-shell { grid-template-columns: 1fr; } }

.wizard-main {
  min-width: 0;
}

.wizard-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  position: relative;
}
.wizard-stepper::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 22px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 8px 4px;
  position: relative;
  z-index: 1;
  background: var(--bg-soft);
}
.wizard-step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
  transition: all 0.2s;
}
.wizard-step .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}
.wizard-step .label small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.wizard-step.active .num { background: var(--accent); border-color: var(--accent); color: var(--accent-text); transform: scale(1.05); box-shadow: 0 0 0 4px rgba(251,191,36,0.2); }
.wizard-step.active .label { color: var(--fg); }
.wizard-step.done .num { background: var(--ok); border-color: var(--ok); color: white; }
.wizard-step.done .label { color: var(--fg-soft); }

@media (max-width: 700px) {
  .wizard-stepper::before { display: none; }
  .wizard-step .label { display: none; }
  .wizard-step { flex: 0 0 auto; }
}

.wizard-content {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  animation: wizard-fade 0.25s ease-out;
}
@keyframes wizard-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.wizard-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.wizard-content .step-sub {
  color: var(--fg-soft);
  font-size: 14px;
  margin-bottom: 24px;
}

.wizard-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

/* ====================================================
   Form pro — secciones agrupadas, inputs estilo Stripe/Linear
==================================================== */
.form-section-block {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color 0.15s;
}
.form-section-block:hover { border-color: rgba(251,191,36,0.4); }
.form-section-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.form-section-block-head .ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--accent-hover);
  flex-shrink: 0;
}
.form-section-block-head .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
}
.form-section-block-head .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}
.form-section-block .col { gap: 14px; }

/* Field con icono + chars counter — versión pro */
.field-icon {
  position: relative;
  display: flex;
  flex-direction: column;
}
.field-icon input, .field-icon select, .field-icon textarea {
  padding-left: 42px !important;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field-icon input:focus, .field-icon select:focus, .field-icon textarea:focus {
  background: white;
  box-shadow: 0 0 0 3px rgba(251,191,36,0.18);
}
.field-icon input:hover:not(:focus), .field-icon select:hover:not(:focus), .field-icon textarea:hover:not(:focus) {
  border-color: var(--muted);
}
.field-icon > i:first-of-type,
.field-icon > .fa-solid {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 14px;
  transition: color 0.15s;
}
.field-icon:focus-within > i:first-of-type,
.field-icon:focus-within > .fa-solid {
  color: var(--accent-hover);
}
.field-icon textarea ~ i.fa-solid { top: 16px; transform: none; }

.char-counter {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}
.char-counter.warn { color: var(--warn); }
.char-counter.bad  { color: var(--bad); font-weight: 600; }

/* Label pro */
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.field-label .hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.field-label .required-star {
  color: var(--bad);
  margin-left: 2px;
  font-weight: 700;
}

/* Image preview inline */
.image-preview {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: opacity 0.2s;
}
.image-preview.empty {
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  border-style: dashed;
}
.image-preview.empty i { font-size: 28px; margin-right: 8px; }
.image-preview.loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,0.2), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Categoría — chips selectable */
.category-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.cat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-soft);
  transition: all 0.15s;
  user-select: none;
}
.cat-chip:hover { border-color: var(--muted); background: var(--bg); }
.cat-chip.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}
.cat-chip .ico { font-size: 16px; }
.cat-chip input { display: none; }

/* Tipos de boleta cards */
.tipo-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
.tipo-card:hover { border-color: var(--muted); }
.tipo-card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.tipo-card .info strong { font-size: 15px; }
.tipo-card .info .meta { font-size: 13px; color: var(--fg-soft); margin-top: 2px; }
.tipo-card .actions { display: flex; gap: 6px; }
.tipo-card .actions button {
  background: transparent; border: 1px solid var(--line);
  width: 32px; height: 32px; border-radius: 8px;
  color: var(--fg-soft); cursor: pointer;
}
.tipo-card .actions button:hover { background: var(--bg-soft); color: var(--fg); }
.tipo-card .actions button.danger:hover { color: var(--bad); border-color: var(--bad); }

/* Color picker palette */
.color-palette {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.color-swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.1s;
  position: relative;
}
.color-swatch:hover { transform: scale(1.05); }
.color-swatch.selected { border-color: var(--fg); transform: scale(1.1); }
.color-swatch.selected::after {
  content: "\f00c"; /* FA check */
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Preview sidebar — scrollea naturalmente con el resto del form */
.wizard-preview { /* sin position: sticky para que se mueva con el scroll */ }
.wizard-preview-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.preview-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--sh-sm);
}
.preview-card .hero {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}
.preview-card .hero .cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15,23,42,0.85);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.preview-card .body { padding: 14px 16px; }
.preview-card .body .nombre { font-weight: 700; font-size: 15px; line-height: 1.3; }
.preview-card .body .meta { font-size: 12px; color: var(--fg-soft); margin-top: 4px; }
.preview-card .body .price { font-weight: 700; margin-top: 8px; font-size: 14px; }

/* Mini boleta preview — usa el mismo template horizontal del PDF/email,
   escalado para encajar en el sidebar del wizard (1400px → 360px) */
.preview-ticket-mini {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 420;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15,23,42,0.18);
  background: #0a0f1d;
  cursor: zoom-in;
  transition: transform 0.18s, box-shadow 0.18s;
}
.preview-ticket-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.28);
}
.preview-ticket-expand {
  position: absolute; top: 8px; right: 8px;
  z-index: 4;
  background: rgba(15,23,42,0.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
  transform: scale(0.92);
  font-family: inherit;
}
.preview-ticket-mini:hover .preview-ticket-expand,
.preview-ticket-mini:focus-within .preview-ticket-expand {
  opacity: 1;
  transform: scale(1);
}
.preview-ticket-expand:hover {
  background: rgba(251,191,36,0.95);
  color: #1a1306;
  border-color: rgba(251,191,36,1);
}
/* En táctiles (sin hover real), siempre visible */
@media (hover: none) {
  .preview-ticket-expand { opacity: 1; transform: scale(1); }
}
/* Modal: la boleta grande no necesita zoom-in cursor */
.ticket-modal .preview-ticket-mini { cursor: default; }
.ticket-modal .preview-ticket-mini:hover { transform: none; }
.ticket-modal .preview-ticket-expand { display: none; }
.preview-ticket-mini .ticket-preview-inner {
  width: 1400px; height: 420px;
  transform-origin: top left;
  transform: scale(var(--tk-scale, 0.26));
  position: absolute;
  top: 0; left: 0;
}

/* Old mini-ticket styles (legacy, ya no se usan pero quedan por si algo aún los referencia) */
.preview-ticket {
  position: relative;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.preview-ticket-top {
  padding: 14px;
  text-align: center;
}
.preview-ticket-top .brand { font-size: 10px; opacity: 0.7; letter-spacing: 0.08em; }
.preview-ticket-top .ev-name { font-family: var(--font-display); font-weight: 800; font-size: 14px; margin-top: 4px; }
.preview-ticket-top .tipo {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; margin-top: 6px;
}
.preview-ticket-divider {
  height: 12px; position: relative;
}
.preview-ticket-divider::before, .preview-ticket-divider::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; background: var(--bg-soft); border-radius: 50%;
}
.preview-ticket-divider::before { left: -6px; }
.preview-ticket-divider::after { right: -6px; }
.preview-ticket-bottom {
  background: white; padding: 10px 14px; font-size: 11px; color: var(--fg-soft);
}
.preview-qr {
  width: 60px; height: 60px;
  background-image: repeating-conic-gradient(#0f172a 0% 25%, white 0% 50%);
  background-size: 8px 8px;
  margin: 6px auto;
  border-radius: 4px;
}

.staff-row, .promo-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: white; border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 8px;
}
.staff-row .codigo, .promo-row .codigo {
  font-family: ui-monospace, monospace;
  font-size: 18px; font-weight: 700;
  background: var(--bg-soft); padding: 4px 12px; border-radius: var(--r-sm);
}
.staff-row .nombre, .promo-row .desc { flex: 1; font-size: 14px; }
.staff-row .actions, .promo-row .actions { display: flex; gap: 8px; }

/* ════════════════════════════════════════════════════════
   PROMOCIONES — grid de cards pro
   ════════════════════════════════════════════════════════ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.promo-card {
  background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--sh-sm);
}
.promo-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(251,191,36,0.18);
}
.promo-card.inactivo {
  opacity: 0.55;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}
.promo-card-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.promo-card-codigo-wrap {
  display: inline-flex; align-items: center; gap: 6px;
  flex: 1; min-width: 0;
}
.promo-card-codigo {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 18px; font-weight: 800;
  color: #92400e;
  background: rgba(251,191,36,0.18);
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(251,191,36,0.6);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-soft);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--fg); border-color: var(--line); }
.icon-btn.danger { color: var(--bad); }
.icon-btn.danger:hover { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.promo-card-desc {
  font-size: 17px; font-weight: 700; color: var(--fg);
  line-height: 1.2;
}
.promo-card-nota {
  font-size: 12.5px; color: var(--fg-soft);
  font-style: italic;
  padding: 6px 10px;
  background: rgba(255,255,255,0.6);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.promo-card-progress-wrap {
  display: flex; flex-direction: column; gap: 5px;
}
.promo-card-progress {
  height: 6px;
  background: rgba(15,23,42,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.promo-card-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f59e0b);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.promo-card-progress-text {
  font-size: 12px; color: var(--fg-soft);
  font-variant-numeric: tabular-nums;
}
.promo-card-progress-text strong { color: var(--fg); }
.promo-card-badges {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.promo-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: var(--bg-soft);
  color: var(--fg-soft);
  border: 1px solid var(--line);
}
.promo-badge i { font-size: 9px; }
.promo-badge.user { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.promo-badge.ip   { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.promo-badge.fecha{ background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.promo-badge.fecha.vencido { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.promo-card-status {
  position: absolute; top: 14px; right: 56px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--fg-soft);
}

.promo-empty {
  text-align: center;
  padding: 48px 28px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.promo-empty-ico {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-soft, rgba(251,191,36,0.18));
  color: var(--accent-hover, #b45309);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}
.promo-empty h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--fg);
  margin: 0 0 6px;
}
.promo-empty p {
  color: var(--fg-soft);
  font-size: 14px; line-height: 1.5;
  max-width: 380px; margin: 0 auto;
}

/* ════════════════════════════════════════════════════════
   TAB ENTRADAS — selector de impresión masiva (pro)
   ════════════════════════════════════════════════════════ */

/* Hero header — dark con stats al lado */
.bp-hero {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  padding: 22px 26px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: var(--sh-md);
  position: relative; overflow: hidden;
}
.bp-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(251,191,36,0.20) 0%, transparent 70%);
  pointer-events: none;
}
.bp-hero > div { position: relative; z-index: 1; }
.bp-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  color: rgba(251,191,36,0.95);
  margin-bottom: 6px;
}
.bp-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; color: #fff;
  margin: 0 0 6px; line-height: 1.15;
}
.bp-sub {
  margin: 0; color: rgba(255,255,255,0.7); font-size: 13.5px; line-height: 1.5;
  max-width: 480px;
}
.bp-hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.bp-stat {
  padding: 10px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  min-width: 80px; text-align: center;
  backdrop-filter: blur(6px);
}
.bp-stat .num {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; color: #fff;
  line-height: 1.1;
}
.bp-stat .lbl {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); font-weight: 600;
  margin-top: 2px;
}
.bp-stat.ok   { background: rgba(34,197,94,0.18); border-color: rgba(34,197,94,0.35); }
.bp-stat.ok .num { color: #86efac; }
.bp-stat.warn { background: rgba(251,191,36,0.18); border-color: rgba(251,191,36,0.35); }
.bp-stat.warn .num { color: #fde68a; }
.bp-stat.bad  { background: rgba(248,113,113,0.18); border-color: rgba(248,113,113,0.35); }
.bp-stat.bad .num { color: #fca5a5; }

/* Toolbar: 2 rows — filtros arriba, selección + CTA abajo */
.bp-toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: var(--sh-sm);
  position: sticky; top: 0; z-index: 10;
  overflow: hidden;
}
.bp-toolbar-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 18px;
}
.bp-row-filters {
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border-bottom: 1px solid var(--line-soft);
}
.bp-row-action {
  justify-content: space-between;
  background: #fff;
}
.bp-select-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.bp-action-box { flex-shrink: 0; }

/* Buscador grande estilo command-bar */
.bp-search-wrap {
  position: relative;
  flex: 1; min-width: 240px; max-width: 480px;
}
.bp-search-wrap i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 13px;
  pointer-events: none;
}
.bp-search {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bp-search:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.18);
}
.bp-search::placeholder { color: var(--muted); }

.bp-filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-select {
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.bp-select:hover { border-color: var(--accent); }
.bp-select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(251,191,36,0.18); }

/* Checkbox master rediseñado (custom check con feedback visual) */
.bp-checkbox-master {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  background: var(--bg-soft);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px; font-weight: 700;
  color: var(--fg);
  border: 1.5px solid transparent;
  transition: all 0.15s;
}
.bp-checkbox-master:hover {
  background: var(--accent-soft);
  border-color: rgba(251,191,36,0.4);
}
.bp-checkbox-master input { position: absolute; opacity: 0; pointer-events: none; }
.bp-check-visual {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: #fff;
  border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: transparent;
  transition: all 0.15s;
}
.bp-checkbox-master input:checked + .bp-check-visual {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.bp-checkbox-master input:indeterminate + .bp-check-visual {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.bp-checkbox-master input:indeterminate + .bp-check-visual::before {
  content: "–"; font-weight: 800;
}
.bp-checkbox-master input:indeterminate + .bp-check-visual i { display: none; }
.bp-check-label { white-space: nowrap; }

/* Pill contador con ícono ticket */
.bp-count-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--fg-soft);
  font-size: 13px; font-weight: 600;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
}
.bp-count-pill i { font-size: 11px; opacity: 0.6; }
.bp-count-pill.active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: rgba(251,191,36,0.4);
}
.bp-count-pill.active i { opacity: 1; color: var(--accent-hover); }

/* Link "limpiar selección" */
.bp-link-btn {
  background: transparent;
  border: 0;
  color: var(--bad);
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: inherit;
}
.bp-link-btn:hover { background: rgba(220,38,38,0.10); }
.bp-link-btn i { font-size: 10px; }

/* CTA Imprimir prominente */
.bp-print-cta {
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 11px 22px !important;
  border-radius: 10px !important;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 18px rgba(251,191,36,0.40);
  transition: transform 0.12s, box-shadow 0.15s;
  letter-spacing: -0.01em;
}
.bp-print-cta:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(251,191,36,0.50);
}
.bp-print-cta:disabled {
  opacity: 0.45; cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.bp-print-cta i { font-size: 14px; }

.bp-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.bp-table thead {
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
}
.bp-table th, .bp-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.bp-table th {
  font-weight: 700; color: var(--fg-soft);
  font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase;
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1.5px solid var(--line);
}
.bp-table tbody tr:last-child td { border-bottom: 0; }

/* Filas con accent stripe a la izquierda cuando hover/selected */
.bp-table tbody tr.bp-row {
  cursor: pointer;
  position: relative;
  transition: background 0.12s;
}
.bp-table tbody tr.bp-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.15s;
}
.bp-table tbody tr.bp-row:hover { background: #fffbeb; }
.bp-table tbody tr.bp-row:hover::before { background: rgba(251,191,36,0.5); }
.bp-table tbody tr.bp-row.selected { background: #fef3c7; }
.bp-table tbody tr.bp-row.selected::before { background: var(--accent); }
.bp-table tbody tr.bp-row.selected:hover { background: #fde68a; }
.bp-table tbody tr.bp-row.disabled { opacity: 0.55; cursor: not-allowed; }
.bp-table tbody tr.bp-row.disabled:hover { background: transparent; }
.bp-table tbody tr.bp-row.disabled:hover::before { background: transparent; }

.bp-th-check, .bp-td-check { width: 44px; text-align: center; padding-left: 14px !important; padding-right: 6px !important; }

/* Checkbox custom de fila (mismo estilo que el master) */
.bp-row-check-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
}
.bp-row-check { position: absolute; opacity: 0; pointer-events: none; }
.bp-row-check-visual {
  width: 19px; height: 19px;
  border-radius: 5px;
  background: #fff;
  border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: all 0.12s;
}
.bp-row-check:checked + .bp-row-check-visual {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  transform: scale(1.05);
}
.bp-row-check:disabled + .bp-row-check-visual {
  background: var(--bg-soft);
  border-color: var(--line);
  opacity: 0.4;
  cursor: not-allowed;
}
.bp-row-check-wrap:hover .bp-row-check-visual:not(:disabled) { border-color: var(--accent); }

/* Nombre + avatar */
.bp-name-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bp-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 14px;
  flex-shrink: 0;
  font-family: var(--font-display, sans-serif);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.bp-name-info { min-width: 0; }
.bp-name { font-weight: 700; color: var(--fg); font-size: 13.5px; line-height: 1.2; }
.bp-email {
  font-size: 11.5px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 280px;
}

/* Tipo y estado */
.bp-tipo {
  display: inline-block;
  padding: 4px 10px; border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.bp-state {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--bg-soft); color: var(--fg-soft);
  white-space: nowrap;
}
.bp-state.ok   { background: #dcfce7; color: #166534; }
.bp-state.warn { background: #fef3c7; color: #92400e; }
.bp-state.bad  { background: #fee2e2; color: #991b1b; }
.bp-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(251,191,36,0.18); color: #b45309;
  font-size: 10.5px; font-weight: 700;
  margin-left: 6px;
}
.bp-tag i { font-size: 9px; }
.bp-td-id code {
  font-family: ui-monospace, monospace;
  font-size: 11px; color: var(--muted);
  background: var(--bg-soft);
  padding: 3px 7px; border-radius: 4px;
}
.bp-td-fecha {
  color: var(--fg-soft);
  white-space: nowrap;
  font-size: 12.5px;
}

/* Actions group con botones agrupados visualmente */
.bp-td-actions { white-space: nowrap; text-align: right; padding-right: 16px !important; }
.bp-actions-group {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: 9px;
  border: 1px solid transparent;
  transition: border-color 0.12s;
}
.bp-row:hover .bp-actions-group { border-color: var(--line); background: #fff; }
.bp-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 6px;
  background: transparent;
  color: var(--fg-soft);
  border: 0;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.12s;
}
.bp-icon-btn:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.bp-empty {
  text-align: center;
  padding: 60px 28px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.bp-empty-ico {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-hover);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 14px;
}
.bp-empty h3 { font-family: var(--font-display); margin: 0 0 6px; color: var(--fg); }

@media (max-width: 720px) {
  .bp-hero { padding: 18px; }
  .bp-hero-stats { width: 100%; }
  .bp-stat { flex: 1; min-width: 0; padding: 8px 10px; }
  .bp-stat .num { font-size: 18px; }
  .bp-toolbar-row { padding: 12px 14px; }
  .bp-search-wrap { width: 100%; max-width: none; min-width: 0; }
  .bp-filter-chips { width: 100%; }
  .bp-filter-chips .bp-select { flex: 1; }
  .bp-row-action { flex-direction: column; align-items: stretch; gap: 12px; }
  .bp-select-box { width: 100%; flex-wrap: wrap; }
  .bp-action-box { width: 100%; }
  .bp-print-cta { width: 100%; justify-content: center; }
  .bp-table th.bp-th-id, .bp-table td.bp-td-id,
  .bp-table th.bp-th-fecha, .bp-table td.bp-td-fecha { display: none; }
  .bp-table th, .bp-table td { padding: 12px 10px; }
  .bp-name-wrap { gap: 10px; }
  .bp-avatar { width: 32px; height: 32px; font-size: 13px; }
  .bp-email { max-width: 160px; }
}

@media (max-width: 540px) {
  /* Card layout — la tabla se convierte en cards apiladas para mejor UX */
  .bp-table thead { display: none; }
  .bp-table, .bp-table tbody, .bp-table tr { display: block; }
  .bp-table tbody tr.bp-row {
    border-bottom: 1px solid var(--line);
    padding: 0;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    grid-template-areas:
      "check name actions"
      "check tipo  estado";
    gap: 4px 10px;
    align-items: center;
    padding: 14px 14px 14px 12px;
  }
  .bp-table tbody tr.bp-row::before { width: 4px; }
  .bp-table tbody tr.bp-row td { display: block; border: 0; padding: 0; }
  .bp-table tbody tr.bp-row td.bp-td-check { grid-area: check; padding: 0 !important; align-self: center; }
  .bp-table tbody tr.bp-row td.bp-td-name  { grid-area: name; }
  .bp-table tbody tr.bp-row td:nth-child(3) { grid-area: tipo; font-size: 11px; }
  .bp-table tbody tr.bp-row td:nth-child(4) { grid-area: estado; text-align: right; }
  .bp-table tbody tr.bp-row td.bp-td-actions { grid-area: actions; padding: 0 !important; }
  .bp-name { font-size: 14px; }
  .bp-email { max-width: 220px; font-size: 12px; }
}

/* ===================== Form sections ===================== */

.form-section { background: white; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; }
.form-section h3 { font-size: 16px; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ===================== Toast ===================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  font-size: 14px;
  z-index: 1000;
  animation: toast-in 0.2s;
}
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast.bad { background: var(--bad); }
.toast.ok  { background: var(--ok); }

/* ===================== Mis entradas ===================== */
.orden-group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.orden-header {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.orden-cover {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}
.orden-meta { flex: 1; min-width: 0; }
.orden-title {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-display, sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.orden-title a { color: inherit; text-decoration: none; }
.orden-title a:hover { color: var(--accent); }
.orden-sub {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--fg-soft);
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.orden-sub i { margin-right: 4px; opacity: 0.7; }
.orden-foot { font-size: 12px; }

.boleta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 18px 20px;
  background: #fafbfc;
}
.boleta-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.boleta-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}
.boleta-card.is-cancelada { opacity: 0.55; }
.boleta-card.is-cancelada .qr-thumb { filter: grayscale(1); }
.boleta-card.is-usada .qr-thumb { opacity: 0.7; }
.qr-thumb {
  width: 96px;
  height: 96px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-thumb img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.boleta-info { min-width: 0; }
.boleta-tipo {
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 2px;
}
.boleta-asistente {
  font-size: 12px;
  color: var(--fg-soft);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.boleta-state {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.boleta-state.ok  { background: #d1fae5; color: #065f46; }
.boleta-state.warn { background: #fef3c7; color: #92400e; }
.boleta-state.bad  { background: #fee2e2; color: #991b1b; }
.boleta-id {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 6px;
}
.boleta-action {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 11px;
  color: var(--fg-soft);
  display: flex;
  gap: 4px;
  align-items: center;
}
.boleta-card:hover .boleta-action { color: var(--accent); }

/* ===== Modal QR fullscreen ===== */
.qr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  backdrop-filter: blur(6px);
  animation: fade-in 0.18s;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.qr-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 28px 24px 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  position: relative;
  text-align: center;
}
.qr-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 22px;
  color: var(--fg-soft);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.qr-modal-close:hover { background: var(--bg-soft); color: var(--fg); }
.qr-modal-header { margin-bottom: 16px; }
.qr-modal-event { font-size: 18px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.qr-modal-tipo { font-size: 13px; color: var(--fg-soft); }
.qr-modal-qr {
  background: #fff;
  padding: 16px;
  border: 4px solid #0f172a;
  border-radius: 12px;
  margin: 0 auto 18px;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-modal-qr img { width: 100% !important; height: auto !important; image-rendering: pixelated; }
.qr-modal-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--fg-soft);
  margin-bottom: 6px;
}
.qr-modal-hint {
  font-size: 12px;
  color: var(--fg-soft);
  margin-bottom: 14px;
}
.qr-modal-pdf {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--fg);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.qr-modal-pdf:hover { background: var(--bg-soft); border-color: var(--accent); color: var(--accent); }

@media (max-width: 560px) {
  .boleta-grid { grid-template-columns: 1fr; }
  .qr-modal { padding: 22px 16px 18px; }
  .qr-modal-qr { width: 260px; height: 260px; }
}

/* ===================== Upload zone (wizard) ===================== */
.upload-zone {
  position: relative;
  min-height: 180px;
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  background: #fafbfc;
  cursor: pointer;
  transition: all 0.15s;
  overflow: hidden;
}
.upload-zone:hover { border-color: var(--accent); background: #fffdf5; }
.upload-zone.drop  { border-color: var(--accent); background: #fef3c7; }
.upload-zone.compact { min-height: 90px; }
.upload-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  color: var(--fg-soft);
  text-align: center; padding: 16px;
}
.upload-empty i { font-size: 32px; color: var(--accent); }
.upload-empty small { font-size: 11px; opacity: 0.7; }
.upload-link { color: var(--accent); font-weight: 600; }
.upload-preview {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.upload-remove {
  position: absolute; top: 8px; right: 8px;
  background: rgba(15,23,42,0.85); color: #fff;
  border: 0; padding: 6px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  z-index: 2;
  display: inline-flex; gap: 4px; align-items: center;
}
.upload-remove:hover { background: var(--bad); }
.upload-status { font-size: 12px; margin-top: 6px; min-height: 16px; }
.upload-status .ok  { color: var(--ok); }
.upload-status .bad { color: var(--bad); }
.upload-status .muted { color: var(--fg-soft); }

/* ===================== Ticket preview (wizard) ===================== */
.ticket-preview-wrap {
  background: #1a202c;
  padding: 30px 20px;
  border-radius: var(--r-md);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
}
.ticket-preview {
  width: 1400px;
  max-width: 100%;
  transform-origin: top left;
}
.ticket-preview-inner {
  width: 1400px;
  height: 420px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 360px;
  overflow: hidden;
  color: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.tp-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.tp-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.74) 55%, rgba(15,23,42,0.4) 100%); }
.tp-left { position: relative; z-index: 2; padding: 36px 40px 30px; display: flex; flex-direction: column; justify-content: space-between; }
.tp-pills { display: flex; align-items: center; gap: 14px; margin-bottom: 0; }
.tp-eyebrow {
  font-size: 11px; letter-spacing: 0.24em; font-weight: 800; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.tp-brand-row {
  display: flex; align-items: center; gap: 20px;
  margin: 8px 0 14px;
}
.tp-brand-wordmark {
  font-size: 32px; font-weight: 800; letter-spacing: -0.01em;
  color: #ffffff; line-height: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.tp-brand-x {
  color: rgba(255,255,255,0.45);
  font-size: 22px; font-weight: 400; line-height: 1;
}
.tp-org-logo {
  height: 56px; max-width: 220px;
  width: auto; object-fit: contain; display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.tp-tipo-pill {
  display: inline-flex; padding: 9px 16px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.10em; font-weight: 800; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
}
.tp-title {
  font-size: 38px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em;
  margin: 8px 0 4px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
  max-width: 600px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tp-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-top: 12px; }
.tp-lbl { font-size: 10px; letter-spacing: 0.18em; opacity: 0.7; font-weight: 700; margin-bottom: 2px; text-transform: uppercase; }
.tp-val { font-size: 14px; font-weight: 600; line-height: 1.25; }
.tp-asist { background: rgba(0,0,0,0.35); border-left: 3px solid #fbbf24; padding: 10px 14px; border-radius: 6px; margin-top: 12px; }
.tp-asist-name { font-size: 18px; font-weight: 700; }
.tp-perf {
  position: absolute; top: 0; bottom: 0; right: 360px; width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.6) 0, rgba(255,255,255,0.6) 6px, transparent 6px, transparent 12px);
  z-index: 3;
}
.tp-perf::before, .tp-perf::after {
  content: ''; position: absolute; left: -10px; width: 22px; height: 22px;
  background: #fff; border-radius: 50%;
}
.tp-perf::before { top: -11px; }
.tp-perf::after  { bottom: -11px; }
.tp-right {
  position: relative; z-index: 2;
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 26px 24px 22px;
  text-align: center;
}
.tp-qr-frame {
  background: #fff; padding: 8px;
  border: 4px solid #fbbf24; border-radius: 12px;
  width: 260px; height: 260px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.tp-qr-frame img { width: 100%; height: 100%; image-rendering: pixelated; }
.tp-qr-placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, #e5e7eb 0, #e5e7eb 10px, #f3f4f6 10px, #f3f4f6 20px);
  display: flex; align-items: center; justify-content: center;
  color: #64748b; font-size: 11px; font-weight: 600;
}
.tp-qr-cap {
  margin-top: 12px; font-size: 11px;
  color: rgba(255,255,255,0.85); font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.tp-qr-id {
  margin-top: 4px; font-family: ui-monospace, monospace; font-size: 10px;
  color: rgba(255,255,255,0.65);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

@media (max-width: 1100px) {
  .ticket-preview { transform: scale(0.7); }
  .ticket-preview-wrap { padding: 20px 10px; max-height: 380px; }
}
@media (max-width: 760px) {
  .ticket-preview { transform: scale(0.45); max-height: 280px; }
  .ticket-preview-wrap { max-height: 280px; }
}

/* ===================== Ticket modal (mis entradas) ===================== */
.ticket-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px;
  backdrop-filter: blur(8px);
  animation: fade-in 0.18s;
  /* Permite scroll si el contenido excede (raro pero defensivo) */
  overflow-y: auto;
}
.ticket-modal {
  background: transparent;
  width: 100%;
  /* Limita el modal al espacio visible:
     - max-width = viewport menos paddings, hasta 1400px
     - el ticket interior usa aspect-ratio 1400/420 (3.33), así que altura ≈ width/3.33
     - max-height del frame también acotado para que en pantallas chatas no se desborde */
  max-width: min(1400px, calc(100vw - 40px));
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
}
.ticket-modal-close {
  position: absolute; top: -42px; right: 0;
  background: rgba(255,255,255,0.12); border: 0; color: #fff;
  font-size: 18px; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.ticket-modal-close:hover { background: rgba(255,255,255,0.25); }
.ticket-modal-frame {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  aspect-ratio: 1400 / 420;
  /* Width limitada por el alto disponible del viewport.
     ratio 1400:420 = 3.33, así que width = altura disponible × 3.33
     min(100%, height-fit) garantiza que NUNCA se desborde verticalmente.
     180px reservados para: close btn (42px arriba), actions (~60px abajo), padding (40px), border etc. */
  width: min(100%, calc((100vh - 180px) * 3.33));
  max-width: 100%;
}
.ticket-frame { width: 100%; height: 100%; border: 0; display: block; }
.ticket-modal-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: 16px;
  color: #cbd5e1; flex-wrap: wrap;
  width: 100%;
}
.ticket-modal-hint { font-size: 13px; opacity: 0.8; }
.ticket-modal-hint i { color: #fbbf24; margin-right: 4px; }
.ticket-modal-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.ticket-modal-buttons .btn.ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.ticket-modal-buttons .btn.ghost:hover { background: rgba(255,255,255,0.16); }

/* Badge encima del ticket en el modal (transferida recibida / pending) */
.ticket-modal-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  margin-bottom: 14px;
  align-self: center;
}
.ticket-modal-badge.ok   { background: rgba(34,197,94,0.18); color: #86efac; border: 1px solid rgba(34,197,94,0.35); }
.ticket-modal-badge.warn { background: rgba(251,191,36,0.18); color: #fde68a; border: 1px solid rgba(251,191,36,0.35); }
.ticket-modal-badge i    { font-size: 12px; }

/* Tag inline en el header del orden-block */
.ticket-transfer-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; margin-left: 8px;
  border-radius: 999px;
  background: rgba(251,191,36,0.18); color: var(--accent-hover);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  vertical-align: middle;
}
.ticket-transfer-tag i { font-size: 10px; }

/* ===== Modal "Transferir entrada" ===== */
.transfer-alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  background: #fef3c7; border: 1px solid #fde68a;
  border-radius: 10px;
  color: #78350f;
  font-size: 13px; line-height: 1.45;
}
.transfer-alert i { color: #d97706; font-size: 16px; margin-top: 1px; flex-shrink: 0; }

.transfer-link-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-soft);
  border: 1px dashed var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 14px;
}
.transfer-link-box code {
  flex: 1; min-width: 0;
  font-family: ui-monospace, monospace; font-size: 12.5px;
  color: var(--fg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.transfer-link-box .btn { flex-shrink: 0; }

/* ===== Share row (reutilizable, antes vivía solo en boleta.html) ===== */
.bo-share-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.bo-share-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
  font-size: 12px; font-weight: 600;
  transition: transform 0.12s, border-color 0.12s;
}
.bo-share-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.bo-share-btn i { font-size: 22px; }
.bo-share-btn.wa i { color: #25d366; }
.bo-share-btn.tg i { color: #229ed9; }

/* btn ghost danger reutilizable */
.btn.ghost.danger { color: var(--bad); border-color: var(--bad); }
.btn.ghost.danger:hover { background: rgba(220,38,38,0.08); color: var(--bad); }

/* ════════════════════════════════════════════════════════
   Botón "Transferir" en orden-foot
   ════════════════════════════════════════════════════════ */
.orden-foot-transfer {
  display: inline-flex; align-items: center; gap: 6px;
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-soft);
  transition: background 0.15s, transform 0.12s;
}
.orden-foot-transfer:hover {
  background: var(--accent);
  color: var(--accent-text);
  transform: translateY(-1px);
}
.orden-foot-transfer.pending {
  border-color: #f59e0b;
  color: #b45309;
  background: #fef3c7;
}
.orden-foot-transfer.pending:hover {
  background: #fde68a;
  color: #78350f;
}

/* ════════════════════════════════════════════════════════
   Picker de boleta a transferir
   ════════════════════════════════════════════════════════ */
.trp-modal {
  max-width: min(560px, calc(100vw - 40px)) !important;
}
.trp-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
}
.trp-head {
  display: flex; gap: 14px; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.trp-head-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-hover);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.trp-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800; margin: 0;
  color: var(--fg);
}
.trp-sub { margin: 2px 0 0; font-size: 13px; color: var(--fg-soft); }
.trp-list { padding: 14px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.trp-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.trp-num {
  font-family: var(--font-display);
  font-weight: 800; font-size: 16px;
  color: var(--accent-hover);
  background: #fff;
  border: 1px solid var(--line);
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.trp-info { min-width: 0; }
.trp-tipo { font-weight: 700; font-size: 14px; color: var(--fg); }
.trp-asist { font-size: 12.5px; color: var(--fg-soft); margin-top: 1px; }
.trp-id { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.trp-state {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.trp-state.ok   { background: #dcfce7; color: #166534; }
.trp-state.warn { background: #fef3c7; color: #92400e; }
.trp-state.bad  { background: #fee2e2; color: #991b1b; }
.trp-state.muted{ background: #e2e8f0; color: #64748b; }

@media (max-width: 560px) {
  .trp-row { grid-template-columns: auto 1fr; }
  .trp-state { grid-column: 2; }
  .trp-action { grid-column: 1 / -1; }
  .trp-action .btn { width: 100%; }
}

/* ════════════════════════════════════════════════════════
   Modal "Transferir entrada" — rediseño completo
   ════════════════════════════════════════════════════════ */
.tri-modal {
  max-width: min(560px, calc(100vw - 40px)) !important;
  max-height: calc(100vh - 80px);
}
.tri-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.tri-card::-webkit-scrollbar { width: 6px; }
.tri-card::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

/* HERO */
.tri-hero {
  position: relative;
  padding: 22px 24px 18px;
  color: #fff;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
}
.tri-hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(251,191,36,0.25), transparent 60%),
    linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(30,41,59,0.85) 50%, rgba(49,46,129,0.78) 100%);
  pointer-events: none;
}
.tri-hero-content { position: relative; z-index: 1; }
.tri-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(251,191,36,0.20); color: #fde68a;
  border: 1px solid rgba(251,191,36,0.38);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 12px;
}
.tri-event {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.tri-event-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,0.85);
  margin-top: 6px;
}
.tri-event-meta i { color: #fbbf24; margin-right: 4px; }

.tri-boleta-chip {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 14px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 12.5px;
  backdrop-filter: blur(6px);
}
.tri-boleta-chip i { color: #fbbf24; }
.tri-boleta-chip strong { font-weight: 700; }

/* BODY */
.tri-body { padding: 22px 24px 24px; }

/* Flow: De → A */
.tri-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 8px;
  background: var(--bg-soft);
  border-radius: 14px;
  margin-bottom: 18px;
}
.tri-flow-person {
  text-align: center;
  min-width: 0;
}
.tri-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  margin: 0 auto 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: background 0.2s, border-color 0.2s;
}
.tri-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tri-avatar-from {
  background: var(--accent); color: var(--accent-text);
  border: 3px solid var(--accent);
}
.tri-avatar-to {
  background: #fff; color: var(--muted);
  border: 3px dashed var(--line);
}
.tri-avatar-to.set {
  background: #dbeafe; color: #1e40af;
  border: 3px solid #93c5fd;
  border-style: solid;
}
.tri-avatar-to.warn {
  background: #fee2e2; color: #991b1b;
  border-color: #fca5a5;
}
.tri-flow-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-soft);
}
.tri-flow-sub {
  font-size: 13px; color: var(--fg); font-weight: 600;
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tri-flow-arrow {
  display: flex; align-items: center; gap: 8px;
  color: var(--accent);
}
.tri-flow-arrow-line {
  width: 18px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  border-radius: 1px;
}
.tri-flow-arrow-line:last-child {
  background: linear-gradient(90deg, var(--accent), transparent);
}
.tri-flow-arrow i {
  font-size: 18px;
  animation: tri-fly 1.8s ease-in-out infinite;
}
@keyframes tri-fly {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50%      { transform: translateX(4px) rotate(-8deg); }
}

/* Form fields */
.tri-field { margin-bottom: 16px; }
.tri-field-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}
.tri-field-label i { color: var(--accent); width: 14px; }
.tri-field-opt {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 2px 7px; border-radius: 999px;
  margin-left: auto;
}
.tri-counter {
  font-size: 11px; color: var(--muted); font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.tri-counter.near { color: var(--warn); font-weight: 700; }
.tri-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tri-input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.20);
}
textarea.tri-input { resize: vertical; min-height: 56px; line-height: 1.45; }

.tri-field-hint {
  display: flex; gap: 7px; align-items: flex-start;
  margin-top: 7px;
  font-size: 12px; color: var(--fg-soft);
  line-height: 1.45;
}
.tri-field-hint i { margin-top: 1px; color: var(--muted); }
.tri-field-hint.ok { color: #166534; }
.tri-field-hint.ok i { color: #16a34a; }

/* Steps "qué pasa después" */
.tri-steps {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.tri-step {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
}
.tri-step strong { color: var(--fg); display: block; }
.tri-step p { margin: 1px 0 0; color: var(--fg-soft); font-size: 12.5px; }
.tri-step-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
  font-family: var(--font-display);
}

/* Warning callout */
.tri-warn {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  background: #fef3c7; border: 1px solid #fde68a;
  border-radius: 10px;
  color: #78350f;
  font-size: 13px; line-height: 1.45;
  margin-bottom: 16px;
}
.tri-warn i { color: #d97706; font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.tri-warn strong { color: #713f12; }

/* CTA bar */
.tri-cta {
  display: flex; justify-content: flex-end; gap: 10px;
  padding-top: 4px;
  flex-wrap: wrap;
}
.tri-cta .btn { flex-shrink: 0; }
.tri-cta .btn.primary { padding: 12px 18px; font-size: 14px; }

@media (max-width: 540px) {
  .tri-flow { grid-template-columns: 1fr; gap: 6px; padding: 16px; }
  .tri-flow-arrow { transform: rotate(90deg); padding: 4px 0; }
  .tri-flow-arrow-line { width: 24px; }
  .tri-event { font-size: 19px; }
  .tri-event-meta { font-size: 12px; gap: 10px; }
  .tri-cta { flex-direction: column-reverse; }
  .tri-cta .btn { width: 100%; justify-content: center; }
}

/* QR-only fallback view inside modal */
.qr-only-view {
  background: #fff; padding: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%;
}
.qr-only-canvas { width: 380px; max-width: 70%; aspect-ratio: 1; background: #fff; padding: 10px; border: 4px solid #0f172a; border-radius: 12px; }
.qr-only-canvas img { width: 100% !important; height: auto !important; image-rendering: pixelated; }
.qr-only-id { font-family: ui-monospace, monospace; font-size: 14px; color: #64748b; margin-top: 16px; }

@media (max-width: 760px) {
  .ticket-modal { max-width: none; }
  .ticket-modal-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .ticket-modal-buttons { justify-content: center; }
}

/* ════════════════════════════════════════════════════════
   Mobile fullscreen modal: forzar landscape + hint rotación
   ════════════════════════════════════════════════════════ */
.ticket-modal-overlay.mobile-fs {
  padding: 0;
  background: #000;
}
.ticket-modal-overlay.mobile-fs .ticket-modal {
  width: 100%; max-width: 100%;
  height: 100%;
  display: flex; flex-direction: column;
  background: #000;
  position: relative;
}
.ticket-modal-overlay.mobile-fs .ticket-modal-close {
  position: fixed; top: 10px; right: 10px;
  z-index: 10;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Hint de rotación — solo visible en portrait sobre fondo negro */
.ticket-rotate-hint {
  display: none;
  position: absolute; inset: 0;
  background: #0f172a;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px; text-align: center;
  color: #fff;
  z-index: 5;
}
.ticket-rotate-icon {
  font-size: 60px; color: #fbbf24;
  margin-bottom: 18px;
  animation: rotate-pulse 2s ease-in-out infinite;
}
@keyframes rotate-pulse {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 1; }
  50%      { transform: rotate(85deg) scale(1.1); opacity: 0.7; }
}
.ticket-rotate-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.ticket-rotate-sub {
  font-size: 14px; color: rgba(255,255,255,0.7);
  max-width: 280px; line-height: 1.5;
  margin-bottom: 24px;
}
.ticket-rotate-arrow {
  font-size: 30px; color: rgba(251,191,36,0.7);
  animation: rotate-arrow 1.6s ease-in-out infinite;
}
@keyframes rotate-arrow {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(90deg); }
}

/* En mobile-fs PORTRAIT → mostrar hint, ocultar ticket */
@media (max-width: 980px) and (orientation: portrait) {
  .ticket-modal-overlay.mobile-fs .ticket-rotate-hint { display: flex; }
  .ticket-modal-overlay.mobile-fs .ticket-modal-frame,
  .ticket-modal-overlay.mobile-fs .ticket-modal-actions { display: none; }
}

/* En mobile-fs LANDSCAPE → ticket pantalla completa, hint oculto */
@media (max-width: 980px) and (orientation: landscape) {
  .ticket-modal-overlay.mobile-fs { padding: 0; }
  .ticket-modal-overlay.mobile-fs .ticket-rotate-hint { display: none; }
  .ticket-modal-overlay.mobile-fs .ticket-modal-frame {
    flex: 1;
    aspect-ratio: auto;
    border-radius: 0;
    background: #000;
    width: 100%;
    height: 100%;
  }
  .ticket-modal-overlay.mobile-fs .ticket-modal-frame .ticket-frame {
    width: 100%;
    height: 100%;
  }
  .ticket-modal-overlay.mobile-fs .ticket-modal-actions {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85) 40%);
    padding: 8px 14px 6px;
    margin: 0;
    z-index: 6;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
  }
  .ticket-modal-overlay.mobile-fs .ticket-modal-hint { display: none; }
  .ticket-modal-overlay.mobile-fs .ticket-modal-buttons {
    width: 100%; justify-content: center;
  }
  .ticket-modal-overlay.mobile-fs .ticket-modal-buttons .btn.ghost {
    padding: 6px 12px; font-size: 12px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
  }
}

/* Tablet sm landscape no es full screen sino normal */
@media (min-width: 760px) {
  .ticket-modal-overlay.mobile-fs .ticket-rotate-hint { display: none; }
}

/* ===================== Staff list (en evento) ===================== */
.staff-section-title {
  font-size: 13px; font-weight: 700; color: var(--fg-soft);
  margin: 18px 0 10px;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.02em;
}
.staff-row {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 8px;
}
.staff-row.pending { background: #fffbeb; border-color: #fde68a; }
.staff-row.accepted { background: #f0fdf4; border-color: #bbf7d0; }
.staff-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #1a1306;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.staff-avatar.muted { background: #f1f5f9; color: #64748b; }
.staff-meta { min-width: 0; }
.staff-name {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-weight: 600; color: var(--fg);
}
.rol-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.02em;
}
.staff-row .actions { display: flex; gap: 6px; }

/* ===================== Staff event cards (vista del portero) ===================== */
.staff-event-card {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px;
  box-shadow: var(--sh-sm);
}
.staff-event-card.past { opacity: 0.55; }
.staff-event-cover {
  width: 80px; height: 80px; border-radius: 10px;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}
.staff-event-meta { min-width: 0; }
.staff-event-name {
  font-family: var(--font-display, sans-serif);
  font-size: 17px; font-weight: 700; color: var(--fg);
  margin-bottom: 6px;
}
.staff-event-sub {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.staff-event-sub i { margin-right: 4px; }

@media (max-width: 640px) {
  .staff-event-card { grid-template-columns: 60px 1fr; }
  .staff-event-cover { width: 60px; height: 60px; font-size: 20px; }
  .staff-event-action { grid-column: 1 / -1; }
  .staff-row { grid-template-columns: 36px 1fr; }
  .staff-row .actions { grid-column: 1 / -1; }
}

/* ════════════════════════════════════════════════════════
   /app/staff — Escáner de entradas (redesign pro)
   ════════════════════════════════════════════════════════ */
.staff-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
  color: #fff;
  border-radius: 18px;
  padding: 32px 36px;
  margin-bottom: 22px;
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.staff-hero::after {
  content: ""; position: absolute; right: -100px; top: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.staff-hero-inner { position: relative; z-index: 1; }
.staff-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; color: rgba(147,197,253,0.95);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 8px;
}
.staff-hero-eyebrow i { font-size: 12px; }
.staff-hero-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 30px); font-weight: 800;
  margin: 0 0 10px; line-height: 1.15; color: #fff;
  letter-spacing: -0.01em;
}
.staff-hero-title .accent { color: var(--accent); }
.staff-hero-sub {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.78); font-size: 14.5px; line-height: 1.55;
  max-width: 620px;
}
.staff-hero-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.staff-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  min-width: 110px;
  backdrop-filter: blur(6px);
}
.staff-stat .num {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; color: #fff;
  line-height: 1.1;
}
.staff-stat .lbl {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); font-weight: 600;
}
.staff-stat.live {
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.4);
  animation: staff-live-pulse 2s ease-in-out infinite;
}
.staff-stat.live .num { color: #86efac; }
.staff-stat.live .lbl { color: #86efac; }
@keyframes staff-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

/* Filtros */
.staff-filter-row { margin-bottom: 18px; }
.staff-filter-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--sh-sm);
}
.staff-filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: transparent; border: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--fg-soft);
  border-radius: 10px;
  white-space: nowrap;
  transition: all 0.15s;
}
.staff-filter:hover { color: var(--fg); background: var(--bg-soft); }
.staff-filter.active { background: var(--primary); color: #fff; }
.staff-filter.active .count { background: rgba(255,255,255,0.20); color: #fff; }
.staff-filter .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--bg-soft); color: var(--fg-soft);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
}

/* Lista de cards */
.staff-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.staff-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.staff-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--accent); }
.staff-card[data-live="1"] {
  border: 2px solid #22c55e;
  box-shadow: 0 8px 24px rgba(34,197,94,0.20);
}

.staff-card-cover {
  position: relative;
  aspect-ratio: 16/9;
  background-color: #0f172a;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px 14px;
}
.staff-card-cover-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px;
}
.staff-card-cover-bottom { display: flex; justify-content: flex-start; }
.staff-card-cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(15,23,42,0.65);
  color: #fff;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.staff-card-cat i { font-size: 10px; }
.staff-card-rol {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.05);
  font-size: 12px; font-weight: 700;
  backdrop-filter: blur(6px);
}
.staff-card-rol i { font-size: 11px; }

/* Countdown badge en cover */
.staff-cd {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(15,23,42,0.65);
  color: rgba(255,255,255,0.9);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.staff-cd i { font-size: 10px; }
.staff-cd.hot { background: rgba(251,191,36,0.92); color: #1a1306; }
.staff-cd.live {
  background: #22c55e; color: #fff;
  box-shadow: 0 4px 14px rgba(34,197,94,0.45);
}
.staff-cd.past { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.55); }
.staff-cd.pulse { animation: staff-cd-pulse 1.6s ease-in-out infinite; }
@keyframes staff-cd-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.staff-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.staff-card-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800; color: var(--fg);
  margin: 0; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.staff-card-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--fg-soft);
}
.staff-card-meta i { color: var(--accent-hover); margin-right: 4px; font-size: 11px; }
.staff-card-rol-desc {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 12.5px; color: var(--fg-soft);
}
.staff-card-rol-desc i { font-size: 14px; flex-shrink: 0; }
.staff-card-rol-desc strong { color: var(--fg); font-weight: 600; }

.staff-card-foot {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.staff-card-invited {
  font-size: 11.5px; color: var(--muted);
  line-height: 1.4;
}
.staff-card-invited i { color: var(--fg-soft); margin-right: 5px; }
.staff-card-invited strong { color: var(--fg-soft); font-weight: 600; }
.staff-card-cta {
  width: 100%; justify-content: center;
  padding: 11px 16px;
}

@media (max-width: 540px) {
  .staff-hero { padding: 22px 20px; }
  .staff-hero-stats { gap: 8px; }
  .staff-stat { min-width: 0; flex: 1; padding: 8px 12px; }
  .staff-stat .num { font-size: 18px; }
  .staff-list { grid-template-columns: 1fr; gap: 14px; }
  .staff-card-cover { aspect-ratio: 16/8; }
}

/* Empty state */
.staff-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--sh-sm);
}
.staff-empty-ico {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-hover);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px;
  margin-bottom: 14px;
}
.staff-empty h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; color: var(--fg);
  margin: 0 0 6px;
}
.staff-empty p {
  color: var(--fg-soft); font-size: 14px; line-height: 1.55;
  max-width: 460px; margin: 0 auto 22px;
}
.staff-empty-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  max-width: 640px; margin: 0 auto;
}
.staff-empty-role {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
}
.staff-empty-role-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.staff-empty-role strong {
  display: block; font-size: 13px; color: var(--fg); font-weight: 700;
}
.staff-empty-role .muted { font-size: 11.5px; }

/* ===== Banner "Conecta MP" (dashboard + detalle evento) ===== */
.mp-banner {
  display: flex; gap: 16px; align-items: center;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fbbf24;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(251,191,36,0.18);
  animation: mp-banner-in 0.3s ease-out;
}
@keyframes mp-banner-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mp-banner-ico {
  width: 44px; height: 44px; border-radius: 50%;
  background: #f59e0b; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.mp-banner-text { flex: 1; min-width: 0; }
.mp-banner-text strong {
  display: block; color: #78350f;
  font-size: 15px; font-weight: 800;
  margin-bottom: 4px;
}
.mp-banner-text p {
  margin: 0; color: #92400e;
  font-size: 13.5px; line-height: 1.5;
}
.mp-banner-text strong:nth-of-type(n+2) { color: #78350f; display: inline; }
.mp-banner .btn {
  flex-shrink: 0;
  background: #0f172a; color: #fff; border: 0;
  padding: 11px 18px; font-weight: 700; font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(15,23,42,0.25);
  transition: transform 0.12s, background 0.15s;
}
.mp-banner .btn:hover { background: #1e293b; transform: translateY(-1px); }
.mp-banner .btn i { font-size: 16px; color: #fbbf24; }

/* Variante compacta para primer flujo (sin eventos creados aún) */
.mp-banner.compact { padding: 12px 16px; }
.mp-banner.compact .mp-banner-ico { width: 36px; height: 36px; font-size: 16px; }
.mp-banner.compact .mp-banner-text strong { font-size: 14px; }
.mp-banner.compact .mp-banner-text p { font-size: 12.5px; }

/* Botón "X" para descartar el banner */
.mp-banner-dismiss {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(146,64,14,0.10);
  color: #92400e;
  border: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.mp-banner-dismiss:hover { background: rgba(146,64,14,0.20); color: #78350f; }

@media (max-width: 720px) {
  .mp-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; position: relative; }
  .mp-banner .btn { width: 100%; justify-content: center; }
  .mp-banner-dismiss { position: absolute; top: 10px; right: 10px; }
}

/* ===== Banner de compra exitosa (vuelta de MP) ===== */
.purchase-success {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(135deg, rgba(22,163,74,0.10), rgba(22,163,74,0.05));
  border: 1px solid rgba(22,163,74,0.3);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  animation: ps-in 0.3s ease;
}
@keyframes ps-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.purchase-success-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ok); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.purchase-success-text { flex: 1; min-width: 0; }
.purchase-success-text strong { display: block; color: var(--fg); font-size: 16px; }
.purchase-success-close {
  background: transparent; border: 0;
  color: var(--fg-soft); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 14px;
}
.purchase-success-close:hover { background: rgba(0,0,0,0.05); color: var(--fg); }

/* ===== Boleta pending placeholder (compra en proceso) ===== */
.boleta-pending {
  grid-column: 1 / -1;
  display: flex; gap: 14px; align-items: center;
  padding: 20px;
  background: #fffbeb;
  border: 1px dashed #fde68a;
  border-radius: 10px;
  color: #92400e;
}
.boleta-pending i { font-size: 26px; color: #d97706; flex-shrink: 0; }
.boleta-pending strong { display: block; color: #78350f; margin-bottom: 2px; }

/* ════════════════════════════════════════════════════════════
   MIS ENTRADAS — Diseño pro impactante
   ════════════════════════════════════════════════════════════ */

/* ───── HERO ───── */
.entradas-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 280px;
  margin-bottom: 24px;
  padding: 48px 36px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  box-shadow: 0 24px 60px rgba(15,23,42,0.18);
}
.entradas-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 35%, #0f172a 100%);
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: entradasHeroZoom 30s ease-in-out infinite alternate;
  overflow: hidden;
}
@keyframes entradasHeroZoom { from { transform: scale(1.0); } to { transform: scale(1.10); } }
/* Capas de fotos cycling cuando hay 2+ eventos */
.entradas-hero-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  will-change: opacity, transform;
  animation: entradasHeroFade 35s ease-in-out infinite;
  filter: contrast(1.05) saturate(1.1);
}
@keyframes entradasHeroFade {
  0%   { opacity: 0; transform: scale(1.12); }
  4%   { opacity: 1; transform: scale(1.06); }
  26%  { opacity: 1; transform: scale(1.0); }
  30%  { opacity: 0; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(1.12); }
}
.entradas-hero-bg:has(.entradas-hero-photo) { animation: none; transform: none; background: #0a0f1d; }
.entradas-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(251,191,36,0.18), transparent 55%),
    linear-gradient(135deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.78) 100%);
}
.entradas-hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  color: #fff;
}
.entradas-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(251,191,36,0.18);
  border: 1px solid rgba(251,191,36,0.4);
  color: #fcd34d;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}
.entradas-h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.45);
  margin-bottom: 8px;
}
.entradas-h1 .accent { color: #fbbf24; }
.entradas-sub {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  max-width: 580px;
  margin-bottom: 22px;
}

.entradas-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.entradas-stat {
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(14px);
}
.entradas-stat.highlight {
  background: rgba(251,191,36,0.95);
  color: #1a1306;
  border-color: rgba(251,191,36,1);
}
.entradas-stat-val {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.entradas-stat.highlight .entradas-stat-val { color: #1a1306; }
.entradas-stat-lbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 4px; font-weight: 600;
}
.entradas-stat.highlight .entradas-stat-lbl { color: rgba(26,19,6,0.7); }

/* ───── TABS ───── */
.entradas-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--sh-sm);
}
.entradas-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: transparent; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--fg-soft);
  border-radius: 10px;
  transition: all 0.18s;
  white-space: nowrap;
  min-width: 0;
}
.entradas-tab:hover { color: var(--fg); background: var(--bg-soft); }
.entradas-tab.active { background: var(--primary); color: #fff; }
.entradas-tab.active .count { background: rgba(255,255,255,0.20); color: #fff; }
.entradas-tab .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--bg-soft); color: var(--fg-soft);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
}

/* Mobile: full-width grid + ocultar iconos para evitar overflow */
@media (max-width: 560px) {
  .entradas-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    width: 100%;
  }
  .entradas-tab {
    padding: 9px 6px;
    font-size: 12.5px;
    gap: 5px;
    justify-content: center;
  }
  .entradas-tab > i:first-child { display: none; }
  .entradas-tab .count {
    min-width: 18px; height: 18px;
    font-size: 10px; padding: 0 4px;
  }
}

/* ───── ORDEN BLOCK ───── */
.orden-block {
  margin-bottom: 28px;
  animation: blockIn 0.4s ease-out backwards;
}
@keyframes blockIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ticket-group-head {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(15,23,42,0.04));
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: 14px 14px 0 0;
  border-bottom: 0;
}
.ticket-group-info { flex: 1; min-width: 0; }
.ticket-group-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; color: var(--fg);
  margin-bottom: 4px;
}
.ticket-group-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-soft);
}
.ticket-group-meta i { color: var(--accent); margin-right: 4px; }
.ticket-group-count {
  background: var(--accent); color: var(--accent-text);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}

.ticket-pro-list {
  display: flex; flex-direction: column;
  gap: 14px;
  padding-top: 14px;
}

/* ───── TICKET PRO (card grande) ───── */
.ticket-pro {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  color: #f8fafc;
  box-shadow: 0 12px 40px rgba(15,23,42,0.22);
  transition: transform 0.28s cubic-bezier(.18,.89,.32,1.28), box-shadow 0.28s, filter 0.28s;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
}
.ticket-pro.reveal-in {
  animation: ticketIn 0.55s cubic-bezier(.18,.89,.32,1.28) forwards;
}
@keyframes ticketIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ticket-pro:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 24px 60px rgba(15,23,42,0.32), 0 0 0 1px var(--ticket-accent);
}
.ticket-pro.is-used { filter: saturate(0.6); }
.ticket-pro.is-used::after {
  content: "USADA"; position: absolute; top: 24px; right: -36px;
  background: rgba(0,0,0,0.7); color: #fff;
  padding: 4px 40px; transform: rotate(35deg);
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
  z-index: 4; pointer-events: none;
}
.ticket-pro.is-cancelled { filter: grayscale(1) opacity(0.6); }
.ticket-pro.is-cancelled::after {
  content: "CANCELADA"; position: absolute; top: 24px; right: -50px;
  background: var(--bad); color: #fff;
  padding: 4px 50px; transform: rotate(35deg);
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
  z-index: 4; pointer-events: none;
}

.ticket-pro-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 0.4s;
}
.ticket-pro:hover .ticket-pro-bg { transform: scale(1.10); }
.ticket-pro-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(15,23,42,0.4), transparent 50%),
    linear-gradient(90deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.78) 55%, rgba(15,23,42,0.42) 100%);
}

.ticket-pro-left {
  position: relative; z-index: 2;
  padding: 24px 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-width: 0;
}
.ticket-pro-pills {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 8px;
}
.ticket-pro-cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  color: #1a1306;
  border-radius: 999px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
}
.ticket-pro-num {
  display: inline-flex; align-items: center;
  padding: 5px 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.ticket-cd {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
}
.ticket-cd.hot { background: rgba(220,38,38,0.85); border-color: rgba(220,38,38,1); color: #fff; }
.ticket-cd.past { background: rgba(15,23,42,0.6); color: rgba(255,255,255,0.7); }
.ticket-cd.pulse { animation: cdPulse 1.6s ease-in-out infinite; }
@keyframes cdPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.7); }
  50%      { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}

.ticket-pro-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ticket-pro-info {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: rgba(255,255,255,0.88);
  margin-bottom: 14px;
}
.ticket-pro-info i { color: var(--ticket-accent, #fbbf24); width: 16px; }

.ticket-pro-asistente {
  background: rgba(0,0,0,0.35);
  border-left: 3px solid var(--ticket-accent, #fbbf24);
  padding: 10px 14px;
  border-radius: 4px 8px 8px 4px;
  display: flex; flex-direction: column; gap: 2px;
}
.ticket-pro-asistente-lbl {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.7; font-weight: 700;
}
.ticket-pro-asistente-name {
  font-size: 16px; font-weight: 700; color: #fff;
}
.ticket-state {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  width: fit-content;
}
.ticket-state.valid     { background: rgba(22,163,74,0.25); color: #86efac; border: 1px solid rgba(22,163,74,0.5); }
.ticket-state.used      { background: rgba(217,119,6,0.25); color: #fcd34d; border: 1px solid rgba(217,119,6,0.5); }
.ticket-state.cancelled { background: rgba(220,38,38,0.25); color: #fca5a5; border: 1px solid rgba(220,38,38,0.5); }

/* Perforación entre las dos secciones */
.ticket-pro-perf {
  position: absolute; top: 0; bottom: 0; right: 280px; width: 2px;
  z-index: 3;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.4) 50%, transparent 0);
  background-size: 100% 12px;
  background-repeat: repeat-y;
}
.ticket-pro-perf::before, .ticket-pro-perf::after {
  content: ''; position: absolute; left: -10px;
  width: 22px; height: 22px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.ticket-pro-perf::before { top: -11px; }
.ticket-pro-perf::after  { bottom: -11px; }

/* Stub derecho (QR) */
.ticket-pro-right {
  position: relative; z-index: 2;
  background: #fff;
  color: #0f172a;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 22px 18px;
  text-align: center;
}
.ticket-pro-qr-frame {
  background: #fff; padding: 6px;
  border: 3px solid var(--ticket-accent, #fbbf24);
  border-radius: 10px;
  width: 130px; height: 130px;
  display: flex; align-items: center; justify-content: center;
}
.ticket-pro-qr { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ticket-pro-qr img { width: 100% !important; height: auto !important; image-rendering: pixelated; }
.ticket-pro-qr-loading {
  width: 24px; height: 24px;
  border: 2.5px solid #e2e8f0;
  border-top-color: var(--ticket-accent, #fbbf24);
  border-radius: 50%;
  animation: ticket-spin 0.7s linear infinite;
}
@keyframes ticket-spin { to { transform: rotate(360deg); } }
.ticket-pro-qr-cap {
  margin-top: 10px;
  font-size: 11px; font-weight: 600;
  color: var(--ticket-accent, #fbbf24);
  letter-spacing: 0.04em;
}
.ticket-pro-id {
  margin-top: 4px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 10px; color: #94a3b8;
}

.ticket-pro-expand {
  position: absolute; top: 12px; right: 14px; z-index: 5;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px;
  backdrop-filter: blur(6px);
  transition: all 0.2s;
  pointer-events: none;
}
.ticket-pro:hover .ticket-pro-expand {
  background: var(--ticket-accent, #fbbf24);
  color: #1a1306; border-color: var(--ticket-accent, #fbbf24);
  transform: scale(1.1);
}

/* ───── ORDEN FOOT ───── */
.orden-foot {
  display: flex; gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  font-size: 12px;
  color: var(--fg-soft);
  margin-top: -1px;
}
.orden-foot-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.orden-foot-meta i { color: var(--accent); margin-right: 5px; }
.orden-foot-actions {
  display: flex; align-items: center; gap: 12px;
  margin-left: auto;
}
.orden-foot-link {
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
}
.orden-foot-link:hover { color: var(--accent); }
.orden-foot-cta {
  /* btn primary sm — ya tiene estilos, agregamos énfasis */
  box-shadow: 0 4px 12px rgba(251,191,36,0.35);
}
.orden-foot-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(251,191,36,0.5);
}
@media (max-width: 640px) {
  .orden-foot { flex-direction: column; align-items: stretch; }
  .orden-foot-actions { margin-left: 0; justify-content: space-between; }
  .orden-foot-cta { flex: 1; justify-content: center; }
}

/* ───── PENDING ───── */
.ticket-pending {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 28px;
  margin-bottom: 18px;
  min-height: 140px;
  isolation: isolate;
  color: #fff;
}
.ticket-pending-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #fbbf24;
  background-size: cover; background-position: center;
  filter: blur(6px) saturate(1.2);
  transform: scale(1.1);
}
.ticket-pending-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(217,119,6,0.65), rgba(15,23,42,0.85));
}
.ticket-pending-content {
  position: relative; z-index: 2;
  display: flex; gap: 18px; align-items: center;
}
.ticket-pending-content > i {
  font-size: 38px; color: #fcd34d; flex-shrink: 0;
}
.ticket-pending-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; opacity: 0.85; margin-bottom: 4px;
}
.ticket-pending strong { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.ticket-pending .muted { color: rgba(255,255,255,0.75); }

/* ───── EMPTY ───── */
.entradas-empty {
  text-align: center;
  padding: 64px 24px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.entradas-empty-icon {
  position: relative; display: inline-block;
  font-size: 72px; color: var(--accent);
  margin-bottom: 18px;
}
.entradas-empty-icon .spark {
  position: absolute; top: -8px; right: -16px;
  font-size: 24px; color: #fcd34d;
  animation: empty-spark 2s ease-in-out infinite;
}
@keyframes empty-spark {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50%      { transform: scale(1.2) rotate(20deg); opacity: 0.7; }
}
.entradas-empty h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: var(--fg); margin-bottom: 8px;
}
.entradas-empty p {
  color: var(--fg-soft); margin-bottom: 24px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.entradas-empty-mini {
  text-align: center; padding: 48px 24px;
  color: var(--fg-soft); font-size: 14px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.entradas-empty-mini i { font-size: 22px; color: var(--muted); margin-right: 8px; }

/* ───── MOBILE ───── */
@media (max-width: 740px) {
  .entradas-hero { padding: 32px 22px; min-height: 240px; }
  .entradas-stats { grid-template-columns: 1fr 1fr; }
  .ticket-pro {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    min-height: auto;
  }
  .ticket-pro-perf {
    top: auto; bottom: 168px; right: 0;
    width: 100%; height: 2px;
    background-image: linear-gradient(to right, rgba(255,255,255,0.4) 50%, transparent 0);
    background-size: 12px 100%;
    background-repeat: repeat-x;
  }
  .ticket-pro-perf::before { left: -11px; top: -10px; }
  .ticket-pro-perf::after  { left: auto; right: -11px; top: -10px; bottom: auto; }
  .ticket-pro-right { padding: 18px; }
  .ticket-pro-qr-frame { width: 110px; height: 110px; }
  .ticket-pro-title { font-size: 20px; }
  .ticket-group-head { padding: 14px; flex-direction: column; align-items: flex-start; }
  .ticket-group-count { align-self: flex-end; }
  .orden-foot { flex-direction: column; gap: 6px; }
  .orden-foot-link { margin-left: 0; }
}

/* ===== /app/eventos — Stats row ===== */
.ev-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.ev-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--sh-sm);
}
.ev-stat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ev-stat-content { min-width: 0; flex: 1; }
.ev-stat-num {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; color: var(--fg);
  line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ev-stat-lbl { font-size: 12px; color: var(--fg-soft); margin-top: 2px; }

/* ===== /app/eventos — Filtros pill ===== */
.ev-filters-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.ev-filters-row .ev-filter {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-soft);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.ev-filters-row .ev-filter:hover { border-color: var(--accent); color: var(--fg); }
.ev-filters-row .ev-filter.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.ev-filter-count {
  background: rgba(0,0,0,0.08);
  color: inherit;
  padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.ev-filters-row .ev-filter.active .ev-filter-count { background: rgba(255,255,255,0.18); }

/* ===== /app/eventos — Grid de cards ===== */
.ev-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.ev-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  box-shadow: var(--sh-sm);
}
.ev-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(15,23,42,0.10);
  color: inherit;
}
.ev-card.past { opacity: 0.7; }
.ev-card.past:hover { opacity: 1; }

.ev-card-cover {
  position: relative;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
}
.ev-card-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.55) 100%);
}
.ev-card-cat-pill {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(15,23,42,0.85); color: #fbbf24;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.ev-card-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
}
.ev-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.ev-card-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; color: var(--fg);
  line-height: 1.25; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-card-meta {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: var(--fg-soft);
  margin-bottom: 14px;
}
.ev-card-meta i { color: var(--accent-hover); width: 14px; margin-right: 4px; }

.ev-card-progress {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.ev-card-progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--fg-soft);
  margin-bottom: 6px;
}
.ev-card-progress-val strong { color: var(--fg); font-size: 14px; }
.ev-card-progress-bar {
  height: 6px; background: rgba(15,23,42,0.08);
  border-radius: 999px; overflow: hidden;
}
.ev-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f97316);
  border-radius: 999px;
  transition: width 0.4s;
}

.ev-card-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.ev-card-stat {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 8px 12px;
}
.ev-card-stat-lbl { font-size: 10px; color: var(--fg-soft); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.ev-card-stat-val { font-size: 14px; font-weight: 700; color: var(--fg); margin-top: 2px; }

.ev-card-cta {
  margin-top: auto;
  padding: 9px 11px;
  background: var(--accent-soft);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 8px;
  font-size: 12px;
  color: var(--accent-text);
  display: flex; gap: 7px; align-items: flex-start;
}
.ev-card-cta i { color: var(--accent-hover); margin-top: 2px; flex-shrink: 0; }

/* ===== Configurar tab: form + preview sticky lado a lado =====
   Proporción col-7 / col-5 → form en 7fr, preview en 5fr (58%/42%). */
.cf-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
  align-items: start;
}
.cf-form-col { min-width: 0; }
.cf-preview-col { min-width: 0; }
.cf-preview-sticky {
  /* sin position: sticky — el card scrollea con el resto */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--sh-sm);
}
@media (max-width: 1100px) {
  /* En desktops chicos / tablets: pasamos a 50/50 para que el form no quede tan apretado */
  .cf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cf-grid { grid-template-columns: 1fr; }
}

/* ===== Botón delete sobre la card del evento ===== */
.ev-card { position: relative; }
.ev-card-delete {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(15,23,42,0.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.18s, background 0.15s, transform 0.15s;
  transform: scale(0.92);
}
.ev-card:hover .ev-card-delete { opacity: 1; transform: scale(1); }
.ev-card-delete:hover { background: var(--bad); border-color: var(--bad); transform: scale(1.05); }
@media (hover: none) { .ev-card-delete { opacity: 1; transform: scale(1); } }
/* Cuando el badge ya está top-right, bajamos un poco el delete para que no se superpongan */
.ev-card .ev-card-badge { right: 54px; }

/* ===== /app/cuenta — Hero header con avatar grande ===== */
.ac-hero {
  display: flex; gap: 22px; align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 28px 32px;
  border-radius: 18px;
  margin-bottom: 22px;
  box-shadow: var(--sh-md);
  flex-wrap: wrap;
}
.ac-hero-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800;
  flex-shrink: 0;
  border: 4px solid rgba(255,255,255,0.18);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.ac-hero-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-avatar-initials { font-size: 38px; font-weight: 800; }
.ac-hero-info { flex: 1; min-width: 0; }
.ac-hero-eyebrow {
  font-size: 11px; color: rgba(251,191,36,0.85);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 4px;
}
.ac-hero-name {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800; color: #fff;
  margin-bottom: 8px; line-height: 1.1;
}
.ac-hero-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.75);
}
.ac-hero-meta i { color: var(--accent); margin-right: 5px; }
.ac-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-hero-actions .btn {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.ac-hero-actions .btn:hover { background: rgba(255,255,255,0.18); color: #fff; }

@media (max-width: 640px) {
  .ac-hero { padding: 20px; flex-direction: column; text-align: center; align-items: flex-start; }
  .ac-hero-meta { justify-content: flex-start; }
  .ac-hero-actions { width: 100%; }
}

/* ===== /app/cuenta — Stats agregadas ===== */
.ac-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.ac-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--sh-sm);
}
.ac-stat-ico {
  width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.ac-stat-num {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; color: var(--fg);
  line-height: 1.1;
}
.ac-stat-lbl { font-size: 12px; color: var(--fg-soft); margin-top: 2px; }

/* ===== Grid main + aside ===== */
.ac-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.ac-col-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ac-col-aside { min-width: 0; }
.ac-aside-sticky { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) {
  .ac-grid { grid-template-columns: 1fr; }
  .ac-aside-sticky { position: static; }
}

/* ===== Cards reutilizables ===== */
.ac-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.ac-card-head {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.ac-card-head-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-hover);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.ac-card-head-ico.mp { background: #dbeafe; color: #1d4ed8; }
.ac-card-head h2 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; color: var(--fg);
  margin: 0 0 2px;
}
.ac-card-head p { font-size: 12px; color: var(--fg-soft); margin: 0; }
.ac-card-body { padding: 18px 20px; }

/* ===== MP block ===== */
.ac-mp-status {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: 10px;
  margin-bottom: 12px;
}
.ac-mp-status.connected { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; }
.ac-mp-status.pending   { background: #fef3c7; border: 1px solid #fde68a; color: #78350f; }
.ac-mp-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.ac-mp-text strong { display: block; margin-bottom: 4px; font-size: 14px; }
.ac-mp-text p { margin: 0; font-size: 13px; line-height: 1.45; opacity: 0.92; }
.ac-mp-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  background: var(--bg-soft);
  padding: 12px 14px; border-radius: 8px;
  font-size: 12px;
}
.ac-mp-meta > div { display: flex; flex-direction: column; gap: 2px; }
.ac-meta-lbl { color: var(--fg-soft); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.ac-meta-val code { font-family: ui-monospace, monospace; }
.ac-meta-val.muted { color: var(--muted); }

/* ===== KYC + Seguridad ===== */
.ac-kyc-status { display: flex; flex-direction: column; gap: 10px; }
.ac-kyc-state {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  width: fit-content;
}
.ac-kyc-state.ok      { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.ac-kyc-state.pending { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.ac-sec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 10px;
  gap: 12px;
}

/* ===== Completitud del perfil ===== */
.ac-completeness-bar {
  height: 8px; background: var(--line); border-radius: 999px; overflow: hidden;
  margin-bottom: 14px;
}
.ac-completeness-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), #f97316);
  transition: width 0.5s ease;
}
.ac-checklist {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.ac-checklist li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--fg-soft);
}
.ac-checklist li.done { color: var(--ok); text-decoration: line-through; opacity: 0.8; }
.ac-checklist li i { width: 18px; text-align: center; }
.ac-checklist li:not(.done) i { color: var(--muted); }

/* ===== Quick links ===== */
.ac-quick {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  transition: background 0.15s, border-color 0.15s;
}
.ac-quick:hover { background: var(--bg-soft); border-color: var(--accent); color: var(--fg); }
.ac-quick > i:first-child {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-hover);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.ac-quick > span {
  flex: 1; font-weight: 600; font-size: 14px;
  display: flex; flex-direction: column; line-height: 1.2;
}
.ac-quick small { color: var(--fg-soft); font-weight: 400; font-size: 12px; margin-top: 2px; }
.ac-quick > i:last-child { color: var(--muted); font-size: 12px; }

/* ===== /app/plan — Hero ===== */
.plan-hero {
  display: flex; gap: 22px; align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
  color: #fff;
  padding: 28px 32px;
  border-radius: 18px;
  margin-bottom: 22px;
  box-shadow: var(--sh-md);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.plan-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(251,191,36,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.plan-hero-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.plan-hero-eyebrow {
  font-size: 11px; color: rgba(251,191,36,0.85);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 4px;
}
.plan-hero-title {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.plan-hero-title h1 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800; color: #fff;
  margin: 0; line-height: 1.1;
}
.plan-hero-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.75);
}
.plan-hero-meta i { color: var(--accent); margin-right: 5px; }
.plan-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.plan-hero-actions .btn {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.plan-hero-actions .btn:hover { background: rgba(255,255,255,0.18); color: #fff; }
.plan-hero-actions .btn.danger { color: #fca5a5; border-color: rgba(252,165,165,0.3); }
.plan-hero-actions .btn.danger:hover { background: rgba(220,38,38,0.2); color: #fee2e2; }
.plan-hero-actions .btn.primary {
  background: var(--accent); color: var(--accent-text); border-color: var(--accent);
}
.plan-hero-actions .btn.primary:hover { background: var(--accent-hover); color: var(--accent-text); }

.plan-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.02em;
}
.plan-status-pill i { font-size: 9px; }
.plan-status-pill.active    { background: rgba(34,197,94,0.18); color: #86efac; border: 1px solid rgba(34,197,94,0.35); }
.plan-status-pill.trial     { background: rgba(251,191,36,0.18); color: #fde68a; border: 1px solid rgba(251,191,36,0.35); }
.plan-status-pill.cancelled { background: rgba(248,113,113,0.18); color: #fca5a5; border: 1px solid rgba(248,113,113,0.35); }
.plan-status-pill.free      { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.20); }

@media (max-width: 640px) {
  .plan-hero { padding: 20px; flex-direction: column; align-items: flex-start; }
  .plan-hero-actions { width: 100%; }
  .plan-hero-actions .btn { flex: 1; justify-content: center; }
}

/* ===== /app/plan — Banner ===== */
.plan-banner {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 22px;
  border: 1px solid;
}
.plan-banner i { font-size: 20px; line-height: 1.2; flex-shrink: 0; margin-top: 1px; }
.plan-banner > div { line-height: 1.5; font-size: 14px; }
.plan-banner.info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.plan-banner.info i { color: #2563eb; }
.plan-banner.warn { background: #fef3c7; border-color: #fde68a; color: #78350f; }
.plan-banner.warn i { color: #d97706; }

/* ===== /app/plan — Sección genérica ===== */
.plan-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: var(--sh-sm);
}
.plan-section-head { margin-bottom: 20px; }
.plan-section-head h2 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700; color: var(--fg);
  margin: 0 0 4px; display: flex; align-items: center; gap: 10px;
}
.plan-section-head h2 i { color: var(--accent); font-size: 17px; }
.plan-section-head p { margin: 0; font-size: 13px; }

/* ===== /app/plan — Grid de planes ===== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.plan-card.popular {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 8px 28px rgba(251,191,36,0.16);
  padding-top: 32px;
}
.plan-card.current {
  border-color: var(--ok);
  border-width: 2px;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 60%);
  padding-top: 32px;
}
.plan-card.current.popular { padding-top: 32px; }
.plan-card-ribbon {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 0 0 8px 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.plan-card-ribbon.popular { background: var(--accent); color: var(--accent-text); }
.plan-card-ribbon.current { background: var(--ok); color: #fff; }
.plan-card-ribbon i { font-size: 10px; }

.plan-card-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; color: var(--fg);
  line-height: 1.1;
}
.plan-card-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 2px;
}
.plan-card-amount {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800; color: var(--fg);
  line-height: 1.05;
}
.plan-card-freq { font-size: 13px; color: var(--fg-soft); font-weight: 500; }
.plan-card-equiv {
  font-size: 12px; color: var(--ok);
  font-weight: 600;
  margin-top: -2px;
}

.plan-features {
  list-style: none; padding: 0; margin: 6px 0 4px;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.plan-features li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; color: var(--fg);
  line-height: 1.45;
}
.plan-features li i { font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.plan-features li.ok i  { color: var(--ok); }
.plan-features li.no i  { color: var(--muted); }
.plan-features li.soft { color: var(--fg-soft); }
.plan-features li.soft i { color: var(--muted); }
.plan-features strong { font-weight: 700; color: var(--fg); }

.plan-card-cta { margin-top: auto; }

/* ===== /app/plan — Tabla comparación ===== */
.plan-compare-wrap { overflow-x: auto; }
.plan-compare {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.plan-compare th, .plan-compare td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.plan-compare th:first-child, .plan-compare td:first-child {
  text-align: left;
  color: var(--fg-soft);
  font-weight: 600;
  width: 38%;
}
.plan-compare thead th {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; color: var(--fg);
  background: var(--bg-soft);
  border-bottom: 2px solid var(--line);
}
.plan-compare thead th.hl {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}
.plan-compare tbody td.hl {
  background: rgba(251,191,36,0.06);
  font-weight: 700;
  color: var(--fg);
}
.plan-compare tbody tr:hover td { background: var(--bg-soft); }
.plan-compare tbody tr:hover td.hl { background: rgba(251,191,36,0.12); }
.plan-compare i.ok    { color: var(--ok); }
.plan-compare i.muted { color: var(--muted); }

/* ===== /app/plan — Historial de pagos ===== */
.plan-pagos { display: flex; flex-direction: column; gap: 8px; }
.plan-pago-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.plan-pago-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.plan-pago-ico.ok   { background: #dcfce7; color: #166534; }
.plan-pago-ico.bad  { background: #fee2e2; color: #991b1b; }
.plan-pago-ico.warn { background: #fef3c7; color: #92400e; }
.plan-pago-fecha { font-weight: 600; font-size: 14px; }
.plan-pago-sub   { font-size: 12px; }
.plan-pago-monto { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--fg); }
@media (max-width: 560px) {
  .plan-pago-row { grid-template-columns: 36px 1fr; row-gap: 8px; }
  .plan-pago-monto, .plan-pago-estado { grid-column: 2; }
}

/* ===== /app/plan — FAQ ===== */
.plan-faq { display: flex; flex-direction: column; gap: 8px; }
.plan-faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.plan-faq details[open] {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(251,191,36,0.10);
}
.plan-faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--fg);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.plan-faq summary::-webkit-details-marker { display: none; }
.plan-faq summary::after {
  content: "+";
  font-size: 22px; font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
  line-height: 1;
}
.plan-faq details[open] summary::after { content: "−"; }
.plan-faq p {
  padding: 0 18px 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-soft);
}

/* ===== YouTube preview card (en wizard step 3) ===== */
.yt-preview-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.yt-preview-thumb {
  width: 96px; height: 54px; object-fit: cover;
  border-radius: 6px; flex-shrink: 0;
}
.yt-preview-meta { min-width: 0; }
.yt-preview-title { font-weight: 600; font-size: 14px; color: var(--fg); margin-bottom: 2px; }
.yt-preview-meta code { font-family: ui-monospace, monospace; background: rgba(0,0,0,0.05); padding: 1px 5px; border-radius: 3px; }

/* ===== /configurar — save bar sticky + bloque danger ===== */
.cf-save-bar {
  position: sticky;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  margin: 18px 0;
  box-shadow: 0 -8px 24px rgba(15,23,42,0.06);
  z-index: 10;
  flex-wrap: wrap;
}
.cf-save-bar .btn.lg { padding: 10px 22px; font-size: 14px; }

.form-section-block.danger {
  border-color: rgba(220,38,38,0.25);
  background: linear-gradient(135deg, rgba(220,38,38,0.03), rgba(220,38,38,0.01));
}

/* ===== Toggle "Permitir reingreso" ===== */
.cf-toggle {
  display: flex; align-items: flex-start; gap: 14px;
  cursor: pointer;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.cf-toggle:hover { border-color: var(--accent); }
.cf-toggle input[type="checkbox"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.cf-toggle-slider {
  position: relative;
  flex-shrink: 0;
  width: 42px; height: 24px;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.2s;
  margin-top: 2px;
}
.cf-toggle-slider::after {
  content: ""; position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.cf-toggle input:checked + .cf-toggle-slider {
  background: var(--accent);
}
.cf-toggle input:checked + .cf-toggle-slider::after {
  transform: translateX(18px);
}
.cf-toggle input:focus-visible + .cf-toggle-slider {
  box-shadow: 0 0 0 3px rgba(251,191,36,0.25);
}
.cf-toggle-text {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 13.5px; line-height: 1.4;
}
.cf-toggle-text strong { color: var(--fg); font-weight: 700; }
.cf-toggle-text .muted { font-size: 12px; }

/* Opciones que aparecen al activar el toggle */
.cf-reingreso-options {
  margin-top: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: opacity 0.2s, max-height 0.25s, padding 0.2s, margin-top 0.2s;
  overflow: hidden;
}
.cf-reingreso-options.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0 14px;
  margin-top: 0;
  border-color: transparent;
  pointer-events: none;
}
.cf-reingreso-options:not(.hidden) {
  max-height: 400px;
  opacity: 1;
}

/* ===== QR Landing: lista de redes en /configurar ===== */
.cf-ql-redes-list { display: flex; flex-direction: column; gap: 8px; }
.cf-ql-red-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 130px) auto;
  gap: 6px; align-items: center;
}
.cf-ql-red-row select, .cf-ql-red-row input {
  padding: 8px 10px; font-size: 13.5px;
  border-radius: 8px;
}
.cf-ql-red-del {
  width: 36px; height: 36px;
  padding: 0; flex-shrink: 0;
  color: var(--bad);
}
@media (max-width: 640px) {
  .cf-ql-red-row {
    grid-template-columns: 1fr auto;
    gap: 6px;
  }
  .cf-ql-red-row select { grid-column: 1; }
  .cf-ql-red-row .cf-ql-red-del { grid-column: 2; grid-row: 1; }
  .cf-ql-red-row .cf-ql-red-url { grid-column: 1 / -1; }
  .cf-ql-red-row .cf-ql-red-label { grid-column: 1 / -1; }
}

/* Botones preset de cooldown */
.cf-cd-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.cf-cd-preset {
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--fg-soft);
  cursor: pointer;
  transition: all 0.12s;
}
.cf-cd-preset:hover { border-color: var(--accent); color: var(--accent-hover); }
.cf-cd-preset.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

/* ===== Galería del evento (wizard + configurar) ===== */
.gallery-uploader { display: flex; flex-direction: column; gap: 10px; }
.gallery-drop {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  background: #fafbfc;
  cursor: pointer;
  transition: all 0.15s;
}
.gallery-drop:hover { border-color: var(--accent); background: #fffdf5; }
.gallery-drop.drop  { border-color: var(--accent); background: #fef3c7; }
.gallery-drop i { font-size: 28px; color: var(--accent); margin-bottom: 6px; display: block; }
.gallery-drop small { display: block; color: var(--fg-soft); font-size: 11px; margin-top: 4px; }
.gallery-status { font-size: 12px; min-height: 16px; }
.gallery-status .ok { color: var(--ok); }
.gallery-status .bad { color: var(--bad); }
.gallery-status .muted { color: var(--fg-soft); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.gal-thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--line);
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb-rm {
  position: absolute; top: 4px; right: 4px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(15,23,42,0.85); color: #fff;
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; opacity: 0; transition: opacity 0.15s, background 0.15s;
}
.gal-thumb:hover .gal-thumb-rm { opacity: 1; }
.gal-thumb-rm:hover { background: var(--bad); }
.gal-thumb-moment {
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(15,23,42,0.85); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
@media (hover: none) { .gal-thumb-rm { opacity: 1; } }

/* ===== Lista de mini-tickets en /app/entradas ===== */
.ticket-mini-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.preview-ticket-mini.ticket-clickable {
  cursor: zoom-in;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
}
.preview-ticket-mini.ticket-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.28);
}
.preview-ticket-mini.is-used   { opacity: 0.65; }
.preview-ticket-mini.is-cancelled { opacity: 0.45; filter: grayscale(0.6); }

.ticket-mini-state {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  z-index: 5;
  background: rgba(15,23,42,0.55);
  color: #fff;
  font-weight: 700; font-size: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  border-radius: inherit;
  pointer-events: none;
}
.ticket-mini-state i { font-size: 36px; }
.ticket-mini-state.warn { background: rgba(217,119,6,0.7); }
.ticket-mini-state.bad  { background: rgba(220,38,38,0.75); }
.ticket-mini-state span { font-size: 13px; opacity: 0.95; letter-spacing: 0.04em; }

/* ===== Admin: Apariencia (hero del home) ===== */
.ap-hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.ap-slot-label { font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--fg); }
.ap-preview {
  aspect-ratio: 16/9; background-size: cover; background-position: center;
  background-color: #0f172a; border-radius: 12px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.ap-preview.vertical { aspect-ratio: 9/16; max-height: 320px; margin: 0 auto; }
.ap-empty { color: rgba(255,255,255,0.5); font-size: 12px; padding: 14px; text-align: center; }
.ap-slot-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: center; }
@media (max-width: 700px) { .ap-hero-grid { grid-template-columns: 1fr; } }

/* ===== Apariencia: selector de modo de hero (Default / Imagen / Video) ===== */
.ap-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.ap-tab {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.15s;
}
.ap-tab:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.ap-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(251,191,36,0.25);
}
.ap-tab-ico { font-size: 28px; flex-shrink: 0; line-height: 1; }
.ap-tab-text { min-width: 0; }
.ap-tab-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--fg); }
.ap-tab-text span { display: block; font-size: 11px; color: var(--fg-soft); margin-top: 1px; }
@media (max-width: 640px) {
  .ap-tabs { grid-template-columns: 1fr; }
  .ap-tab-ico { font-size: 22px; }
}

.ap-panel { animation: ap-panel-in 0.25s ease-out; }
@keyframes ap-panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.ap-preview-box {
  position: relative;
  aspect-ratio: 16/9;
  background-color: #0f172a;
  background-size: cover; background-position: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ap-preview-box iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100%; height: 56.25%;
  min-height: 100%; min-width: 177.78%;
  transform: translate(-50%, -50%);
  border: 0;
}
.ap-preview-box.empty {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-style: dashed;
}
.ap-preview-box.empty .ap-empty { color: var(--fg-soft); }
.ap-preview-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(251,191,36,0.16), transparent 55%),
    linear-gradient(180deg, rgba(10,15,29,0.58) 0%, rgba(10,15,29,0.78) 100%);
  pointer-events: none;
}
.ap-preview-label {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(15,23,42,0.7);
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.ap-preview-default {
  position: absolute; inset: 0;
  background: url("/assets/hero/home-hero.png") center/cover no-repeat #0f172a;
}

/* ===== Admin: Hero del Home ===== */
.hero-type-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.hero-type-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: 13.5px; color: var(--fg-soft);
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.hero-type-tab:hover { border-color: var(--accent); }
.hero-type-tab.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.hero-pane { animation: fadeIn 0.2s ease; }
.hero-pane[hidden] { display: none; }
.hero-img-preview, .hero-yt-preview {
  margin-top: 14px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #0a0f1d;
  aspect-ratio: 16/9; max-width: 480px;
}
.hero-img-preview[hidden], .hero-yt-preview[hidden] { display: none; }
.hero-img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-yt-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
