/* ============================================================
   1. FUENTES E IMPORTACIONES
   ============================================================ */
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   2. VARIABLES GLOBALES
   ============================================================ */
:root {
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --primary: #2563eb;
  --primary-gradient: linear-gradient(145deg, #4f72ff 0%, #4365f6 100%);
  --text-dark: #0f172a;
  --text-gray: #64748b;
  --bg-body: #F1F5F9;
  --border-light: #e2e8f0;
  
  /* Tamaños Unificados */
  --fs-h1: 32px;
  --fs-card-title: 24px;
  --fs-card-price: 22px;
}

/* ============================================================
   3. RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* Ocultar cosas */
.hidden { display: none !important; }

/* ============================================================
   4. LAYOUT MAESTRO (Igual para Dashboard y Servicios)
   ============================================================ */
.layout { display: flex; min-height: 100vh; }

/* Sidebar Fija */
.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid var(--border-light);
  display: flex; flex-direction: column; padding: 32px 24px;
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 50;
}

/* Contenido Principal (Ancho total para ambos) */
.main {
  flex: 1;
  margin-left: 260px;
  padding: 40px 48px 140px; /* Espacio para el Dock */
  width: calc(100% - 260px);
}

.page {
  max-width: 100%; /* OCUPA TODO EL ANCHO SIEMPRE */
  margin: 0 auto;
}

/* ============================================================
   5. SIDEBAR (Estilo Unificado)
   ============================================================ */
.logo {
  font-size: 26px; font-weight: 900; letter-spacing: -0.04em; 
  color: var(--text-dark); margin-bottom: 40px; display: block;
}

.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  color: var(--text-gray); text-decoration: none; font-weight: 600;
  border-radius: 12px; margin-bottom: 4px; transition: all 0.2s; font-size: 14px;
}

.nav-link:hover { background: #f8fafc; color: #1e293b; }
.nav-link.is-active { background: #eff6ff; color: var(--primary); }

.nav-icon-svg {
  width: 20px; height: 20px; stroke-width: 2; stroke: currentColor; fill: none;
}

.sidebar-footer {
  margin-top: auto; padding-top: 24px; border-top: 1px solid #f1f5f9;
  font-size: 11px; font-weight: 600; color: #94a3b8;
}

/* ============================================================
   6. CABECERA Y KPIs
   ============================================================ */
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px;
}

.h1 { font-size: var(--fs-h1); font-weight: 800; margin: 0 0 8px; letter-spacing: -0.03em; line-height: 1; color: var(--text-dark); }
.eyebrow { font-size: 14px; color: var(--text-gray); font-weight: 500; display: flex; align-items: center; gap: 8px;}

/* Burbujas de Datos */
.stats-grid, .services-stats { display: flex; gap: 12px; }

.stat-pill, .services-stat-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 20px; min-height: 42px; border-radius: 999px; gap: 8px;
  background: #ffffff; border: 1px solid #e2e8f0;
  font-size: 13px; color: var(--text-gray); font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.stat-pill strong, .services-stat-pill strong {
  font-size: 15px; font-weight: 700; color: var(--text-dark); margin-right: 4px;
}
.stat-dot, .services-stat-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ============================================================
   7. TARJETAS (CARDS)
   ============================================================ */
.card, .service-card {
  background: #fff; border-radius: 24px; padding: 32px;
  border: 1px solid #e2e8f0; box-shadow: 0 10px 20px -5px rgba(0,0,0,0.03);
}

/* Títulos de Tarjetas */
.card-title, .service-card-title {
  font-size: var(--fs-card-title) !important;
  font-weight: 800; color: var(--text-dark); margin: 0 0 12px;
}

/* ============================================================
   8. BOTONES (GLOW)
   ============================================================ */
.btn, .service-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 24px; height: 42px; border-radius: 12px;
  font-size: 13px; font-weight: 700; cursor: pointer; border: none;
  background: var(--primary-gradient); color: #fff;
  box-shadow: 0 4px 14px rgba(67, 101, 246, 0.4);
  transition: all 0.2s;
}
.btn:hover, .service-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* Botón Outline (Blanco) */
.btn-outline, .service-btn--off {
  background: #fff; color: var(--text-gray); border: 1px solid #cbd5e1; box-shadow: none;
}
.btn-outline:hover, .service-btn--off:hover {
  border-color: #94a3b8; color: var(--text-dark);
}

/* ============================================================
   9. SLIDERS (Solo para Servicios)
   ============================================================ */
.services-slider { margin-bottom: 60px; }
.services-slider-track {
  display: flex; gap: 24px; overflow-x: auto; padding-bottom: 24px;
  scroll-snap-type: x mandatory;
}
.services-slider-track::-webkit-scrollbar { display: none; }
.services-slider-track .service-card {
  min-width: 400px; scroll-snap-align: start;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
/* Banda azul */
.service-card::before { content:""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--primary); }

/* ============================================================
   10. GRID DASHBOARD (Solo para Dashboard)
   ============================================================ */
.dashboard-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}

/* ============================================================
   11. DOCK FLOTANTE
   ============================================================ */
.sf-dock, .sf-dock--stratos {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px);
  padding: 12px 30px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.15);
  display: flex; gap: 24px; z-index: 9999;
}
.dock-item { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.dock-icon svg { width: 24px; height: 24px; stroke: #64748b; stroke-width: 1.8; fill: none; }
.dock-label { font-size: 10px; font-weight: 600; color: #64748b; margin-top: 4px; }

/* ============================================================
   12. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .sidebar { display: none; }
  .main { margin-left: 0; width: 100%; padding: 20px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .services-slider-track .service-card { min-width: 85vw; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
}

