/* AdsCB · shared interface components */
:root{
  --bg:#050811;
  --surface:#0b1423;
  --surface-2:#101d31;
  --surface-3:#162942;
  --surface-soft:rgba(16,21,28,.84);
  --line:rgba(255,255,255,.12);
  --line-strong:rgba(255,255,255,.2);
  --text:#eef5ff;
  --muted:#a8b7cb;
  --muted-2:#8294ac;
  --accent:#55d8ff;
  --accent-2:#39d8b4;
  --warning:#f2b84b;
  --danger:#ff6b7d;
  --shadow:0 18px 42px rgba(0,0,0,.48);
  --radius:8px;
  --sidebar:260px;
}

*{ box-sizing:border-box; letter-spacing:0; }
html, body{ min-height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  background-color:var(--bg);
  background-image:
    linear-gradient(125deg, rgba(5,7,10,.94), rgba(9,12,17,.86) 48%, rgba(7,14,12,.9)),
    url('../fondo2.png');
  background-attachment:fixed;
  background-position:center;
  background-size:cover;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.55), transparent 76%);
}

a{ color:#8bdfff; text-decoration:none; }
a:hover{ color:#c7f3ff; }
h1,h2,h3,h4,h5,h6{
  color:#fff;
  font-family:"Sora","Manrope",system-ui,sans-serif;
}

.topbar{
  position:sticky;
  top:0;
  z-index:1120;
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  background:rgba(8,10,13,.88);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}
.topbar-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.topbar-brand img,
.brand-logo img{
  width:34px;
  height:34px;
  object-fit:contain;
  border-radius:8px;
  background:#06080b;
  box-shadow:0 8px 18px rgba(0,0,0,.4);
}
.topbar-title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  min-width:0;
}
.topbar-title strong{
  overflow:hidden;
  color:#fff;
  font-size:.9rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.topbar-title span{
  color:var(--muted);
  font-size:.75rem;
}
.sidebar-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(21,27,35,.92);
  color:#fff;
}

.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  z-index:1100;
  width:var(--sidebar);
  padding:18px 14px;
  background:rgba(8,10,13,.92);
  border-right:1px solid var(--line);
  box-shadow:12px 0 34px rgba(0,0,0,.56);
  backdrop-filter:blur(14px);
  overflow-y:auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px;
  margin-bottom:14px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius);
  background:
    linear-gradient(135deg, rgba(85,216,255,.16), rgba(57,216,180,.1)),
    rgba(18,25,33,.92);
  box-shadow:0 14px 28px rgba(0,0,0,.38);
  color:#fff;
}
.brand:hover{ color:#fff; }
.brand-copy{
  display:flex;
  flex-direction:column;
  line-height:1.12;
  min-width:0;
}
.brand-copy strong{
  overflow:hidden;
  font-family:"Sora","Manrope",sans-serif;
  font-size:.96rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.brand-copy span{
  color:var(--muted);
  font-size:.76rem;
}
.sidebar-user{
  padding:10px;
  margin-bottom:14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.045);
  color:var(--muted);
  font-size:.84rem;
}
.sidebar-user strong{ color:#fff; }
.role-pill{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  margin-top:6px;
  padding:2px 8px;
  border:1px solid rgba(85,216,255,.28);
  border-radius:999px;
  background:rgba(85,216,255,.1);
  color:#c9f4ff;
  font-size:.74rem;
  font-weight:800;
}
.nav-label{
  margin:14px 8px 6px;
  color:var(--muted-2);
  font-size:.76rem;
  font-weight:800;
}
.nav-link{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:9px 10px;
  margin-bottom:5px;
  border:1px solid transparent;
  border-radius:var(--radius);
  color:var(--text);
  font-weight:700;
  transition:background .16s ease, border-color .16s ease, transform .16s ease;
}
.nav-link:hover{
  color:#fff;
  background:rgba(255,255,255,.075);
  border-color:rgba(255,255,255,.12);
  transform:translateY(-1px);
}
.nav-link.active{
  color:#fff;
  background:linear-gradient(135deg, rgba(85,216,255,.18), rgba(57,216,180,.12));
  border-color:rgba(85,216,255,.34);
  box-shadow:0 10px 22px rgba(0,0,0,.32);
}
.nav-link svg,
.btn svg{
  width:17px;
  height:17px;
  flex:0 0 17px;
  stroke-width:2.2;
}
.logout-link{
  margin-top:18px;
  border-color:rgba(242,184,75,.22);
  background:rgba(242,184,75,.1);
  color:#ffe0ad;
}
.sidebar-backdrop{
  position:fixed;
  inset:0;
  z-index:1090;
  display:none;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(2px);
}

.contenido{
  position:relative;
  z-index:1;
  min-height:100vh;
  margin-left:var(--sidebar);
  padding:26px 28px 38px;
}
.contenido-guest{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-left:0;
  padding:24px;
}
.main-shell{
  width:100%;
  max-width:1320px;
  margin:0 auto;
}
.main-shell-guest{ max-width:1180px; }

.page-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.page-kicker{
  margin:0 0 3px;
  color:var(--accent);
  font-size:.82rem;
  font-weight:800;
}
.page-title{
  margin:0;
  font-size:1.68rem;
  line-height:1.15;
}
.page-subtitle{
  max-width:760px;
  margin:6px 0 0;
  color:var(--muted);
  font-size:.96rem;
}
.page-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.hero-panel,
.form-panel,
.content-panel,
.table-shell,
.filter-panel{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:
    linear-gradient(135deg, rgba(85,216,255,.075), transparent 38%),
    linear-gradient(160deg, rgba(18,24,32,.96), rgba(10,13,18,.94));
  box-shadow:var(--shadow);
}
.hero-panel{
  position:relative;
  overflow:hidden;
  padding:18px;
  margin-bottom:14px;
}
.hero-panel::after,
.content-panel::after,
.table-shell::after,
.form-panel::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-panel,
.content-panel,
.table-shell,
.form-panel{ position:relative; }
.hero-head{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.hero-title{
  margin:0;
  font-size:1.72rem;
  line-height:1.12;
}
.hero-desc{
  max-width:760px;
  margin:7px 0 0;
  color:var(--muted);
}
.hero-chip,
.status-badge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 10px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:#eaf7ff;
  font-size:.78rem;
  font-weight:800;
  white-space:nowrap;
}
.hero-kpis{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-top:14px;
}
.metric-card,
.hero-kpi,
.summary-pill{
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  background:rgba(8,12,17,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055);
}
.metric-card{
  display:flex;
  flex-direction:column;
  min-height:148px;
  padding:14px;
  color:#fff;
  text-decoration:none;
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}
.metric-card:hover{
  transform:translateY(-3px);
  border-color:rgba(85,216,255,.38);
  background:rgba(12,18,25,.86);
  color:#fff;
}
.metric-card.success{ border-color:rgba(57,216,180,.38); }
.metric-card.warning{ border-color:rgba(242,184,75,.38); }
.metric-card.info{ border-color:rgba(85,216,255,.38); }
.metric-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
  margin-bottom:12px;
}
.metric-label,
.hero-kpi-k,
.summary-label{
  display:block;
  color:var(--muted);
  font-size:.78rem;
  font-weight:800;
}
.metric-value{
  display:block;
  margin-top:8px;
  color:#fff;
  font-family:"Sora","Manrope",sans-serif;
  font-size:2.1rem;
  line-height:1;
}
.metric-meta{
  margin-top:auto;
  color:#c8d7e5;
  font-size:.9rem;
}
.hero-kpi{
  padding:10px;
}
.hero-kpi-v,
.summary-val{
  display:block;
  margin-top:4px;
  color:#fff;
  font-family:"Sora","Manrope",sans-serif;
  font-size:1.18rem;
}
.summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:12px;
}
.summary-pill{ padding:10px; }

.content-panel,
.form-panel,
.filter-panel{ padding:16px; }
.filter-panel{ margin-bottom:14px; }
.table-shell{
  overflow:hidden;
  padding:8px;
}
.table-responsive{
  border-radius:var(--radius);
  overflow:auto;
}
.table.tabla-moderna{
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: transparent;
  --bs-table-hover-bg: transparent;
  --bs-table-hover-color: #fff;
  --bs-table-striped-bg: transparent;
  --bs-table-striped-color: var(--text);
  min-width:820px;
  margin:0;
  border-collapse:separate;
  border-spacing:0 7px;
  color:var(--text);
}
.table.tabla-moderna thead th{
  position:sticky;
  top:0;
  z-index:2;
  border:0;
  padding:12px 14px;
  background:#111820;
  color:#dce8f2;
  font-size:.82rem;
  font-weight:800;
  white-space:nowrap;
  box-shadow:none;
}
.table.tabla-moderna tbody tr{
  background:transparent;
  box-shadow:none;
}
.table.tabla-moderna tbody tr:hover td{ background:#17232d; }
.table.tabla-moderna tbody td{
  border:0;
  padding:11px 14px;
  vertical-align:middle;
  background:#111820;
  color:#eef5ff;
  box-shadow:none;
}
.table.tabla-moderna tbody td:first-child{
  border-top-left-radius:var(--radius);
  border-bottom-left-radius:var(--radius);
}
.table.tabla-moderna tbody td:last-child{
  border-top-right-radius:var(--radius);
  border-bottom-right-radius:var(--radius);
}
.table .col-id{ width:80px; }
.table .col-actions{ text-align:right; }
.table .col-actions-sm{ width:190px; }
.table .col-actions-lg{ width:290px; }
.table .col-actions-xl{ width:410px; }
.table-empty{
  padding:28px 14px !important;
  color:var(--muted) !important;
  text-align:center;
}
.cell-muted{ color:var(--muted) !important; }
.table small,
.text-soft{ color:var(--muted) !important; }
.table.tabla-moderna tbody td a{ color:#6ddcff; }
.table.tabla-moderna tbody td a:hover{ color:#bff3ff; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  border-radius:var(--radius);
  font-weight:800;
}
.btn-sm{ min-height:32px; }
.btn-primary{
  border-color:rgba(85,216,255,.36);
  background:linear-gradient(135deg, #55d8ff, #39d8b4);
  color:#041014;
  box-shadow:0 12px 24px rgba(85,216,255,.18);
}
.btn-primary:hover{
  border-color:rgba(255,255,255,.42);
  filter:brightness(.98);
  color:#041014;
}
.btn-outline-light{
  border-color:rgba(255,255,255,.2);
  background:rgba(255,255,255,.045);
  color:#f3f8ff;
}
.btn-outline-light:hover{
  border-color:rgba(85,216,255,.36);
  background:rgba(85,216,255,.12);
  color:#fff;
}
.btn-outline-danger{
  border-color:rgba(255,107,125,.42);
  color:#ffc7cf;
}
.btn-outline-danger:hover{
  border-color:rgba(255,107,125,.7);
  background:rgba(255,107,125,.16);
  color:#fff;
}
.btn-editar{
  border:1px solid rgba(242,184,75,.4);
  background:rgba(242,184,75,.16);
  color:#ffe1ad;
}
.btn-editar:hover{
  border-color:rgba(242,184,75,.72);
  background:rgba(242,184,75,.24);
  color:#fff0ce;
}

.form-label{
  color:#dce7f2;
  font-size:.86rem;
  font-weight:800;
}
.form-text{ color:var(--muted) !important; }
.form-control,
.form-select{
  min-height:42px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius);
  background-color:rgba(5,8,12,.68);
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.form-control::placeholder{ color:#748294; }
.form-control:focus,
.form-select:focus{
  border-color:rgba(85,216,255,.56);
  background-color:rgba(8,12,17,.82);
  color:#fff;
  box-shadow:0 0 0 3px rgba(85,216,255,.16);
}
.form-select option{
  background:#0b1423;
  color:#fff;
}
.form-check{
  min-height:36px;
  padding:8px 10px 8px 2.1rem;
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius);
  background:rgba(255,255,255,.04);
}
.form-check-input{
  border-color:rgba(255,255,255,.35);
  background-color:rgba(0,0,0,.2);
}
.form-check-input:checked{
  border-color:var(--accent-2);
  background-color:var(--accent-2);
}
.form-check-label{
  color:#e9f1f7;
  font-weight:700;
}
.section-panel,
.question-card{
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  background:rgba(255,255,255,.045);
  padding:14px;
}
.section-title{
  margin:0 0 10px;
  font-size:1.02rem;
}
.check-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.remote-actions-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:8px;
}
.remote-result-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.remote-install-form.is-installing{
  pointer-events:none;
  opacity:.72;
}
.remote-progress-panel{
  padding:12px;
  border:1px solid rgba(85,216,255,.22);
  border-radius:var(--radius);
  background:rgba(8,12,17,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055);
}
.remote-progress-panel[hidden]{
  display:none !important;
}
.remote-progress-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.remote-progress-track{
  width:100%;
  height:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(4,7,10,.9);
}
.remote-progress-fill{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, #55d8ff, #39d8b4, #f2b84b);
  box-shadow:0 0 18px rgba(85,216,255,.26);
  transition:width .65s ease;
}
.remote-progress-steps{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(82px,1fr));
  gap:6px;
  margin-top:10px;
}
.remote-progress-steps span{
  min-height:26px;
  padding:4px 8px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:.76rem;
  font-weight:800;
  text-align:center;
  white-space:nowrap;
  transition:color .2s ease, border-color .2s ease, background .2s ease;
}
.remote-progress-steps span.is-active{
  border-color:rgba(57,216,180,.34);
  background:rgba(57,216,180,.12);
  color:#c9f7e0;
}
.remote-spin{
  animation:remote-spin 1s linear infinite;
}
@keyframes remote-spin{
  to{ transform:rotate(360deg); }
}
.remote-summary{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:8px;
  margin-bottom:12px;
}
.remote-summary-item{
  min-height:68px;
  padding:10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  background:rgba(8,12,17,.72);
}
.remote-summary-item strong{
  display:block;
  margin-top:3px;
  color:#fff;
  font-family:"Sora","Manrope",sans-serif;
  font-size:1.22rem;
}
.remote-raw{
  overflow:auto;
  max-height:320px;
  margin:0;
  padding:12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  background:#070a0e;
  color:#dfe9f2;
  white-space:pre-wrap;
}
.question-card{
  background:rgba(7,12,18,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.status-dot{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#dfe9f2;
  font-weight:800;
  white-space:nowrap;
}
.status-dot::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:999px;
  background:var(--muted-2);
  box-shadow:0 0 0 3px rgba(127,140,156,.14);
}
.status-dot.is-on::before{
  background:var(--accent-2);
  box-shadow:0 0 0 3px rgba(57,216,180,.16), 0 0 18px rgba(57,216,180,.3);
}
.status-dot.is-off::before{
  background:#8a95a3;
  box-shadow:0 0 0 3px rgba(138,149,163,.12);
}
.status-dot.is-alert::before{
  background:var(--danger);
  box-shadow:0 0 0 3px rgba(255,107,125,.15), 0 0 18px rgba(255,107,125,.26);
}
.badge-soft{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:2px 8px;
  border:1px solid rgba(85,216,255,.26);
  border-radius:999px;
  background:rgba(85,216,255,.1);
  color:#c8f4ff;
  font-weight:800;
  font-size:.78rem;
  white-space:nowrap;
}
.badge-soft.success{
  border-color:rgba(57,216,180,.28);
  background:rgba(57,216,180,.1);
  color:#bff5dd;
}
.badge-soft.warning{
  border-color:rgba(242,184,75,.28);
  background:rgba(242,184,75,.1);
  color:#ffe0ad;
}
.badge-soft.danger{
  border-color:rgba(255,107,125,.32);
  background:rgba(255,107,125,.12);
  color:#ffc7cf;
}
.color-swatch{
  display:inline-block;
  width:18px;
  height:18px;
  margin-right:7px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:5px;
  background:var(--swatch, var(--accent));
  vertical-align:-4px;
  box-shadow:0 0 0 3px rgba(255,255,255,.06);
}
.rule-list{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.alert{
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:rgba(255,255,255,.08);
  color:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.24);
}
.alert-success{
  border-color:rgba(57,216,180,.32);
  background:rgba(57,216,180,.12);
  color:#d7ffe9;
}
.alert-danger{
  border-color:rgba(255,107,125,.35);
  background:rgba(255,107,125,.13);
  color:#ffe1e6;
}
.alert-warning{
  border-color:rgba(242,184,75,.38);
  background:rgba(242,184,75,.13);
  color:#fff0ce;
}

.auth-card{
  width:100%;
  max-width:440px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:
    linear-gradient(135deg, rgba(85,216,255,.12), rgba(57,216,180,.08)),
    rgba(10,14,19,.9);
  box-shadow:var(--shadow);
  padding:22px;
  backdrop-filter:blur(14px);
}
.auth-logo{
  width:104px;
  height:104px;
  object-fit:contain;
  border-radius:var(--radius);
  background:#06080b;
  padding:8px;
  box-shadow:0 18px 34px rgba(0,0,0,.36);
}

@media (max-width: 1100px){
  .hero-kpis{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .metric-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 991.98px){
  .topbar{ display:flex; }
  .sidebar{
    transform:translateX(-100%);
    transition:transform .18s ease;
  }
  .sidebar.is-open{ transform:translateX(0); }
  body.sidebar-open .sidebar-backdrop{ display:block; }
  .contenido{
    margin-left:0;
    padding:20px 16px 30px;
  }
  .contenido-guest{ padding:18px; }
}
@media (max-width: 680px){
  .page-title,
  .hero-title{ font-size:1.36rem; }
  .hero-kpis,
  .metric-grid,
  .summary-grid,
  .check-grid{ grid-template-columns:1fr; }
  .page-actions,
  .page-actions .btn{ width:100%; }
  .table-shell{ padding:5px; }
  .btn{ width:auto; }
}
@media print{
  body{ background:#fff; color:#000; }
  .sidebar,
  .topbar,
  .sidebar-backdrop{ display:none !important; }
  .contenido{ margin:0; padding:0; }
  .main-shell{ max-width:none; }
}

/* Connecting Bingo family: midnight blue, glass surfaces and precise light. */
:root {
  --bg: #050811;
  --surface: #0b1423;
  --surface-2: #101d31;
  --surface-3: #162942;
  --line: rgba(158,185,216,.13);
  --line-strong: rgba(92,196,255,.28);
  --text: #eef5ff;
  --muted: #a8b7cb;
  --muted-2: #8294ac;
  --primary: #2f9cff;
  --accent: #55d8ff;
  --accent-2: #39d8b4;
  --violet: #a69aff;
  --sidebar: 264px;
  --radius: 8px;
  --shadow: 0 20px 50px rgba(0,0,0,.22);
  color-scheme: dark;
}
body {
  background-image: radial-gradient(ellipse at 95% 0,rgba(27,82,139,.18),transparent 50%), linear-gradient(110deg,rgba(3,6,13,.98),rgba(5,12,23,.95) 48%,rgba(6,17,35,.88)),url('../fondo2.png');
  background-position: center, center, right center;
  font-size: 14px;
  line-height: 1.6;
}
body::before {
  background: repeating-linear-gradient(90deg,transparent 0,transparent 119px,rgba(113,184,255,.022) 120px);
  background-size: auto;
  mask-image: linear-gradient(#000,transparent 85%);
}
::selection { background: rgba(85,216,255,.25); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
:where(a,button,input,select,textarea) { -webkit-tap-highlight-color: transparent; }
:where(button,a,input,select,textarea) { touch-action: manipulation; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #070d17; }
::-webkit-scrollbar-thumb { border: 2px solid #070d17; border-radius: 8px; background: #30445e; }
a { color: #83c9ff; }
a:hover { color: #c5e8ff; }
svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.8; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 2000; padding: 10px 16px; background: var(--surface); border: 1px solid var(--accent); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.sidebar { padding: 0; background: linear-gradient(180deg,rgba(255,255,255,.018),transparent 25%),rgba(5,8,15,.97); border-color: var(--line); box-shadow: 18px 0 52px rgba(0,0,0,.2); overflow: hidden; transition: transform .2s ease; }
.sidebar-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 18px 14px 14px; }
.sidebar-brand-row { display: flex; align-items: center; }
.brand { flex: 1; min-width: 0; min-height: 66px; margin: 0; padding: 8px 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.brand-logo { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(84,205,255,.3); border-radius: 8px; background: linear-gradient(145deg,rgba(47,156,255,.2),rgba(57,216,180,.06)); }
.brand-logo img { width: 31px; height: 31px; border-radius: 0; background: transparent; box-shadow: none; }
.brand-copy strong { font-size: 1.3rem; letter-spacing: .07em; }
.brand-dot { color: var(--accent); }
.brand-copy > span { margin-top: 4px; color: #8b9eb6; font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.workspace-label { display: flex; align-items: center; gap: 9px; padding: 12px 10px; margin: 10px 3px 16px; border: 1px solid var(--line); border-radius: 7px; background: rgba(21,36,56,.43); }
.workspace-mark { display: grid; place-items: center; width: 29px; height: 32px; color: #6bb5ee; }
.workspace-label > span:last-child { min-width: 0; color: #8294ac; font-size: .65rem; }
.workspace-label strong { display: block; overflow: hidden; color: #cfdef0; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.nav-section { flex: 1; min-height: 0; padding: 0 3px 12px; overflow-y: auto; scrollbar-width: thin; }
.nav-label { margin: 21px 9px 8px; color: #8193aa; font-size: .6rem; letter-spacing: .11em; text-transform: uppercase; }
.nav-label:first-child { margin-top: 0; }
.nav-link { position: relative; min-height: 40px; margin-bottom: 4px; padding: 9px 10px; color: #a0b1c7; font-size: .79rem; font-weight: 600; }
.nav-link svg { color: #7e95ae; stroke-width: 1.8; }
.nav-link:hover { color: #edf7ff; transform: none; background: rgba(104,165,215,.07); border-color: rgba(129,180,220,.12); }
.nav-link.active { color: #f5fbff; background: linear-gradient(90deg,rgba(47,156,255,.18),rgba(57,216,180,.05)); border-color: rgba(90,195,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.nav-link.active svg { color: #65d5ff; }
.nav-link.active::before { content: ''; position: absolute; inset: 10px auto 10px -4px; width: 2px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px rgba(83,216,255,.5); }
.sidebar-footer { flex: 0 0 auto; padding: 12px 3px 0; border-top: 1px solid var(--line); }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px; background: rgba(18,29,45,.58); border-color: var(--line); }
.sidebar-avatar { display: grid; place-items: center; width: 32px; height: 34px; flex-shrink: 0; border: 1px solid rgba(80,202,255,.25); border-radius: 6px; background: rgba(47,156,255,.1); color: #a7e6ff; font-size: .72rem; font-weight: 800; }
.sidebar-user-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.sidebar-user-copy strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy > span { color: #8c9fb7; font-size: .65rem; }
.logout-link { display: grid; place-items: center; width: 30px; height: 32px; margin: 0; background: transparent; border: 0; border-radius: 5px; color: #8d9eb4; }
.logout-link:hover { background: rgba(255,107,125,.08); color: #ff9cab; }
.sidebar-signature { display: flex; justify-content: space-between; padding: 14px 3px 0; color: #8495ad; font-size: .49rem; letter-spacing: .06em; font-weight: 800; }
.sidebar-signature span { color: #697e98; }
.sidebar-close { display: none; }
.contenido { padding: 0 clamp(20px,3vw,48px) 42px; transition: margin-left .2s ease; }
.main-shell { max-width: 1540px; min-width: 0; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.workspace-breadcrumb { display: flex; align-items: center; min-width: 0; gap: 12px; color: #91a2b8; font-size: .7rem; }
.workspace-breadcrumb strong { color: #d2dff0; font-weight: 600; }
.workspace-breadcrumb > svg { width: 12px; color: #60768e; }
.workspace-product { display: flex; align-items: center; gap: 8px; color: #8d9fb7; font-size: .66rem; }
.workspace-product svg { width: 15px; color: #6ab7e4; }
.desktop-menu-toggle { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; margin-right: 3px; border: 1px solid var(--line); border-radius: 5px; background: rgba(16,29,49,.6); color: #9aadc5; }
.desktop-menu-toggle:hover { color: #fff; border-color: var(--line-strong); }
.page-header { align-items: center; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); gap: 20px; }
.page-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: #76c9ec; font-size: .62rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 800; }
.page-title { font-size: clamp(1.65rem,2.5vw,2.2rem); letter-spacing: -.035em; line-height: 1.2; }
.page-subtitle { margin-top: 9px; font-size: .85rem; color: #a0b1c6; }
.hero-panel,.form-panel,.content-panel,.table-shell,.filter-panel { background: linear-gradient(125deg,rgba(32,61,91,.12),transparent 60%),rgba(11,20,35,.85); border-color: var(--line); box-shadow: var(--shadow); }
.form-panel,.content-panel { padding: 24px; }
.filter-panel { padding: 20px; margin-bottom: 20px; background: rgba(12,23,39,.72); }
.content-panel .page-header { border: 0; padding: 0; }
.content-panel .section-title { font-size: 1.04rem; }
.section-panel,.question-card { padding: 18px; background: rgba(5,12,23,.45); border-color: var(--line); }
.section-title { color: #e4efff; }
.hero-panel::after,.content-panel::after,.table-shell::after,.form-panel::after { box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.table-shell { padding: 0; }
.table-responsive { border-radius: inherit; }
.table.tabla-moderna { border-spacing: 0; font-size: .8rem; }
.table.tabla-moderna thead th { padding: 16px 18px; border-bottom: 1px solid var(--line); background: rgba(18,33,53,.94); color: #9bafc8; font-size: .65rem; letter-spacing: .04em; text-transform: uppercase; }
.table.tabla-moderna tbody td { padding: 17px 18px; border-bottom: 1px solid rgba(158,185,216,.075); border-radius: 0; background: rgba(11,20,35,.58); color: #c4d3e6; }
.table.tabla-moderna tbody tr:last-child td { border-bottom: 0; }
.table.tabla-moderna tbody tr:hover td { background: rgba(25,45,69,.75); }
.table.tabla-moderna tbody td strong { color: #edf5ff; font-weight: 700; }
.table.tabla-moderna tbody td a { color: #83c9ff; }
.table.tabla-moderna tbody td a.btn-editar { color: #b4d9ff; }
.table.tabla-moderna tbody td a.btn-outline-light { color: #d5e5f7; }
.table .col-actions-sm { width: 230px; }
.table-empty { padding: 60px 24px !important; font-size: .86rem; }
.table-empty::before { content: '—'; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(47,156,255,.07); color: var(--accent); font-size: 1.2rem; }
.btn { min-height: 39px; padding: 9px 14px; gap: 8px; font-size: .76rem; font-weight: 700; transition: background .16s,border-color .16s,box-shadow .16s; }
.btn svg { width: 15px; height: 15px; flex-basis: 15px; stroke-width: 1.8; }
.btn-sm { min-height: 31px; padding: 5px 9px; font-size: .68rem; gap: 5px; }
.btn-sm svg { width: 13px; height: 13px; flex-basis: 13px; }
.btn-primary { background: linear-gradient(115deg,#176cca,#187eaf); border-color: rgba(122,215,255,.3); color: #fff; box-shadow: 0 5px 20px rgba(47,156,255,.15),inset 0 1px 0 rgba(255,255,255,.15); }
.btn-primary:hover,.btn-primary:focus-visible { background: linear-gradient(115deg,#1975bb,#1778ac); border-color: #71caff; color: #fff; filter: none; box-shadow: 0 5px 24px rgba(47,156,255,.26); }
.btn-outline-light { color: #c8d8ec; border-color: rgba(158,185,216,.23); background: rgba(17,32,51,.48); }
.btn-outline-light:hover { border-color: rgba(83,181,245,.45); background: rgba(47,156,255,.12); }
.btn-editar { color: #b4d9ff; border-color: rgba(95,169,240,.24); background: rgba(47,156,255,.08); }
.btn-editar:hover { color: #e1f2ff; border-color: rgba(95,169,240,.5); background: rgba(47,156,255,.16); }
.btn-outline-danger { color: #f1a6b1; border-color: rgba(255,107,125,.26); background: rgba(255,107,125,.035); }
.form-label { margin-bottom: 8px; color: #b4c7df; font-size: .75rem; font-weight: 700; }
.form-control,.form-select { min-height: 44px; background-color: rgba(4,11,22,.65); border-color: rgba(145,176,211,.18); color: #eaf3ff; font-size: .83rem; }
.form-control:focus,.form-select:focus { background-color: #091525; border-color: rgba(85,180,255,.7); box-shadow: 0 0 0 3px rgba(47,156,255,.12); }
.form-control::file-selector-button { background: #162b44; color: #b6d4ef; }
.form-control:hover:not(:disabled):not([readonly])::file-selector-button { background: #203a57; }
.form-control:disabled { color: #9caec4; background: #101a2a; }
.form-check { background: rgba(16,29,49,.5); border-color: var(--line); }
.form-check-label { font-size: .8rem; font-weight: 600; color: #c4d4e9; }
.form-text { margin-top: 7px; font-size: .72rem; }
.form-select option { background: #0b1423; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.badge-soft { min-height: 23px; padding: 3px 8px; border-radius: 5px; font-size: .64rem; font-weight: 700; }
.status-dot { font-size: .73rem; font-weight: 600; }
.status-dot::before { width: 6px; height: 6px; }
.remote-summary-item,.remote-progress-panel { background: rgba(6,15,28,.65); border-color: var(--line); }
.remote-raw { background: #040a13; border-color: var(--line); font-size: .75rem; }
.alert { padding: 14px 18px; font-size: .83rem; box-shadow: none; }
.contenido-guest { margin: 0; padding: 40px 24px; }
.main-shell-guest { max-width: 1120px; }
.auth-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); align-items: center; gap: clamp(40px,7vw,110px); }
.auth-story { padding: 24px 0; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 56px; }
.auth-brand img { width: 39px; height: 39px; object-fit: contain; }
.auth-brand strong { font-family: Sora,Manrope,sans-serif; font-size: 1.4rem; letter-spacing: .06em; }
.auth-brand > span { padding-left: 13px; border-left: 1px solid var(--line-strong); color: #a4b5cb; font-size: .65rem; line-height: 1.5; text-transform: uppercase; letter-spacing: .07em; }
.auth-story h1 { font-size: clamp(2.3rem,4.3vw,3.55rem); line-height: 1.14; letter-spacing: -.045em; }
.auth-story h1 span { color: #72c8fb; }
.auth-story > p:not(.page-kicker) { max-width: 400px; margin-top: 24px; color: #a0b1c8; font-size: .94rem; }
.auth-features { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.auth-features span { display: flex; align-items: center; gap: 7px; font-size: .67rem; color: #9bb4cd; }
.auth-features svg { width: 15px; color: #65bfe7; }
.auth-card { max-width: none; padding: 36px; background: linear-gradient(150deg,rgba(29,55,85,.32),transparent 65%),rgba(11,20,35,.88); border-color: rgba(139,181,220,.2); box-shadow: 0 35px 100px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.05); }
.auth-emblem { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(47,156,255,.1); color: #85d8ff; }
.auth-card h2 { font-size: 1.4rem; letter-spacing: -.025em; }
.auth-card .page-subtitle { margin-bottom: 28px; font-size: .79rem; }
.auth-card .form-control { min-height: 47px; }
.auth-card .btn { min-height: 45px; margin-top: 12px; }
.auth-footer { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 24px 0 0; padding-top: 21px; border-top: 1px solid var(--line); color: #91a5bd; font-size: .65rem; }
.auth-footer svg { width: 13px; }
.auth-signature { margin-top: 44px; color: #8497b1; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 992px) {
  body.sidebar-collapsed .sidebar { transform: translateX(-100%); }
  body.sidebar-collapsed .contenido { margin-left: 0; }
}
@media (max-width: 1200px) {
  .contenido { padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 991.98px) {
  .topbar { min-height: 62px; background: rgba(5,9,16,.95); backdrop-filter: blur(20px); border-color: var(--line); }
  .topbar-title strong { font-family: Sora,Manrope,sans-serif; font-size: 1.1rem; letter-spacing: .05em; }
  .topbar-title > span { margin-top: 4px; font-size: .6rem; color: #91a3b9; }
  .topbar-brand img { width: 30px; height: 30px; background: transparent; box-shadow: none; }
  .sidebar { z-index: 1200; }
  .sidebar-backdrop { z-index: 1190; background: rgba(0,4,12,.65); }
  .sidebar-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: rgba(18,31,50,.7); border: 1px solid var(--line); border-radius: 6px; color: #a8bed6; }
  body.sidebar-open { overflow: hidden; }
  .contenido { margin-left: 0; padding: 0 20px 32px; }
  .workspace-header { min-height: 57px; margin-bottom: 20px; }
  .desktop-menu-toggle { display: none; }
  .auth-layout { gap: 40px; }
  .contenido-guest { padding: 32px 24px; }
  .auth-story h1 { font-size: 2.5rem; }
  .auth-card { padding: 28px; }
}
@media (max-width: 680px) {
  .contenido { padding-right: 14px; padding-left: 14px; }
  .workspace-product { display: none; }
  .workspace-breadcrumb { gap: 8px; font-size: .63rem; }
  .workspace-breadcrumb strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .page-header { gap: 16px; margin-bottom: 18px; padding-bottom: 18px; }
  .page-title { font-size: 1.65rem; }
  .page-subtitle { font-size: .8rem; }
  .page-actions { gap: 8px; }
  .page-actions .btn { flex: 1; width: auto; }
  .form-panel,.content-panel,.filter-panel { padding: 18px; }
  .table-shell { padding: 0; }
  .auth-layout { grid-template-columns: 1fr; gap: 28px; max-width: 440px; margin: auto; }
  .auth-story { padding: 0; }
  .auth-brand { margin-bottom: 26px; }
  .auth-story h1 { font-size: 2.2rem; }
  .auth-story > p:not(.page-kicker) { margin-top: 14px; font-size: .8rem; }
  .auth-features { display: none; }
  .auth-card { padding: 26px; }
  .auth-emblem { display: none; }
  .auth-signature { margin-top: 24px; text-align: center; }
  .contenido-guest { padding: 28px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .workspace-header,.hero-visual,.hero-actions,.dashboard-rail,.skip-link { display: none !important; }
  .contenido { margin: 0 !important; padding: 0; }
}
.collection-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.collection-head > span:first-child { display: flex; align-items: center; gap: 9px; color: #d4e3f4; font-size: .76rem; font-weight: 700; }
.collection-head svg { width: 15px; height: 15px; color: #7bbfe9; }
.collection-count { padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; color: #a6bad0; font-size: .63rem; white-space: nowrap; background: rgba(47,156,255,.045); }
@media (max-width: 480px) {
  .collection-head { padding: 15px; }
  .collection-head > span:first-child { font-size: .69rem; }
  .collection-count { font-size: .58rem; }
}
