/* ========================================
   PARISIEN — SISTEMA DE CONTROL INTERNO
   styles.css  —  Édition Luxe v3.0
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@300,0&display=swap');

:root {
  /* Paleta principal */
  --green:        #1C5C3E;
  --green-light:  #2A7A55;
  --green-bg:     #EAF3ED;
  --green-dark:   #0E3222;
  --red:          #9E2020;
  --red-bg:       #FBF0F0;
  --gold:         #B8922A;
  --gold-bright:  #D4AF5A;
  --gold-bg:      #FBF6E9;
  --blue:         #1D4E8F;
  --blue-bg:      #EEF4FF;
  --purple-bg:    #F3EEF8;

  /* Fondos cálidos */
  --bg:           #F3EDE0;
  --bg2:          #E9E0CF;
  --white:        #FDFAF4;
  --ivory:        #F8F3E8;

  /* Tipografía */
  --text:         #1A1512;
  --text-muted:   #7A6B5A;
  --text-light:   #ADA094;

  /* Bordes */
  --border:       #DDD0BC;
  --border-light: #EDE5D4;

  /* Sidebar */
  --sidebar-w:    256px;
  --sidebar-bg:   #0C1F14;

  /* Accent gold */
  --accent:       #C9A84C;
  --accent-dim:   rgba(201,168,76,0.18);

  /* Radios */
  --radius:       10px;
  --radius-lg:    14px;
  --radius-xl:    20px;

  /* Sombras cálidas */
  --shadow-sm:    0 1px 3px rgba(26,21,18,0.06), 0 1px 2px rgba(26,21,18,0.04);
  --shadow:       0 4px 12px rgba(26,21,18,0.08), 0 2px 4px rgba(26,21,18,0.04);
  --shadow-md:    0 12px 28px rgba(26,21,18,0.10), 0 4px 10px rgba(26,21,18,0.06);
  --shadow-lg:    0 24px 48px rgba(26,21,18,0.18), 0 8px 20px rgba(26,21,18,0.10);
  --shadow-gold:  0 4px 20px rgba(201,168,76,0.25);
}

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

body {
  font-family: 'Inter', 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); text-decoration: underline; }

/* ── TIPOGRAFÍA DISPLAY ── */
h1, h2, h3,
.page-header h1,
.home-greeting,
.login-title,
.modal h3 {
  font-family: 'Noto Serif', 'Cormorant Garamond', Georgia, serif;
}

/* ── ANIMACIONES ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%       { box-shadow: 0 0 0 4px rgba(201,168,76,0.20); }
}

.fade-in { animation: fadeIn 0.3s ease forwards; }

/* ── LOGO ── */
.login-logo { margin-bottom: 10px; }
.sidebar-logo {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(201,168,76,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-img-login {
  width: 200px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.20));
}
.logo-img-sidebar {
  width: 148px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.90;
}

/* ── LOGIN ── */
.view-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(28,92,62,0.40) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(201,168,76,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(14,50,34,0.50) 0%, transparent 60%),
    linear-gradient(150deg, #060e08 0%, #0C1F14 45%, #142B1C 100%);
  position: relative;
  overflow: hidden;
}

/* Patrón art deco de fondo */
.view-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(201,168,76,0.03) 0px,
      rgba(201,168,76,0.03) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(201,168,76,0.03) 0px,
      rgba(201,168,76,0.03) 1px,
      transparent 1px,
      transparent 40px
    );
  pointer-events: none;
}

/* Fleur decorativa de fondo */
.view-login::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.view-login.hidden { display: none; }

.login-card {
  background: rgba(253,250,244,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  padding: 52px 48px 44px;
  width: 420px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201,168,76,0.15);
  text-align: center;
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Línea dorada decorativa */
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--gold-bright), var(--accent), transparent);
  border-radius: 0 0 99px 99px;
}

.login-logo { margin-bottom: 10px; }
.login-subtitle {
  color: var(--text-muted);
  font-size: 11.5px;
  margin-bottom: 36px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.form-group { text-align: left; margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 7px;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'Outfit', inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(28,92,62,0.10);
}
.form-group textarea { resize: vertical; min-height: 72px; }

.login-error {
  color: var(--red);
  font-size: 13px;
  margin-bottom: 16px;
  background: var(--red-bg);
  padding: 11px 15px;
  border-radius: 8px;
  border-left: 3px solid var(--red);
  text-align: left;
  font-weight: 500;
}
.forgot-link {
  display: block;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.3px;
  transition: color 0.15s;
}
.forgot-link:hover { color: var(--green); text-decoration: none; }

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 60%, var(--green-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 11px 22px;
  font-size: 13px;
  font-family: 'Outfit', inherit;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 12px rgba(28,92,62,0.30);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: 0 6px 20px rgba(28,92,62,0.38);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(28,92,62,0.25); }
.btn-primary:disabled { opacity: 0.50; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 13px;
  font-family: 'Outfit', inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-secondary:hover {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--green);
}

.btn-danger {
  background: linear-gradient(135deg, #C0392B 0%, var(--red) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 13px;
  font-family: 'Outfit', inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(158,32,32,0.25);
}
.btn-danger:hover { box-shadow: 0 5px 16px rgba(158,32,32,0.35); transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 13px;
  font-family: 'Outfit', inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(184,146,42,0.28);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(184,146,42,0.38); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 15px;
  transition: background 0.14s;
  color: var(--text-muted);
}
.btn-icon:hover { background: var(--bg2); color: var(--text); }

/* ── APP SHELL ── */
.view-app { display: flex; min-height: 100vh; }
.view-app.hidden { display: none; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 4px 0 32px rgba(0,0,0,0.25);
}

/* Textura sutil en sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.012) 0px,
      rgba(255,255,255,0.012) 1px,
      transparent 1px,
      transparent 3px
    );
  pointer-events: none;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.20); border-radius: 4px; }

.sidebar-nav { flex: 1; padding: 14px 0; position: relative; }

/* Separador decorativo en nav */
.sidebar-nav::before {
  content: '';
  display: block;
  margin: 0 20px 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.25), transparent);
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.60);
  border-left: 2px solid transparent;
  transition: all 0.18s;
  user-select: none;
  position: relative;
  letter-spacing: 0.2px;
}
.sidebar-nav .nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.90);
  border-left-color: rgba(201,168,76,0.40);
}
.sidebar-nav .nav-item.active {
  background: linear-gradient(90deg, rgba(201,168,76,0.14) 0%, rgba(201,168,76,0.04) 100%);
  color: #F5E6B8;
  border-left-color: var(--accent);
  font-weight: 600;
}
.sidebar-nav .nav-item.active .nav-icon {
  filter: drop-shadow(0 0 5px rgba(201,168,76,0.55));
}
.sidebar-nav .nav-icon { font-size: 15px; width: 22px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  padding: 18px;
  border-top: 1px solid rgba(201,168,76,0.12);
  background: rgba(0,0,0,0.20);
  position: relative;
}
.sidebar-user { font-size: 12px; color: rgba(255,255,255,0.50); margin-bottom: 12px; line-height: 1.5; }
.sidebar-user strong { display: block; color: rgba(255,255,255,0.88); font-size: 13.5px; margin-bottom: 2px; font-weight: 600; }

.btn-logout {
  width: 100%;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.60);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 8px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Outfit', inherit;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.3px;
}
.btn-logout:hover {
  background: rgba(158,32,32,0.45);
  color: #fff;
  border-color: rgba(158,32,32,0.35);
}

/* ── TOP HEADER BAR ── */
.top-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  align-items: center;
  padding: 0 16px;
  z-index: 800;
}
.top-header img {
  height: 34px;
  width: auto;
}

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 36px;
  min-height: 100vh;
  animation: fadeIn 0.28s ease;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 99px;
}
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.page-header p { color: var(--text-muted); font-size: 13.5px; margin-top: 5px; font-weight: 400; }

/* ── HOME ── */
.home-greeting {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.home-date { color: var(--text-muted); font-size: 13px; margin-bottom: 30px; font-weight: 400; }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

.module-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px 24px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold-bright), var(--accent));
  opacity: 0;
  transition: opacity 0.2s;
}
.module-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; top: 0;
  background: linear-gradient(160deg, rgba(201,168,76,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.module-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateY(-5px);
}
.module-card:hover::before { opacity: 1; }
.module-card:hover::after  { opacity: 1; }
.module-card .card-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.module-card .card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--text);
  letter-spacing: 0.1px;
}
.module-card .card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.module-card .card-badge {
  display: inline-block;
  margin-top: 11px;
  background: linear-gradient(135deg, #C0392B, var(--red));
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(158,32,32,0.30);
}

/* ── KPI CARDS ── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s;
}
.kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.kpi-card:has(.kpi-value.green)::after  { background: linear-gradient(90deg, var(--green), var(--green-light)); }
.kpi-card:has(.kpi-value.red)::after    { background: linear-gradient(90deg, var(--red), #C0392B); }
.kpi-card:has(.kpi-value.blue)::after   { background: linear-gradient(90deg, var(--blue), #2471A3); }
.kpi-card:has(.kpi-value.gold)::after   { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.kpi-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.kpi-card .kpi-label {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.kpi-card .kpi-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.kpi-card .kpi-value.green { color: var(--green); }
.kpi-card .kpi-value.red   { color: var(--red); }
.kpi-card .kpi-value.blue  { color: var(--blue); }
.kpi-card .kpi-value.gold  { color: var(--gold); }

/* ── TABLES ── */
.table-wrapper {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-wrapper .table-header {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
  background: var(--white);
}
.table-wrapper .table-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0px;
}

table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--ivory); }
th {
  padding: 11px 16px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--ivory); }
.sticky-col { position: sticky; left: 0; background: var(--white); z-index: 1; }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.badge-green  { background: var(--green-bg);  color: #1A5C38; }
.badge-red    { background: var(--red-bg);    color: #8B1C1C; }
.badge-gold   { background: var(--gold-bg);   color: #7A5C10; }
.badge-blue   { background: var(--blue-bg);   color: #1A3A8F; }
.badge-gray   { background: var(--bg2);       color: var(--text-muted); }
.badge-purple { background: var(--purple-bg); color: #5C1A8B; }

/* ── SECTION CARD ── */
.section-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.section-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--white);
}
.section-card-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 700;
}
.section-card-body { padding: 22px; }

/* ── CHART ── */
.chart-container { position: relative; height: 280px; }

/* ── PROGRESS BAR ── */
.progress-bar-wrap {
  background: var(--bg2);
  border-radius: 99px;
  height: 9px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(201,168,76,0.30);
}
.progress-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ── MONTH BUTTONS ── */
.month-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.month-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 12.5px;
  font-family: 'Outfit', inherit;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.month-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.month-btn.active {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(28,92,62,0.28);
}
.month-btn.has-data { border-color: var(--green); color: var(--green); background: var(--green-bg); }

/* ── YEAR NAV ── */
.year-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.year-nav .year-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  min-width: 62px;
  text-align: center;
  letter-spacing: 0.3px;
}

/* ── FILTERS ── */
.filters-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.filters-row input[type="text"],
.filters-row select {
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Outfit', inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filters-row input[type="text"]:focus,
.filters-row select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(28,92,62,0.08);
}

/* ── FORM ── */
.form-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.form-row .form-group { flex: 1; min-width: 160px; margin-bottom: 0; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ── ALERT ROWS ── */
.row-alert-yellow { background: #FDF8EC !important; }
.row-alert-red    { background: #FBF0F0 !important; }

/* ── EXPAND ── */
.expand-row td { background: var(--ivory); }
.expand-toggle { cursor: pointer; color: var(--blue); font-size: 11px; font-weight: 700; }

/* ── TABS ── */
.area-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--border);
}
.area-tab {
  padding: 10px 26px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-muted);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  font-family: 'Outfit', inherit;
  letter-spacing: 0.2px;
}
.area-tab.active { color: var(--green); border-bottom-color: var(--green); }
.area-tab:hover  { color: var(--green); }

/* ── PRODUCT SELECTOR ── */
.product-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}
.product-list-grid::-webkit-scrollbar { width: 5px; }
.product-list-grid::-webkit-scrollbar-track { background: var(--bg2); border-radius: 4px; }
.product-list-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.product-item {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  transition: all 0.15s;
}
.product-item:hover { border-color: var(--green-light); background: var(--green-bg); }
.product-item.selected { border-color: var(--green); background: var(--green-bg); }
.product-name { font-size: 13px; font-weight: 500; }
.qty-input {
  width: 62px;
  text-align: center;
  padding: 5px 6px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  font-family: 'Outfit', inherit;
  transition: border-color 0.15s;
  background: var(--white);
}
.qty-input:focus { outline: none; border-color: var(--green); }

/* ── ORDER SUMMARY ── */
.order-summary {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.order-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}
.order-summary-item:last-child { border-bottom: none; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(12,20,14,0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 200;
  animation: fadeIn 0.18s ease;
}
.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  z-index: 201;
  min-width: 360px;
  max-width: 520px;
  width: 92%;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  animation: slideUp 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 0 0 99px 99px;
}
.modal h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.1px;
  line-height: 1.3;
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── PIN ── */
.pin-input-wrap { display: flex; gap: 12px; justify-content: center; margin: 24px 0; }
.pin-digit {
  width: 56px; height: 64px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Outfit', inherit;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--ivory);
  transition: all 0.15s;
}
.pin-digit:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(28,92,62,0.12);
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(28,92,62,0.35);
  z-index: 300;
  animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 340px;
  border-left: 3px solid rgba(255,255,255,0.25);
  letter-spacing: 0.1px;
}
.toast.info    { background: linear-gradient(135deg, #2471A3, var(--blue)); box-shadow: 0 8px 28px rgba(29,78,143,0.35); }
.toast.error   { background: linear-gradient(135deg, #C0392B, var(--red)); box-shadow: 0 8px 28px rgba(158,32,32,0.35); }
.toast.warning { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1a1512; box-shadow: 0 8px 28px rgba(184,146,42,0.35); }
.toast.hidden  { display: none; }

/* ── EVALUACIONES ── */
.eval-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 24px; }
.eval-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.eval-stat {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: box-shadow 0.15s;
}
.eval-stat:hover { box-shadow: var(--shadow-sm); }
.eval-stat .stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.eval-stat .stat-lbl { font-size: 10.5px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin-top: 3px; }

/* ── RANKING ── */
.ranking-list { list-style: none; }
.ranking-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.ranking-list li:last-child { border-bottom: none; }
.rank-num {
  width: 28px; height: 28px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.rank-num.gold   { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); box-shadow: var(--shadow-gold); }
.rank-num.silver { background: linear-gradient(135deg, #B0B8C0, #8A9299); }
.rank-num.bronze { background: linear-gradient(135deg, #C08050, #9A6030); }
.rank-name { flex: 1; font-weight: 500; }
.rank-val  { font-weight: 700; color: var(--green); font-size: 13.5px; }

/* ── CATEGORY CARDS ── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; margin-bottom: 20px; }
.category-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  background: var(--white);
  transition: all 0.18s;
}
.category-card:hover {
  border-color: var(--green-light);
  background: var(--green-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.category-card.active {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #fff;
  box-shadow: 0 4px 14px rgba(28,92,62,0.28);
}
.category-card .cat-icon { font-size: 1.5rem; margin-bottom: 8px; display: block; }
.category-card .cat-name { font-size: 12px; font-weight: 700; line-height: 1.35; }

/* ── EXPANDED DETAIL ── */
.expanded-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.expanded-detail .detail-item {
  background: var(--ivory);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 12px;
}
.expanded-detail .detail-item .d-label { font-size: 10.5px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; }
.expanded-detail .detail-item .d-value { font-size: 13.5px; font-weight: 700; margin-top: 3px; }

/* ── STATUS ── */
.status-pendiente { background: var(--gold-bg);  color: #7A5C10; }
.status-proceso   { background: var(--blue-bg);  color: #1A3A8F; }
.status-listo     { background: var(--green-bg); color: #1A5C38; }

/* ── INCOME TABS ── */
.income-type-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.income-type-tab {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: 'Outfit', inherit;
  color: var(--text-muted);
  transition: all 0.15s;
}
.income-type-tab:hover { border-color: var(--blue); color: var(--blue); }
.income-type-tab.active {
  background: linear-gradient(135deg, #2471A3, var(--blue));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(29,78,143,0.28);
}

/* ── TABLE SCROLL ── */
.table-scroll { overflow-x: auto; }
.table-scroll::-webkit-scrollbar { height: 5px; }
.table-scroll::-webkit-scrollbar-track { background: var(--bg2); }
.table-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── SEPARATOR ── */
.separator { border: none; border-top: 1px solid var(--border-light); margin: 22px 0; }

/* ── UTILITIES ── */
.hidden { display: none !important; }
.text-muted   { color: var(--text-muted); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-blue    { color: var(--blue); }
.text-gold    { color: var(--gold); }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.fw-bold      { font-weight: 700; }
.fw-800       { font-weight: 800; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.flex         { display: flex; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }

/* ── COTIZACIONES DE EVENTOS ── */
.cotiz-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.cotiz-form-card, .cotiz-panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.cotiz-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 24px;
  font-size: 14px;
  line-height: 1.6;
}
.cotiz-plan-header {
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.cotiz-plan-bistro     { background: linear-gradient(135deg, #f0ebe3, #e8dcc8); border-left: 5px solid #c9a96e; }
.cotiz-plan-boulangerie{ background: linear-gradient(135deg, #edf5ee, #d4e8d5); border-left: 5px solid #4caf50; }
.cotiz-plan-parisien   { background: linear-gradient(135deg, #2c1a0e, #4a2f1a); border-left: 5px solid #c9a96e; color: #f5e6c8; }
.cotiz-plan-nombre {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.cotiz-plan-precio {
  font-size: 16px;
  font-weight: 700;
  color: #c9a96e;
  margin-bottom: 6px;
}
.cotiz-plan-parisien .cotiz-plan-precio { color: #f5c878; }
.cotiz-plan-desc {
  font-size: 13px;
  opacity: .85;
}
.cotiz-items-list {
  margin-bottom: 20px;
}
.cotiz-items-list h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.cotiz-item-group { margin-bottom: 10px; }
.cotiz-item-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #c9a96e;
  margin-bottom: 3px;
}
.cotiz-item-detalle {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 6px;
  line-height: 1.6;
}
.cotiz-item-qty {
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 6px;
  margin-top: 2px;
}
.cotiz-totales {
  background: var(--bg);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.cotiz-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.cotiz-total-row:last-child { border-bottom: none; }
.cotiz-total-main {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  padding: 10px 0;
}
.cotiz-adelanto-row {
  font-size: 15px;
  font-weight: 700;
  color: #c9a96e;
}
.cotiz-saldo-row {
  font-size: 14px;
  color: var(--text-secondary);
}
.cotiz-igv-ref {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px dashed var(--border) !important;
  padding-top: 6px !important;
}
.cotiz-no-personas {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0;
  font-style: italic;
}
.cotiz-alert {
  background: #fff8e1;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #7a5c00;
  margin-bottom: 16px;
}
.cotiz-actions { margin-top: 4px; }

/* ── IMPORTADOR PDF ── */
.pdf-import-result { margin-top: 4px; }
.pdf-import-ok {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #2e7d32;
  margin-bottom: 16px;
  font-weight: 600;
}
.pdf-import-error {
  background: #fdecea;
  border: 1px solid #ef9a9a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #c62828;
  margin-bottom: 12px;
}

/* ── HISTORIAL DE LIQUIDACIONES ── */
.pie-btn { transition: background .15s, color .15s; }
.pie-btn.active { background: var(--primary, #4a90d9) !important; color: #fff !important; border-color: var(--primary, #4a90d9) !important; }
.hist-filtros { background: var(--card-bg); border-radius: 12px; }
.hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.hist-table thead th {
  background: var(--sidebar-bg);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.hist-table tbody tr:hover { background: var(--hover-bg, #f5f5f5); }
.hist-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.hist-detalle table th,
.hist-detalle table td { padding: 6px 4px; border-bottom: 1px solid var(--border); }
.hist-detalle table thead th { background: none; font-size: 11px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .eval-grid { grid-template-columns: 1fr; }
  .cotiz-layout { grid-template-columns: 1fr; }
  .hist-detalle > div > div { grid-template-columns: 1fr !important; }
  .hist-charts-grid { grid-template-columns: 1fr !important; }
}
/* ── HAMBURGER BUTTON ── */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sidebar-bg);
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #C9A84C;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay para cerrar sidebar en mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 900;
}
.sidebar-overlay.active { display: block; }

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .top-header { display: flex; }
  .sidebar {
    transform: translateX(-256px);
    transition: transform 0.28s ease;
    z-index: 1000;
    position: fixed;
    height: 100vh;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 18px; padding-top: 72px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 40px 28px 32px; width: calc(100% - 32px); }
  #receta-form-panel .section-card > div > div[style*="grid"] { grid-template-columns: 1fr !important; }
  .hamburger-btn { display: flex; }
}

/* ══════════════════════════════════════════
   VISUAL REFRESH — v4 (menos rigidez)
══════════════════════════════════════════ */

/* Radios más generosos */
:root {
  --radius:    13px;
  --radius-lg: 18px;
  --radius-xl: 26px;
}

/* Fondo principal con textura suave */
body {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(28,92,62,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(201,168,76,0.05) 0%, transparent 50%),
    var(--bg);
}

/* KPI cards — borde izquierdo de color, fondo suave */
.kpi-card {
  border: none;
  border-left: 4px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px rgba(26,21,18,0.07);
  transition: box-shadow 0.22s, transform 0.22s;
}
.kpi-card:has(.kpi-value.green) { border-left-color: var(--green);      background: linear-gradient(135deg, rgba(28,92,62,0.04) 0%, var(--white) 60%); }
.kpi-card:has(.kpi-value.red)   { border-left-color: var(--red);        background: linear-gradient(135deg, rgba(158,32,32,0.04) 0%, var(--white) 60%); }
.kpi-card:has(.kpi-value.blue)  { border-left-color: var(--blue);       background: linear-gradient(135deg, rgba(29,78,143,0.04) 0%, var(--white) 60%); }
.kpi-card:has(.kpi-value.gold)  { border-left-color: var(--gold);       background: linear-gradient(135deg, rgba(184,146,42,0.05) 0%, var(--white) 60%); }
.kpi-card::after { display: none; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,21,18,0.11); }

/* Module cards — más redondas, sombra suave */
.module-card {
  border-radius: 20px;
  border: none;
  box-shadow: 0 2px 14px rgba(26,21,18,0.07);
  background: var(--white);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.module-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(26,21,18,0.13);
}

/* Section cards — header con gradiente suave */
.section-card {
  border: none;
  box-shadow: 0 2px 16px rgba(26,21,18,0.07);
  border-radius: var(--radius-lg);
}
.section-card-header {
  background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, var(--white) 80%);
  border-bottom: 1px solid var(--border-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Nav items — forma de pill */
.sidebar-nav .nav-item {
  margin: 2px 10px;
  border-radius: 10px;
  border-left: none;
  padding: 10px 14px;
  transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.sidebar-nav .nav-item:hover {
  background: rgba(255,255,255,0.09);
  transform: translateX(3px);
}
.sidebar-nav .nav-item.active {
  background: linear-gradient(135deg, rgba(201,168,76,0.22) 0%, rgba(201,168,76,0.08) 100%);
  box-shadow: 0 2px 12px rgba(201,168,76,0.15);
}

/* Tabla — filas alternadas más suaves */
thead tr { background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, var(--ivory) 100%); }
tbody tr:nth-child(even) { background: rgba(243,237,224,0.40); }
tbody tr:hover { background: linear-gradient(90deg, rgba(28,92,62,0.05), rgba(28,92,62,0.02)); }

/* Table wrapper sin borde rígido */
.table-wrapper {
  border: none;
  box-shadow: 0 2px 16px rgba(26,21,18,0.07);
  border-radius: var(--radius-lg);
}

/* Inputs más redondos */
.form-group input,
.form-group select,
.form-group textarea {
  border-radius: var(--radius);
  border: 1.5px solid var(--border-light);
  background: rgba(253,250,244,0.8);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: #fff;
  border-color: var(--green-light);
  box-shadow: 0 0 0 4px rgba(28,92,62,0.08);
}

/* Buttons más redondeados */
.btn-primary, .btn-secondary, .btn-danger, .btn-gold {
  border-radius: 50px;
  padding: 10px 24px;
  letter-spacing: 0.3px;
}
.btn-sm { padding: 5px 16px; }

/* Month buttons — pill */
.month-btn { border-radius: 50px; }

/* Page header más cálido */
.page-header {
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  padding: 20px 24px 16px;
  border-bottom: none;
  margin-bottom: 24px;
  box-shadow: 0 1px 8px rgba(26,21,18,0.05);
}
.page-header::after { display: none; }

/* Toast más redondeado */
.toast { border-radius: 14px !important; }

/* Badge más suave */
.badge { border-radius: 50px; padding: 3px 12px; }

/* Scrollbar más delgada y suave */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,21,18,0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,21,18,0.22); }

/* ══════════════════════════════════════════
   STITCH DESIGN SYSTEM — inspirado en Google Stitch
══════════════════════════════════════════ */

/* Fondo cremoso con textura suave */
:root {
  --stitch-bg:        #fcf9ef;
  --stitch-surface:   #ffffff;
  --stitch-container: #f1eee4;
  --stitch-outline:   #c2c8c3;
  --stitch-green:     #0a2118;
  --stitch-tint:      #4c6358;
}
body { background: var(--stitch-bg); }

/* ── Top header frosted glass (escritorio) ── */
.main-content {
  padding-top: 0;
}

/* ── Sidebar refinado Stitch ── */
.sidebar {
  background: linear-gradient(180deg, #0a2118 0%, #0C1F14 100%);
  box-shadow: 4px 0 40px rgba(10,33,24,0.18);
}
.sidebar-logo {
  padding: 28px 20px 20px;
}
.sidebar-nav .nav-item {
  margin: 1px 8px;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(252,249,239,0.65);
  border-left: none;
}
.sidebar-nav .nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(252,249,239,0.95);
  transform: translateX(2px);
}
.sidebar-nav .nav-item.active {
  background: rgba(53,76,65,0.85);
  color: #fcf9ef;
  font-weight: 600;
  border-left: 3px solid rgba(252,249,239,0.6);
  border-radius: 0 10px 10px 0;
  margin-left: 0;
  padding-left: 19px;
}

/* ── KPI cards estilo Stitch ── */
.kpi-card {
  background: #ffffff;
  border: 1px solid rgba(194,200,195,0.25);
  border-left: none;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 12px 32px -4px rgba(28,28,22,0.07);
  transition: box-shadow 0.25s, transform 0.25s;
}
.kpi-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px -4px rgba(28,28,22,0.11); }
.kpi-card .kpi-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #727974;
  margin-bottom: 12px;
  font-weight: 600;
}
.kpi-card .kpi-value {
  font-family: 'Noto Serif', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

/* ── Section cards estilo Stitch ── */
.section-card {
  background: #ffffff;
  border: 1px solid rgba(194,200,195,0.2);
  border-radius: 16px;
  box-shadow: 0 8px 24px -4px rgba(28,28,22,0.06);
}
.section-card-header {
  background: linear-gradient(135deg, #f7f4e9 0%, #ffffff 70%);
  border-radius: 16px 16px 0 0;
  padding: 18px 24px;
}
.section-card-header h3 {
  font-family: 'Noto Serif', serif;
  font-size: 18px;
}
.section-card-body { padding: 24px; }

/* ── Tabla estilo Stitch ── */
.table-wrapper {
  background: #ffffff;
  border: 1px solid rgba(194,200,195,0.2);
  border-radius: 16px;
  box-shadow: 0 8px 24px -4px rgba(28,28,22,0.05);
}
thead tr {
  background: #f7f4e9;
}
th {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #727974;
  padding: 14px 18px;
  border-bottom: 1px solid #ebe8de;
}
td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(235,232,222,0.7);
}
tbody tr:nth-child(even) { background: transparent; }
tbody tr:hover { background: rgba(241,238,228,0.5); }
tbody tr:last-child td { border-bottom: none; }

/* ── Module cards estilo Stitch ── */
.module-card {
  background: #ffffff;
  border: 1px solid rgba(194,200,195,0.2);
  border-radius: 20px;
  box-shadow: 0 8px 24px -4px rgba(28,28,22,0.06);
  padding: 28px 22px 24px;
}
.module-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 48px -4px rgba(28,28,22,0.12);
  border-color: rgba(76,99,88,0.25);
}

/* ── Page header estilo Stitch ── */
.page-header {
  background: transparent;
  padding: 4px 0 20px;
  border-bottom: 1px solid rgba(194,200,195,0.3);
  margin-bottom: 28px;
  border-radius: 0;
  box-shadow: none;
}
.page-header h1 {
  font-family: 'Noto Serif', serif;
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 700;
  color: #0a2118;
  letter-spacing: -0.5px;
}
.page-header p {
  color: #727974;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
}

/* ── Home greeting Stitch ── */
.home-greeting {
  font-family: 'Noto Serif', serif;
  font-style: italic;
  color: #0a2118;
}

/* ── Botones estilo Stitch ── */
.btn-primary {
  background: #0a2118;
  border-radius: 50px;
  box-shadow: none;
  letter-spacing: 0.8px;
  font-size: 12px;
  text-transform: uppercase;
}
.btn-primary:hover {
  background: #1a3229;
  box-shadow: 0 4px 16px rgba(10,33,24,0.25);
  transform: translateY(-1px);
}
.btn-logout {
  background: rgba(252,249,239,0.08);
  color: rgba(252,249,239,0.7);
  border: 1px solid rgba(252,249,239,0.12);
  border-radius: 50px;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.btn-logout:hover {
  background: rgba(186,26,26,0.35);
  color: #fff;
  border-color: transparent;
}

/* ── Inputs Stitch ── */
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #c2c8c3;
  border-radius: 12px;
  background: #ffffff;
  font-family: 'Inter', sans-serif;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #4c6358;
  box-shadow: 0 0 0 3px rgba(76,99,88,0.12);
}

/* ── Login card Stitch ── */
.login-card {
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(10,33,24,0.22);
}

/* ── Material Icons support ── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}
