/* ============================================================
   STUDIO-WEBART — Design System v1.0
   Fuente marca: MomoTrustDisplay (self-hosted)
   Paleta: iOS Premium / Verde-amarillo acento
   ============================================================ */

/* ── 0. FUENTE CORPORATIVA ─────────────────────────────────── */
@font-face {
  font-family: 'MomoTrustDisplay';
  src: url('/assets/fonts/MomoTrustDisplay-Regular.woff2') format('woff2'),
       url('/assets/fonts/MomoTrustDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── 1. VARIABLES DE TEMA ──────────────────────────────────── */
:root {
  --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;

  --bg-primary:   #EEEEF0;
  --bg-secondary: #F5F5F7;
  --bg-tertiary:  #E0E0E2;
  --bg-card:      #FFFFFF;
  --bg-sidebar:   #FFFFFF;
  --bg-input:     #F5F5F7;
  --bg-overlay:   rgba(0,0,0,0.4);

  --text-primary:   #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary:  #98989D;
  --text-inverse:   #FFFFFF;

  --accent:          #A3C400;
  --accent-2:        #BDD900;
  --accent-3:        #D4EF4A;
  --accent-gradient: linear-gradient(135deg, #8BA800, #A3C400, #BDD900);
  --accent-hover:    #8BA800;
  --accent-light:    rgba(163,196,0,0.10);
  --accent-medium:   rgba(163,196,0,0.20);

  --success:     #34C759;  --success-bg: rgba(52,199,89,0.12);
  --warning:     #FF9500;  --warning-bg: rgba(255,149,0,0.12);
  --danger:      #FF3B30;  --danger-bg:  rgba(255,59,48,0.12);
  --info:        #007AFF;  --info-bg:    rgba(0,122,255,0.12);
  --vacation:    #5AC8FA;
  --holiday:     #FFD60A;

  --border:        rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.16);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 24px 48px rgba(0,0,0,0.14);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-full: 9999px;
  --sidebar-width:  260px;
  --header-height:  60px;
  --transition:      0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── 2. MODO OSCURO ────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --theme: dark; }
}
[data-theme="dark"] {
  --bg-primary:   #0A0A0C;
  --bg-secondary: #161618;
  --bg-tertiary:  #222224;
  --bg-card:      #1C1C1E;
  --bg-sidebar:   #141416;
  --bg-input:     #2C2C2E;
  --text-primary:   #F5F5F7;
  --text-secondary: #98989D;
  --text-tertiary:  #636366;
  --accent:          #BEDA00;
  --accent-2:        #D0EC00;
  --accent-3:        #E4F566;
  --accent-hover:    #A3C400;
  --accent-light:    rgba(163,196,0,0.13);
  --accent-medium:   rgba(163,196,0,0.24);
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:     0 12px 32px rgba(0,0,0,0.5);
}

/* ── 3. TIPOGRAFÍA CORPORATIVA ─────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.page-title, .card-title, .login-title, .lc-title,
.section-title, .modal-title, .stat-label, .nav-item {
  font-family: 'MomoTrustDisplay', var(--font-sans);
  letter-spacing: 1px;
  font-weight: 400;
}
.nav-item { font-size: 13px !important; }

/* ── 4. RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-slow);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── 5. LAYOUT ─────────────────────────────────────────────── */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--header-height) 1fr;
  min-height: 100vh;
  grid-template-areas: "sidebar header" "sidebar main";
}

/* ── 6. SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  grid-area: sidebar;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-width); height: 100vh;
  overflow-y: auto; overflow-x: hidden;
  z-index: 100;
  transition: transform var(--transition-slow);
  scrollbar-width: none; -ms-overflow-style: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-logo {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0; padding: 20px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo img { height: 60px !important; max-width: 165px !important; width: auto !important; object-fit: contain !important; }
.sidebar-logo .sidebar-logo-light { display: block !important; }
.sidebar-logo .sidebar-logo-dark  { display: none  !important; }
[data-theme="dark"] .sidebar-logo .sidebar-logo-light { display: none  !important; }
[data-theme="dark"] .sidebar-logo .sidebar-logo-dark  { display: block !important; }
.sidebar-logo-sub { font-size: 16px; color: var(--text-secondary); margin-top: 4px; }

.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; scrollbar-width: none; }
.nav-section { margin-bottom: 20px; }
.nav-section-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-tertiary); padding: 0 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-md);
  color: var(--text-secondary); font-weight: 500;
  transition: all var(--transition);
  cursor: pointer; border: none; background: none;
  width: 100%; text-align: left; text-decoration: none;
}
.nav-item:hover { background: var(--accent-light); opacity: 1; }
.nav-item.active { background: var(--accent-light) !important; color: var(--accent) !important; }
.nav-item.active svg { stroke: var(--accent); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer { padding: 12px 10px 16px; border-top: 1px solid var(--border); margin-top: auto; flex-shrink: 0; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-md); transition: background var(--transition); cursor: pointer; }
.user-card:hover { background: var(--bg-secondary); }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--accent); flex-shrink: 0; overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-secondary); }
.dev-credit-inline { font-size: 10px; color: var(--text-tertiary); text-align: center; display: block; }
.dev-credit-inline a { color: var(--text-tertiary); text-decoration: none; }
.dev-credit-inline a:hover { color: var(--accent); }

/* ── 7. HEADER ─────────────────────────────────────────────── */
.app-header {
  grid-area: header; position: sticky; top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 90; display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
}
[data-theme="dark"] .app-header { background: rgba(28,28,30,0.85); }
.header-title    { font-size: 17px; font-weight: 600; flex: 1; }
.header-greeting { font-size: 14px; font-weight: 500; color: var(--text-secondary); flex: 1; }
.header-actions  { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition); color: var(--text-secondary); position: relative; }
.icon-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.icon-btn svg { width: 18px; height: 18px; }
.notif-badge { position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; background: var(--danger); border-radius: 50%; font-size: 9px; font-weight: 700; color: white; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg-primary); }
.msg-badge { position: absolute; top: -4px; right: -4px; background: var(--accent-gradient); color: white; font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ── 8. MAIN CONTENT ───────────────────────────────────────── */
.main-content { grid-area: main; padding: 28px; min-height: calc(100vh - var(--header-height)); background: var(--bg-secondary); }
.page-header { margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; }
.page-title    { font-size: 26px; color: var(--text-primary); }
.page-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 2px; }

/* ── 9. CARDS ──────────────────────────────────────────────── */
.card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 20px rgba(163,196,0,.12); }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 15px; }
.card-body  { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-secondary); }

/* ── 10. STAT CARDS ────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow var(--transition), transform var(--transition); }
.stat-card:hover { box-shadow: 0 4px 20px rgba(163,196,0,.15); transform: translateY(-1px); }
.stat-icon  { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-label { font-size: 12px; color: var(--text-secondary); }
.stat-value { font-size: 26px; font-weight: 700; color: var(--text-primary); font-family: var(--font-display); }
.stat-change { font-size: 12px; color: var(--text-tertiary); }
.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* ── 11. BOTÓN FICHAR ──────────────────────────────────────── */
.fichar-hero { background: var(--bg-card); border-radius: var(--radius-xl); border: 1px solid var(--border); padding: 36px; text-align: center; box-shadow: var(--shadow-md); }
.fichar-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-tertiary); }
.status-dot.active { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); animation: pulse 2s infinite; }
.status-dot.paused { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-bg); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.cronometro { font-size: 56px; font-weight: 700; letter-spacing: -2px; color: var(--text-primary); font-family: var(--font-display); font-variant-numeric: tabular-nums; margin: 12px 0; }
.cronometro.paused { color: var(--warning); }
.fichar-date { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.fichar-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-fichar { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 48px; border-radius: var(--radius-full); font-size: 17px; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); }
.btn-fichar-start  { background: var(--accent-gradient) !important; color: white; box-shadow: 0 4px 20px rgba(163,196,0,0.35); }
.btn-fichar-start:hover  { transform: scale(1.02); box-shadow: 0 6px 24px rgba(163,196,0,0.45); }
.btn-fichar-start:active { transform: scale(0.98); }
.btn-fichar-pause  { background: var(--warning); color: white; box-shadow: 0 4px 20px rgba(255,149,0,0.30); }
.btn-fichar-pause:hover  { background: #E68800; transform: scale(1.02); }
.btn-fichar-resume { background: var(--info); color: white; box-shadow: 0 4px 20px rgba(0,122,255,0.30); }
.btn-fichar-resume:hover { background: #0066DD; transform: scale(1.02); }
.btn-fichar-end    { background: var(--danger); color: white; box-shadow: 0 4px 20px rgba(255,59,48,0.30); }
.btn-fichar-end:hover    { background: #E0352C; transform: scale(1.02); }

/* ── 12. BOTONES ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; border: none; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn-primary   { background: var(--accent-gradient) !important; color: white !important; box-shadow: 0 2px 12px rgba(163,196,0,.30); }
.btn-primary:hover   { opacity: .88; box-shadow: 0 4px 18px rgba(163,196,0,.45); }
.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-tertiary); }
.btn-danger    { background: var(--danger); color: white; }
.btn-danger:hover    { background: #E0352C; }
.btn-ghost     { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover     { background: var(--bg-secondary); color: var(--text-primary); }
.btn-sm  { padding: 6px 12px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 13px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.w-full { width: 100%; }

/* ── 13. FORMULARIOS ───────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 14px; border-radius: var(--radius-md); border: 1.5px solid var(--border-strong); background: var(--bg-input); color: var(--text-primary); font-size: 15px; outline: none; -webkit-appearance: none; transition: border-color var(--transition), box-shadow var(--transition); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-control::placeholder { color: var(--text-tertiary); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6E73' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer; }
.form-hint  { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.input-group .form-control { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group .btn           { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.toggle { position: relative; width: 44px; height: 26px; cursor: pointer; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg-tertiary); border-radius: var(--radius-full); transition: background var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform var(--transition); box-shadow: var(--shadow-sm); }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── 14. TABLAS ────────────────────────────────────────────── */
.table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.card .table-wrapper { border: none; border-radius: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { background: var(--bg-secondary); padding: 11px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-secondary); }
tbody td { padding: 12px 16px; color: var(--text-primary); vertical-align: middle; }
.table-wrapper table th { white-space: nowrap; }
.table-wrapper table td { white-space: normal; }
.table-wrapper table td form, .table-wrapper table td .btn, .table-wrapper table td a.btn, .table-wrapper table td button { white-space: nowrap; }

/* .table-mobile-wrap: display:contents en desktop, grid en móvil */
.table-mobile-wrap { display: contents; }

/* ── 15. BADGES ────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);     color: var(--info); }
.badge-neutral { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-accent  { background: var(--accent-gradient) !important; color: white !important; border: none; }

/* ── 16. MODALES ───────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: var(--bg-overlay); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: all var(--transition); backdrop-filter: blur(4px); }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--bg-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; transform: scale(0.96) translateY(8px); transition: transform var(--transition); }
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 17px; }
.modal-close { background: var(--bg-secondary); border: none; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary); }
.modal-close:hover { background: var(--bg-tertiary); }
.modal-body   { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }

/* ── 17. ALERTAS ───────────────────────────────────────────── */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 16px; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-bg); color: #1A6B2B; border: 1px solid rgba(52,199,89,0.25); }
.alert-warning { background: var(--warning-bg); color: #7A4800; border: 1px solid rgba(255,149,0,0.25); }
.alert-danger  { background: var(--danger-bg);  color: #B02A20; border: 1px solid rgba(255,59,48,0.25); }
.alert-info    { background: var(--info-bg);     color: #0040A0; border: 1px solid rgba(0,122,255,0.25); }
[data-theme="dark"] .alert-success { color: #7AE49A; }
[data-theme="dark"] .alert-warning { color: #FFB84D; }
[data-theme="dark"] .alert-danger  { color: #FF8A84; }
[data-theme="dark"] .alert-info    { color: #66AEFF; }

/* ── 18. TABS ──────────────────────────────────────────────── */
.tabs { display: flex; gap: 2px; background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 4px; margin-bottom: 20px; }
.tab-btn { flex: 1; padding: 8px 12px; border: none; background: none; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.tab-btn.active { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── 19. NOTIFICACIONES ────────────────────────────────────── */
.notif-panel { position: fixed; top: var(--header-height); right: 16px; width: 340px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); z-index: 500; overflow: hidden; transform: translateY(-8px) scale(0.97); opacity: 0; visibility: hidden; transition: all var(--transition); }
.notif-panel.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.notif-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.notif-title { font-size: 14px; font-weight: 600; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start; transition: background var(--transition); cursor: pointer; }
.notif-item:hover { background: var(--bg-secondary); }
.notif-item.unread { background: var(--accent-light); }
.notif-item:last-child { border-bottom: none; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }
.notif-content .notif-msg-title { font-size: 13px; font-weight: 600; }
.notif-content .notif-msg-body  { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.notif-content .notif-time      { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }

/* ── 20. CALENDARIO ────────────────────────────────────────── */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-header { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; padding: 8px 0; }
.cal-day { aspect-ratio: 1; border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; transition: background var(--transition); position: relative; padding: 4px; min-height: 52px; }
.cal-day:hover { background: var(--bg-secondary); }
.cal-day.today { background: var(--accent-light); }
.cal-day.today .cal-day-num { color: var(--accent); font-weight: 700; }
.cal-day.worked   { background: var(--success-bg); }
.cal-day.deficit  { background: var(--danger-bg); }
.cal-day.vacation { background: rgba(90,200,250,0.15); }
.cal-day.holiday  { background: rgba(255,214,10,0.15); }
.cal-day.other-month { opacity: 0.35; }
.cal-day-num   { font-size: 14px; font-weight: 500; }
.cal-day-hours { font-size: 10px; color: var(--text-secondary); }
.cal-ref-full { display: inline; }
.cal-ref-only { display: none; }

/* ── 21. PROGRESO ──────────────────────────────────────────── */
.progress-bar  { height: 6px; background: var(--bg-tertiary); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-full); background: var(--accent-gradient) !important; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.progress-fill.warning { background: var(--warning) !important; }
.progress-fill.danger  { background: var(--danger) !important; }

/* ── 22. SEARCH ────────────────────────────────────────────── */
.search-box { display: flex; align-items: center; gap: 8px; background: var(--bg-input); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px; transition: border-color var(--transition); }
.search-box:focus-within { border-color: var(--accent); }
.search-box svg { width: 16px; height: 16px; color: var(--text-tertiary); flex-shrink: 0; }
.search-box input { border: none; background: none; outline: none; flex: 1; font-size: 14px; color: var(--text-primary); }
.search-box input::placeholder { color: var(--text-tertiary); }

/* ── 23. TOAST ─────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--text-primary); color: var(--bg-primary); padding: 12px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; animation: toast-in 0.3s ease; max-width: 320px; }
.toast.success { background: var(--accent); color: white; }
.toast.error   { background: var(--danger);  color: white; }
.toast.warning { background: var(--warning); color: white; }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── 24. SKELETON ──────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── 25. KANBAN ────────────────────────────────────────────── */
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; align-items: flex-start; }
.kanban-col   { min-width: 260px; max-width: 300px; flex-shrink: 0; }
.kanban-col-header { padding: 10px 14px; border-radius: 10px 10px 0 0; font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; }
.kanban-col-body   { background: var(--bg-secondary); border-radius: 0 0 10px 10px; min-height: 120px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.kanban-card { background: var(--bg-card); border-radius: 10px; padding: 12px; cursor: grab; box-shadow: 0 1px 4px rgba(0,0,0,.06); border-left: 3px solid transparent; transition: box-shadow .15s; }
.kanban-card:active    { cursor: grabbing; }
.kanban-card.dragging  { opacity: .5; box-shadow: 0 8px 24px rgba(163,196,0,.3); }
.kanban-card.drag-over { border-left-color: var(--accent); background: var(--accent-light); }

/* ── 26. POPUP PAUSA ───────────────────────────────────────── */
.pausa-popup-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; animation: fadeIn .2s ease; }
.pausa-popup { background: var(--bg-card); border-radius: 24px; padding: 32px 28px; max-width: 380px; width: 90%; text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,.3); animation: slideUp .25s ease; }
.pausa-popup .pausa-gif    { font-size: 72px; margin-bottom: 12px; display: block; }
.pausa-popup .pausa-msg    { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; }
.pausa-popup .pausa-nombre { font-weight: 700; font-size: 16px; color: var(--text-primary); }
.pausa-popup .pausa-tipo   { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.pausa-popup .pausa-timer  { font-family: var(--font-mono); font-size: 36px; font-weight: 700; color: var(--accent); margin: 16px 0; }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }

/* ── 27. MENSAJERÍA ────────────────────────────────────────── */
#mensajesHilo { scrollbar-width: none; -ms-overflow-style: none; }
#mensajesHilo::-webkit-scrollbar { display: none; }

/* ── 28. ANUNCIOS / NOTAS ──────────────────────────────────── */
.anuncio-card   { border-left: 3px solid var(--accent); }
.anuncio-fijado { border-left-color: #FFB800; }
.nota-card { border-radius: 12px; padding: 14px 16px; position: relative; transition: transform .18s ease, box-shadow .18s ease; cursor: default; min-height: 160px; display: flex; flex-direction: column; }
.nota-card:hover { transform: translateY(-4px) rotate(1.2deg); box-shadow: 6px 10px 24px rgba(0,0,0,.18); }

/* ── 29. LOGIN ─────────────────────────────────────────────── */
.login-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-secondary); padding: 24px; gap: 20px; align-items: stretch; }
.login-hero { background: linear-gradient(135deg, #1A2200 0%, #2A3800 35%, #3D5200 65%, #4F6B00 100%); display: flex; flex-direction: column; padding: 36px 40px; position: relative; overflow: hidden; border-radius: 20px; }
.login-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 20%, rgba(190,230,0,0.18) 0%, transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(100,140,0,0.3) 0%, transparent 50%); pointer-events: none; }
.login-hero-brand { margin-bottom: 40px; position: relative; z-index: 2; }
.login-hero-logo  { height: 36px; width: auto; }
.login-carousel { flex: 1; position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 0; }
.lc-slide { display: none; flex-direction: column; gap: 0; animation: lcFadeIn .45s ease; height: 100%; }
.lc-slide.active { display: flex; flex: 1; }
@keyframes lcFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.lc-graphic { position: relative; overflow: visible; flex: 1; display: flex; align-items: center; justify-content: center; }
.lc-svg { width: 100%; height: 305px; display: block; }
.lc-bar { transform-origin: bottom; animation: barGrow .6s ease backwards; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.lc-line { stroke-dasharray: 400; stroke-dashoffset: 400; animation: lineGrow 1.2s ease .3s forwards; }
@keyframes lineGrow { to { stroke-dashoffset: 0; } }
.lc-stat-card { position: absolute; background: rgba(15,5,40,0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(160,200,0,0.35); border-radius: 12px; padding: 8px 14px; text-align: center; min-width: 70px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.lc-stat-val   { font-size: 20px; font-weight: 700; color: white; line-height: 1.1; }
.lc-stat-label { font-size: 10px; color: rgba(255,255,255,0.6); margin-top: 2px; white-space: nowrap; }
.lc-text { color: white; text-align: center; padding-top: 20px; margin-top: auto; }
.lc-title { font-size: 35px; margin: 0 0 12px; line-height: 1.15; }
.lc-desc  { font-size: 18px; color: rgba(255,255,255,0.65); line-height: 1.6; margin: 0 10%; }
.lc-dots { display: flex; gap: 8px; margin-top: 20px; position: relative; z-index: 2; justify-content: center; }
.lc-dot  { width: 28px; height: 5px; border-radius: 3px; border: none; background: rgba(255,255,255,0.25); cursor: pointer; transition: all .25s; padding: 0; }
.lc-dot.active { width: 48px; background: white; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 32px 24px; background: var(--bg-card); border-radius: 20px; border: 1px solid var(--border); }
.login-card { background: var(--bg-card); border-radius: var(--radius-xl); padding: 40px; width: 100%; max-width: 400px; }
.login-logo     { display: flex; justify-content: center; margin-bottom: 28px; }
.login-title    { font-size: 22px; text-align: center; margin-bottom: 6px; }
.login-subtitle { text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; }
.login-logo-light { display: block; }
.login-logo-dark  { display: none; }
[data-theme="dark"] .login-logo-light { display: none; }
[data-theme="dark"] .login-logo-dark  { display: block; }

/* ── 30. MISC ──────────────────────────────────────────────── */
.dev-credit-demo { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--accent-gradient); color: white; font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: 20px; box-shadow: 0 4px 16px rgba(163,196,0,.4); z-index: 999; white-space: nowrap; text-decoration: none; }
#actividadChart { max-height: 420px; }

/* ── 31. SIDEBAR OVERLAY ───────────────────────────────────── */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: var(--bg-overlay); z-index: 99; }
.menu-toggle { display: none; }

/* ── 32. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-width: 220px; }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 260px; }
  .app-layout { grid-template-columns: 1fr; grid-template-areas: "header" "main"; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; opacity: 0; visibility: hidden; transition: all var(--transition); }
  .sidebar-overlay.open { opacity: 1; visibility: visible; }
  .app-header  { margin-left: 0; padding: 0 16px; }
  .main-content { margin-left: 0; padding: 16px 12px; }
  .menu-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cronometro { font-size: 42px; }
  .fichar-hero { padding: 24px 16px; }
  .btn-fichar  { padding: 14px 32px; font-size: 16px; }
  .fichar-actions { flex-direction: column; align-items: center; }
  .page-header { flex-direction: column; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
  .page-header > div:last-child { flex-wrap: wrap; }
  .card-header { flex-wrap: wrap; gap: 6px; }
  .modal { max-width: 95vw !important; max-height: 85vh; overflow-y: auto; margin: 0; }
  .modal-body { max-height: 60vh; overflow-y: auto; }
  .modal-overlay { padding: 10px; align-items: flex-start; padding-top: 40px; }
  th, td { font-size: 12px; padding: 6px 8px; white-space: nowrap; }
  .table-wrapper table { min-width: 540px; width: max-content; }
  .table-mobile-wrap { display: grid; grid-template-columns: 1fr; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .table-mobile-wrap .card { min-width: 0; overflow: hidden; }
  .table-mobile-wrap .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-mobile-wrap .table-wrapper table { min-width: 540px; width: max-content; }
  body { overflow-x: hidden; }
  .kanban-board { flex-direction: column; overflow-x: visible; gap: 0; }
  .kanban-col   { min-width: unset; max-width: unset; width: 100%; display: flex; flex-direction: row; align-items: stretch; }
  .kanban-col-header { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); border-radius: 0 0 10px 10px; padding: 12px 8px; min-width: 36px; max-width: 36px; flex-shrink: 0; justify-content: space-between; align-items: center; }
  .kanban-col-header span:last-child { writing-mode: horizontal-tb; transform: rotate(180deg); border-radius: 10px; }
  .kanban-col-body  { display: flex; flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; gap: 8px; padding: 8px; flex: 1; min-height: 140px; border-radius: 0 10px 10px 0; align-items: flex-start; }
  .kanban-card { min-width: 220px; max-width: 260px; flex-shrink: 0; }
  .kanban-col + .kanban-col { border-top: 1px solid var(--border); }
  .filters-bar, form.card-body { flex-wrap: wrap !important; overflow-x: hidden !important; }
  .filters-bar .form-control, .filters-bar select, .filters-bar input[type="date"], .filters-bar input[type="text"] { min-width: 120px; flex: 1 1 120px; }
  .upload-form-grid { grid-template-columns: 1fr !important; }
  .nota-card { min-height: 130px; }
  #actividadChart { max-height: 220px; }
  .card-body canvas { max-width: 100%; }
  .cal-ref-full { display: none; }
  .cal-ref-only { display: inline; }
  .login-split { grid-template-columns: 1fr; grid-template-rows: auto auto; padding: 16px; gap: 16px; }
  .login-form-side { order: 1; min-height: auto; padding: 32px 20px; }
  .login-hero      { order: 2; min-height: 440px; padding: 28px 24px; border-radius: 16px; }
  .login-hero-brand { display: none; }
  .lc-svg   { height: 220px; }
  .lc-title { font-size: 18px; }
  .lc-desc  { font-size: 13px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .btn  { font-size: 13px; padding: 8px 12px; }
  .tabs { gap: 4px; }
  .tab-btn { font-size: 12px; padding: 6px 8px; }
  .page-title { font-size: 20px; }
  th, td { font-size: 11px; padding: 5px 6px; }
  .login-card  { padding: 24px 16px; }
  .login-hero  { padding: 20px 16px; }
  .login-split { padding: 12px; }
  .modal { border-radius: var(--radius-lg); }
}

/* ── 33. UTILIDADES ────────────────────────────────────────── */
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.text-sm { font-size: 13px; } .text-xs { font-size: 11px; } .text-lg { font-size: 17px; }
.text-secondary { color: var(--text-secondary); } .text-danger { color: var(--danger); }
.text-success { color: var(--success); } .text-warning { color: var(--warning); }
.font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.hidden   { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 34. PRINT ─────────────────────────────────────────────── */
@media print {
  .sidebar, .app-header, .no-print { display: none !important; }
  .main-content { margin: 0; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ── STUDIO-WEBART — Estilos específicos ───────────────────── */

/* Login hero adaptado al color de Studio */
.login-hero {
  background: linear-gradient(135deg, #1A2200 0%, #2A3800 35%, #3D5200 65%, #4F6B00 100%) !important;
}

/* Badge accent con color correcto */
.badge-accent  { background: linear-gradient(135deg, #8BA800, #A3C400, #BDD900) !important; color: #111 !important; }
.badge-purple  { background: rgba(163,196,0,0.15); color: #5A7000; }
[data-theme="dark"] .badge-purple { background: rgba(163,196,0,0.2); color: #C8E800; }

/* Urgencia de vencimiento — mantenimientos */
.urgencia-ok      { color: var(--success); }
.urgencia-media   { color: var(--warning); }
.urgencia-alta    { color: #FF6B00; font-weight: 600; }
.urgencia-critica { color: var(--danger); font-weight: 700; }
.urgencia-vencido { color: var(--danger); font-weight: 700; text-decoration: underline; }

tr.urgencia-critica-row  { background: rgba(255,59,48,0.04) !important; }
tr.urgencia-vencido-row  { background: rgba(255,59,48,0.08) !important; }

/* Avatar initials */
.avatar-initials {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent-light);
  color: var(--accent); font-weight: 700; flex-shrink: 0;
}

/* Historial / timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 14px; padding: 10px 0; position: relative; }
.timeline-item:not(:last-child)::after {
  content: ''; position: absolute; left: 15px; top: 36px;
  width: 2px; bottom: -10px; background: var(--border);
}
.timeline-dot {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-secondary);
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 12px; z-index: 1;
}
.timeline-dot.accent  { background: var(--accent-light); border-color: var(--accent); }
.timeline-dot.success { background: var(--success-bg); border-color: var(--success); }
.timeline-dot.danger  { background: var(--danger-bg);  border-color: var(--danger); }
.timeline-body { flex: 1; padding-top: 4px; }
.timeline-title { font-size: 13px; font-weight: 600; }
.timeline-desc  { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.timeline-time  { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; }

/* Kanban col colores por estado */
.kanban-col[data-estado="backlog"]    .kanban-col-header { background: var(--bg-tertiary); color: var(--text-secondary); }
.kanban-col[data-estado="pendiente"]  .kanban-col-header { background: var(--info-bg); color: var(--info); }
.kanban-col[data-estado="en_proceso"] .kanban-col-header { background: var(--warning-bg); color: var(--warning); }
.kanban-col[data-estado="revision"]   .kanban-col-header { background: rgba(163,196,0,0.15); color: #5A7000; }
.kanban-col[data-estado="completada"] .kanban-col-header { background: var(--success-bg); color: var(--success); }
[data-theme="dark"] .kanban-col[data-estado="revision"] .kanban-col-header { color: #C8E800; }

/* Prioridad kanban card */
.kanban-card[data-prioridad="urgente"] { border-left-color: var(--danger); }
.kanban-card[data-prioridad="alta"]    { border-left-color: var(--warning); }
.kanban-card[data-prioridad="media"]   { border-left-color: var(--info); }
.kanban-card[data-prioridad="baja"]    { border-left-color: var(--border); }

/* Paginador */
.paginador { display: flex; gap: 6px; justify-content: center; padding: 16px; flex-wrap: wrap; }

/* Lead cards */
.lead-card { border-left: 3px solid var(--border); }
.lead-card.potencial-alto { border-left-color: var(--success); }
.lead-card.potencial-medio { border-left-color: var(--warning); }
.lead-card.potencial-bajo { border-left-color: var(--danger); }
.potencial-stars { color: var(--accent); font-size: 14px; }

/* Calendario alquileres */
.cal-reserva-airbnb  { background: rgba(255,90,55,0.15); }
.cal-reserva-booking { background: rgba(0,95,200,0.15); }
.cal-reserva-directo { background: rgba(163,196,0,0.15); }
.cal-reserva-airbnb .cal-day-num  { color: #FF5A37; font-weight: 600; }
.cal-reserva-booking .cal-day-num { color: #005FC8; font-weight: 600; }
.cal-reserva-directo .cal-day-num { color: #5A7000; font-weight: 600; }

/* Screenshot proyecto */
.proyecto-screenshot {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius-md); border: 1px solid var(--border);
}
.proyecto-screenshot-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg-secondary); border-radius: var(--radius-md);
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; color: var(--text-tertiary); font-size: 13px;
}

/* Bolsa horas progreso */
.bolsa-progreso-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }

/* Proceso publicación checklist */
.checklist-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; margin-top: 2px; flex-shrink: 0; }
.checklist-item.completado .checklist-titulo { text-decoration: line-through; color: var(--text-tertiary); }
.checklist-categoria { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); }

/* Filtros bar */
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); }

/* Estado pago */
.estado-pagado   { color: var(--success); font-weight: 600; }
.estado-pendiente { color: var(--warning); font-weight: 600; }
.estado-vencido  { color: var(--danger); font-weight: 600; }

/* Recursos grid */
.recursos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.recurso-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-card); text-decoration: none; color: var(--text-primary); transition: all var(--transition); }
.recurso-card:hover { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-light); opacity: 1; transform: translateY(-1px); }
.recurso-icono { font-size: 24px; flex-shrink: 0; }
.recurso-nombre { font-size: 13px; font-weight: 600; }
.recurso-desc   { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
