/* StreamAdmin — estilos. Tema claro/oscuro automático según el sistema. */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --border: #e2e5ee;
  --text: #1b1f2a;
  --muted: #687086;
  --primary: #5b4fe0;
  --primary-ink: #ffffff;
  --primary-soft: #ecebfd;
  --success: #138a5b;
  --success-soft: #e3f5ec;
  --warning: #a86200;
  --warning-soft: #fdf1dc;
  --danger: #c8363d;
  --danger-soft: #fde8e8;
  --sidebar: #141726;
  --sidebar-text: #b9bfd3;
  --sidebar-active: #262b45;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 8%);
  --radius: 12px;
  --login-bg: #eeedfb;
  --glow-opacity: .7;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1018;
    --surface: #171a26;
    --surface-2: #1f2333;
    --border: #2a2f42;
    --text: #e8eaf2;
    --muted: #9aa1b8;
    --primary: #8b80ff;
    --primary-ink: #0e1018;
    --primary-soft: #262350;
    --success: #4fd39c;
    --success-soft: #133326;
    --warning: #f3b35a;
    --warning-soft: #3a2a12;
    --danger: #ff7a7f;
    --danger-soft: #3d1a1d;
    --sidebar: #0a0c13;
    --login-bg: #0e1018;
    --glow-opacity: .8;
    --sidebar-active: #1f2333;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { overflow-x: clip; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: 16px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pos { color: var(--success); }
.neg { color: var(--danger); }

/* ---- Luces de fondo: manchas difuminadas con los colores de la marca, moviéndose despacio ---- */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: var(--glow-opacity);
  will-change: transform;
}
body::before {
  top: -20vmax; left: -10vmax;
  background: radial-gradient(circle at 35% 35%, #5b4fe0, transparent 60%), radial-gradient(circle at 70% 70%, #a8e6ff, transparent 55%);
  animation: luces-a 9s ease-in-out infinite alternate, brillo 4s ease-in-out infinite alternate;
}
body::after {
  bottom: -25vmax; right: -15vmax;
  background: radial-gradient(circle at 40% 40%, #c77dff, transparent 60%), radial-gradient(circle at 70% 65%, #8f7bff, transparent 55%);
  animation: luces-b 11s ease-in-out infinite alternate, brillo 5s ease-in-out infinite alternate-reverse;
}
@keyframes luces-a {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(45vw, 20vh) scale(1.3); }
  66%  { transform: translate(15vw, 55vh) scale(.85); }
  100% { transform: translate(55vw, 70vh) scale(1.15); }
}
@keyframes luces-b {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-50vw, -15vh) scale(1.25); }
  66%  { transform: translate(-20vw, -60vh) scale(.9); }
  100% { transform: translate(-60vw, -40vh) scale(1.2); }
}
@keyframes brillo { from { opacity: var(--glow-opacity); } to { opacity: calc(var(--glow-opacity) * .5); } }

/* ---- Layout ---- */
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: var(--sidebar-text); display: flex; flex-direction: column; padding: 20px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: #fff; padding: 0 8px 20px; }
.brand-lg { color: var(--text); font-size: 22px; padding: 0 0 4px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--sidebar-active); color: #fff; }
.nav a.active { background: var(--sidebar-active); color: #fff; box-shadow: inset 3px 0 0 var(--primary); }
.nav .ico { width: 18px; text-align: center; opacity: .8; }
.nav .pill { margin-left: auto; background: var(--danger); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; font-weight: 700; }
.sidebar-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 8px 0; border-top: 1px solid #ffffff14; }
.sidebar-foot .link { color: var(--sidebar-text); }

.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 28px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 20px; flex: 1; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar .menu-btn { display: none; }
.view { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 20px; outline: none; }
.backdrop { display: none; }

/* ---- Componentes ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-body { padding: 18px; }
.grid { display: grid; gap: 16px; }
.grid-kpi { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--muted); font-size: 12px; }
.kpi.accent { border-color: var(--primary); background: var(--primary-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .link:focus-visible, .nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary); filter: brightness(1.08); }
.btn-danger { color: var(--danger); }
.btn-warn { background: var(--warning-soft); border-color: var(--warning); color: var(--warning); }
.btn-warn:hover { background: var(--warning-soft); filter: brightness(1.05); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 4px 9px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }
.actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: nowrap; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--primary-soft); color: var(--primary); }

/* Tablas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; background: var(--surface-2); white-space: nowrap; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; background: var(--surface-2); }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); }
.cell-main { font-weight: 600; }
.cell-sub { color: var(--muted); font-size: 12px; }

/* Filtros */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 200px; }
.tabs { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* Formularios */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
textarea { min-height: 70px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.help { font-weight: 400; color: var(--muted); font-size: 12px; }
.form-error { color: var(--danger); min-height: 1.2em; margin: 4px 0 0; font-weight: 500; }
.preview { display: flex; gap: 24px; flex-wrap: wrap; background: var(--primary-soft); border-radius: 10px; padding: 12px 16px; }
.preview strong { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.preview + .preview { margin-top: 8px; }

/* Modal */
.modal { border: 0; border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / 35%); }
.modal::backdrop { background: rgb(10 12 20 / 55%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.modal.wide { width: min(860px, calc(100vw - 32px)); }

.secret { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 8px; padding: 8px 12px; font-family: ui-monospace, Menlo, monospace; word-break: break-all; }
.secret span { flex: 1; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* Gráfico de barras */
.chart { display: flex; align-items: flex-end; gap: 14px; height: 220px; padding: 8px 4px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.chart-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.bar { width: min(22px, 40%); border-radius: 5px 5px 0 0; min-height: 2px; }
.bar.in { background: var(--primary); }
.bar.out { background: var(--warning); opacity: .8; }
.chart-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .in { background: var(--primary); }
.legend .out { background: var(--warning); }

.meter { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.meter > div { height: 100%; background: var(--primary); }

/* Toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / 25%); max-width: 360px; font-weight: 500; }
.toast.error { background: var(--danger); color: #fff; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-shell { width: min(980px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; background: var(--surface); border-radius: 22px; box-shadow: 0 24px 60px rgb(91 79 224 / 18%); }
.login-art { position: relative; min-height: 500px; border-radius: 16px; overflow: hidden; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background:
    radial-gradient(60% 55% at 25% 40%, #1d0f9e 0%, transparent 70%),
    radial-gradient(55% 60% at 85% 20%, #c77dff 0%, transparent 70%),
    radial-gradient(70% 60% at 80% 85%, #e9e6ff 0%, transparent 70%),
    radial-gradient(50% 50% at 10% 5%, #a8e6ff 0%, transparent 70%),
    linear-gradient(160deg, #4c3fe0, #8f7bff 60%, #dcd6ff); }
.login-star { font-size: 44px; line-height: 1; font-weight: 700; color: #fff; }
.login-art-text p { margin: 0 0 10px; opacity: .9; }
.login-art-text h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; max-width: 14em; }
.login-form { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px clamp(20px, 5vw, 64px); }
.login-form h1 { font-size: 30px; letter-spacing: -.01em; }
.login-form p { margin: 0; }
.login-star-sm { font-size: 30px; color: var(--primary); }
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-right: 42px; }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 6px; cursor: pointer; display: grid; }
.pass-toggle[aria-pressed="true"] { color: var(--primary); }
.login-submit { padding: 11px 14px; box-shadow: 0 8px 20px rgb(91 79 224 / 35%); }
.login-foot { text-align: center; font-size: 13px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  .layout.menu-open .sidebar { transform: none; }
  .layout.menu-open .backdrop { display: block; position: fixed; inset: 0; background: rgb(0 0 0 / 45%); z-index: 15; }
  .topbar .menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .topbar h1 { font-size: 18px; }
  .view { padding: 16px 16px 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-art { min-height: 150px; }
  .login-art-text h2 { font-size: 20px; }
  .login-form { padding: 24px 12px 28px; }
  .login-star-sm { display: none; }
  .toolbar input, .toolbar select { min-width: 0; flex: 1; }
  .chart { gap: 6px; }
}
/* ---- Publicidad: banner destacado, tarjetas y panel de detalle ---- */
a.btn { text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.chip-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-light { background: #fff; color: #10121b; border-color: #fff; }
.pub-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.pub-layout.con-detalle { grid-template-columns: minmax(0, 1fr) 340px; }
.pub-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.pub-hero { position: relative; overflow: hidden; border-radius: 20px; min-height: 260px; color: #fff; border: 1px solid #ffffff14;
  background: radial-gradient(70% 120% at 85% 50%, rgb(91 79 224 / 55%), transparent 70%), linear-gradient(110deg, #0d0f17 35%, #1b1d2e); }
.pub-hero-media { position: absolute; inset: 0 0 0 auto; width: 52%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.pub-hero-media img, .pub-hero-media video { width: 100%; height: 100%; object-fit: contain; object-position: right center; display: block; padding: 14px 18px 14px 0; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 55%)); }
/* Banner con video: ocupa todo el ancho, recortado para llenar, con sombra a la izquierda para leer el texto */
.pub-hero-video .pub-hero-media { inset: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
.pub-hero-video .pub-hero-media video { object-fit: cover; object-position: center; padding: 0; filter: none; }
.pub-hero-video .pub-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 15 23 / 92%) 0%, rgb(13 15 23 / 65%) 40%, rgb(13 15 23 / 5%) 75%); }
.pub-hero-text { position: relative; padding: 28px; max-width: 56%; display: flex; flex-direction: column; gap: 12px; }
.pub-hero-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pub-hero-head h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.pub-hero-text p { margin: 0; color: #c9cbe0; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pub-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.pub-hero .btn-primary { box-shadow: 0 10px 24px rgb(91 79 224 / 45%); }
.pub-hero .btn-outline { color: #fff; border-color: #8b80ff; }

.pub-list { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.pub-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pub-list-head h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.pub-count { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.pub-list-head input { max-width: 220px; }
.pub-list-head h2 { margin-right: auto; }
.pub-list-head .tabs .pub-count { margin-left: 4px; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.promo { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.promo-media { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--surface-2); transition: transform .2s, box-shadow .2s; }
.promo-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / 75%)); }
.promo-media img, .promo-media video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.promo:hover .promo-media, .promo.sel .promo-media { transform: translateY(-4px); box-shadow: 0 16px 32px rgb(91 79 224 / 30%); }
.promo.sel .promo-media { outline: 3px solid var(--primary); outline-offset: 2px; }
.promo-play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(255 255 255 / 22%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 16px; }
.promo-name { position: absolute; left: 12px; right: 12px; bottom: 26px; z-index: 1; color: #fff; font-weight: 600; font-size: 13px; line-height: 1.3; }
.promo-cta { position: relative; z-index: 2; margin-top: -18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: var(--shadow); }
.promo-cta span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 10px; }
.promo:hover .promo-cta { border-color: var(--primary); color: var(--primary); }

.pub-detalle { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pub-cerrar { align-self: flex-end; margin: -6px -6px -4px; }
.pub-det-media { border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.pub-det-media img, .pub-det-media video { width: 100%; max-height: 420px; object-fit: contain; display: block; }
.pub-det-title { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.pub-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pub-det-texto { margin: 0; white-space: pre-line; color: var(--muted); font-size: 13.5px; }
.pub-det-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pub-det-actions .btn { width: 100%; }
.pub-detalle-modal { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 700px) {
  .pub-hero { display: flex; flex-direction: column; }
  .pub-hero-media img, .pub-hero-media video { object-position: center; padding: 14px 0 0; }
  .pub-hero-video .pub-hero-media { position: absolute; height: auto; }
  .pub-hero-video .pub-hero-media::after { background: linear-gradient(0deg, rgb(13 15 23 / 92%) 15%, rgb(13 15 23 / 35%) 60%, rgb(13 15 23 / 10%)); }
  .pub-hero-video .pub-hero-text { margin-top: 0; padding-top: 150px; }
  .pub-hero-media { position: relative; width: 100%; height: 220px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
  .pub-hero-text { max-width: none; padding: 0 18px 20px; margin-top: -30px; }
  .pub-hero-actions .btn { flex: 1; }
  .pub-list { padding: 14px; border-radius: 16px; }
  .pub-list-head input { max-width: none; }
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .promo-cta { font-size: 12px; padding: 7px 10px; }
}

/* ---- Publicidad tipo consola: fondo a pantalla, fila de tarjetas y barra inferior ---- */
.consola { position: relative; overflow: hidden; border-radius: 26px; min-height: clamp(480px, 74vh, 760px); display: flex; flex-direction: column; color: #fff; background: #0b0d14; border: 1px solid #ffffff14; box-shadow: 0 30px 60px rgb(0 0 0 / 35%); outline: none; }
.consola:focus-visible { box-shadow: 0 0 0 3px var(--primary), 0 30px 60px rgb(0 0 0 / 35%); }
.consola-fondo { position: absolute; inset: 0; }
.consola-fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 10 16 / 45%) 0%, transparent 25%, transparent 45%, rgb(8 10 16 / 88%) 100%); }
.consola-capa { position: absolute; inset: 0; animation: consola-in .45s ease; }
.consola-capa img, .consola-capa video { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes consola-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.consola-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 28px; }
.consola-info { max-width: 60%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-shadow: 0 2px 12px rgb(0 0 0 / 60%); }
.consola-info h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.consola-info p { margin: 0; color: #e3e4f0; white-space: pre-line; }
.consola-hora { font-size: 15px; font-weight: 600; letter-spacing: .02em; text-shadow: 0 2px 10px rgb(0 0 0 / 60%); white-space: nowrap; }
.consola-btn { background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 22%); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.consola-btn:hover { background: rgb(255 255 255 / 24%); }

.consola-fila { position: relative; margin-top: auto; display: flex; align-items: flex-end; gap: 18px; padding: 12px 28px 18px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.consola-fila::-webkit-scrollbar { display: none; }
.consola-card { position: relative; flex: none; width: 150px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; cursor: pointer; scroll-snap-align: center; background: #1b1e2b; box-shadow: 0 12px 26px rgb(0 0 0 / 45%); transition: width .25s ease, transform .2s ease, box-shadow .2s; }
.consola-card > img, .consola-card > video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.consola-card:hover { transform: translateY(-4px); }
.consola-card.sel { width: 230px; aspect-ratio: 4 / 5; box-shadow: 0 0 0 3px #fff, 0 18px 40px rgb(0 0 0 / 55%); }
.consola-card .promo-play { width: 38px; height: 38px; }
.consola-card.sel .promo-play { top: 38%; }
.consola-card-info { position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px; display: none; flex-direction: column; gap: 4px; background: linear-gradient(180deg, transparent, rgb(8 10 16 / 92%) 45%); }
.consola-card.sel .consola-card-info { display: flex; }
.consola-card-info strong { font-size: 14px; line-height: 1.25; }
.consola-card-tipo { font-size: 11.5px; color: #c9cbe0; }
.consola-card-acciones { display: flex; gap: 6px; margin-top: 6px; }
.consola-card-acciones .btn { flex: 1; padding: 6px 8px; }
.consola-vacio { margin: 0 auto 30px; color: #d6d8e8; text-shadow: 0 2px 10px rgb(0 0 0 / 60%); }

.consola-dock { position: relative; align-self: center; display: flex; align-items: center; gap: 4px; margin: 0 16px 20px; padding: 6px 10px; border-radius: 16px; background: rgb(12 14 22 / 62%); border: 1px solid rgb(255 255 255 / 12%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.dock-btn { position: relative; display: grid; place-items: center; width: 42px; height: 38px; border: 0; border-radius: 11px; background: transparent; color: #c9cbe0; cursor: pointer; }
.dock-btn:hover { color: #fff; background: rgb(255 255 255 / 10%); }
.dock-btn.active { color: #fff; background: rgb(255 255 255 / 16%); }
.dock-btn.active::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.dock-n { position: absolute; top: 2px; right: 3px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 15px; text-align: center; }
.dock-sep { width: 1px; height: 22px; margin: 0 4px; background: rgb(255 255 255 / 14%); }
.consola-buscar { width: 170px; padding: 6px 10px; border-radius: 10px; border: 1px solid rgb(255 255 255 / 18%); background: rgb(255 255 255 / 8%); color: #fff; font: inherit; }
.consola-buscar::placeholder { color: #b9bbd0; }

@media (max-width: 700px) {
  .consola { min-height: 600px; border-radius: 20px; }
  .consola-top { padding: 16px 18px; }
  .consola-info { max-width: 75%; }
  .consola-fila { gap: 12px; padding: 10px 18px 14px; }
  .consola-card { width: 108px; border-radius: 14px; }
  .consola-card.sel { width: 190px; }
  .consola-dock { margin: 0 10px 14px; padding: 5px 6px; gap: 2px; }
  .dock-btn { width: 38px; }
  .consola-buscar { width: 110px; font-size: 16px; }
}

/* Filas bajo la consola: Eventos y Publicidad destacada */
.pub-fila { display: flex; flex-direction: column; gap: 12px; }
.pub-fila-head { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.pub-fila-head h2 { font-size: 20px; font-weight: 700; }
.pub-fila-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, calc((100% - 3 * 16px) / 4)); gap: 16px; overflow-x: auto; padding: 4px 4px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.fila-card { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #1b1e2b; box-shadow: 0 10px 24px rgb(0 0 0 / 30%); scroll-snap-align: start; transition: transform .2s, box-shadow .2s; }
.fila-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgb(91 79 224 / 30%); }
.fila-media, .fila-media img, .fila-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fila-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(8 10 16 / 90%)); }
.fila-media .promo-play { z-index: 1; width: 40px; height: 40px; }
.fila-info { position: absolute; left: 14px; right: 52px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 2px; color: #fff; pointer-events: none; }
.fila-info strong { font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila-info span { font-size: 12px; color: #c9cbe0; }
.fila-abrir { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.fila-abrir:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.fila-descargar { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: rgb(255 255 255 / 16%); border: 1px solid rgb(255 255 255 / 22%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fila-descargar:hover { background: var(--primary); border-color: var(--primary); }
.pub-fila-vacia { width: 100%; min-height: 110px; border-radius: 16px; border: 2px dashed var(--border); background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.pub-fila-vacia:hover { border-color: var(--primary); color: var(--primary); }
.pub-seccion { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
@media (max-width: 700px) {
  .pub-fila-cards { grid-auto-columns: 78%; gap: 12px; }
  .pub-fila-head h2 { font-size: 18px; }
}

/* ---- Celular: tablas como tarjetas, controles táctiles, ventanas tipo hoja ---- */
@media (max-width: 700px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  input, select, textarea { font-size: 16px; } /* evita el zoom automático de iPhone */
  .btn { min-height: 40px; }
  .btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }

  .topbar { position: sticky; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); gap: 8px; }
  .topbar h1 { font-size: 17px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .view { padding: 14px 12px 32px; gap: 14px; }

  .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi-value { font-size: 19px; overflow-wrap: anywhere; }
  .kpi-sub { font-size: 11px; }
  .card-head { padding: 12px 14px; }
  .card-body { padding: 14px; }

  .toolbar { flex-direction: column; align-items: stretch; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 1 0 auto; }

  /* Tablas -> tarjetas */
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tfoot, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .table-wrap tbody tr:hover { background: none; }
  .table-wrap td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .table-wrap td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
  .table-wrap .td-v { min-width: 0; overflow-wrap: anywhere; }
  .table-wrap td.td-title { display: block; text-align: left; padding-bottom: 6px; font-size: 15px; }
  .table-wrap td.td-title::before, .table-wrap td.td-id, .table-wrap td:empty { display: none; }
  .table-wrap td.td-actions { display: block; padding-top: 10px; }
  .table-wrap td.td-actions::before { content: none; }
  .table-wrap .actions { justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
  .table-wrap tfoot tr { padding: 12px 14px; }
  .table-wrap tfoot td { padding: 2px 0; }

  /* Ventanas como hoja desde abajo */
  .modal, .modal.wide { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .modal-body { padding: 16px; }
  .modal-head { padding: 14px 16px; }
  .modal-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .toasts { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
  .chart { height: 170px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } body::before, body::after { animation: none; } }

/* ===== Bienvenida (panel nuevo) ===== */
.bv {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px;
  background: radial-gradient(60% 50% at 15% 100%, rgb(91 79 224 / 55%), transparent 70%),
              radial-gradient(50% 45% at 90% 0%, rgb(139 92 246 / 45%), transparent 70%), #07060f;
  color: #f4f3ff; animation: bv-entra .5s ease both;
}
.bv.bv-fuera { animation: bv-sale .4s ease both; }
.bv-marco {
  position: relative; display: flex; flex-direction: column; width: min(1040px, 100%); height: min(640px, 100%);
  border: 1px solid rgb(255 255 255 / 12%); border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #0d0b19, #08070f);
  box-shadow: 0 0 0 1px rgb(139 128 255 / 18%), 0 30px 90px rgb(60 40 200 / 45%);
}
.bv-marco::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgb(139 92 246 / 40%), transparent 65%); filter: blur(20px);
  animation: bv-flota 9s ease-in-out infinite alternate; pointer-events: none;
}
.bv-top, .bv-pie { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; }
.bv-marca { font-weight: 600; font-size: 13px; letter-spacing: .02em; color: rgb(244 243 255 / 75%); }
.bv-saltar, .bv-sig {
  border: 1px solid rgb(255 255 255 / 16%); background: rgb(255 255 255 / 6%); color: inherit;
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer;
}
.bv-saltar:hover, .bv-sig:hover { background: rgb(255 255 255 / 14%); }
.bv-escena {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 10px 28px; text-align: center; overflow-y: auto;
}
.bv-h { margin: 0; font-size: clamp(34px, 6.2vw, 72px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.bv-h-sm { font-size: clamp(30px, 4.6vw, 52px); }
.bv-serif { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; color: #b9b3ff; letter-spacing: -.01em; }
.bv-p { max-width: 560px; margin: 0; font-size: 16px; line-height: 1.6; color: rgb(244 243 255 / 72%); }
.bv-p b { color: #fff; }
.bv-w { display: inline-block; animation: bv-palabra .7s cubic-bezier(.2, .7, .2, 1) both; }
.bv-in { animation: bv-sube .7s cubic-bezier(.2, .7, .2, 1) both; }
.bv-logo { width: 110px; height: 110px; fill: none; stroke: #c9c4ff; stroke-width: 1.2; animation: bv-gira 6s linear infinite; }
.bv-logo circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: bv-traza 1.4s ease forwards; }
.bv-logo circle:last-child { stroke-dasharray: 280; stroke-dashoffset: 280; animation-delay: .5s; opacity: .5; }
.bv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 210px)); gap: 12px; margin-top: 8px; }
.bv-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: left;
  padding: 12px 14px; border-radius: 14px; border: 1px solid rgb(255 255 255 / 10%);
  background: linear-gradient(160deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 3%)); backdrop-filter: blur(8px);
}
.bv-card:nth-child(odd) { animation-name: bv-sube, bv-flota-s; animation-duration: .7s, 4s; animation-iteration-count: 1, infinite; animation-direction: normal, alternate; }
.bv-ico { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgb(139 128 255 / 22%); font-size: 18px; }
.bv-card b { font-size: 14px; }
.bv-card small { color: rgb(244 243 255 / 60%); font-size: 12px; }
.bv-pasos { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; width: min(560px, 100%); text-align: left; }
.bv-pasos li {
  display: flex; gap: 14px; align-items: center; padding: 11px 14px; border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 9%); background: rgb(255 255 255 / 4%);
}
.bv-pasos b { font-size: 15px; }
.bv-pasos p { margin: 2px 0 0; font-size: 13px; color: rgb(244 243 255 / 65%); }
.bv-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 0 18px rgb(139 128 255 / 60%); }
.bv-candado { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 22px; background: rgb(139 128 255 / 16%); border: 1px solid rgb(185 179 255 / 35%); box-shadow: 0 0 40px rgb(139 128 255 / 40%); }
.bv-candado svg { width: 40px; height: 40px; fill: none; stroke: #d6d2ff; stroke-width: 1.6; stroke-linecap: round; }
.bv-botones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.bv-botones .btn { padding: 11px 20px; font-size: 15px; }
.bv-claro { color: #f4f3ff; border-color: rgb(255 255 255 / 20%); }
.bv-puntos { display: flex; gap: 8px; }
.bv-puntos button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgb(255 255 255 / 25%); cursor: pointer; transition: width .3s, background .3s; }
.bv-puntos button.on { width: 26px; background: #b9b3ff; }
@keyframes bv-entra { from { opacity: 0; } }
@keyframes bv-sale { to { opacity: 0; transform: scale(1.02); } }
@keyframes bv-palabra { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } }
@keyframes bv-sube { from { opacity: 0; transform: translateY(16px); } }
@keyframes bv-traza { to { stroke-dashoffset: 0; } }
@keyframes bv-gira { to { transform: rotate(360deg); } }
@keyframes bv-flota { to { transform: translate(-60px, 50px) scale(1.15); } }
@keyframes bv-flota-s { from { translate: 0 0; } to { translate: 0 -6px; } }
@media (max-width: 700px) {
  .bv { padding: 0; }
  .bv-marco { border-radius: 0; height: 100%; }
  .bv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .bv-card small { display: none; }
  .bv-card { min-width: 0; padding: 12px; grid-template-columns: 1fr; row-gap: 8px; }
  .bv-card b { font-size: 14px; }
  .bv-ico { grid-row: auto; width: 30px; height: 30px; font-size: 15px; }
  .bv-p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .bv *, .bv { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
}

/* ===== Celebración de logros ===== */
.cel {
  position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 18px; overflow: hidden;
  background: radial-gradient(50% 45% at 50% 40%, rgb(91 79 224 / 45%), transparent 70%), rgb(7 6 15 / 88%);
  backdrop-filter: blur(6px); color: #f4f3ff; animation: bv-entra .4s ease both;
}
.cel.bv-fuera { animation: bv-sale .4s ease both; }
.cel-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  width: min(520px, 100%); padding: 34px 26px 28px; border-radius: 24px; border: 1px solid rgb(255 255 255 / 12%);
  background: linear-gradient(180deg, #13102a, #0a0914); box-shadow: 0 0 0 1px rgb(139 128 255 / 20%), 0 30px 90px rgb(60 40 200 / 50%);
  animation: cel-pop .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.cel-card .btn { padding: 11px 26px; font-size: 15px; }
.cel-medalla {
  position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a99fff, #5b4fe0 70%); box-shadow: 0 0 0 8px rgb(139 128 255 / 15%), 0 0 60px rgb(139 128 255 / 70%);
  font-size: 46px; animation: cel-pop .7s .1s cubic-bezier(.2, 1.6, .4, 1) both;
}
.cel-medalla::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgb(185 179 255 / 50%); animation: cel-onda 1.8s .4s ease-out infinite; }
.cel-confeti { position: absolute; inset: 0; pointer-events: none; }
.cel-confeti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: cel-cae 3s ease-in both; }
@keyframes cel-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes cel-onda { from { opacity: .9; transform: scale(.85); } to { opacity: 0; transform: scale(1.5); } }
@keyframes cel-cae {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), 105vh) rotate(var(--r)); }
}
@media (prefers-reduced-motion: reduce) {
  .cel *, .cel { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
  .cel-confeti { display: none; }
}

/* ---- Tienda: pedidos y notificaciones ---- */
.notif { position: relative; }
.notif-btn { position: relative; padding: 8px; }
.notif-btn .pill { position: absolute; top: 0; right: 0; background: var(--danger); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; font-weight: 700; line-height: 18px; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; z-index: 20; box-shadow: 0 16px 40px rgb(0 0 0 / 22%); }
.notif-panel ul { list-style: none; margin: 0; padding: 0; }
.notif-item { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text); font: inherit; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.nuevo { background: var(--primary-soft); }
.notif-top { display: flex; justify-content: space-between; gap: 8px; }
.pedido-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.modal h3 { font-size: 14px; margin-bottom: 8px; }
.comprobante-img { max-width: 100%; max-height: 260px; border-radius: 8px; border: 1px solid var(--border); display: block; margin-bottom: 8px; }
.asignado { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; margin-top: 6px; }
.historial { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.aviso-wa { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 14px; margin: 0; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.actions.start { justify-content: flex-start; flex-wrap: wrap; align-items: center; gap: 8px; }
label.inline { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
label.inline input { min-width: 0; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
label.check input { width: auto; }
.env-tabla td { padding: 8px 6px; } .env-tabla code { word-break: break-all; font-size: 12px; }
