/* ─── Reset & Variables ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1e3a5f;
  --blue2:   #2563eb;
  --gold:    #b8860b;
  --green:   #16a34a;
  --red:     #dc2626;
  --orange:  #ea580c;
  --gray:    #6b7280;
  --light:   #f8fafc;
  --border:  #e2e8f0;
  --shadow:  0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow2: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --radius:  8px;
  --sidebar: 240px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body { background: var(--light); color: #1f2937; line-height: 1.6; }
a    { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }

/* ─── Utilities ─────────────────────────────────────────────────────────── */
.hidden   { display: none !important; }
.flex     { display: flex; }
.gap-1    { gap: 8px; }
.gap-2    { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-sm  { font-size: 13px; }
.text-xs  { font-size: 11px; }
.text-center { text-align: center; }
.text-gray  { color: var(--gray); }
.font-bold  { font-weight: 600; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.w-full { width: 100%; }

/* ─── Badges ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-gold   { background: #fef3c7; color: #92400e; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 8px 16px; border-radius: var(--radius); border: none; cursor: pointer;
  font-size: 14px; font-weight: 500; transition: all .15s; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #162d4a; }
.btn-blue     { background: var(--blue2); color: #fff; }
.btn-blue:hover:not(:disabled) { background: #1d4ed8; }
.btn-green    { background: var(--green); color: #fff; }
.btn-green:hover:not(:disabled) { background: #15803d; }
.btn-red      { background: var(--red); color: #fff; }
.btn-red:hover:not(:disabled) { background: #b91c1c; }
.btn-orange   { background: var(--orange); color: #fff; }
.btn-orange:hover:not(:disabled) { background: #c2410c; }
.btn-outline  { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover:not(:disabled) { background: var(--blue); color: #fff; }
.btn-ghost    { background: transparent; color: var(--gray); border: 1.5px solid var(--border); }
.btn-ghost:hover:not(:disabled) { background: #f1f5f9; }
.btn-sm { padding: 5px 11px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }

/* ─── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 15px; font-weight: 600; color: var(--blue); }
.card-body  { padding: 20px; }
.card-footer { padding: 12px 20px; background: var(--light); border-top: 1px solid var(--border); }

/* ─── Forms ─────────────────────────────────────────────────────────────── */
.form-group       { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.form-control {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; transition: border-color .15s; background: #fff; color: #1f2937;
}
.form-control:focus { outline: none; border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-control::placeholder { color: #9ca3af; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: auto; }
.form-hint   { font-size: 12px; color: var(--gray); margin-top: 4px; }
.form-row    { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ─── Tables ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table  { width: 100%; border-collapse: collapse; font-size: 14px; }
thead  { background: #f8fafc; }
th     { padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); }
td     { padding: 11px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }
.table-actions { display: flex; gap: 6px; }

/* ─── App Layout ────────────────────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar); background: var(--blue); color: #fff;
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 100; overflow-y: auto;
}
.sidebar-brand {
  padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-brand .logo { font-size: 28px; }
.sidebar-brand .name { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.sidebar-brand .sub  { font-size: 10px; opacity: .6; }
.sidebar-nav { flex: 1; padding: 16px 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; cursor: pointer; transition: all .15s;
  font-size: 14px; color: rgba(255,255,255,.75); border-left: 3px solid transparent;
}
.nav-item:hover  { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.12); color: #fff; border-left-color: #fbbf24; }
.nav-item .icon  { font-size: 18px; width: 20px; text-align: center; }
.sidebar-footer  { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.sidebar-user    { display: flex; align-items: center; gap: 10px; }
.sidebar-avatar  { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }

/* Main content */
.main-content { margin-left: var(--sidebar); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  background: #fff; border-bottom: 1px solid var(--border); padding: 0 28px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 90; box-shadow: var(--shadow);
}
.topbar h2 { font-size: 18px; font-weight: 600; color: var(--blue); }
.page-content { padding: 28px; flex: 1; }

/* ─── Stat Cards ────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card  { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.stat-card .val  { font-size: 32px; font-weight: 700; color: var(--blue); }
.stat-card .lbl  { font-size: 13px; color: var(--gray); margin-top: 2px; }
.stat-card .icon { font-size: 28px; float: right; }

/* ─── Estado colores ────────────────────────────────────────────────────── */
.estado-pendiente        { color: #6b7280; }
.estado-audio_subido     { color: #2563eb; }
.estado-transcribiendo   { color: #d97706; }
.estado-transcripcion_lista { color: #7c3aed; }
.estado-generando        { color: #ea580c; }
.estado-acta_generada    { color: #16a34a; }
.estado-error            { color: #dc2626; }

/* ─── Progress Steps ────────────────────────────────────────────────────── */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.step  { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: #fff; color: var(--gray); flex-shrink: 0;
}
.step.done .step-num  { background: var(--green); border-color: var(--green); color: #fff; }
.step.active .step-num{ background: var(--blue2); border-color: var(--blue2); color: #fff; }
.step-label { font-size: 12px; color: var(--gray); white-space: nowrap; }
.step.done .step-label  { color: var(--green); font-weight: 600; }
.step.active .step-label{ color: var(--blue2); font-weight: 600; }
.step-line  { flex: 1; height: 2px; background: var(--border); margin: 0 8px; }
.step.done + .step .step-line,
.step-line.done { background: var(--green); }

/* ─── Modals ────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 12px; width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 17px; font-weight: 600; color: var(--blue); }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray); line-height: 1; }
.modal-close:hover { color: var(--red); }
.modal-body   { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ─── Alerts ────────────────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info    { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ─── Acta Editor ───────────────────────────────────────────────────────── */
.acta-punto {
  border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden;
}
.acta-punto-header {
  background: #f0f4f8; padding: 12px 16px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--border); cursor: pointer;
}
.acta-punto-header h4 { font-size: 14px; font-weight: 600; color: var(--blue); }
.acta-punto-body { padding: 16px; }
.acuerdo-box {
  background: #fffbeb; border-left: 4px solid var(--gold);
  padding: 12px 16px; border-radius: 4px; margin-top: 12px;
}
.acuerdo-box label { color: var(--gold); font-weight: 700; }
.votacion-box {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius);
  padding: 12px 16px; margin-top: 12px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
}
.votacion-box .voto { text-align: center; }
.votacion-box .voto .num { font-size: 22px; font-weight: 700; }
.votacion-box .voto .lbl { font-size: 11px; color: var(--gray); }

/* ─── Audio Upload ──────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px;
  text-align: center; cursor: pointer; transition: all .2s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--blue2); background: #eff6ff; }
.upload-zone .icon { font-size: 40px; margin-bottom: 10px; }
.upload-zone p    { color: var(--gray); font-size: 14px; }

/* ─── Spinner ───────────────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px; border: 3px solid #e5e7eb;
  border-top-color: var(--blue2); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── LANDING ───────────────────────────────────────────────────────────── */
.landing-nav {
  background: var(--blue); padding: 0 40px; height: 65px; display: flex;
  align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.landing-nav .brand { color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.landing-nav .nav-links { display: flex; align-items: center; gap: 14px; }
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1a4a7a 50%, #0f3460 100%);
  color: #fff; padding: 90px 40px; text-align: center;
}
.hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 20px; line-height: 1.15; }
.hero h1 span { color: #fbbf24; }
.hero p   { font-size: 19px; opacity: .88; max-width: 620px; margin: 0 auto 40px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.features { padding: 70px 40px; background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; max-width: 1050px; margin: 0 auto; }
.feature-card { text-align: center; padding: 28px; border-radius: 12px; border: 1px solid var(--border); }
.feature-card .ficon { font-size: 44px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.feature-card p  { font-size: 14px; color: var(--gray); line-height: 1.7; }
.how-it-works { padding: 70px 40px; background: var(--light); }
.how-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.how-step { text-align: center; }
.how-step .num { width: 50px; height: 50px; background: var(--blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin: 0 auto 14px; }
.how-step h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.how-step p  { font-size: 13px; color: var(--gray); }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--blue); }
.section-title p  { font-size: 16px; color: var(--gray); margin-top: 10px; }
.pricing { padding: 70px 40px; background: #fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.pricing-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 30px; text-align: center; }
.pricing-card.popular { border-color: var(--blue2); background: #eff6ff; }
.pricing-card .price { font-size: 36px; font-weight: 800; color: var(--blue); }
.pricing-card .price span { font-size: 14px; font-weight: 400; color: var(--gray); }
.pricing-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.pricing-card ul { list-style: none; text-align: left; margin: 20px 0; }
.pricing-card ul li { padding: 5px 0; font-size: 14px; }
.pricing-card ul li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.landing-footer { background: var(--blue); color: rgba(255,255,255,.7); text-align: center; padding: 28px; font-size: 13px; }

/* ─── Auth Modal ────────────────────────────────────────────────────────── */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-box {
  background: #fff; border-radius: 14px; width: 100%; max-width: 420px;
  padding: 36px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.auth-box h2 { font-size: 22px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.auth-box p  { color: var(--gray); font-size: 14px; margin-bottom: 24px; }
.auth-toggle { text-align: center; margin-top: 16px; font-size: 13.5px; }
.auth-toggle a { cursor: pointer; color: var(--blue2); font-weight: 600; }

/* ─── Empty State ───────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state .icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.empty-state p { font-size: 14px; max-width: 380px; margin: 0 auto 20px; }

/* ─── Tab Buttons ───────────────────────────────────────────────────────── */
.tab-btn {
  padding: 10px 16px; background: none; border: none; border-bottom: 3px solid transparent;
  cursor: pointer; font-size: 13px; font-weight: 500; color: var(--gray); white-space: nowrap;
  transition: all .15s;
}
.tab-btn:hover { color: var(--blue); }

/* ─── Wizard Overlay ────────────────────────────────────────────────────── */
.wz-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.wz-container {
  background: #fff; border-radius: 14px; width: 100%; max-width: 760px;
  max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0,0,0,.28);
  overflow: hidden;
}
.wz-header {
  padding: 18px 24px 0; background: var(--blue); color: #fff; flex-shrink: 0;
}
.wz-header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wz-header h3  { font-size: 17px; font-weight: 700; }
.wz-close-btn  { background: none; border: none; color: rgba(255,255,255,.7); font-size: 24px; cursor: pointer; line-height: 1; padding: 0; }
.wz-close-btn:hover { color: #fff; }
.wz-step-label { font-size: 12px; opacity: .75; margin-bottom: 8px; }
.wz-progress-bar-wrap { height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; }
.wz-progress { height: 100%; background: #fbbf24; border-radius: 2px; transition: width .35s ease; }
.wz-body { flex: 1; overflow-y: auto; padding: 24px; }
.wz-alert {
  background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca;
  border-radius: var(--radius); padding: 10px 14px; font-size: 13px; margin-bottom: 16px;
}
.wz-snack {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #fff; padding: 11px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 500; z-index: 2000; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.3); animation: snackIn .25s ease;
}
.wz-snack.error { background: var(--red); }
@keyframes snackIn { from { opacity:0; transform: translateX(-50%) translateY(10px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
.wz-hero { text-align: center; margin-bottom: 28px; }
.wz-hero h2 { font-size: 22px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.wz-hero p  { font-size: 14px; color: var(--gray); }
.wz-hero-icon { font-size: 52px; margin-bottom: 12px; }
.wz-section { margin-bottom: 24px; }
.wz-section-title { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.wz-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.wz-question { background: var(--light); border-radius: var(--radius); padding: 20px; margin-top: 16px; text-align: center; }
.wz-question p { margin-bottom: 14px; font-size: 15px; }
.wz-stats { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.wz-preview-wrap { overflow-x: auto; padding: 8px 0; }
.wz-building-anim-wrap { min-height: 200px; overflow-x: auto; padding: 8px 0; }
.wz-toggle-group { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.wz-toggle {
  flex: 1; min-width: 130px; padding: 12px 16px; border-radius: var(--radius);
  border: 2px solid var(--border); background: #fff; cursor: pointer;
  font-size: 13px; text-align: left; transition: all .15s; display: flex; align-items: center; gap: 10px;
}
.wz-toggle:hover { border-color: var(--blue2); background: #eff6ff; }
.wz-toggle.active { border-color: var(--blue2); background: #eff6ff; color: var(--blue2); font-weight: 600; }
.wz-toggle-icon { font-size: 22px; flex-shrink: 0; }
.wz-num-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.wz-num-btn {
  width: 48px; height: 48px; border-radius: var(--radius); border: 2px solid var(--border);
  background: #fff; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--gray);
  transition: all .15s; display: flex; align-items: center; justify-content: center;
}
.wz-num-btn:hover  { border-color: var(--blue2); color: var(--blue2); }
.wz-num-btn.active { border-color: var(--blue2); background: var(--blue2); color: #fff; }
.wz-check-grid { display: flex; gap: 6px; flex-wrap: wrap; }
.wz-check-label {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s; user-select: none;
}
.wz-check-label:hover { border-color: var(--blue2); background: #eff6ff; }
.wz-check-label input[type=checkbox] { display: none; }
.wz-check-label:has(input:checked) { border-color: var(--blue2); background: var(--blue2); color: #fff; }
.wz-bldg-outer {
  border: 2px solid var(--blue); border-radius: 10px; overflow: hidden;
  display: inline-block; min-width: 220px; margin-right: 16px; margin-bottom: 12px; vertical-align: top;
}
.wz-bldg-title { background: var(--blue); color: #fff; padding: 8px 14px; font-size: 13px; font-weight: 700; text-align: center; }
.wz-bldg-inner { padding: 8px; background: var(--light); }
.wz-floor-wrap {
  display: flex; align-items: stretch; border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden; background: #fff; margin-bottom: 3px;
}
.wz-floor-label {
  background: #e2e8f0; color: #334155; font-size: 11px; font-weight: 700;
  padding: 5px 8px; white-space: nowrap; min-width: 42px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wz-esc-col { display: flex; flex-direction: column; padding: 4px 6px; min-width: 60px; }
.wz-esc-name { font-size: 10px; color: var(--gray); font-weight: 600; text-align: center; margin-bottom: 3px; }
.wz-esc-units { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.wz-esc-divider { width: 1px; background: var(--border); margin: 4px 0; }
.wz-unit-cell {
  width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--border);
  background: #f8fafc; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #334155;
}
.wz-unit-cell-clickable {
  width: 30px; height: 30px; border-radius: 4px; border: 1px solid var(--border);
  background: #f8fafc; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #334155; cursor: pointer; transition: all .15s;
}
.wz-unit-cell-clickable:hover { border-color: var(--blue2); background: #eff6ff; }
.wz-unit-cell.presidente, .wz-unit-cell-clickable.presidente { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.wz-local-cell { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.wz-locales-row { background: #f0fdf4; }
.wz-locales-units { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px 8px; align-items: center; }
.wz-row-animate { animation: rowIn .25s ease; }
@keyframes rowIn { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: none; } }

/* ─── Finance ────────────────────────────────────────────────────────────── */
.fin-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.fin-stat { background: #fff; border-radius: var(--radius); padding: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.fin-stat .val  { font-size: 22px; font-weight: 700; }
.fin-stat .lbl  { font-size: 11px; color: var(--gray); margin-top: 2px; }
.fin-stat .ico  { font-size: 20px; float: right; }
.val-pos { color: var(--green); }
.val-neg { color: var(--red); }
.val-neu { color: var(--blue); }

/* ─── Consent Records ───────────────────────────────────────────────────── */
.consent-record {
  padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px;
  display: flex; align-items: center; justify-content: space-between;
}
.consent-record:last-child { border-bottom: none; }
.consent-record .cr-name { font-weight: 600; }
.consent-record .cr-meta { color: var(--gray); font-size: 11px; margin-top: 2px; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-grid   { grid-template-columns: repeat(2,1fr); }
  .features-grid{ grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .how-steps    { grid-template-columns: repeat(2,1fr); }
  .form-row.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: none; }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1    { font-size: 30px; }
  .form-row.cols-2 { grid-template-columns: 1fr; }
}
