/* ==========================================================================
   Canesi Consulting — style.css
   Paleta: azul marino profundo + cian/acento data, tipografía moderna.
   ========================================================================== */

:root {
  --navy-950: #060b16;
  --navy-900: #0a1122;
  --navy-800: #0f1830;
  --navy-700: #16213f;
  --navy-600: #202f52;
  --cyan-400: #38e0d8;
  --cyan-500: #16b8c4;
  --violet-400: #8b7bff;
  --text-hi: #f4f7fb;
  --text-mid: #b9c3d6;
  --text-low: #7c88a3;
  --border: rgba(255,255,255,0.08);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy-950);
  color: var(--text-mid);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--text-hi); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-mid); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-400);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--cyan-400);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan-400), var(--violet-400));
  color: #06131f;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(56,224,216,0.25); }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-hi);
}
.btn-outline:hover { border-color: var(--cyan-400); color: var(--cyan-400); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-hi);
}
.logo span {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan-400), var(--violet-400));
  display: flex; align-items: center; justify-content: center;
  color: #06131f; font-weight: 900;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-mid);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-hi); border-color: var(--cyan-400); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-hi); font-size: 1.5rem; cursor: pointer; }

/* Dropdown "Soluciones" */
.dropdown { position: relative; }
.dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.dropdown .caret { font-size: 0.7rem; transition: transform .15s ease; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--navy-900);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  min-width: 240px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 120;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown:hover .caret { transform: rotate(180deg); }
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: none;
}
.dropdown-menu a:hover { background: var(--navy-700); color: var(--text-hi); }

/* Botones laterales flotantes */
.side-actions {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 150;
}
.side-btn {
  position: relative;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.side-btn:hover { transform: scale(1.08); }
.side-btn-contact { background: linear-gradient(135deg, var(--cyan-400), var(--violet-400)); color: #06131f; }
.side-btn-facebook { background: #1877F2; }
.side-tooltip {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-800);
  border: 1px solid var(--border);
  color: var(--text-hi);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.side-btn:hover .side-tooltip { opacity: 1; }
@media (max-width: 640px) {
  .side-actions { right: 12px; gap: 10px; }
  .side-btn { width: 44px; height: 44px; font-size: 1rem; }
  .side-tooltip { display: none; }
}

@media (max-width: 900px) {
  .nav-wrap { flex-wrap: wrap; row-gap: 10px; }
  .logo { flex: 1 0 100%; order: -1; }
  .logo img { height: 32px !important; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-900);
    flex-direction: column; align-items: flex-start; padding: 18px 24px; border-bottom: 1px solid var(--border);
    display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .dropdown-menu { display: none !important; }
  .dropdown .caret { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(56,224,216,0.12), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(139,123,255,0.14), transparent 40%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero p.lead { font-size: 1.05rem; margin: 18px 0 30px; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.mini-stat-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 14px; }
.mini-stat {
  background: var(--navy-700);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.mini-stat .num { font-size: 1.5rem; font-weight: 800; color: var(--cyan-400); }
.mini-stat .lbl { font-size: 0.78rem; color: var(--text-low); }

/* ---------- Secciones genéricas ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56,224,216,0.35); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(56,224,216,0.12);
  color: var(--text-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card .icon .material-symbols-outlined { font-size: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.94rem; }
.card a.card-link { display: inline-block; margin-top: 14px; font-size: 0.86rem; color: var(--cyan-400); font-weight: 600; }

.band {
  background: var(--navy-900);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner {
  background: linear-gradient(135deg, rgba(56,224,216,0.14), rgba(139,123,255,0.14));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Material Symbols ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 28;
  font-size: 26px;
  line-height: 1;
  vertical-align: middle;
}
.material-symbols-outlined.inline-icon {
  font-size: 1.15em;
  vertical-align: -5px;
  margin-right: 5px;
  color: var(--cyan-400);
}

/* ---------- Listas de características ---------- */
.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: var(--text-mid);
}
.feature-list li::before {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
  content: "check_circle";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 18px;
  color: var(--cyan-400);
}
.subhead {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-hi);
  margin: 30px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prose { font-size: 1.02rem; color: var(--text-mid); }
.prose p { margin-bottom: 16px; }

/* ---------- Splash de bienvenida (dashboard animado) ---------- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at 20% 15%, rgba(56,224,216,0.14), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(139,123,255,0.16), transparent 45%),
    var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 26px;
  transition: opacity .6s ease, visibility .6s ease;
}
#splash.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: splashIn .6s ease forwards;
}
.splash-brand .mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan-400), var(--violet-400));
  display: flex; align-items: center; justify-content: center;
  color: #06131f; font-weight: 900; font-size: 1.1rem;
}
.splash-brand .name { font-size: 1.4rem; font-weight: 800; color: var(--text-hi); }

.splash-tagline {
  font-size: 0.86rem;
  color: var(--text-low);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: splashIn .6s ease .15s forwards;
}

.splash-panel {
  width: min(520px, 86vw);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  opacity: 0;
  animation: splashIn .6s ease .25s forwards;
}
.splash-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.splash-kpi { background: var(--navy-700); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.splash-kpi .lbl { font-size: 0.65rem; color: var(--text-low); text-transform: uppercase; letter-spacing: .04em; }
.splash-kpi .num { font-size: 1.25rem; font-weight: 800; color: var(--cyan-400); margin-top: 4px; }

.splash-chart-row { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-bottom: 16px; }
.splash-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--cyan-400), var(--violet-400));
  border-radius: 4px 4px 0 0;
  height: 0%;
  transform-origin: bottom center;
  animation: splashBar 1s ease forwards, splashPulse 2.4s ease-in-out infinite 1.2s;
}
.splash-progress-track {
  height: 4px;
  border-radius: 999px;
  background: var(--navy-700);
  overflow: hidden;
}
.splash-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-400), var(--violet-400));
  border-radius: 999px;
  animation: splashProgress 9s ease forwards .2s;
}

@keyframes splashIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashBar {
  from { height: 0%; }
}
@keyframes splashPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.9); }
}
@keyframes splashProgress {
  from { width: 0%; }
  to   { width: 100%; }
}
.splash-line { width: 100%; height: 46px; margin-bottom: 4px; }
.splash-line path {
  fill: none;
  stroke: var(--cyan-400);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: splashDraw 1.4s ease forwards .3s;
}
@keyframes splashDraw { to { stroke-dashoffset: 0; } }

/* ---------- Landing pages de marketing (anuncios) ---------- */
.landing-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 50px 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(56,224,216,0.12), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(139,123,255,0.14), transparent 45%),
    var(--navy-950);
}
.landing-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 900px) { .landing-grid { grid-template-columns: 1fr; } }
.landing-left img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.landing-left .feature-list { margin: 18px 0 26px; }
.landing-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.landing-right .form-card { margin: 0; }

/* ---------- Formularios ---------- */
.form-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-mid); margin-bottom: 7px; font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--navy-950);
  color: var(--text-hi);
  font-family: var(--font);
  font-size: 0.94rem;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--cyan-400); }
.form-msg { padding: 12px 16px; border-radius: 9px; font-size: 0.88rem; margin-bottom: 18px; }
.form-msg.success { background: rgba(56,224,216,0.12); color: var(--cyan-400); border: 1px solid rgba(56,224,216,0.3); }
.form-msg.error { background: rgba(255,99,99,0.1); color: #ff8f8f; border: 1px solid rgba(255,99,99,0.3); }

/* Errores de validación por campo */
.field-error {
  display: block;
  color: #ff8f8f;
  font-size: 0.78rem;
  margin-top: 6px;
  min-height: 0;
}

/* Barra de progreso del envío */
#progressBarContainer {
  display: none;
  height: 6px;
  border-radius: 999px;
  background: var(--navy-700);
  overflow: hidden;
  margin: 4px 0 8px;
}
#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-400), var(--violet-400));
  border-radius: 999px;
  transition: width .2s ease;
}
#progressText {
  display: block;
  font-size: 0.78rem;
  color: var(--text-low);
  margin-bottom: 10px;
}

/* intl-tel-input adaptado al tema oscuro */
.iti { width: 100%; position: relative; }
.iti__country-list {
  list-style: none;
  background: var(--navy-800);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-hi);
  box-shadow: var(--shadow);
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 0;
  z-index: 200;
}
.iti__country {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  white-space: nowrap;
  cursor: pointer;
}
.iti__country .iti__flag-box { flex-shrink: 0; width: 20px; }
.iti__country-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-mid);
  font-size: 0.86rem;
}
.iti__dial-code { flex-shrink: 0; color: var(--text-low); font-size: 0.86rem; }
.iti__country.iti__highlight { background: var(--navy-700); }
.iti__country.iti__highlight .iti__country-name { color: var(--text-hi); }
.iti__divider { border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 6px; }
.iti__selected-flag { background: transparent !important; }
.iti__selected-flag:hover, .iti__selected-flag:focus { background: var(--navy-700) !important; }
.iti input, .iti input[type="tel"] { padding-left: 52px !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 50px 0 24px; background: var(--navy-900); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 0.9rem; margin-bottom: 14px; color: var(--text-hi); }
.footer-grid li { margin-bottom: 9px; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--cyan-400); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: var(--text-low);
}

/* ---------- Breadcrumb / page header interno ---------- */
.page-hero {
  padding: 60px 0 40px;
  background: radial-gradient(circle at 20% 0%, rgba(56,224,216,0.10), transparent 50%);
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 0.82rem; color: var(--text-low); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--cyan-400); }

/* ---------- Dashboard layout ---------- */
.dash-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .dash-shell { grid-template-columns: 1fr; } }
.dash-sidebar {
  background: var(--navy-900);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
@media (max-width: 900px) { .dash-sidebar { position: static; height: auto; } }
.dash-sidebar .logo { margin-bottom: 30px; padding: 0 6px; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  font-size: 0.9rem; color: var(--text-mid); font-weight: 500;
  margin-bottom: 4px;
}
.dash-nav a:hover { background: var(--navy-700); color: var(--text-hi); }
.dash-nav a.active { background: rgba(56,224,216,0.12); color: var(--cyan-400); }
.dash-main { padding: 28px 30px 60px; overflow-x: hidden; max-width: 100%; }
@media (max-width: 640px) { .dash-main { padding: 20px 16px 50px; } }
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px; flex-wrap: wrap; gap: 14px;
}
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.user-chip .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-400), var(--violet-400));
  display: flex; align-items: center; justify-content: center;
  color: #06131f; font-weight: 700; font-size: 0.85rem;
}
.badge { font-size: 0.68rem; padding: 3px 9px; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge-admin { background: rgba(139,123,255,0.16); color: var(--violet-400); }
.badge-cliente { background: rgba(56,224,216,0.16); color: var(--cyan-400); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
@media (max-width: 1000px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.kpi-card .lbl { font-size: 0.78rem; color: var(--text-low); text-transform: uppercase; letter-spacing: .05em; }
.kpi-card .val { font-size: 1.7rem; font-weight: 800; color: var(--text-hi); margin: 8px 0 4px; }
.kpi-card .delta { font-size: 0.8rem; font-weight: 600; }
.delta.up { color: #38e0a0; }
.delta.down { color: #ff8f8f; }

.panel {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h3 { font-size: 1rem; }
.charts-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
@media (max-width: 950px) { .charts-row { grid-template-columns: 1fr; } }

.chart-box { position: relative; width: 100%; height: 240px; }
.chart-box.chart-box-sm { height: 220px; }
@media (max-width: 640px) {
  .chart-box { height: 200px; }
  .chart-box.chart-box-sm { height: 190px; }
}

table.dash-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.dash-table th {
  text-align: left; color: var(--text-low); font-weight: 600;
  text-transform: uppercase; font-size: 0.72rem; letter-spacing: .04em;
  padding: 8px 10px; border-bottom: 1px solid var(--border);
}
table.dash-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); color: var(--text-mid); }
table.dash-table tr:last-child td { border-bottom: none; }
.status-pill { font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.status-activo { background: rgba(56,224,216,0.14); color: var(--cyan-400); }
.status-riesgo { background: rgba(255,99,99,0.14); color: #ff8f8f; }
.status-completado { background: rgba(56,224,160,0.14); color: #38e0a0; }
