/* ═══════════════════════════════════════
   AS · AsesorComercial.es · Global CSS
   ═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* DEFAULT = LIGHT THEME */
:root {
  --bg:     #ffffff;
  --bg2:    #ffffff;
  --bg3:    #f5f5f7;
  --bg4:    #f5f5f7;
  --cyan:   #0071e3;
  --green:  #34c759;
  --orange: #ff9500;
  --red:    #ff3b30;
  --yellow: #ffcc00;
  --purple: #af52de;
  --white:  #1d1d1f;
  --muted:  #86868b;
  --muted2: #aeaeb2;
  --border: rgba(0,0,0,.06);
  --border2:rgba(0,113,227,.2);
  --card:   rgba(255,255,255,1);
  --r: 12px;
  --fh: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fb: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── MODO CLARO ── */
[data-theme="light"] {
  --bg:    #ffffff;
  --bg2:   #ffffff;
  --bg3:   #f5f5f7;
  --bg4:   #f5f5f7;
  --text:  #1d1d1f;
  --white: #1d1d1f;
  --muted: #86868b;
  --muted2:#aeaeb2;
  --border: rgba(0,0,0,.06);
  --border2:rgba(0,113,227,.2);
  --cyan:   #0071e3;
  --green:  #34c759;
  --red:    #ff3b30;
  --yellow: #ffcc00;
  --orange: #ff9500;
  --purple: #af52de;
  --card:   rgba(255,255,255,1);
}
/* DARK THEME */
[data-theme="dark"] {
  --bg:     #000000;
  --bg2:    #1c1c1e;
  --bg3:    #2c2c2e;
  --bg4:    #1c1c1e;
  --cyan:   #0a84ff;
  --green:  #30d158;
  --orange: #ff9f0a;
  --red:    #ff453a;
  --yellow: #ffd60a;
  --purple: #bf5af2;
  --white:  #f5f5f7;
  --muted:  #98989d;
  --muted2: #636366;
  --border: rgba(255,255,255,.08);
  --border2:rgba(10,132,255,.25);
  --card:   rgba(28,28,30,0.95);
}
/* Sidebar stays dark in light mode for contrast */
[data-theme="light"] .sidebar { background:#1d1d1f; color:#f5f5f7; }
[data-theme="light"] .sidebar .nav-item { color:#aeaeb2; }
[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:#f5f5f7; }
[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 rgba(0,0,0,.06); box-shadow:0 1px 8px rgba(0,0,0,.04); }
[data-theme="light"] .admin-bar { background:#1e40af; }
[data-theme="light"] .panel { background:#ffffff; box-shadow:0 2px 12px rgba(0,0,0,.08); border-color:rgba(0,0,0,.06); }
[data-theme="light"] .form-input { background:#ffffff; border-color:rgba(0,0,0,.1); color:#1d1d1f; }
[data-theme="light"] .form-input:focus { border-color:#0071e3; box-shadow:0 0 0 4px rgba(0,113,227,.12); }
[data-theme="light"] .page-title { color:#1d1d1f; }
[data-theme="light"] .panel-title { color:#1d1d1f; border-color:#e5e5ea; }
[data-theme="light"] .icon-btn { border-color:#e5e5ea; }
[data-theme="light"] .stats-grid .stat-card { background:#ffffff; border-color:#e5e5ea; }
[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: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  display:none;
}

/* ─ SCROLLBAR ─ */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(0,0,0,.15); border-radius:10px; }
::-webkit-scrollbar-thumb:hover { background:rgba(0,0,0,.25); }

/* ─ TYPOGRAPHY ─ */
h1 {
  font-family:var(--fh);
  font-size: 3rem;
  font-weight:700; line-height:1.08; letter-spacing:-0.03em;
}
h2 {
  font-family:var(--fh);
  font-size: 2.2rem;
  font-weight:600; line-height:1.15; letter-spacing:-0.02em;
  margin-bottom:1rem;
}
h3 {
  font-family:var(--fh);
  font-size:1.2rem;
  font-weight:600; line-height:1.3; margin-bottom:.5rem;
}
h2 .c { color:var(--cyan); }
p { font-size:0.95rem; line-height:1.75; color:var(--muted); }

/* ─ 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:100px 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:.5rem;
  padding:.75rem 1.5rem; border-radius:980px;
  font-size:.85rem; font-weight:600;
  cursor:pointer; border:none;
  font-family:var(--fb); transition:all .3s cubic-bezier(.25,.1,.25,1);
  text-decoration:none;
}
.btn svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.btn-primary { background:#0071e3; color:#fff; border-radius:980px; }
.btn-primary:hover { background:#0077ED; transform:translateY(-1px); box-shadow:0 4px 16px rgba(0,113,227,.3); }
.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:.88rem 2rem; font-size:.95rem; }
.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:12px;
  padding:.75rem 1rem; color:var(--white);
  font-family:var(--fb); font-size:.88rem; outline:none;
  transition:all .3s cubic-bezier(.25,.1,.25,1);
  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:16px; padding:1.5rem;
  box-shadow:0 2px 12px rgba(0,0,0,.08);
  transition:all .3s cubic-bezier(.25,.1,.25,1);
}
.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:16px; padding:1.5rem;
  box-shadow:0 2px 12px rgba(0,0,0,.08);
  transition:all .3s cubic-bezier(.25,.1,.25,1);
}
.card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,.12); }

/* ─ STAT CARDS ─ */
.stat-card {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:16px; padding:1.3rem;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
  transition:all .3s cubic-bezier(.25,.1,.25,1);
}
.stat-card:hover { box-shadow:0 6px 20px rgba(0,0,0,.1); 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:14px; padding:.8rem 1.2rem;
  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:18px; padding:2.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:12px; 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:#0071e3; text-decoration:none; }
.modal-highlight {
  background:rgba(0,212,255,.07); border:1px solid var(--border);
  border-radius:12px; 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:12px; 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:12px; 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:12px; 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:#48484a; }
[data-theme="light"] .pub-nav a:hover { color:#0071e3; }
[data-theme="light"] .nav-portal { border-color:#0071e3; color:#0071e3 !important; }
[data-theme="light"] .nav-cta { background:#0071e3; }

[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:#e5e5ea !important; }
[data-theme="light"] h1,[data-theme="light"] h2,[data-theme="light"] h3 { color:#1d1d1f; }
[data-theme="light"] .footer-bar { background:#1d1d1f; }

/* ── 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;
  }
}

/* ══════════════════════════════════════════════════════════
   LIGHT THEME — Complete overrides for asesorcomercial.es
   ═════════════════════════════════════════════════════════ */

/* ── Variables extension ── */
[data-theme="light"] {
  --card: rgba(255,255,255,0.95);
  --bg4: #e8edf3;
  --muted2: #aeaeb2;
  --border2: rgba(0,132,199,0.25);
}

/* ── Body & general text ── */
[data-theme="light"] body {
  background: var(--bg);
  color: #1d1d1f;
}

[data-theme="light"] p,
[data-theme="light"] li,
[data-theme="light"] span,
[data-theme="light"] div,
[data-theme="light"] td,
[data-theme="light"] label {
  color: inherit;
}

/* ── Hero section ── */
[data-theme="light"] .hero { background: linear-gradient(135deg, #f0f4ff 0%, #dbeafe 50%, #f0f4ff 100%) !important; }
[data-theme="light"] .hero h1 { color: #1d1d1f !important; }
[data-theme="light"] .hero p { color: #636366 !important; }
[data-theme="light"] .hero .badge,
[data-theme="light"] .hero-badge { background: rgba(2,132,199,0.1) !important; color: #0071e3 !important; border-color: rgba(2,132,199,0.2) !important; }

/* ── Stat cards in hero ── */
[data-theme="light"] .stat-item,
[data-theme="light"] .hero-stat {
  background: rgba(255,255,255,0.8) !important;
  border-color: #e5e5ea !important;
}
[data-theme="light"] .stat-item span,
[data-theme="light"] .hero-stat span { color: #636366 !important; }

/* ── Section titles ── */

/* ── Cards (services, sectors, features, steps, pricing, FAQ) ── */
[data-theme="light"] .feat-card,
[data-theme="light"] .sector-card,
[data-theme="light"] .step-card,
[data-theme="light"] .price-card,
[data-theme="light"] .ref-card,
[data-theme="light"] .test-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .calc-box,
[data-theme="light"] .cform {
  background: #ffffff !important;
  border-color: #e5e5ea !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}

[data-theme="light"] .feat-card:hover,
[data-theme="light"] .sector-card:hover,
[data-theme="light"] .price-card:hover {
  border-color: #0071e3 !important;
  box-shadow: 0 4px 16px rgba(2,132,199,0.12) !important;
}

/* ── Card titles ── */
[data-theme="light"] .feat-card h3,
[data-theme="light"] .sector-card h3,
[data-theme="light"] .step-card h3,
[data-theme="light"] .price-card h3,
[data-theme="light"] .calc-box h3 { color: #1d1d1f !important; }

/* ── Card descriptions ── */
[data-theme="light"] .feat-card p,
[data-theme="light"] .sector-card p,
[data-theme="light"] .step-card p,
[data-theme="light"] .price-card p { color: #636366 !important; }

/* ── Card icons bg ── */
[data-theme="light"] .feat-ico,
[data-theme="light"] .step-num {
  background: rgba(2,132,199,0.08) !important;
}

/* ── Pricing ── */
[data-theme="light"] .price-card .price-val { color: #1d1d1f !important; }
[data-theme="light"] .price-card li { color: #636366 !important; }
[data-theme="light"] .price-card.featured { border-color: #0071e3 !important; background: #f0f9ff !important; }
[data-theme="light"] .price-badge { background: #0071e3 !important; color: #fff !important; }
[data-theme="light"] .guarantee,
[data-theme="light"] [class*="guarantee"] { background: #f0faf2 !important; border-color: #b8f0c8 !important; color: #166534 !important; }

/* ── FAQ ── */
[data-theme="light"] .faq-q { color: #1d1d1f !important; }
[data-theme="light"] .faq-a { color: #636366 !important; }
[data-theme="light"] .faq-item.open { border-color: #0071e3 !important; }

/* ── Testimonials ── */
[data-theme="light"] .test-card { background: #ffffff !important; }
[data-theme="light"] .test-card p { color: #48484a !important; }
[data-theme="light"] .test-card .test-name { color: #1d1d1f !important; }
[data-theme="light"] .test-card .test-role { color: #86868b !important; }
[data-theme="light"] .test-card .test-result { color: #0071e3 !important; }

/* ── Calculator ── */
[data-theme="light"] .calc-box { background: #ffffff !important; }
[data-theme="light"] .calc-box label { color: #48484a !important; }
[data-theme="light"] .calc-box select,
[data-theme="light"] .calc-box input { background: #fbfbfd !important; color: #1d1d1f !important; border-color: #d1d1d6 !important; }

/* ── Contact section ── */
[data-theme="light"] .cinfo-lbl { color: #86868b !important; }
[data-theme="light"] .cinfo-val { color: #1d1d1f !important; }
[data-theme="light"] .cform-title { color: #1d1d1f !important; }
[data-theme="light"] .cform-sub { color: #86868b !important; }
[data-theme="light"] .cform select,
[data-theme="light"] .cform input,
[data-theme="light"] .cform textarea { background: #fbfbfd !important; color: #1d1d1f !important; border-color: #d1d1d6 !important; }

/* ── CTA Band ── */
[data-theme="light"] .cta-band { background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%) !important; }
[data-theme="light"] .cta-band h2,
[data-theme="light"] .cta-band p { color: #ffffff !important; }

/* ── Buttons ── */
[data-theme="light"] .btn-ghost { color: #0071e3 !important; border-color: #0071e3 !important; }
[data-theme="light"] .btn-ghost:hover { background: rgba(2,132,199,0.08) !important; }
[data-theme="light"] .btn-primary { background: #0071e3 !important; color: #ffffff !important; }
[data-theme="light"] .btn-primary:hover { background: #005bb5 !important; }

/* ── Inline color overrides (for elements using var(--white) which becomes dark in light) ── */

[data-theme="light"] [style*="color:var(--muted)"],
[data-theme="light"] [style*="color: var(--muted)"] {
  color: #86868b !important;
}

/* ── Divider ── */
[data-theme="light"] .divider { border-color: #e5e5ea !important; }

/* ── Sections with dark bg patterns ── */

/* ── Alternate section backgrounds ── */

/* ── Cookie banner ── */
[data-theme="light"] .cookie-bar,
[data-theme="light"] [class*="cookie"] {
  background: #ffffff !important;
  border-color: #e5e5ea !important;
  color: #48484a !important;
}

/* ── Chat widget ── */
[data-theme="light"] .chat-win {
  background: #ffffff !important;
  border-color: #e5e5ea !important;
}
[data-theme="light"] .chat-win-header { background: #0071e3 !important; color: #fff !important; }
[data-theme="light"] .chat-msgs { background: #fbfbfd !important; }
[data-theme="light"] .chat-inp { background: #ffffff !important; color: #1d1d1f !important; border-color: #e5e5ea !important; }
[data-theme="light"] .chat-sugg { background: #f0f9ff !important; color: #0071e3 !important; border-color: #b3d7ff !important; }
[data-theme="light"] .chat-fab { background: #0071e3 !important; }

/* ── Footer ── */
[data-theme="light"] .footer-bar { background: #1d1d1f !important; color: #f5f5f7 !important; }
[data-theme="light"] .footer-bar a { color: #aeaeb2 !important; }
[data-theme="light"] .footer-bar a:hover { color: #ffffff !important; }
[data-theme="light"] .footer-brand span { color: #f5f5f7 !important; }
[data-theme="light"] .footer-bottom { color: #86868b !important; }

/* ── Nav in light mode ── */
[data-theme="light"] .pub-nav {
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .pub-nav .logo span { color: #1d1d1f !important; }
[data-theme="light"] .pub-nav .logo span:first-child { color: #1d1d1f !important; }
[data-theme="light"] .pub-nav-links a { color: #636366 !important; }
[data-theme="light"] .pub-nav-links a:hover { color: #0071e3 !important; }
[data-theme="light"] .theme-toggle-btn { color: #636366 !important; }
[data-theme="light"] .lang-btn,
[data-theme="light"] [onclick*="I18n.toggle"] { color: #636366 !important; border-color: #d1d1d6 !important; }

/* ── Mobile menu ── */
[data-theme="light"] .mob-menu {
  background: #ffffff !important;
}
[data-theme="light"] .mob-menu a { color: #48484a !important; }
[data-theme="light"] .mob-menu a:hover { color: #0071e3 !important; }
[data-theme="light"] .burger span { background: #48484a !important; }

/* ── WhatsApp button stays green ── */
[data-theme="light"] #wa-btn { background: #25D366 !important; }

/* ── Generic background overrides for inline dark backgrounds ── */
[data-theme="light"] [style*="background:var(--bg2)"],
[data-theme="light"] [style*="background: var(--bg2)"],
[data-theme="light"] [style*="background:var(--bg3)"],
[data-theme="light"] [style*="background: var(--bg3)"] {
  background: #ffffff !important;
  border-color: #e5e5ea !important;
}

[data-theme="light"] [style*="background:var(--card)"],
[data-theme="light"] [style*="background: var(--card)"] {
  background: #ffffff !important;
}

/* ── Skip link ── */
[data-theme="light"] .skip-link { background: #0071e3; color: #fff; }

/* ── Scrollbar ── */
[data-theme="light"] ::-webkit-scrollbar-track { background: #f5f5f7; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 4px; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #aeaeb2; }

/* ══════════════════════════════════════════
   ADMIN/PORTAL PANELS — Light mode fixes
   ══════════════════════════════════════════ */

/* Sidebar — light mode: clean white/gray */
[data-theme="light"] .sidebar {
  background: #ffffff !important;
  color: #48484a !important;
  border-right: 1px solid #e5e5ea !important;
  box-shadow: 1px 0 4px rgba(0,0,0,.04) !important;
}
[data-theme="light"] .sidebar .nav-item {
  color: #86868b !important;
}
[data-theme="light"] .sidebar .nav-item:hover {
  color: #0071e3 !important;
  background: rgba(2,132,199,.06) !important;
}
[data-theme="light"] .sidebar .nav-item.active {
  color: #0071e3 !important;
  background: rgba(2,132,199,.1) !important;
  font-weight: 600;
}
[data-theme="light"] .sidebar .nav-item svg {
  color: inherit !important;
}
[data-theme="light"] .sb-user-name,
[data-theme="light"] .sidebar .sb-user-name {
  color: #1d1d1f !important;
}
[data-theme="light"] .sb-footer,
[data-theme="light"] .sidebar .sb-footer {
  border-color: #e5e5ea !important;
}
[data-theme="light"] .sidebar .sb-logo,
[data-theme="light"] .sidebar .logo-text {
  color: #1d1d1f !important;
}

/* Topbar */
[data-theme="light"] .topbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e5ea !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.04) !important;
  color: #48484a !important;
}
[data-theme="light"] .topbar .page-title,
[data-theme="light"] .topbar h1 {
  color: #1d1d1f !important;
}
[data-theme="light"] .topbar-clock {
  color: #86868b !important;
}

/* Panels / Cards */
[data-theme="light"] .panel {
  background: #ffffff !important;
  border-color: #e5e5ea !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.04) !important;
  color: #48484a !important;
}
[data-theme="light"] .panel-title {
  color: #1d1d1f !important;
  border-color: #e5e5ea !important;
}

/* Stat cards */
[data-theme="light"] .stat-card,
[data-theme="light"] .stats-grid .stat-card {
  background: #ffffff !important;
  border-color: #e5e5ea !important;
  color: #48484a !important;
}
[data-theme="light"] .stat-card .stat-label,
[data-theme="light"] .stat-card small {
  color: #86868b !important;
}

/* Tables */
[data-theme="light"] table {
  color: #48484a;
}
[data-theme="light"] th {
  background: #fbfbfd !important;
  color: #636366 !important;
  border-color: #e5e5ea !important;
}
[data-theme="light"] td {
  border-color: #f5f5f7 !important;
  color: #48484a !important;
}
[data-theme="light"] tr:hover td {
  background: rgba(2,132,199,.03) !important;
}

/* Form inputs */
[data-theme="light"] .form-input,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="search"],
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: #fbfbfd !important;
  border-color: #d1d1d6 !important;
  color: #1d1d1f !important;
}
[data-theme="light"] .form-input:focus,
[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  border-color: #0071e3 !important;
  box-shadow: 0 0 0 3px rgba(2,132,199,.1) !important;
}
[data-theme="light"] .form-label {
  color: #636366 !important;
}

/* Lead cards */
[data-theme="light"] .lead-card {
  background: #ffffff !important;
  border-color: #e5e5ea !important;
}
[data-theme="light"] .lead-card:hover {
  border-color: #d1d1d6 !important;
}

/* Pipeline */
[data-theme="light"] .pipe-step {
  background: #fbfbfd !important;
  border-color: #e5e5ea !important;
  color: #86868b !important;
}
[data-theme="light"] .pipe-step.active {
  background: rgba(2,132,199,.08) !important;
  color: #0071e3 !important;
  border-color: rgba(2,132,199,.25) !important;
}
[data-theme="light"] .pipe-step.done {
  background: rgba(5,150,105,.06) !important;
  color: #34c759 !important;
  border-color: rgba(5,150,105,.2) !important;
}

/* Chat containers */
[data-theme="light"] .chat-list {
  border-color: #e5e5ea !important;
}
[data-theme="light"] .chat-contact:hover {
  background: rgba(2,132,199,.04) !important;
}
[data-theme="light"] .chat-contact.active {
  background: rgba(2,132,199,.08) !important;
  border-color: rgba(2,132,199,.15) !important;
}
[data-theme="light"] .chat-bubble.sent {
  background: rgba(2,132,199,.1) !important;
  color: #1d1d1f !important;
}
[data-theme="light"] .chat-bubble.received {
  background: #fbfbfd !important;
  border-color: #e5e5ea !important;
  color: #48484a !important;
}
[data-theme="light"] .chat-input-bar {
  border-color: #e5e5ea !important;
}

/* Alert cards */
[data-theme="light"] .alert-card {
  background: rgba(255,184,0,.04) !important;
  border-color: rgba(255,184,0,.15) !important;
  color: #92400e !important;
}

/* Pending cards */
[data-theme="light"] .pending-card {
  background: rgba(255,92,40,.03) !important;
  border-color: rgba(255,92,40,.15) !important;
  color: #9a3412 !important;
}

/* Funnel */
[data-theme="light"] .funnel-step {
  color: #48484a !important;
}

/* Bar chart */
[data-theme="light"] .bar-value {
  color: #1d1d1f !important;
}
[data-theme="light"] .bar-label {
  color: #86868b !important;
}

/* Activity items */
[data-theme="light"] .activity-item {
  border-color: #f5f5f7 !important;
  color: #636366 !important;
}

/* Config sections */
[data-theme="light"] .config-section h3 {
  color: #1d1d1f !important;
  border-color: #e5e5ea !important;
}

/* Filter bar */
[data-theme="light"] .filter-bar select,
[data-theme="light"] .filter-bar input {
  background: #fbfbfd !important;
  border-color: #d1d1d6 !important;
  color: #48484a !important;
}

/* Spill (filter pills) */
[data-theme="light"] .spill {
  border-color: #e5e5ea !important;
  color: #86868b !important;
  background: transparent !important;
}
[data-theme="light"] .spill.active {
  border-color: #0071e3 !important;
  color: #0071e3 !important;
  background: rgba(2,132,199,.06) !important;
}

/* Badges */
[data-theme="light"] .badge,
[data-theme="light"] .lead-tag {
  color: inherit;
}

/* Buttons */
[data-theme="light"] .btn-primary,
[data-theme="light"] button.btn-primary {
  background: #0071e3 !important;
  color: #ffffff !important;
}
[data-theme="light"] .btn-ghost,
[data-theme="light"] .btn-secondary {
  background: transparent !important;
  border-color: #d1d1d6 !important;
  color: #636366 !important;
}
[data-theme="light"] .btn-ghost:hover,
[data-theme="light"] .btn-secondary:hover {
  background: #fbfbfd !important;
  border-color: #0071e3 !important;
  color: #0071e3 !important;
}

/* Body background */
[data-theme="light"] .app-layout {
  background: #f5f5f7 !important;
}
[data-theme="light"] .main-content {
  background: #f5f5f7 !important;
}

/* Icon buttons */
[data-theme="light"] .icon-btn {
  border-color: #e5e5ea !important;
  color: #86868b !important;
}
[data-theme="light"] .icon-btn:hover {
  background: rgba(2,132,199,.05) !important;
  color: #0071e3 !important;
}

/* User avatar text */
[data-theme="light"] .user-av-sm {
  color: #ffffff !important;
}

/* Generic var(--white) which becomes dark in light mode - fix for text */

/* Generic var(--bg) backgrounds */
[data-theme="light"] [style*="background:var(--bg)"] {
  background: #f5f5f7 !important;
}
[data-theme="light"] [style*="background:var(--bg2)"] {
  background: #ffffff !important;
}
[data-theme="light"] [style*="background:var(--bg3)"] {
  background: #fbfbfd !important;
}

/* Detail back button */
[data-theme="light"] .detail-back {
  color: #86868b !important;
}
[data-theme="light"] .detail-back:hover {
  color: #0071e3 !important;
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: #fbfbfd;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #d1d1d6;
  border-radius: 4px;
}

/* Admin bar — light mode */
[data-theme=light] .admin-bar {
  background: linear-gradient(135deg, #f0f5ff, #dbeafe) !important;
  border-bottom: 1px solid #bfdbfe !important;
  color: #1e40af !important;
}
[data-theme=light] .admin-bar svg {
  stroke: #2563eb !important;
}
[data-theme=light] .admin-bar strong {
  color: #1e3a8a !important;
}

/* Search results dropdown — light */
[data-theme=light] #search-results {
  background: #ffffff !important;
  border-color: #e5e5ea !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
}

/* Notification dropdown — light */
[data-theme=light] .notif-panel {
  background: #ffffff !important;
  border-color: #e5e5ea !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
}

/* Ticket cards — light */
[data-theme=light] .ticket-card {
  background: #ffffff !important;
  border-color: #e5e5ea !important;
}
[data-theme=light] .ticket-card:hover {
  border-color: #d1d1d6 !important;
}

/* Loading & Empty States */
.empty-state{text-align:center;padding:3rem;color:var(--muted)}
.empty-state svg{width:48px;height:48px;margin-bottom:1rem;opacity:.3}
.empty-state p{font-size:.85rem;margin-bottom:1rem}
.skeleton{background:linear-gradient(90deg,var(--bg) 25%,var(--bg3) 50%,var(--bg) 75%);background-size:200% 100%;animation:skeleton-pulse 1.5s infinite;border-radius:6px;height:16px}
@keyframes skeleton-pulse{0%{background-position:200% 0}100%{background-position:-200% 0}}
.onboard-card{animation:fadeUp .4s ease}
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:768px){.chat-container{flex-direction:column}.chat-list{flex:none;max-height:200px;border-right:none;border-bottom:1px solid var(--border)}}

/* ═══════════════════════════════════════
   PAGE UTILITIES — Common classes for
   service, city, legal, and catalog pages
   ═══════════════════════════════════════ */

/* Page Hero */
.page-hero{position:relative;padding:120px 5% 60px;background:#f5f5f7;overflow:hidden}
.page-hero h1{font-size:2.2rem;font-weight:800;color:#1d1d1f;margin-bottom:1rem;line-height:1.15}
.page-hero p{font-size:1rem;color:#86868b;max-width:600px;line-height:1.7}
.hero-glow{position:absolute;top:-120px;right:-80px;width:400px;height:400px;background:radial-gradient(circle,rgba(2,132,199,.08) 0%,transparent 70%);pointer-events:none}

/* Breadcrumb */
.breadcrumb{font-size:.82rem;color:#aeaeb2;margin-bottom:1rem;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.breadcrumb a{color:#0071e3;text-decoration:none;transition:color .2s}
.breadcrumb a:hover{color:#005bb5;text-decoration:underline}
.breadcrumb span{color:#aeaeb2}

/* Page Content */
.page-content{padding:3rem 5%;max-width:1100px;margin:0 auto}
.page-content h2{font-size:1.5rem;font-weight:700;color:#1d1d1f;margin-bottom:.5rem;margin-top:2.5rem;line-height:1.25}
.page-content h2:first-child{margin-top:0}
.page-content p{font-size:.92rem;color:#636366;line-height:1.8;margin-bottom:1rem}
.page-content ul,.page-content ol{color:#636366;font-size:.92rem;line-height:1.8;margin:1rem 0 1rem 1.5rem}
.page-content li{margin-bottom:.4rem}

/* Benefit / Feature Cards Grid */
.benefit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.2rem;margin:1.5rem 0 2rem}
.benefit-card{background:#fff;border:1px solid #e5e5ea;border-radius:12px;padding:1.5rem;transition:all .25s}
.benefit-card:hover{border-color:#0071e3;box-shadow:0 4px 16px rgba(2,132,199,.08);transform:translateY(-2px)}
.benefit-card h3{font-size:1rem;font-weight:700;color:#1d1d1f;margin-bottom:.5rem}
.benefit-card p{font-size:.85rem;color:#86868b;line-height:1.7;margin-bottom:0}
.benefit-card svg{width:28px;height:28px;stroke:#0071e3;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-bottom:.8rem}

/* Solution card variant */
.solution-card{border-left:3px solid #0071e3}

/* CTA Box */
.cta-box{background:linear-gradient(135deg,#0071e3,#005bb5);color:#fff;padding:2.5rem;border-radius:16px;text-align:center;margin:3rem 0}
.cta-box h2{color:#fff !important;margin-top:0 !important}
.cta-box h2 .c{color:#7dd3fc !important}
.cta-box p{color:rgba(255,255,255,.85) !important;max-width:500px;margin:0 auto 1.5rem}
.cta-box .btn{margin-top:.5rem}
.cta-box .btn-primary{background:#fff;color:#0071e3}
.cta-box .btn-primary:hover{background:#f0f9ff;transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.2)}
.cta-actions{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap;margin-top:1rem}

/* City Stats */
.city-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin:1.5rem 0 2.5rem;text-align:center}
.city-stat{background:#fff;border:1px solid #e5e5ea;border-radius:12px;padding:1.2rem .8rem}
.city-stat .num{font-size:1.5rem;font-weight:800;color:#0071e3;line-height:1.2}
.city-stat .lbl{font-size:.75rem;color:#86868b;margin-top:.25rem}

/* Compare Table */
.compare-table{width:100%;border-collapse:collapse;margin:1.5rem 0;font-size:.85rem;background:#fff;border-radius:12px;overflow:hidden;border:1px solid #e5e5ea}
.compare-table thead{background:linear-gradient(135deg,#1d1d1f,#1d1d1f)}
.compare-table th{padding:.9rem 1rem;color:#fff;font-weight:600;text-align:left;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}
.compare-table td{padding:.8rem 1rem;border-bottom:1px solid #f5f5f7;color:#636366}
.compare-table tr:last-child td{border-bottom:none}
.compare-table tr:hover td{background:#fbfbfd}
.compare-table .check{color:#34c759}
.compare-table .cross{color:#ff3b30}

/* Warning / Alert Boxes */
.warning-box{background:linear-gradient(135deg,rgba(255,183,0,.06),rgba(234,136,12,.06));border:1px solid rgba(234,136,12,.2);border-left:4px solid #ff9500;border-radius:10px;padding:1.2rem 1.5rem;margin:1.5rem 0;color:#92400e;font-size:.88rem;line-height:1.7}
.alert-box{background:linear-gradient(135deg,rgba(220,38,38,.04),rgba(255,59,92,.04));border:1px solid rgba(220,38,38,.15);border-left:4px solid #ff3b30;border-radius:10px;padding:1.2rem 1.5rem;margin:1.5rem 0;color:#991b1b;font-size:.88rem;line-height:1.7}

/* Skip Link */
.skip-link{position:absolute;top:-100%;left:1rem;background:#0071e3;color:#fff;padding:.5rem 1rem;border-radius:6px;z-index:300;font-size:.82rem;text-decoration:none;transition:top .2s}
.skip-link:focus{top:1rem}

/* Hero action buttons */
.page-hero .btn{margin-top:.8rem;margin-right:.5rem}

@media(max-width:768px){
  .page-hero{padding:100px 5% 40px}
  .page-hero h1{font-size:1.6rem}
  .benefit-grid{grid-template-columns:1fr}
  .city-stats{grid-template-columns:repeat(2,1fr)}
  .compare-table{font-size:.78rem}
  .compare-table th,.compare-table td{padding:.6rem .7rem}
  .cta-box{padding:2rem 1.5rem}
}

/* PUBLIC FOOTER */
.pub-footer{background:var(--bg);border-top:1px solid var(--border);padding:50px 5% 24px}
.footer-top{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2rem;margin-bottom:2rem}
.footer-brand p{font-size:.79rem;color:var(--muted);line-height:1.7;max-width:260px;margin-top:.7rem}
.footer-certs{display:flex;gap:.4rem;margin-top:.8rem;flex-wrap:wrap}
.footer-certs span{font-size:.55rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:3px 7px;border-radius:4px;background:rgba(0,212,255,.06);color:var(--cyan);border:1px solid rgba(0,212,255,.12)}
.footer-col h4{font-family:var(--fh);font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--white);margin-bottom:.8rem}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:.45rem}
.footer-col a{font-size:.79rem;color:var(--muted);text-decoration:none;transition:color .2s;cursor:pointer}
.footer-col a:hover{color:var(--cyan)}
.footer-bottom{border-top:1px solid var(--border);padding-top:1.2rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.8rem}
.footer-bottom p{font-size:.73rem;color:var(--muted)}
.soc-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:6px;color:var(--muted);transition:all .2s}
.soc-btn:hover{color:var(--cyan);background:rgba(0,212,255,.06)}
.soc-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1000px){.footer-top{grid-template-columns:1fr 1fr}}
@media(max-width:768px){.footer-top{grid-template-columns:1fr}}

/* ═══ BLOG ARTICLES ═══ */
.article-hero {
  padding: 100px 5% 30px;
  max-width: 800px;
  margin: 0 auto;
}
.article-hero .breadcrumb {
  font-size: .82rem;
  color: #aeaeb2;
  margin-bottom: 1.5rem;
}
.article-hero .breadcrumb a {
  color: #0071e3;
  text-decoration: none;
}
.article-hero .article-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #0071e3;
  border-left: 3px solid #0071e3;
  padding-left: 8px;
  margin-bottom: 1rem;
}
.article-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #1d1d1f;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.article-meta {
  font-size: .82rem;
  color: #aeaeb2;
  margin-bottom: 1rem;
}
.article-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 2rem 2.5rem;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  line-height: 1.8;
  font-size: .95rem;
  color: #48484a;
}
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1d1d1f;
  margin: 2rem 0 .8rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #e5e5ea;
}
.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 1.5rem 0 .6rem;
}
.article-content p {
  margin-bottom: 1rem;
  color: #636366;
}
.article-content ul, .article-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: #636366;
}
.article-content li {
  margin-bottom: .5rem;
  line-height: 1.7;
}
.article-content strong {
  color: #1d1d1f;
}
.article-content a {
  color: #0071e3;
  text-decoration: none;
}
.article-content a:hover {
  text-decoration: underline;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .85rem;
}
.article-content th {
  background: #f5f5f7;
  color: #1d1d1f;
  font-weight: 600;
  padding: .6rem .8rem;
  text-align: left;
  border: 1px solid #e5e5ea;
}
.article-content td {
  padding: .6rem .8rem;
  border: 1px solid #e5e5ea;
  color: #636366;
}
.article-cta {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #0071e3, #005bb5);
  color: #fff;
  border-radius: 14px;
  text-align: center;
}
.article-cta h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: .6rem;
}
.article-cta p {
  color: rgba(255,255,255,.8);
  margin-bottom: 1rem;
}
.article-cta a {
  background: #fff;
  color: #0071e3;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.article-related {
  max-width: 800px;
  margin: 0 auto 3rem;
}
.article-related h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .article-hero { padding: 90px 1rem 20px; }
  .article-content { padding: 1.5rem 1.2rem; margin: 0 1rem 2rem; }
  .article-hero h1 { font-size: 1.5rem; }
}

/* ── APPLE DESIGN ENHANCEMENTS ── */
a { color:#0071e3; text-decoration:none; transition:color .2s ease; }
a:hover { color:#0077ED; }

/* Smooth transitions on interactive elements */
.svc-card, .pain-card, .vert-card, .testi-card, .metric, .faq-item,
.pricing-card, .why-item, .ref-step {
  transition:all .3s cubic-bezier(.25,.1,.25,1);
}

/* Apple-style subtle card shadows */
.svc-card, .pain-card, .vert-card, .testi-card, .pricing-card {
  box-shadow:0 2px 12px rgba(0,0,0,.06);
}
.svc-card:hover, .pain-card:hover, .vert-card:hover, .testi-card:hover, .pricing-card:hover {
  box-shadow:0 8px 28px rgba(0,0,0,.12);
}

/* Dark mode link color */
[data-theme="dark"] a { color:#0a84ff; }
[data-theme="dark"] a:hover { color:#409cff; }

/* Dark mode card shadows */
[data-theme="dark"] .panel, [data-theme="dark"] .card, [data-theme="dark"] .stat-card,
[data-theme="dark"] .svc-card, [data-theme="dark"] .pain-card, [data-theme="dark"] .vert-card,
[data-theme="dark"] .testi-card, [data-theme="dark"] .pricing-card {
  box-shadow:0 2px 12px rgba(0,0,0,.3);
}
[data-theme="dark"] .svc-card:hover, [data-theme="dark"] .pain-card:hover,
[data-theme="dark"] .vert-card:hover, [data-theme="dark"] .testi-card:hover,
[data-theme="dark"] .pricing-card:hover {
  box-shadow:0 8px 28px rgba(0,0,0,.5);
}

/* Apple-style focus rings */
*:focus-visible {
  outline:none;
  box-shadow:0 0 0 4px rgba(0,113,227,.3);
  border-radius:inherit;
}
[data-theme="dark"] *:focus-visible {
  box-shadow:0 0 0 4px rgba(10,132,255,.3);
}

/* ═══════════════════════════════════════════════════════
   LANDING PAGE — AsesorComercial.es
   Single source of truth for all landing page styles
   ═══════════════════════════════════════════════════════ */

/* ── NAVBAR (pub-nav) ── */
/* ── NAV — Premium floating bar ── */
.pub-nav{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:200;width:min(96%,1200px);display:flex;align-items:center;padding:0 24px;height:56px;background:rgba(255,255,255,.75);backdrop-filter:blur(24px) saturate(200%);-webkit-backdrop-filter:blur(24px) saturate(200%);border:1px solid rgba(0,0,0,.06);border-radius:980px;box-shadow:0 2px 20px rgba(0,0,0,.06),0 0 0 1px rgba(255,255,255,.8) inset;transition:all .45s cubic-bezier(.25,.1,.25,1);animation:navIn .6s ease both}
.pub-nav.scrolled{top:6px;height:50px;background:rgba(255,255,255,.92);box-shadow:0 4px 30px rgba(0,0,0,.08),0 0 0 1px rgba(255,255,255,.9) inset}
.pub-nav.nav-hidden{top:-70px;opacity:0}
.nav-left{display:flex;align-items:center;gap:.5rem}
.nav-left img{transition:transform .3s ease}
.nav-left:hover img{transform:scale(1.08)}
.nav-brand{font-family:var(--fh);font-size:1rem;font-weight:800;color:#1d1d1f;letter-spacing:-.02em;white-space:nowrap}
.nav-brand-full span:last-child{color:#0071e3!important}
.nav-center{display:flex;align-items:center;gap:.15rem;margin:0 auto;position:relative}
.nav-center li{list-style:none}
.nav-center a{color:#636366;text-decoration:none;font-size:.8rem;font-weight:500;padding:7px 14px;border-radius:980px;transition:all .25s cubic-bezier(.25,.1,.25,1);white-space:nowrap;position:relative}
.nav-center a:hover{color:#0071e3;background:rgba(0,113,227,.06)}
.nav-center a.nav-active{color:#0071e3;background:rgba(0,113,227,.08);font-weight:600}
.nav-right{display:flex;align-items:center;gap:8px}
.nav-lang{background:rgba(0,0,0,.03);border:none;cursor:pointer;color:#aeaeb2;font-size:11px;font-weight:700;padding:5px 10px;border-radius:980px;transition:all .25s;letter-spacing:.03em}
.nav-lang:hover{color:#0071e3;background:rgba(0,113,227,.06)}
.nav-portal-btn{color:#636366;text-decoration:none;font-size:12px;font-weight:600;padding:6px 16px;border:1.5px solid rgba(0,0,0,.1);border-radius:980px;transition:all .3s;white-space:nowrap}
.nav-portal-btn:hover{color:#0071e3;background:rgba(0,113,227,.04);border-color:rgba(0,113,227,.3)}
.nav-cta-btn{display:inline-flex;align-items:center;gap:5px;background:linear-gradient(135deg,#0071e3,#005bb5);color:#fff !important;text-decoration:none;font-size:12px;font-weight:700;padding:8px 20px;border-radius:980px;white-space:nowrap;box-shadow:0 2px 12px rgba(0,113,227,.25);transition:all .3s cubic-bezier(.25,.1,.25,1);position:relative;overflow:hidden}
.nav-cta-btn::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.15),transparent);opacity:0;transition:opacity .3s}
.nav-cta-btn:hover{transform:translateY(-1px);box-shadow:0 6px 24px rgba(0,113,227,.35)}
.nav-cta-btn:hover::before{opacity:1}
.nav-cta-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.burger{display:none;width:36px;height:36px;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;border-radius:50%;border:none;background:rgba(0,0,0,.04);transition:all .25s}
.burger:hover{background:rgba(0,113,227,.08)}
.burger span{width:16px;height:1.5px;background:#636366;border-radius:2px;transition:all .35s cubic-bezier(.25,.1,.25,1)}
.burger.open{background:rgba(0,113,227,.08)}
.burger.open span{background:#0071e3}
.burger.open span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.burger.open span:nth-child(2){opacity:0;transform:scaleX(0)}
.burger.open span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}
/* Mobile menu */
.mob-menu{display:none;position:fixed;top:78px;left:2%;right:2%;background:rgba(255,255,255,.97);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid rgba(0,0,0,.06);border-radius:20px;box-shadow:0 16px 48px rgba(0,0,0,.12),0 0 0 1px rgba(255,255,255,.8) inset;padding:8px;z-index:199;flex-direction:column;gap:2px;max-height:calc(100vh - 100px);overflow-y:auto;transform-origin:top center;animation:mobMenuIn .3s ease both}
@keyframes mobMenuIn{from{opacity:0;transform:scale(.96) translateY(-8px)}to{opacity:1;transform:scale(1) translateY(0)}}
.mob-menu.open{display:flex}
.mob-menu a{padding:12px 18px;border-radius:12px;color:#1d1d1f;text-decoration:none;font-size:.9rem;font-weight:500;transition:all .2s;display:flex;align-items:center;gap:.5rem}
.mob-menu a:hover{background:rgba(0,113,227,.06);color:#0071e3}
.mob-menu .mob-cta{margin-top:8px;background:linear-gradient(135deg,#0071e3,#005bb5);color:#fff;font-weight:700;text-align:center;border-radius:14px;padding:14px;box-shadow:0 4px 16px rgba(0,113,227,.25)}
.mob-sep{height:1px;background:rgba(0,0,0,.06);margin:6px 12px}
@media(max-width:900px){.nav-center{display:none}.burger{display:flex}}
@media(max-width:500px){.nav-portal-btn{display:none}}
@keyframes navIn{from{opacity:0;transform:translateX(-50%) translateY(-20px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}

/* ── DARK NAV VARIANT ── */
[data-theme="dark"] .pub-nav{background:rgba(0,0,0,.7);border-color:rgba(255,255,255,.06)}
[data-theme="dark"] .pub-nav.scrolled{background:rgba(0,0,0,.9)}
[data-theme="dark"] .nav-brand{color:#f5f5f7}
[data-theme="dark"] .nav-center a{color:#aeaeb2}
[data-theme="dark"] .nav-center a:hover,[data-theme="dark"] .nav-center a.nav-active{color:#0a84ff}
[data-theme="dark"] .nav-portal-btn{color:#0a84ff;border-color:rgba(10,132,255,.3)}
[data-theme="dark"] .nav-cta-btn{background:linear-gradient(135deg,#0a84ff,#0071e3)}
[data-theme="dark"] .mob-menu{background:rgba(20,20,22,.97);border-color:rgba(255,255,255,.06)}
[data-theme="dark"] .mob-menu a{color:#f5f5f7}
[data-theme="dark"] .burger span{background:#aeaeb2}

/* ── HERO — Apple light ── */
#hero{min-height:100vh;display:flex;align-items:center;padding:140px 5% 80px;position:relative;overflow:hidden;background:#ffffff}
#hero, #hero *{color:#1d1d1f}
.hero-glow,.hero-glow2,.hero-glow3{display:none}
.hero-inner{position:relative;z-index:2;width:100%;max-width:1200px;margin:0 auto}
.hero-badge{display:inline-flex;align-items:center;gap:.45rem;padding:.4rem 1.2rem;border:1px solid rgba(0,113,227,.15);border-radius:30px;font-size:.72rem;font-weight:600;color:#0071e3;letter-spacing:.07em;text-transform:uppercase;margin-bottom:2rem;background:rgba(0,113,227,.06);animation:badgeFadeIn 1s ease .3s both}
@keyframes badgeFadeIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
.hero-h1{font-family:var(--fh);font-size:clamp(2.5rem,5.5vw,4.2rem);font-weight:800;line-height:1.06;letter-spacing:-.04em;color:#1d1d1f;margin-bottom:1.5rem;animation:heroTitleIn 1s cubic-bezier(.25,.1,.25,1) .5s both}
@keyframes heroTitleIn{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
.hero-sub{font-size:1.05rem;color:#636366 !important;line-height:1.8;margin-bottom:1.5rem;max-width:800px;animation:heroSubIn 1s ease .8s both}
@keyframes heroSubIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.hero-pain{background:#f5f5f7;border:1px solid #e5e5ea;border-radius:16px;padding:.85rem 1.1rem;font-size:.85rem;color:#636366;margin-bottom:2rem;line-height:1.7;max-width:100%}
.hero-pain strong{color:#0071e3 !important}
.hero-actions{display:flex;gap:.9rem;flex-wrap:wrap;margin-bottom:3rem;animation:heroSubIn 1s ease 1.1s both}
#hero .btn-ghost{color:#0071e3;border-color:#0071e3}
#hero .btn-ghost:hover{background:rgba(0,113,227,.06);border-color:#0071e3}
.hero-stats{display:flex;gap:2rem;flex-wrap:wrap}
.hero-stats>div{animation:countUp .8s cubic-bezier(.25,.1,.25,1) both}
.hero-stats>div:nth-child(1){animation-delay:.2s}
.hero-stats>div:nth-child(2){animation-delay:.4s}
.hero-stats>div:nth-child(3){animation-delay:.6s}
.hero-stats>div:nth-child(4){animation-delay:.8s}
@keyframes countUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.hstat-num{font-family:var(--fh);font-size:1.8rem;font-weight:800;letter-spacing:-.03em;color:#1d1d1f}
.hstat-lbl{font-size:.72rem;color:#86868b !important;text-transform:uppercase;letter-spacing:.06em;font-weight:500}
.pulse-dot{width:7px;height:7px;border-radius:50%;background:#34c759;display:inline-block;animation:pulse 2s ease-in-out infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(52,199,89,.4)}50%{box-shadow:0 0 0 8px rgba(52,199,89,0)}}

/* ── SECTIONS GENERAL ── */
section{padding:100px 5%}
.section-tag{font-size:.7rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:#0071e3;margin-bottom:.8rem;display:inline-flex;align-items:center;gap:.5rem}
.section-tag::before{content:'';width:24px;height:2px;background:linear-gradient(90deg,#0071e3,transparent)}
.divider{width:60px;height:3px;background:linear-gradient(90deg,#0071e3,#34aadc);border-radius:2px;margin:1rem 0}
.c{background:linear-gradient(135deg,#0071e3,#34aadc) !important;-webkit-background-clip:text !important;-webkit-text-fill-color:transparent !important;background-clip:text !important}

/* ── LIGHT SECTIONS (default) ── */
#servicios,#sectores,#distribuidores{background:#ffffff;color:#1d1d1f}
#por-que{background:linear-gradient(135deg,#f5f5f7,#e8f0fe);color:#1d1d1f}
#precios,#faq,#terminalserver{background:#f5f5f7;color:#1d1d1f}
#servicios h2,#sectores h2,#por-que h2,#precios h2,#distribuidores h2,#faq h2,#terminalserver h2,#contacto h2{color:#1d1d1f !important}
#servicios p,#sectores p,#por-que p,#precios p,#distribuidores p,#faq p,#terminalserver p,#contacto p{color:#86868b !important}
#servicios .section-tag,#sectores .section-tag,#por-que .section-tag,#precios .section-tag,#distribuidores .section-tag,#faq .section-tag,#terminalserver .section-tag{color:#0071e3 !important}

/* ── SECTIONS — Light mode (Apple redesign) ── */
#problemas{background:#f5f5f7;color:#1d1d1f}
#problemas,#problemas *{color:#1d1d1f}
#problemas p,#problemas .pain-d,#problemas .pain-d span,#problemas .section-sub{color:#636366 !important}
#problemas .pain-sol{color:#0071e3 !important;background:rgba(0,113,227,.06);border-radius:8px;padding:8px 12px;margin-top:8px;font-size:.78rem}
#problemas .pain-ico svg{stroke:#0071e3}
#problemas .section-tag{color:#0071e3 !important}
#problemas h2{color:#1d1d1f !important}

#proceso{background:#f5f5f7;color:#1d1d1f;text-align:center}
#proceso,#proceso *{color:#1d1d1f}
#proceso p,#proceso .step-d,#proceso .step-d span,#proceso .section-sub{color:#86868b !important}
#proceso .section-tag{color:#0071e3 !important}
#proceso h2{color:#1d1d1f !important}

#testimonios{background:#f5f5f7;color:#1d1d1f}
#testimonios,#testimonios *{color:#1d1d1f}
#testimonios p{color:#86868b !important}
#testimonios h2{color:#1d1d1f !important}

/* ── CARDS ── */
.pain-card{background:#ffffff;border:1px solid #e5e5ea;box-shadow:0 1px 4px rgba(0,0,0,.04);border-radius:16px;padding:1.5rem;transition:all .4s cubic-bezier(.25,.1,.25,1)}
.pain-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(0,0,0,.08);border-color:#d2d2d7}

.svc-card{background:#ffffff;border:1px solid #e5e5ea;border-radius:16px;padding:1.8rem;transition:all .4s cubic-bezier(.25,.1,.25,1);position:relative;overflow:hidden}
.svc-card::after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#0071e3,#34aadc);transform:scaleX(0);transition:transform .4s ease;transform-origin:left}
.svc-card:hover::after{transform:scaleX(1)}
.svc-card:hover{transform:translateY(-6px);box-shadow:0 20px 60px rgba(0,0,0,.08);border-color:#0071e3}
.svc-ico{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;background:linear-gradient(135deg,rgba(0,113,227,.08),rgba(52,170,220,.08))}
.svc-ico svg{width:22px;height:22px;stroke:#0071e3;stroke-width:1.8;fill:none}
.svc-title{font-weight:700;font-size:.95rem;margin-bottom:.5rem;color:#1d1d1f !important}
.svc-desc,.svc-desc span{font-size:.82rem;color:#86868b !important;line-height:1.7}
.svc-warn{font-size:.72rem;color:#ff9f0a !important;margin-top:.8rem;padding:6px 10px;background:rgba(255,159,10,.06);border-radius:8px;font-weight:500}
.tag{font-size:.62rem;padding:3px 8px;border-radius:6px;background:rgba(0,113,227,.06);color:#0071e3;font-weight:600}

.vert-card{background:#ffffff;border:1px solid #e5e5ea;border-radius:16px;padding:1.5rem;transition:all .4s cubic-bezier(.25,.1,.25,1);cursor:pointer;position:relative;overflow:hidden}
.vert-card::before{content:'';position:absolute;inset:-1px;border-radius:16px;padding:1px;background:linear-gradient(135deg,transparent 40%,#0071e3 100%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity .4s}
.vert-card:hover::before{opacity:1}
.vert-card:hover{transform:translateY(-4px);box-shadow:0 20px 60px rgba(0,113,227,.1)}
.vert-title{color:#1d1d1f !important;font-weight:700;font-size:.9rem;margin-bottom:.3rem}
.vert-desc,.vert-desc span{color:#86868b !important;font-size:.8rem}
.vert-saving{font-size:.75rem;font-weight:600;color:#0071e3 !important;margin-top:.5rem;padding:4px 10px;background:rgba(0,113,227,.06);border-radius:8px;display:inline-block}

.why-item{display:flex;gap:.9rem;padding:1rem;border-radius:12px;transition:all .3s;background:rgba(255,255,255,.8);border:1px solid transparent}
.why-item:hover{background:#ffffff;border-color:#e5e5ea;box-shadow:0 4px 16px rgba(0,0,0,.04)}
.why-ico{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0071e3,#34aadc);flex-shrink:0}
.why-ico svg{stroke:#ffffff !important;width:20px;height:20px;fill:none}
.why-t{color:#1d1d1f !important;font-weight:700;font-size:.88rem}
.why-d,.why-d span{color:#86868b !important;font-size:.82rem}

.metric{background:#ffffff;border-radius:16px;padding:1.5rem;text-align:center;box-shadow:0 2px 12px rgba(0,0,0,.04);border:1px solid #e5e5ea;transition:all .3s}
.metric:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(0,0,0,.08);border-color:#0071e3}
.metric-n{font-size:2rem;font-weight:800;color:#1d1d1f !important;letter-spacing:-.03em}
.metric-l{color:#86868b !important;font-size:.78rem}

.step{background:#ffffff;border:1px solid #e5e5ea;border-radius:16px;padding:2rem 1.5rem;transition:all .4s;position:relative;overflow:hidden}
.step::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#0071e3,#34aadc);transform:scaleX(0);transition:transform .4s;transform-origin:left}
.step:hover::before{transform:scaleX(1)}
.step:hover{background:#f5f5f7;border-color:#0071e3;transform:translateY(-4px)}
.step-n{font-size:2.5rem;font-weight:900;background:linear-gradient(135deg,#0a84ff,#34aadc);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.5rem}
.step-t{color:#1d1d1f !important;font-weight:700;font-size:1rem;margin-bottom:.5rem}

.pricing-card{background:#ffffff;border:1px solid #e5e5ea;border-radius:20px;padding:2rem;transition:all .4s cubic-bezier(.25,.1,.25,1);position:relative}
.pricing-card:hover{transform:translateY(-8px);box-shadow:0 24px 64px rgba(0,0,0,.1)}
.pricing-card.featured{border:2px solid #0071e3;box-shadow:0 8px 40px rgba(0,113,227,.12)}
.pricing-card.featured::after{content:'Popular';position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:linear-gradient(135deg,#0071e3,#34aadc);color:#fff;font-size:.65rem;font-weight:700;padding:4px 16px;border-radius:20px}
.pricing-name{color:#1d1d1f !important;font-weight:700;font-size:1.1rem}
.pricing-desc{color:#86868b !important;font-size:.85rem}
.pricing-note{color:#aeaeb2 !important;font-size:.78rem}
.pricing-feat li{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:.85rem;color:#48484a !important}
.pricing-feat svg{width:18px;height:18px;stroke:#34c759;stroke-width:2.5;fill:none;flex-shrink:0}

.faq-q{color:#1d1d1f !important}
.faq-a,.faq-a p{color:#86868b !important}

/* ── BUTTONS ── */
.btn-primary{background:linear-gradient(135deg,#0071e3,#005bb5) !important;border:none !important;border-radius:980px !important;padding:12px 28px;font-weight:600;font-size:.88rem;color:#ffffff !important;box-shadow:0 4px 16px rgba(0,113,227,.3);transition:all .3s cubic-bezier(.25,.1,.25,1);position:relative;overflow:hidden}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 30px rgba(0,113,227,.4)}
.btn-primary::after{content:'';position:absolute;top:-50%;left:-100%;width:60%;height:200%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.15),transparent);transform:skewX(-15deg);transition:left .6s}
.btn-primary:hover::after{left:150%}
.btn-ghost{border-radius:980px !important;border:1.5px solid #d1d1d6;padding:12px 28px;font-weight:600;transition:all .3s;color:#1d1d1f}
.btn-ghost:hover{border-color:#0071e3;color:#0071e3;background:rgba(0,113,227,.04)}
.btn-lg{padding:16px 36px !important;font-size:1rem !important}

/* ── SCROLL REVEAL ── */
.reveal{opacity:0;transform:translateY(40px);transition:opacity .8s cubic-bezier(.25,.1,.25,1),transform .8s cubic-bezier(.25,.1,.25,1)}
.reveal.visible{opacity:1;transform:translateY(0)}

/* ── FOOTER ── */
.pub-footer{background:#000000 !important;color:#aeaeb2;border-top:none !important}
.pub-footer a{color:#d1d1d6}
.pub-footer h4,.pub-footer strong{color:#f5f5f7}

/* ── SELECTION ── */
::selection{background:rgba(0,113,227,.2);color:#1d1d1f}

/* ── RESPONSIVE ── */
@media(max-width:768px){
  .hero-h1{font-size:clamp(1.8rem,6vw,2.8rem)}
  .hero-stats{gap:1.5rem}
  .hstat-num{font-size:1.3rem}
  section{padding:60px 5%}
}


/* ═══ MISSING GRIDS & LAYOUTS ═══ */
.pain-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.2rem;margin-top:2rem}
.svc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.2rem}
.vert-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.2rem;margin-top:2rem}
.why-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
.why-list{display:flex;flex-direction:column;gap:.8rem;margin-top:1.5rem}
.steps{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1.2rem;margin-top:2rem}
.pricing-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.5rem}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.hero-stats{display:flex;gap:2.5rem;flex-wrap:wrap}
.tags{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.8rem}

/* ═══ MISSING ICON SIZES ═══ */
.pain-ico{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:.8rem;background:rgba(0,113,227,.08);flex-shrink:0}
.pain-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vert-ico{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:.8rem;flex-shrink:0}
.vert-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.svc-ico svg{width:22px;height:22px;fill:none;stroke:#0071e3;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.why-ico svg{width:20px;height:20px;fill:none;stroke:#ffffff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ═══ MISSING ELEMENT STYLES ═══ */
.pain-t{font-weight:700;font-size:.9rem;margin-bottom:.4rem}
.pain-d{font-size:.82rem;line-height:1.7;margin-bottom:.5rem}
.pain-sol{font-size:.78rem;line-height:1.6}
.section-sub{font-size:1rem;line-height:1.8;max-width:650px;margin-bottom:2rem}
.pricing-price{margin:1rem 0}
.pricing-feat{list-style:none;padding:0;margin:1.2rem 0}
.pricing-badge{position:absolute;top:12px;right:12px;background:#0071e3;color:#fff;font-size:.6rem;font-weight:700;padding:3px 10px;border-radius:20px}
.faq-q{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.2rem;cursor:pointer;font-weight:600;font-size:.86rem;gap:.8rem;background:none;border:none;width:100%;text-align:left;font-family:var(--fb)}
.faq-q svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;flex-shrink:0;transition:transform .3s}
.faq-item.open .faq-q svg{transform:rotate(180deg)}
.faq-a{padding:0 1.2rem 1rem;font-size:.85rem;line-height:1.7;display:none}
.faq-item.open .faq-a{display:block}
.faq-item{border-radius:12px;border:1px solid #e5e5ea;overflow:hidden;transition:all .3s}
.faq-item.open{border-color:#0071e3}
.ref-step{background:#ffffff;border:1px solid #e5e5ea;border-radius:16px;padding:1.5rem;text-align:center}
.ref-step h4{font-weight:700;font-size:.9rem;margin-bottom:.5rem;color:#1d1d1f}
.ref-step p{font-size:.82rem;color:#86868b}
.cform{background:#ffffff;border:1px solid #e5e5ea;border-radius:16px;padding:2rem}
.cform h3{color:#1d1d1f;margin-bottom:1rem}
.cform label{font-size:.82rem;font-weight:600;color:#48484a;display:block;margin-bottom:.3rem}
.cform input,.cform textarea,.cform select{width:100%;padding:.7rem .9rem;border:1px solid #d1d1d6;border-radius:10px;font-size:.85rem;font-family:var(--fb);color:#1d1d1f;background:#fbfbfd;outline:none;transition:border-color .3s}
.cform input:focus,.cform textarea:focus,.cform select:focus{border-color:#0071e3}

/* ═══ FOOTER COLUMNS ═══ */
.footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:2rem;max-width:1200px;margin:0 auto;padding:3rem 5%}
.footer-col h4{font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#f5f5f7;margin-bottom:.8rem}
.footer-col a{display:block;font-size:.8rem;color:#aeaeb2;text-decoration:none;padding:.2rem 0;transition:color .2s}
.footer-col a:hover{color:#ffffff}
.footer-bar{display:flex;justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:1.5rem 5%;border-top:1px solid rgba(255,255,255,.08);font-size:.75rem;color:#636366}
.footer-certs{display:flex;gap:1rem;align-items:center}

/* ═══ SECTION SUBTITLES — always centered ═══ */
.section-sub{text-align:center!important;margin-left:auto!important;margin-right:auto!important;max-width:700px}
.section-tag{text-align:center!important}

/* ═══ COMPLAINT CAROUSEL ═══ */
.complaint-card{
  min-width:340px;max-width:380px;background:#ffffff;border:1px solid #e5e5ea;border-radius:16px;padding:1.5rem;
  display:flex;gap:.8rem;align-items:flex-start;flex-shrink:0;transition:transform .3s,box-shadow .3s;
}
.complaint-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.06)}
.complaint-card p{color:#1d1d1f;font-size:.92rem;font-weight:500;line-height:1.6;margin:0 0 .6rem;font-style:italic}
.complaint-card span{color:#86868b;font-size:.75rem;font-weight:500}
@keyframes scrollComplaints{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}
#complaints-track:hover{animation-play-state:paused}

/* ═══ RESPONSIVE LANDING ═══ */
@media(max-width:900px){
  .why-grid{grid-template-columns:1fr}
  .metrics{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .pain-grid,.svc-grid,.vert-grid,.pricing-grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr 1fr}
  .metrics{grid-template-columns:1fr}
  .hero-stats{gap:1.5rem}
  .footer-grid{grid-template-columns:1fr}
  .footer-bar{flex-direction:column;gap:.5rem;text-align:center}
}

/* ══════════════════════════════════════════
   APPLE REDESIGN — Full light mode override
   All sections white/light, no dark backgrounds
   ══════════════════════════════════════════ */

/* Hero: white background, dark text */
[data-theme="light"] #hero,
#hero {
  background: #ffffff !important;
}
[data-theme="light"] #hero *,
#hero, #hero * {
  color: #1d1d1f;
}
[data-theme="light"] .hero-h1,
.hero-h1 {
  color: #1d1d1f !important;
}
[data-theme="light"] .hero-sub,
.hero-sub {
  color: #86868b !important;
}
[data-theme="light"] .hero-badge,
.hero-badge {
  background: rgba(0,113,227,0.06) !important;
  border-color: rgba(0,113,227,0.15) !important;
  color: #0071e3 !important;
}
[data-theme="light"] .hero-pain,
.hero-pain {
  background: #f5f5f7 !important;
  border-color: #e5e5ea !important;
  color: #636366 !important;
}
.hero-pain strong {
  color: #0071e3 !important;
}
[data-theme="light"] #hero .btn-ghost,
#hero .btn-ghost {
  color: #0071e3 !important;
  border-color: #0071e3 !important;
}
[data-theme="light"] #hero .btn-ghost:hover,
#hero .btn-ghost:hover {
  background: rgba(0,113,227,0.06) !important;
}
.hero-glow, .hero-glow2, .hero-glow3 {
  display: none !important;
}
#hero-particles {
  opacity: 0.6;
}
.hstat-num {
  color: #0071e3 !important;
}
.hstat-lbl {
  color: #86868b !important;
}
.hero-stats > div {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 1rem 1.5rem;
}
.pulse-dot {
  background: #0071e3 !important;
}

/* Problemas section: light */
#problemas {
  background: #f5f5f7 !important;
}
#problemas h2,
#problemas .section-tag,
#problemas .section-sub {
  color: inherit;
}
.pain-card {
  background: #ffffff !important;
  border: 1px solid #e5e5ea !important;
  color: #1d1d1f !important;
}
.pain-card:hover {
  border-color: #d2d2d7 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}
.pain-t {
  color: #1d1d1f !important;
}
.pain-d, .pain-d span {
  color: #636366 !important;
}
.pain-sol {
  color: #0071e3 !important;
}
.pain-ico {
  background: rgba(0,113,227,0.06) !important;
}
.pain-ico svg {
  stroke: #0071e3 !important;
}

/* Proceso section: light */
#proceso {
  background: #ffffff !important;
}
#proceso h2,
#proceso .section-tag,
#proceso .section-sub {
  color: inherit;
}
.step {
  background: #f5f5f7 !important;
  border: 1px solid #e5e5ea !important;
  color: #1d1d1f !important;
}
.step-n {
  color: #0071e3 !important;
}
.step-t {
  color: #1d1d1f !important;
}
.step-d, .step-d span {
  color: #636366 !important;
}

/* Servicio cards: clean */
.svc-card {
  background: #ffffff !important;
  border: 1px solid #e5e5ea !important;
}
.svc-card:hover {
  border-color: #0071e3 !important;
  box-shadow: 0 4px 16px rgba(0,113,227,0.08) !important;
}
.svc-title {
  color: #1d1d1f !important;
}
.svc-desc, .svc-desc span {
  color: #636366 !important;
}
.svc-warn {
  color: #0071e3 !important;
}

/* Vertical cards (sectors) */
.vert-card {
  background: #ffffff !important;
  border: 1px solid #e5e5ea !important;
}
.vert-card:hover {
  border-color: #0071e3 !important;
}
.vert-title {
  color: #1d1d1f !important;
}
.vert-desc, .vert-desc span {
  color: #636366 !important;
}
.vert-saving {
  color: #0071e3 !important;
}

/* Pricing cards */
.pricing-card {
  background: #ffffff !important;
  border: 1px solid #e5e5ea !important;
}
.pricing-card:hover {
  border-color: #d2d2d7 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}
.pricing-card.featured {
  border-color: #0071e3 !important;
  box-shadow: 0 4px 20px rgba(0,113,227,0.12) !important;
}
.pricing-name {
  color: #1d1d1f !important;
}
.pricing-desc {
  color: #636366 !important;
}
.pricing-feat li {
  color: #636366 !important;
}
.pricing-badge {
  background: #0071e3 !important;
  color: #ffffff !important;
}

/* FAQ */
.faq-item {
  background: #ffffff !important;
  border: 1px solid #e5e5ea !important;
}
.faq-q {
  color: #1d1d1f !important;
}
.faq-a, .faq-a p, .faq-a span {
  color: #636366 !important;
}

/* Why section */
.why-t {
  color: #1d1d1f !important;
}
.why-d, .why-d span {
  color: #636366 !important;
}
.metric {
  background: #ffffff !important;
  border: 1px solid #e5e5ea !important;
}
.metric-n {
  color: #0071e3 !important;
}
.metric-l {
  color: #86868b !important;
}

/* Referidos */
.ref-step {
  background: #ffffff !important;
  border: 1px solid #e5e5ea !important;
}
.ref-num {
  color: #0071e3 !important;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0071e3, #005bb5) !important;
}

/* Contact */
.cform {
  background: #ffffff !important;
  border: 1px solid #e5e5ea !important;
}
.cform-title {
  color: #1d1d1f !important;
}
.cform-submit {
  background: #0071e3 !important;
  color: #ffffff !important;
  border-radius: 980px !important;
}

/* Footer: dark stays dark (Apple style) */
.pub-footer {
  background: #1d1d1f !important;
  color: #f5f5f7 !important;
  border-top: none !important;
}
.footer-col h4 {
  color: #f5f5f7 !important;
}
.footer-col a {
  color: #aeaeb2 !important;
}
.footer-col a:hover {
  color: #ffffff !important;
}
.footer-brand p {
  color: #aeaeb2 !important;
}
.footer-bottom {
  border-color: rgba(255,255,255,0.08) !important;
  color: #86868b !important;
}

/* Nav — clean white sticky */
.pub-nav {
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}
.nav-brand {
  color: #1d1d1f !important;
}
.nav-cta-btn {
  background: #0071e3 !important;
  color: #ffffff !important;
  border-radius: 980px !important;
}
.nav-portal-btn {
  color: #0071e3 !important;
  border-color: #0071e3 !important;
  border-radius: 980px !important;
}

/* Cookie banner — light */
#cookie-banner {
  background: #ffffff !important;
  border-top: 1px solid #e5e5ea !important;
  color: #1d1d1f !important;
}
#cookie-banner h3 {
  color: #1d1d1f !important;
}
#cookie-banner p {
  color: #636366 !important;
}

/* Logo: mobile=AS, desktop=ASESOR COMERCIAL */
.nav-brand-short{display:inline}
.nav-brand-full{display:none}
@media(min-width:769px){
  .nav-brand-short{display:none}
  .nav-brand-full{display:inline}
}
.nav-brand-full span:first-child{margin-right:4px}
