/* ═══════════════════════════════════════
   AS · AsesorComercial.es · Global CSS
   ═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --bg:     #070C18;
  --bg2:    #0D1425;
  --bg3:    #111C33;
  --bg4:    #0A1020;
  --cyan:   #00D4FF;
  --green:  #00FFB2;
  --orange: #FF5C28;
  --red:    #FF3B5C;
  --yellow: #FFB800;
  --purple: #8B5CF6;
  --white:  #F0F4FF;
  --muted:  #7A8BA8;
  --muted2: #4A5A70;
  --border: rgba(0,212,255,0.12);
  --border2:rgba(0,212,255,0.25);
  --card:   rgba(13,20,37,0.93);
  --r: 7px;
  --fh: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
}

/* ── MODO CLARO ── */
[data-theme="light"] {
  --bg:    #f1f5f9;
  --bg2:   #ffffff;
  --bg3:   #e2e8f0;
  --text:  #1e293b;
  --white: #0f172a;
  --muted: #64748b;
  --border: rgba(15,23,42,.12);
  --cyan:   #0284c7;
  --green:  #059669;
  --red:    #dc2626;
  --yellow: #d97706;
  --orange: #ea580c;
  --purple: #7c3aed;
}
/* Sidebar stays dark in light mode for contrast */
[data-theme="light"] .sidebar { background:#0f172a; color:#f1f5f9; }
[data-theme="light"] .sidebar .nav-item { color:#94a3b8; }
[data-theme="light"] .sidebar .nav-item.active,
[data-theme="light"] .sidebar .nav-item:hover { color:#ffffff; background:rgba(255,255,255,.1); }
[data-theme="light"] .sb-user-name { color:#f1f5f9; }
[data-theme="light"] .sb-footer { border-color:rgba(255,255,255,.08); }
/* Topbar and main area */
[data-theme="light"] .topbar { background:#ffffff; border-bottom:1px solid #e2e8f0; box-shadow:0 1px 4px rgba(0,0,0,.05); }
[data-theme="light"] .admin-bar { background:#1e40af; }
[data-theme="light"] .panel { background:#ffffff; box-shadow:0 1px 4px rgba(0,0,0,.06); border-color:#e2e8f0; }
[data-theme="light"] .form-input { background:#f8fafc; border-color:#cbd5e1; color:#0f172a; }
[data-theme="light"] .form-input:focus { border-color:#0284c7; }
[data-theme="light"] .page-title { color:#0f172a; }
[data-theme="light"] .panel-title { color:#0f172a; border-color:#e2e8f0; }
[data-theme="light"] .icon-btn { border-color:#e2e8f0; }
[data-theme="light"] .stats-grid .stat-card { background:#ffffff; border-color:#e2e8f0; }
[data-theme="light"] body { background:var(--bg); }



*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--fb);
  font-size: 13.5px;       /* ← fuente base más pequeña */
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content:'';
  position:fixed; inset:0;
  background-image:
    linear-gradient(rgba(0,212,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.022) 1px, transparent 1px);
  background-size:55px 55px;
  pointer-events:none; z-index:0;
}

/* ─ SCROLLBAR ─ */
::-webkit-scrollbar { width:4px; height:4px; }
::-webkit-scrollbar-track { background:var(--bg2); }
::-webkit-scrollbar-thumb { background:var(--muted2); border-radius:3px; }

/* ─ TYPOGRAPHY ─ */
h1 {
  font-family:var(--fh);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight:800; line-height:1.08; letter-spacing:-.03em;
}
h2 {
  font-family:var(--fh);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight:800; line-height:1.15; letter-spacing:-.03em;
  margin-bottom:.8rem;
}
h3 {
  font-family:var(--fh);
  font-size:.95rem;
  font-weight:700; margin-bottom:.5rem;
}
h2 .c { color:var(--cyan); }
p { font-size:.85rem; line-height:1.7; }

/* ─ LOGO ─ */
.logo {
  font-family:var(--fh);
  font-size:1.5rem;
  font-weight:800;
  letter-spacing:-.04em;
  color:var(--white);
  text-decoration:none;
  display:inline-flex; align-items:center; gap:.4rem;
}
.logo .logo-accent { color:var(--cyan); }
.logo-tag {
  font-size:.52rem;
  font-weight:600;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--muted);
  margin-left:.3rem;
  align-self:flex-end;
  margin-bottom:3px;
}

/* ─ SECTION COMMONS ─ */
section { position:relative; z-index:1; padding:80px 5%; }
.section-tag {
  display:inline-block;
  font-size:.63rem; font-weight:700;
  letter-spacing:.13em; text-transform:uppercase;
  color:var(--cyan); margin-bottom:.8rem;
  padding:.22rem .65rem;
  background:rgba(0,212,255,.07);
  border-radius:3px; border-left:3px solid var(--cyan);
}
.section-sub {
  font-size:.85rem; color:var(--muted);
  max-width:580px; font-weight:300;
  margin-bottom:2.5rem; line-height:1.75;
}
.divider {
  width:48px; height:3px;
  background:linear-gradient(90deg,var(--cyan),var(--green));
  border-radius:2px; margin:.8rem 0 1.8rem;
}

/* ─ BUTTONS ─ */
.btn {
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.6rem 1.2rem; border-radius:var(--r);
  font-size:.8rem; font-weight:600;
  cursor:pointer; border:none;
  font-family:var(--fb); transition:all .22s;
  text-decoration:none;
}
.btn svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.btn-primary { background:var(--cyan); color:var(--bg); }
.btn-primary:hover { background:var(--green); transform:translateY(-1px); box-shadow:0 8px 22px rgba(0,212,255,.28); }
.btn-ghost   { background:transparent; color:var(--white); border:1px solid var(--border); }
.btn-ghost:hover   { border-color:var(--cyan); color:var(--cyan); background:rgba(0,212,255,.05); }
.btn-danger  { background:rgba(255,59,92,.15); color:var(--red); border:1px solid rgba(255,59,92,.25); }
.btn-danger:hover  { background:rgba(255,59,92,.28); }
.btn-success { background:rgba(0,255,178,.12); color:var(--green); border:1px solid rgba(0,255,178,.28); }
.btn-secondary { background:var(--bg3); color:var(--white); border:1px solid var(--border); }
.btn-secondary:hover { border-color:var(--cyan); color:var(--cyan); }
.btn-lg { padding:.75rem 1.6rem; font-size:.88rem; }
.btn-sm { padding:.35rem .8rem; font-size:.74rem; }
.btn-full { width:100%; justify-content:center; padding:.75rem; font-size:.86rem; }

/* ─ FORM ELEMENTS ─ */
.form-group { margin-bottom:.9rem; }
.form-label {
  display:block; font-size:.68rem; font-weight:700;
  color:var(--muted); text-transform:uppercase;
  letter-spacing:.07em; margin-bottom:.35rem;
}
.form-input {
  width:100%; background:var(--bg);
  border:1px solid var(--border); border-radius:var(--r);
  padding:.62rem .9rem; color:var(--white);
  font-family:var(--fb); font-size:.82rem; outline:none;
  transition:border-color .2s, box-shadow .2s;
  appearance:none;
}
.form-input:focus { border-color:var(--cyan); box-shadow:0 0 0 3px rgba(0,212,255,.07); }
.form-input::placeholder { color:var(--muted2); }
.form-select {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8BA8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right .7rem center;
  background-size:13px; padding-right:2rem;
}
.form-select option { background:var(--bg2); }
.form-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:.8rem; }
.form-check { display:flex; gap:.6rem; align-items:flex-start; margin-bottom:1rem; }
.form-check input[type=checkbox] { width:14px; height:14px; margin-top:2px; accent-color:var(--cyan); flex-shrink:0; }
.form-check label { font-size:.76rem; color:var(--muted); line-height:1.5; }
.form-check a { color:var(--cyan); }
textarea.form-input { resize:vertical; min-height:80px; }

/* ─ CARDS / PANELS ─ */
.panel {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:12px; padding:1.2rem;
}
.panel-title {
  font-family:var(--fh); font-size:.88rem; font-weight:700;
  margin-bottom:.9rem;
  display:flex; align-items:center; justify-content:space-between; gap:.5rem;
}
.card {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:11px; padding:1.2rem;
  transition:transform .25s, border-color .25s;
}
.card:hover { transform:translateY(-3px); border-color:var(--border2); }

/* ─ STAT CARDS ─ */
.stat-card {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:11px; padding:1.1rem;
  transition:border-color .2s, transform .2s;
}
.stat-card:hover { border-color:var(--border2); transform:translateY(-2px); }
.sc-num {
  font-family:var(--fh); font-size:1.5rem;
  font-weight:800; line-height:1; color:var(--cyan);
}
.sc-label { font-size:.72rem; color:var(--muted); margin-top:.2rem; }
.sc-change { font-size:.68rem; margin-top:.35rem; display:flex; align-items:center; gap:.25rem; }
.sc-up { color:var(--green); } .sc-down { color:var(--red); }

/* ─ BADGES ─ */
.badge {
  display:inline-flex; align-items:center;
  padding:.14rem .5rem; border-radius:20px;
  font-size:.65rem; font-weight:700; letter-spacing:.03em;
}
.badge-cyan    { background:rgba(0,212,255,.12); color:var(--cyan); }
.badge-green   { background:rgba(0,255,178,.12); color:var(--green); }
.badge-red     { background:rgba(255,59,92,.14); color:var(--red); }
.badge-yellow  { background:rgba(255,184,0,.12); color:var(--yellow); }
.badge-purple  { background:rgba(139,92,246,.15); color:var(--purple); }
.badge-muted   { background:rgba(122,139,168,.12); color:var(--muted); }

/* ─ TAGS ─ */
.tags { display:flex; flex-wrap:wrap; gap:.3rem; margin-top:.8rem; }
.tag {
  font-size:.63rem; padding:.14rem .5rem;
  border-radius:20px; border:1px solid rgba(0,212,255,.2);
  color:var(--cyan); font-weight:500;
}

/* ─ TABLE ─ */
.table-wrap { overflow-x:auto; }
.data-table { width:100%; border-collapse:collapse; }
.data-table th {
  padding:.6rem .9rem; text-align:left;
  border-bottom:1px solid var(--border);
  font-size:.68rem; font-weight:700;
  color:var(--muted); text-transform:uppercase; letter-spacing:.07em;
}
.data-table td {
  padding:.65rem .9rem;
  border-bottom:1px solid rgba(0,212,255,.06);
  font-size:.8rem; vertical-align:middle;
}
.data-table tr:hover td { background:rgba(0,212,255,.025); }
.data-table tr:last-child td { border-bottom:none; }

/* ─ TOAST ─ */
.toast-wrap {
  position:fixed; bottom:1.3rem; right:1.3rem;
  z-index:9999; display:flex; flex-direction:column; gap:.4rem;
}
.toast {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:9px; padding:.7rem 1.1rem;
  display:flex; align-items:center; gap:.6rem;
  min-width:240px; max-width:320px;
  box-shadow:0 6px 24px rgba(0,0,0,.5);
  font-size:.78rem; animation:toastIn .28s ease;
}
.toast.success { border-color:rgba(0,255,178,.35); }
.toast.error   { border-color:rgba(255,59,92,.35); }
.toast.info    { border-color:rgba(0,212,255,.35); }
.toast svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; flex-shrink:0; }
.toast.success svg { stroke:var(--green); }
.toast.error   svg { stroke:var(--red); }
.toast.info    svg { stroke:var(--cyan); }
@keyframes toastIn { from{opacity:0;transform:translateX(16px)} to{opacity:1;transform:translateX(0)} }

/* ─ MODAL ─ */
.modal-overlay {
  position:fixed; inset:0; z-index:8000;
  background:rgba(0,0,0,.75); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  display:none; align-items:flex-start; justify-content:center;
  padding:2rem 1rem; overflow-y:auto;
}
.modal-overlay.show { display:flex; }
.modal-box {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:14px; padding:2rem;
  max-width:720px; width:100%;
  position:relative; margin:auto;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
}
.modal-close {
  position:absolute; top:1rem; right:1rem;
  width:30px; height:30px;
  background:var(--bg3); border:1px solid var(--border);
  border-radius:7px; display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--muted); transition:all .2s;
}
.modal-close:hover { border-color:var(--red); color:var(--red); }
.modal-close svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.modal-title { font-family:var(--fh); font-size:1.1rem; font-weight:800; margin-bottom:.3rem; padding-right:2rem; }
.modal-date  { font-size:.72rem; color:var(--muted); margin-bottom:1.2rem; }
.modal-body h3 { color:var(--cyan); margin:1.4rem 0 .5rem; font-size:.88rem; }
.modal-body h3:first-child { margin-top:0; }
.modal-body p  { font-size:.82rem; color:var(--muted); line-height:1.75; margin-bottom:.7rem; }
.modal-body ul { font-size:.82rem; color:var(--muted); line-height:1.75; margin-bottom:.7rem; padding-left:1.1rem; }
.modal-body li { margin-bottom:.25rem; }
.modal-body strong { color:var(--white); }
.modal-body a { color:var(--cyan); }
.modal-highlight {
  background:rgba(0,212,255,.07); border:1px solid var(--border);
  border-radius:7px; padding:.9rem; margin:.7rem 0;
  font-size:.79rem; color:var(--muted);
}

/* ─ COOKIE BANNER ─ */
#cookie-banner {
  position:fixed; bottom:0; left:0; right:0; z-index:9000;
  background:rgba(7,12,24,.97); border-top:1px solid var(--border);
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  padding:1.1rem 5%;
  display:flex; align-items:center; justify-content:space-between;
  gap:1.5rem; flex-wrap:wrap;
  transform:translateY(100%); transition:transform .4s ease;
}
#cookie-banner.show { transform:translateY(0); }
.cookie-text { flex:1; min-width:250px; }
.cookie-text h3 { font-family:var(--fh); font-size:.85rem; font-weight:700; margin-bottom:.3rem; }
.cookie-text p  { font-size:.75rem; color:var(--muted); line-height:1.5; }
.cookie-text a  { color:var(--cyan); cursor:pointer; }
.cookie-btns { display:flex; gap:.5rem; flex-shrink:0; flex-wrap:wrap; }
.c-btn { padding:.5rem 1rem; border-radius:6px; font-size:.76rem; font-weight:600; cursor:pointer; border:none; font-family:var(--fb); transition:all .2s; }
.c-accept  { background:var(--cyan); color:var(--bg); }
.c-accept:hover { background:var(--green); }
.c-reject  { background:var(--bg2); color:var(--muted); border:1px solid var(--border); }
.c-reject:hover { border-color:var(--red); color:var(--red); }
.c-config  { background:transparent; color:var(--cyan); border:1px solid rgba(0,212,255,.3); }
.c-config:hover { background:rgba(0,212,255,.07); }

/* Cookie prefs modal */
#cookie-prefs-modal {
  position:fixed; inset:0; z-index:9100;
  background:rgba(0,0,0,.7); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  display:none; align-items:center; justify-content:center; padding:1rem;
}
#cookie-prefs-modal.show { display:flex; }
.cpm-box {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:14px; padding:1.8rem;
  max-width:500px; width:100%; max-height:90vh; overflow-y:auto;
}
.cpm-box h3 { font-family:var(--fh); font-size:1rem; font-weight:700; margin-bottom:.4rem; }
.cpm-box > p { font-size:.79rem; color:var(--muted); margin-bottom:1.2rem; line-height:1.6; }
.ck-cat { background:var(--bg); border:1px solid var(--border); border-radius:9px; padding:1rem; margin-bottom:.7rem; }
.ck-cat-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:.4rem; }
.ck-cat-title  { font-weight:700; font-size:.84rem; }
.ck-cat-desc   { font-size:.76rem; color:var(--muted); line-height:1.55; }
.toggle { position:relative; width:38px; height:21px; flex-shrink:0; }
.toggle input { opacity:0; width:0; height:0; }
.toggle-slider { position:absolute; inset:0; background:var(--muted2); border-radius:21px; cursor:pointer; transition:.3s; }
.toggle-slider::before { content:''; position:absolute; height:15px; width:15px; left:3px; bottom:3px; background:white; border-radius:50%; transition:.3s; }
.toggle input:checked + .toggle-slider { background:var(--cyan); }
.toggle input:checked + .toggle-slider::before { transform:translateX(17px); }
.toggle input:disabled + .toggle-slider { opacity:.5; cursor:not-allowed; }

/* ─ SIDEBAR LAYOUT ─ */
.app-layout { display:flex; height:100vh; overflow:hidden; }
.sidebar {
  width:220px; min-width:220px; height:100vh;
  background:var(--bg2); border-right:1px solid var(--border);
  display:flex; flex-direction:column; overflow:hidden;
  transition:width .3s;
}
.sidebar.collapsed { width:56px; min-width:56px; }
.sb-header {
  padding:1rem .9rem; border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:.7rem; min-height:58px;
}
.sb-logo { font-family:var(--fh); font-size:1.3rem; font-weight:800; white-space:nowrap; overflow:hidden; transition:opacity .3s; }
.sb-logo .acc { color:var(--cyan); }
.sidebar.collapsed .sb-logo { opacity:0; width:0; }
.sb-toggle {
  width:26px; height:26px; background:var(--bg3);
  border:1px solid var(--border); border-radius:5px;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:background .2s;
}
.sb-toggle:hover { background:rgba(0,212,255,.1); }
.sb-toggle svg { width:12px; height:12px; stroke:var(--cyan); fill:none; stroke-width:2; stroke-linecap:round; transition:transform .3s; }
.sidebar.collapsed .sb-toggle svg { transform:rotate(180deg); }
.sb-user {
  padding:.8rem .9rem; border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:.65rem; min-height:58px; overflow:hidden;
}
.sb-av {
  width:32px; height:32px; border-radius:50%;
  background:linear-gradient(135deg,var(--cyan),var(--green));
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:.75rem; color:var(--bg); flex-shrink:0;
}
.sb-user-info { overflow:hidden; transition:opacity .3s; }
.sidebar.collapsed .sb-user-info { opacity:0; width:0; }
.sb-user-name  { font-weight:600; font-size:.82rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-user-role  { font-size:.67rem; color:var(--cyan); }
.sb-nav { flex:1; overflow-y:auto; padding:.5rem .4rem; }
.nav-section {
  font-size:.62rem; font-weight:700; letter-spacing:.11em;
  text-transform:uppercase; color:var(--muted2);
  padding:.45rem .55rem; margin-top:.4rem;
  white-space:nowrap; overflow:hidden; transition:opacity .3s;
}
.sidebar.collapsed .nav-section { opacity:0; }
.nav-item {
  display:flex; align-items:center; gap:.65rem;
  padding:.58rem .75rem; border-radius:var(--r);
  cursor:pointer; transition:all .18s; color:var(--muted);
  font-size:.8rem; font-weight:500; white-space:nowrap;
  overflow:hidden; border:none; background:transparent;
  width:100%; text-align:left; font-family:var(--fb);
  position:relative;
}
.nav-item:hover { background:rgba(0,212,255,.07); color:var(--white); }
.nav-item.active { background:rgba(0,212,255,.13); color:var(--cyan); }
.nav-item svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.nav-label { transition:opacity .3s; }
.sidebar.collapsed .nav-label { opacity:0; }
.nav-badge {
  margin-left:auto; background:var(--red); color:#fff;
  font-size:.6rem; font-weight:700; padding:.08rem .4rem;
  border-radius:20px; flex-shrink:0; transition:opacity .3s;
}
.sidebar.collapsed .nav-badge { opacity:0; }
.sb-footer { padding:.6rem .4rem; border-top:1px solid var(--border); }

/* ─ MAIN AREA ─ */
.main-area { flex:1; display:flex; flex-direction:column; height:100vh; overflow:hidden; }
.topbar {
  height:58px; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 1.3rem; background:rgba(7,12,24,.92);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); flex-shrink:0;
}
.topbar-left  { display:flex; align-items:center; gap:.8rem; }
.topbar-right { display:flex; align-items:center; gap:.65rem; }
.page-title   { font-family:var(--fh); font-size:.95rem; font-weight:700; }
.page-crumb   { font-size:.7rem; color:var(--muted); padding:.18rem .55rem; background:var(--bg2); border-radius:20px; border:1px solid var(--border); }
.topbar-clock { font-size:.75rem; color:var(--muted); font-variant-numeric:tabular-nums; }
.online-pill  { display:flex; align-items:center; gap:.35rem; font-size:.7rem; color:var(--muted); }
.online-dot   { width:6px; height:6px; border-radius:50%; background:var(--green); animation:pulse 2s infinite; }
.icon-btn {
  width:32px; height:32px; background:var(--bg2);
  border:1px solid var(--border); border-radius:var(--r);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:all .2s; position:relative;
}
.icon-btn:hover { border-color:var(--cyan); background:rgba(0,212,255,.08); }
.icon-btn svg { width:15px; height:15px; fill:none; stroke:var(--muted); stroke-width:1.8; stroke-linecap:round; }
.icon-btn:hover svg { stroke:var(--cyan); }
.notif-dot { position:absolute; top:4px; right:4px; width:6px; height:6px; border-radius:50%; background:var(--red); border:1.5px solid var(--bg2); }
.view-area { flex:1; overflow-y:auto; padding:1.3rem; }

/* ─ VIEW TRANSITIONS ─ */
.view { display:none; animation:fadeUp .25s ease both; }
.view.active { display:block; }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ─ ADMIN BAR ─ */
.admin-bar {
  background:rgba(255,92,40,.07); border-bottom:1px solid rgba(255,92,40,.2);
  padding:.4rem 1.3rem; font-size:.74rem;
  display:flex; align-items:center; gap:.5rem; color:#ffb49a;
}
.admin-bar svg { width:13px; height:13px; stroke:var(--orange); fill:none; stroke-width:2; flex-shrink:0; }

/* ─ TICKET CARDS ─ */
.ticket-card {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:10px; padding:.95rem 1.1rem;
  cursor:pointer; transition:all .2s;
  display:flex; align-items:flex-start; gap:.85rem;
  margin-bottom:.6rem;
}
.ticket-card:hover { border-color:var(--border2); transform:translateX(3px); }
.tc-icon {
  width:36px; height:36px; border-radius:8px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.tc-icon svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.tc-info { flex:1; min-width:0; }
.tc-title { font-weight:600; font-size:.85rem; margin-bottom:.2rem; }
.tc-meta  { font-size:.7rem; color:var(--muted); display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.tc-preview { font-size:.75rem; color:var(--muted); margin-top:.25rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tc-right { text-align:right; flex-shrink:0; }
.p-dot { width:7px; height:7px; border-radius:50%; display:inline-block; }
.p-alta  { background:var(--red); }
.p-media { background:var(--yellow); }
.p-baja  { background:var(--green); }
.unread-dot { width:7px; height:7px; border-radius:50%; background:var(--cyan); flex-shrink:0; margin-top:4px; }

/* ─ MESSAGES ─ */
.msg-list { display:flex; flex-direction:column; gap:.65rem; max-height:320px; overflow-y:auto; padding:.4rem 0; }
.msg-row  { display:flex; gap:.6rem; max-width:84%; }
.msg-row.own { align-self:flex-end; flex-direction:row-reverse; }
.msg-av2 { width:28px; height:28px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:.65rem; font-weight:800; }
.msg-bubble { background:var(--bg3); border:1px solid var(--border); border-radius:9px; padding:.55rem .85rem; font-size:.78rem; line-height:1.55; }
.msg-row.own .msg-bubble { background:rgba(0,212,255,.1); border-color:rgba(0,212,255,.22); }
.msg-time { font-size:.62rem; color:var(--muted); margin-top:.25rem; text-align:right; }
.typing-dots { display:flex; gap:3px; padding:.55rem .85rem; background:var(--bg3); border:1px solid var(--border); border-radius:9px; width:fit-content; }
.typing-dot { width:5px; height:5px; border-radius:50%; background:var(--muted); animation:tdot 1.2s infinite; }
.typing-dot:nth-child(2) { animation-delay:.2s; }
.typing-dot:nth-child(3) { animation-delay:.4s; }
@keyframes tdot { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-5px)} }

/* ─ UPLOAD ZONE ─ */
.upload-zone {
  border:2px dashed var(--border); border-radius:10px;
  padding:2rem; text-align:center; cursor:pointer;
  transition:all .2s; background:rgba(0,212,255,.015);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color:var(--cyan); background:rgba(0,212,255,.045);
}
.upload-zone svg { width:36px; height:36px; stroke:var(--muted); fill:none; stroke-width:1.5; margin-bottom:.6rem; }
.upload-zone p { font-size:.8rem; color:var(--muted); }
.upload-zone strong { color:var(--cyan); }
.file-item {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:var(--r); padding:.65rem .9rem;
  display:flex; align-items:center; gap:.7rem;
  margin-bottom:.5rem;
}
.fi-icon { width:30px; height:30px; background:rgba(0,212,255,.1); border-radius:6px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.fi-icon svg { width:14px; height:14px; stroke:var(--cyan); fill:none; stroke-width:1.8; }
.fi-name { font-size:.79rem; font-weight:500; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fi-size { font-size:.68rem; color:var(--muted); }

/* ─ CALENDAR ─ */
.cal-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:.7rem; }
.cal-month  { font-weight:700; font-size:.85rem; }
.cal-grid-names { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; margin-bottom:2px; }
.cal-dn { font-size:.63rem; color:var(--muted); text-align:center; padding:.25rem 0; font-weight:600; }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.cal-day {
  aspect-ratio:1; display:flex; align-items:center; justify-content:center;
  border-radius:5px; font-size:.74rem; cursor:pointer;
  transition:all .18s; position:relative;
}
.cal-day:hover    { background:rgba(0,212,255,.1); color:var(--cyan); }
.cal-day.selected { background:var(--cyan); color:var(--bg); font-weight:700; }
.cal-day.today    { border:1px solid var(--cyan); color:var(--cyan); }
.cal-day.other    { color:var(--muted2); cursor:not-allowed; }
.cal-day.has-ev::after { content:''; width:4px; height:4px; border-radius:50%; background:var(--green); position:absolute; bottom:2px; }
.time-slots { display:grid; grid-template-columns:1fr 1fr; gap:.4rem; margin-top:.8rem; }
.ts-slot {
  padding:.45rem .7rem; border:1px solid var(--border);
  border-radius:6px; font-size:.75rem; text-align:center;
  cursor:pointer; transition:all .18s; color:var(--muted);
}
.ts-slot:hover, .ts-slot.selected { border-color:var(--cyan); color:var(--cyan); background:rgba(0,212,255,.07); }
.ts-slot.booked { opacity:.35; cursor:not-allowed; background:var(--bg3); pointer-events:none; }

/* ─ VIDEO CALL ─ */
/* VIDEO POPUP */
#video-screen {
  position:fixed;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:min(900px, 95vw);
  height:min(620px, 90vh);
  background:var(--bg4);
  z-index:500;
  display:none;
  flex-direction:column;
  border-radius:14px;
  border:1px solid rgba(0,212,255,.3);
  box-shadow:0 24px 80px rgba(0,0,0,.7);
  overflow:hidden;
  resize:both;
}
#video-screen.active { display:flex; }
/* Backdrop */
#video-backdrop {
  display:none;
  position:fixed; inset:0;
  background:rgba(0,0,0,.6);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  z-index:499;
}
#video-backdrop.active { display:block; }
.vc-header {
  padding:.8rem 1.3rem; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(7,12,24,.95); flex-shrink:0;
}
.vc-body { flex:1; display:flex; min-height:0; }
.vc-grid { flex:1; display:grid; grid-template-columns:1fr 1fr; gap:.8rem; padding:.8rem; }
.vc-box {
  background:var(--bg3); border:1px solid var(--border);
  border-radius:12px; overflow:hidden; position:relative;
  display:flex; align-items:center; justify-content:center; min-height:200px;
}
.vc-box video { width:100%; height:100%; object-fit:cover; transform:scaleX(-1); }
.vc-box canvas { width:100%; height:100%; object-fit:cover; }
.vc-label { position:absolute; bottom:.6rem; left:.6rem; background:rgba(0,0,0,.6); border-radius:5px; padding:.18rem .55rem; font-size:.7rem; -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.vc-status { position:absolute; top:.6rem; right:.6rem; width:7px; height:7px; border-radius:50%; background:var(--green); animation:pulse 2s infinite; }
.vc-connecting { position:absolute; inset:0; background:rgba(7,12,24,.85); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.7rem; z-index:10; }
.vc-spinner { width:36px; height:36px; border:3px solid var(--border); border-top-color:var(--cyan); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }
.vc-controls {
  padding:.9rem 1.3rem; border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; gap:.9rem;
  background:rgba(7,12,24,.95); flex-shrink:0;
}
.ctrl {
  width:46px; height:46px; border-radius:50%; border:none;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:all .22s;
}
.ctrl svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.ctrl-mic, .ctrl-cam, .ctrl-scr, .ctrl-chat-btn { background:var(--bg3); color:var(--white); border:1px solid var(--border); }
.ctrl-mic:hover, .ctrl-cam:hover, .ctrl-scr:hover, .ctrl-chat-btn:hover { border-color:var(--cyan); }
.ctrl-mic.off, .ctrl-cam.off { background:rgba(255,59,92,.2); color:var(--red); border-color:rgba(255,59,92,.4); }
.ctrl-end { background:var(--red); color:#fff; width:52px; height:52px; }
.ctrl-end:hover { box-shadow:0 4px 18px rgba(255,59,92,.4); }
.vc-chat { width:260px; border-left:1px solid var(--border); display:flex; flex-direction:column; background:var(--bg2); }
.vcc-header { padding:.8rem .9rem; border-bottom:1px solid var(--border); font-weight:700; font-size:.83rem; }
.vcc-msgs { flex:1; overflow-y:auto; padding:.7rem; display:flex; flex-direction:column; gap:.5rem; }
.vcc-msg { font-size:.75rem; line-height:1.5; }
.vcc-msg strong { color:var(--cyan); }
.vcc-input-row { display:flex; gap:.4rem; padding:.6rem; border-top:1px solid var(--border); }
.vcc-input { flex:1; background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:.45rem .65rem; color:var(--white); font-family:var(--fb); font-size:.77rem; outline:none; }
.vcc-input:focus { border-color:var(--cyan); }

/* ─ NOTIF DROPDOWN ─ */
.notif-panel {
  position:fixed;
  width:320px;
  max-height:calc(100vh - 70px);
  background:var(--bg2);
  border:1px solid var(--border);
  border-radius:11px;
  box-shadow:0 8px 30px rgba(0,0,0,.6);
  z-index:9999;
  display:none;
  flex-direction:column;
  overflow:hidden;
}
#notif-list {
  overflow-y:auto;
  max-height:calc(100vh - 130px);
}
.notif-panel.show { display:flex; flex-direction:column; }
.np-header { padding:.75rem .9rem; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; font-weight:700; font-size:.82rem; }
.np-item { padding:.7rem .9rem; border-bottom:1px solid rgba(0,212,255,.05); display:flex; gap:.6rem; align-items:flex-start; cursor:pointer; transition:background .18s; }
.np-item:hover { background:rgba(0,212,255,.04); }
.np-item.unread { background:rgba(0,212,255,.04); }
.np-dot { width:7px; height:7px; border-radius:50%; background:var(--cyan); flex-shrink:0; margin-top:3px; }
.np-text { font-size:.76rem; line-height:1.5; }
.np-time { font-size:.65rem; color:var(--muted); margin-top:.2rem; }

/* ─ AUTH PAGE ─ */
.auth-page { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:1.5rem; overflow-y:auto; }
.auth-glow  { position:fixed; top:-180px; right:-150px; width:550px; height:550px; background:radial-gradient(circle,rgba(0,212,255,.09)0%,transparent 68%); pointer-events:none; }
.auth-glow2 { position:fixed; bottom:-100px; left:-100px; width:450px; height:450px; background:radial-gradient(circle,rgba(255,92,40,.07)0%,transparent 68%); pointer-events:none; }
.auth-card {
  background:var(--card); border:1px solid var(--border);
  border-radius:16px; padding:2.2rem;
  width:100%; max-width:450px;
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); position:relative; z-index:1;
  box-shadow:0 24px 70px rgba(0,0,0,.6);
}
.auth-logo-wrap { text-align:center; margin-bottom:1.5rem; }
.auth-tabs { display:flex; background:var(--bg); border-radius:var(--r); padding:3px; margin-bottom:1.5rem; gap:3px; }
.auth-tab { flex:1; padding:.55rem; text-align:center; border-radius:5px; font-size:.78rem; font-weight:600; cursor:pointer; transition:all .2s; color:var(--muted); border:none; background:transparent; font-family:var(--fb); }
.auth-tab.active { background:var(--cyan); color:var(--bg); }
.demo-box { background:rgba(0,212,255,.05); border:1px solid var(--border); border-radius:var(--r); padding:.8rem; margin-top:1rem; font-size:.75rem; }
.demo-box strong { color:var(--cyan); display:block; margin-bottom:.3rem; }
.demo-box span { color:var(--muted); }

/* ─ PROFILE ─ */
.profile-header { background:var(--bg2); border:1px solid var(--border); border-radius:11px; padding:1.3rem; display:flex; align-items:center; gap:1.3rem; margin-bottom:1.1rem; }
.profile-av-lg { width:64px; height:64px; border-radius:50%; background:linear-gradient(135deg,var(--cyan),var(--green)); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.3rem; color:var(--bg); flex-shrink:0; }
.profile-tags { display:flex; gap:.4rem; margin-top:.4rem; flex-wrap:wrap; }
.ptag { font-size:.67rem; padding:.14rem .5rem; border-radius:20px; border:1px solid var(--border); color:var(--muted); }

/* ─ CHATBOT ─ */
#chatbot { position:fixed; bottom:1.5rem; right:1.5rem; z-index:7000; }
.chat-fab {
  width:52px; height:52px; background:var(--cyan); border-radius:50%;
  border:none; cursor:pointer; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 22px rgba(0,212,255,.4); transition:all .3s; position:relative;
}
.chat-fab:hover { background:var(--green); transform:scale(1.07); }
.chat-fab svg { width:22px; height:22px; fill:none; stroke:var(--bg); stroke-width:2; stroke-linecap:round; }
.chat-notif-badge { position:absolute; top:-3px; right:-3px; width:16px; height:16px; background:var(--red); border-radius:50%; border:2px solid var(--bg); display:flex; align-items:center; justify-content:center; font-size:.58rem; font-weight:800; color:#fff; }
.chat-win {
  position:absolute; bottom:62px; right:0; width:340px;
  background:var(--bg2); border:1px solid var(--border);
  border-radius:14px; box-shadow:0 18px 55px rgba(0,0,0,.6);
  display:none; flex-direction:column; overflow:hidden;
  max-height:490px;
}
.chat-win.open { display:flex; }
.chat-win-header {
  padding:.85rem 1rem; background:linear-gradient(135deg,rgba(0,212,255,.1),var(--bg3));
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:.7rem;
}
.chat-av-sm { width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,var(--cyan),var(--green)); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:.72rem; color:var(--bg); flex-shrink:0; }
.chat-agent-name  { font-weight:700; font-size:.84rem; }
.chat-agent-status { font-size:.68rem; color:var(--green); display:flex; align-items:center; gap:.28rem; }
.chat-agent-status::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--green); }
.chat-close { width:26px; height:26px; background:var(--bg3); border:1px solid var(--border); border-radius:6px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--muted); transition:all .18s; margin-left:auto; }
.chat-close:hover { border-color:var(--red); color:var(--red); }
.chat-close svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.chat-msgs { flex:1; overflow-y:auto; padding:.9rem; display:flex; flex-direction:column; gap:.6rem; min-height:180px; }
.chat-msg2 { display:flex; gap:.5rem; max-width:87%; }
.chat-msg2.user { align-self:flex-end; flex-direction:row-reverse; }
.chat-av-xs { width:24px; height:24px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:.58rem; font-weight:800; margin-top:2px; }
.chat-bub { background:var(--bg3); border:1px solid var(--border); border-radius:9px; padding:.5rem .75rem; font-size:.77rem; line-height:1.5; }
.chat-msg2.user .chat-bub { background:rgba(0,212,255,.1); border-color:rgba(0,212,255,.22); }
.chat-suggs { display:flex; flex-wrap:wrap; gap:.35rem; padding:.45rem .9rem; border-top:1px solid var(--border); }
.chat-sugg { font-size:.69rem; padding:.22rem .6rem; background:var(--bg3); border:1px solid var(--border); border-radius:20px; cursor:pointer; color:var(--muted); transition:all .18s; }
.chat-sugg:hover { border-color:var(--cyan); color:var(--cyan); }
.chat-input-row { display:flex; gap:.45rem; padding:.7rem .9rem; border-top:1px solid var(--border); }
.chat-inp { flex:1; background:var(--bg); border:1px solid var(--border); border-radius:7px; padding:.48rem .72rem; color:var(--white); font-family:var(--fb); font-size:.78rem; outline:none; transition:border-color .2s; }
.chat-inp:focus { border-color:var(--cyan); }
.chat-send { width:30px; height:30px; background:var(--cyan); border:none; border-radius:7px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .2s; flex-shrink:0; }
.chat-send:hover { background:var(--green); }
.chat-send svg { width:13px; height:13px; fill:none; stroke:var(--bg); stroke-width:2; stroke-linecap:round; }

/* ─ ANIMATIONS ─ */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.reveal { opacity:0; transform:translateY(18px); transition:opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
/* Hero always visible — no reveal animation above the fold */
#hero .reveal, #hero .hero-stats { opacity:1; transform:none; }

/* ─ STATUS PILL ─ */
.status-pill { display:flex; align-items:center; gap:.5rem; background:rgba(0,255,178,.06); border:1px solid rgba(0,255,178,.2); border-radius:7px; padding:.5rem .9rem; font-size:.76rem; margin-bottom:1rem; }
.status-pill svg { width:12px; height:12px; stroke:var(--green); fill:none; stroke-width:2; flex-shrink:0; }

/* ─ GRIDS ─ */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:1rem; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:.9rem; margin-bottom:1.3rem; }

/* ─ RESPONSIVE ─ */
@media(max-width:1100px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns:1fr; }
  .sidebar { width:56px; min-width:56px; }
  .sidebar .sb-logo, .sidebar .sb-user-info, .sidebar .nav-label, .sidebar .nav-badge, .sidebar .nav-section { opacity:0; width:0; overflow:hidden; }
}
@media(max-width:768px) {
  .vc-grid { grid-template-columns:1fr; }
  .vc-chat { display:none; }
  section { padding:60px 4%; }
  .stats-grid { grid-template-columns:1fr 1fr; }
}
@media(max-width:480px) {
  .stats-grid { grid-template-columns:1fr; }
  .form-grid-2 { grid-template-columns:1fr; }
  .cookie-btns { flex-direction:column; width:100%; }
}

/* Light mode for public web */
[data-theme="light"] .pub-nav { background:#ffffff !important; }
[data-theme="light"] .pub-nav a { color:#334155; }
[data-theme="light"] .pub-nav a:hover { color:#0284c7; }
[data-theme="light"] .nav-portal { border-color:#0284c7; color:#0284c7 !important; }
[data-theme="light"] .nav-cta { background:#0284c7; }
[data-theme="light"] section { background:var(--bg) !important; }
[data-theme="light"] .feat-card,
[data-theme="light"] .sector-card,
[data-theme="light"] .step-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .cform { background:#ffffff !important; border-color:#e2e8f0 !important; }
[data-theme="light"] h1,[data-theme="light"] h2,[data-theme="light"] h3 { color:#0f172a; }
[data-theme="light"] .footer-bar { background:#0f172a; }

/* ── RESPONSIVE MÓVIL (admin + cliente) ─────────── */
@media (max-width: 768px) {
  /* App layout: sidebar se oculta, toggle lo muestra */
  .app-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: -260px; top: 0; bottom: 0; width: 260px;
    z-index: 400; transition: left .25s ease; box-shadow: none;
  }
  .sidebar.mobile-open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,.5);
  }
  .main-area { margin-left: 0 !important; }

  /* Topbar: mostrar botón hamburguesa */
  .topbar { padding: .6rem 1rem; gap: .6rem; }
  .topbar-left { gap: .5rem; }
  .page-title { font-size: .85rem; }
  #global-search { display: none; } /* ocultar búsqueda en móvil */

  /* Hamburger button */
  #mob-menu-btn { display: flex !important; }

  /* View area */
  .view-area { padding: .8rem; }

  /* Grids: 1 columna en móvil */
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }

  /* Panels: sin overflow horizontal */
  .panel { overflow-x: auto; }
  table { min-width: 500px; }

  /* Botones de acción en tabla: más pequeños */
  .btn-sm { font-size: .7rem; padding: .25rem .5rem; }

  /* Modal overlay: scroll */
  .modal-overlay .modal { max-height: 90vh; overflow-y: auto; }

  /* Videollamada: full screen en móvil */
  #admin-video-screen { padding: 0; }
  #video-screen .vc-grid { grid-template-columns: 1fr; }

  /* Chat en móvil */
  #chat-win { width: calc(100vw - 1.5rem); right: .75rem; }

  /* Overlay para cerrar sidebar */
  #mob-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 399; }
  #mob-overlay.show { display: block; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr !important; }
  .auth-card { padding: 1.5rem 1.2rem; }
  .creds-hint { font-size: .7rem; }
}

/* Hamburger button — oculto por defecto en desktop */
#mob-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; align-items: center; justify-content: center; }


/* Admin video popup header — draggable cursor */
#admin-video-screen .vc-header,
#admin-video-screen > div:first-child { cursor:move; }

/* Ticket urgente — fondo y borde rojo sutil */
.ticket-card.urgent {
  border-left: 3px solid var(--red) !important;
  background: rgba(255,59,92,.04) !important;
}
.ticket-card.urgent:hover { border-color: var(--red); }
.ticket-card.urgent .tc-title { color: var(--red); }
.urgent-pulse {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  animation: urgentPulse 1.2s ease-in-out infinite;
  margin-right: .3rem;
  vertical-align: middle;
}
@keyframes urgentPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* ─ ACCESSIBILITY ─ */
/* Visible focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.btn:focus-visible,
.nav-item:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0,212,255,.15);
}
/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--cyan);
  color: var(--bg);
  padding: .6rem 1.2rem;
  border-radius: var(--r);
  font-weight: 700;
  z-index: 10000;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
