:root {
  --sidebar-bg: #1a2035;
  --sidebar-width: 260px;
  --navbar-height: 62px;
  --primary: #4361ee;
  --primary-dark: #3451d1;
  --success: #00b69b;
  --warning: #ffb200;
  --danger: #ef4444;
  --info: #0ea5e9;
  --body-bg: #f0f2f7;
  --card-shadow: 0 2px 16px rgba(0,0,0,.07);
  --card-radius: 14px;
}

* { box-sizing: border-box; }
body { background: var(--body-bg); font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; font-size: 16px; margin: 0; }

/* ===== ACCESIBILIDAD — texto grande para adultos mayores ===== */
:root { --sidebar-width: 280px; }
h1,h2,h3,h4,h5,h6 { font-size: revert; }
h5 { font-size: 1.25rem; }
.card-title, .fw-bold { font-size: inherit; }
.table { font-size: 1rem; }
.table th, .table td { padding: .75rem .9rem; vertical-align: middle; }
.btn { font-size: 1rem; padding: .55rem 1.1rem; }
.btn-sm { font-size: .95rem; padding: .38rem .8rem; }
.form-control, .form-select { font-size: 1rem; padding: .55rem .85rem; }
.form-label { font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.badge { font-size: .85rem; padding: .38em .65em; }
.small, small { font-size: .9rem !important; }
.text-muted { font-size: inherit; }
.nav-link-item { font-size: 1rem !important; }
.modal-title { font-size: 1.25rem !important; }
.modal-body { font-size: 1rem; }
input[type="date"], input[type="number"], input[type="text"], input[type="email"] { font-size: 1rem !important; }

/* ===== SIDEBAR ===== */
#sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  z-index: 1030; overflow: hidden;
  transition: transform .25s ease;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
}
.sidebar-brand .brand-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.sidebar-brand .brand-text { color: #fff; }
.sidebar-brand .brand-text strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.sidebar-brand .brand-text small { font-size: 10px; color: rgba(255,255,255,.45); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }

/* sidebar section badge eliminado — selector movido al topbar */

.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 12px; margin-top: 4px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.nav-solo-padre { display: none; }
.nav-section-label {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.3);
  text-transform: uppercase; letter-spacing: .1em;
  padding: 12px 8px 4px; display: block;
}
.nav-link-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 8px;
  color: rgba(255,255,255,.6);
  text-decoration: none; font-size: 15px; font-weight: 500;
  cursor: pointer; border: none; background: none; width: 100%;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.nav-link-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.nav-link-item.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(67,97,238,.35); }
.nav-link-item .nav-icon { width: 20px; text-align: center; font-size: 17px; }
.nav-link-item .nav-badge { margin-left: auto; background: rgba(255,255,255,.15); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 20px; }
.nav-link-item.active .nav-badge { background: rgba(255,255,255,.25); }

/* sidebar-user eliminado — usuario y logout movidos al topbar */

/* ===== TOP NAVBAR ===== */
#topBar {
  position: fixed; top: 0; left: var(--sidebar-width); right: 0;
  height: var(--navbar-height); background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  display: flex; align-items: center; padding: 0 20px;
  z-index: 1020; gap: 14px;
}
#topBar .page-title { font-size: 18px; font-weight: 700; color: #1e293b; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Selector de sección en topbar */
.topbar-seccion {
  display: flex; align-items: center; gap: 0;
  background: #f1f5f9; border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  padding: 0 4px 0 10px;
  height: 38px; min-width: 180px; max-width: 260px;
  transition: border-color .15s;
}
.topbar-seccion:focus-within { border-color: var(--primary); }
.topbar-seccion .sec-ico { font-size: 15px; color: var(--primary); margin-right: 6px; flex-shrink: 0; }
.topbar-seccion select {
  background: transparent; border: none; outline: none;
  font-size: 13px; font-weight: 600; color: #1e293b;
  flex: 1; cursor: pointer; padding: 0; min-width: 0;
  -webkit-appearance: none; appearance: none;
}
.topbar-seccion select:disabled { cursor: default; color: #64748b; }
.topbar-seccion .chev { font-size: 11px; color: #94a3b8; flex-shrink: 0; margin-left: 4px; }

/* Fecha en topbar */
.topbar-date { font-size: 12px; color: #94a3b8; white-space: nowrap; }

/* Usuario en topbar */
.topbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 10px; cursor: default;
  border: 1.5px solid #e2e8f0; background: #f8fafc;
  height: 38px;
}
.topbar-user .av {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.topbar-user .uname { font-size: 13px; font-weight: 600; color: #1e293b; white-space: nowrap; }
.topbar-user .urole { font-size: 11px; color: #94a3b8; white-space: nowrap; }
.topbar-logout {
  width: 36px; height: 36px; border-radius: 8px;
  background: #fee2e2; border: none; color: #dc2626;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 17px; flex-shrink: 0;
  transition: background .15s;
}
.topbar-logout:hover { background: #fecaca; }

/* ===== MAIN CONTENT ===== */
#mainContent {
  margin-left: var(--sidebar-width);
  padding-top: var(--navbar-height);
  min-height: 100vh;
}
.content-wrapper { padding: 28px 28px; }

/* ===== SMALL BOXES (stat cards) ===== */
.small-box {
  border-radius: var(--card-radius);
  padding: 0; overflow: hidden;
  box-shadow: var(--card-shadow);
  position: relative; min-height: 100px;
  display: flex; flex-direction: column;
  background: #fff;
  border-left: 4px solid transparent;
  transition: transform .15s, box-shadow .15s;
}
.small-box:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.small-box .inner { padding: 18px 20px 14px; flex: 1; }
.small-box .inner h3 { font-size: 32px; font-weight: 800; margin: 0 0 2px; line-height: 1; }
.small-box .inner p { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin: 0; }
.small-box .icon {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 48px; opacity: .12; line-height: 1;
}
.small-box.box-primary { border-left-color: var(--primary); }
.small-box.box-primary .inner h3 { color: var(--primary); }
.small-box.box-primary .icon { color: var(--primary); }
.small-box.box-success { border-left-color: var(--success); }
.small-box.box-success .inner h3 { color: var(--success); }
.small-box.box-success .icon { color: var(--success); }
.small-box.box-danger { border-left-color: var(--danger); }
.small-box.box-danger .inner h3 { color: var(--danger); }
.small-box.box-danger .icon { color: var(--danger); }
.small-box.box-warning { border-left-color: var(--warning); }
.small-box.box-warning .inner h3 { color: var(--warning); }
.small-box.box-warning .icon { color: var(--warning); }
.small-box .small-box-footer {
  background: rgba(0,0,0,.04); padding: 8px 20px;
  font-size: 13px; font-weight: 600; color: #94a3b8;
  cursor: pointer; display: block; text-decoration: none;
  border-top: 1px solid rgba(0,0,0,.05);
  transition: background .15s;
}
.small-box .small-box-footer:hover { background: rgba(0,0,0,.07); color: #64748b; }

/* ===== CARDS ===== */
.card { border: none; border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.card-header {
  background: #fff; border-bottom: 1px solid #f1f5f9;
  padding: 16px 20px; border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
  display: flex; align-items: center; justify-content: space-between;
}
.card-header .card-title { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0; display: flex; align-items: center; gap: 8px; }
.card-header .card-title i { font-size: 18px; }
.card-body { padding: 20px; }

/* ===== TABLES ===== */
.table { font-size: 15px; }
.table thead th {
  background: #f8fafc; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #64748b; border: none; padding: 12px 16px;
  white-space: nowrap;
}
.table tbody td { vertical-align: middle; padding: 14px 16px; border-color: #f1f5f9; }
.table tbody tr:hover td { background: #f8fafc; }
.table thead tr { border-bottom: 2px solid #e2e8f0; }

/* ===== BADGES ===== */
.badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; letter-spacing: .02em; }

/* ===== BUTTONS ===== */
.btn { border-radius: 8px; font-weight: 600; font-size: 13px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ===== EVENTO CARD ===== */
.evento-card {
  background: #fff; border-radius: var(--card-radius);
  box-shadow: var(--card-shadow); padding: 18px 22px;
  border-left: 4px solid var(--primary);
  transition: transform .15s, box-shadow .15s;
}
.evento-card:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.evento-card.cerrado { border-left-color: #cbd5e1; }

/* ===== ASISTENCIA ===== */
.asist-row { padding: 10px 20px; display: flex; align-items: center; border-bottom: 1px solid #f1f5f9; }
.asist-row:last-child { border-bottom: none; }
.asist-row:hover { background: #f8fafc; }

/* ===== COMUNICADO ===== */
.comunicado-card {
  background: #fff; border-radius: var(--card-radius);
  box-shadow: var(--card-shadow); padding: 20px 22px;
  border-left: 4px solid #e2e8f0;
}
.comunicado-card.pinned { border-left-color: var(--primary); background: linear-gradient(135deg, #f0f4ff 0%, #fff 60%); }

/* ===== HORARIO ===== */
.horario-col { background: #fff; border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; }
.horario-col .dia-head {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; font-weight: 700; font-size: 13px; padding: 12px 16px;
  text-transform: uppercase; letter-spacing: .05em;
}
.horario-slot { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.horario-slot:last-child { border-bottom: none; }
.horario-slot:hover { background: #f8fafc; }

/* ===== BALANCE BOX ===== */
.balance-box {
  background: #f8fafc; border-radius: 10px; padding: 16px;
  text-align: center; border: 1px solid #e2e8f0;
}
.balance-box .bval { font-size: 22px; font-weight: 800; }
.balance-box .blbl { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* ===== SECCION CARDS ===== */
.seccion-card {
  background: #fff; border-radius: var(--card-radius);
  box-shadow: var(--card-shadow); padding: 24px;
  border-top: 4px solid var(--primary);
  transition: transform .15s, box-shadow .15s;
}
.seccion-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.seccion-card.active-sec { border-top-color: var(--success); }

/* ===== LOGIN ===== */
#loginPage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a2035 0%, #2d3561 100%);
}
.login-card {
  background: #fff; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  padding: 44px 40px; width: 100%; max-width: 400px;
}
.login-card .login-logo {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, #6b8cff 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(67,97,238,.35);
}
.form-control, .form-select {
  border-radius: 8px; border-color: #e2e8f0; font-size: 13px;
  padding: 9px 12px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67,97,238,.12);
}
.form-label { font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 5px; }

/* ===== MODAL ===== */
.modal-content { border-radius: 16px; border: none; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal-header { border-bottom: 1px solid #f1f5f9; padding: 18px 24px; }
.modal-title { font-size: 16px; font-weight: 700; }
.modal-body { padding: 24px; }

/* ===== BREADCRUMB ===== */
.content-header { padding: 20px 28px 0; }
.breadcrumb { margin: 0; padding: 0; background: none; font-size: 12px; }
.breadcrumb-item { color: #94a3b8; }
.breadcrumb-item.active { color: #475569; font-weight: 600; }
.breadcrumb-item+.breadcrumb-item::before { color: #cbd5e1; }

/* ===== EVENTO DETALLE TABS ===== */
.ev-tab { border: none; background: none; padding: 14px 18px; font-weight: 600; font-size: 14px; color: #64748b; border-bottom: 3px solid transparent; transition: all .2s; cursor: pointer; }
.ev-tab:hover { color: var(--primary); background: rgba(67,97,238,.05); }
.ev-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== UPLOAD AREA ===== */
.upload-area {
  border: 2px dashed #cbd5e1; border-radius: 12px; padding: 20px;
  text-align: center; cursor: pointer; transition: all .2s; background: #f8fafc;
}
.upload-area:hover { border-color: var(--primary); background: #eff2ff; }

/* ===== MÉTODO DE PAGO BUTTONS ===== */
.metodo-btn input[type="radio"]:checked + div {
  border-color: var(--primary) !important;
  background: #eff2ff !important;
  color: var(--primary) !important;
  font-weight: 700;
}
.metodo-btn div { transition: all .15s; cursor: pointer; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: #94a3b8; }
.empty-state i { font-size: 56px; display: block; margin-bottom: 16px; opacity: .4; }
.empty-state h5 { color: #475569; font-weight: 700; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }

/* ===== RESPONSIVE MOBILE ===== */

/* Hamburger button (solo visible en mobile) */
#btnMenuMobile {
  display: none;
  width: 38px; height: 38px; border-radius: 8px;
  background: #f1f5f9; border: none; color: #475569;
  font-size: 20px; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: background .15s;
}
#btnMenuMobile:hover { background: #e2e8f0; }

/* Overlay oscuro detrás del sidebar */
#sidebarOverlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 1025;
  backdrop-filter: blur(2px);
}
body.sidebar-open #sidebarOverlay { display: block; }
body.sidebar-open #sidebar { transform: translateX(0) !important; }

@media (max-width: 767px) {
  body { font-size: 15px; }
  .btn  { font-size: .93rem; padding: .55rem 1rem; border-radius: 10px; }
  .btn-sm { font-size: .84rem; padding: .38rem .75rem; }
  .form-control, .form-select { font-size: 1rem; padding: .6rem .85rem; border-radius: 10px; }
  .form-label { font-size: .9rem; }
  .small, small { font-size: .83rem !important; }
  .badge { font-size: .78rem; padding: .32em .6em; }
  .table { font-size: .88rem; }
  .table td, .table th { padding: .65rem .8rem; }

  /* Sidebar drawer */
  #sidebar { transform: translateX(-100%); width: min(280px, 85vw) !important; box-shadow: 4px 0 24px rgba(0,0,0,.25); }

  /* Topbar */
  #topBar { left: 0 !important; padding: 0 10px; gap: 6px; height: 56px; }
  #mainContent { margin-left: 0 !important; padding-top: 56px; }
  #btnMenuMobile { display: flex; }
  .topbar-date { display: none !important; }
  .topbar-seccion { min-width: 0; max-width: 120px; padding: 0 4px 0 8px; height: 34px; }
  .topbar-seccion select { font-size: 11px; }
  #wrapColegio { max-width: 130px; }
  #wrapAnio    { max-width: 70px; }
  .topbar-user .uname, .topbar-user .urole { display: none; }
  .topbar-user { padding: 4px; border: none; background: none; gap: 0; }
  .topbar-logout { width: 34px; height: 34px; font-size: 15px; }
  #topBar .page-title { font-size: 14px; font-weight: 700; }

  /* Contenido */
  .content-wrapper { padding: 14px 12px 80px; }
  .content-header  { padding: 10px 12px 0; }

  /* Grilla: todo 100% en mobile */
  .row > [class*="col-md-"],
  .row > [class*="col-lg-"] { flex: 0 0 100% !important; max-width: 100% !important; }
  /* Excepciones para pares */
  .row > .col-6 { flex: 0 0 50% !important; max-width: 50% !important; }
  .row > .col-md-6.col-6 { flex: 0 0 50% !important; max-width: 50% !important; }

  /* Stat boxes en 2 cols */
  .row > .col-md-3 { flex: 0 0 50% !important; max-width: 50% !important; }
  .small-box .inner h3 { font-size: 22px; }
  .small-box .inner { padding: 14px 14px 10px; }
  .small-box .icon { font-size: 32px; right: 10px; }

  /* Tablas: scroll horizontal, nunca se rompen */
  .card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 520px; }
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Modales: pantalla completa */
  .modal-dialog { margin: 0 !important; max-width: 100% !important; width: 100%; min-height: 100dvh; align-items: stretch; }
  .modal-content { border-radius: 0 !important; min-height: 100dvh; display: flex; flex-direction: column; box-shadow: none !important; }
  .modal-body { padding: 16px 14px; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal-header { padding: 14px 16px; position: sticky; top: 0; z-index: 2; background: #fff; }
  .modal-footer { padding: 12px 14px; position: sticky; bottom: 0; background: #fff; z-index: 2; border-top: 1px solid #f1f5f9; gap: 8px; }
  .modal-footer .btn { flex: 1; }
  /* Columnas dentro de modales en 1 col */
  .modal-body .col-md-6,
  .modal-body .col-md-4,
  .modal-body .col-md-8,
  .modal-body .col-lg-6 { flex: 0 0 100% !important; max-width: 100% !important; }

  /* Page header: botones bajo el título */
  .d-flex.justify-content-between.align-items-center.mb-4 { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
  .d-flex.justify-content-between.align-items-center.mb-4 > div:last-child { width: 100%; }
  .d-flex.justify-content-between.align-items-center.mb-4 > div:last-child .btn,
  .d-flex.justify-content-between.align-items-center.mb-4 > div:last-child .d-flex { width: 100%; }
  .d-flex.justify-content-between.align-items-center.mb-4 .d-flex.gap-2 { width: 100%; }
  .d-flex.justify-content-between.align-items-center.mb-4 .d-flex.gap-2 .btn { flex: 1; }

  /* Evento cards y tabs */
  .evento-card { padding: 14px; }
  .ev-tab { padding: 10px 10px; font-size: 13px; }

  /* Login card full screen */
  .login-card { padding: 32px 20px; max-width: 100%; border-radius: 0; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
}

@media (max-width: 480px) {
  .topbar-seccion { max-width: 110px; }
  .topbar-seccion select { font-size: 10px; }
  .small-box .inner h3 { font-size: 19px; }
  .btn-sm { font-size: .8rem; padding: .32rem .6rem; }
}

@media (max-width: 380px) {
  .topbar-seccion { display: none; }
  .row > .col-md-3 { flex: 0 0 100% !important; max-width: 100% !important; }
}
/* ===== QUILL EDITOR ===== */
.ql-toolbar.ql-snow { border-radius: 8px 8px 0 0; border-color: #cbd5e1; background: #f8fafc; }
.ql-container.ql-snow { border-radius: 0 0 8px 8px; border-color: #cbd5e1; font-family: 'Plus Jakarta Sans','Segoe UI',sans-serif; font-size: 15px; min-height: 140px; }
.ql-editor { min-height: 130px; }
.ql-editor.ql-blank::before { color: #94a3b8; font-style: normal; }
.ql-snow .ql-picker { color: #374151; }
.ql-snow .ql-stroke { stroke: #374151; }
.ql-snow .ql-fill  { fill:   #374151; }

@keyframes spin { to { transform:rotate(360deg); } }

/* ===== SISTEMA DE CARDS PARA LISTAS MÓVIL ===== */
/* ── Lista de tarjetas móvil (estructura tipo Pagos) ── */
.lista-cards {
  display: flex; flex-direction: column;
  gap: 8px; padding: 10px 12px;
  background: #eef2f7;
}
.lista-card {
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 14px;
  overflow: hidden;
}

/* CABECERA: fondo gris claro + línea divisora inferior */
.lista-card-head {
  padding: 10px 13px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; gap: 10px;
}

/* Info dentro de la cabecera */
.lista-card-head-info { flex: 1; min-width: 0; }
.lista-card-head-nombre, .lista-card-nombre {
  font-size: 13px; font-weight: 700; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 6px;
}

/* Avatar */
.lista-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  flex-shrink: 0; min-width: 34px;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}

/* CUERPO: meta datos en cuadrícula */
.lista-card-body { padding: 10px 13px; }
.lista-card-info { flex: 1; min-width: 0; }
.lista-card-meta {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 7px 6px; font-size: 12px; color: #475569;
}
.lista-card-meta span {
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap; overflow: hidden; min-width: 0;
}
.lista-card-meta i { font-size: 14px; color: #64748b; flex-shrink: 0; }
.lista-num {
  font-size: 10px; font-weight: 700; color: #94a3b8;
  background: #f1f5f9; border-radius: 4px; padding: 1px 5px; flex-shrink: 0;
}
.lista-card-valor {
  font-size: 14px; font-weight: 700; color: #0f172a; white-space: nowrap;
}

/* PIE: botones con línea divisora superior */
.lista-card-acciones {
  padding: 9px 12px 11px;
  border-top: 1px solid #e2e8f0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 7px;
}
.btn-accion {
  border: 1px solid #e2e8f0; border-radius: 9px;
  padding: 7px 8px; font-size: 12px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: #f8fafc; color: #334155; transition: opacity .15s;
}
.btn-accion:active { opacity: .75; }

/* Badge pequeño */
.badge-chip {
  font-size: 10px; font-weight: 700; border-radius: 20px;
  padding: 3px 9px; white-space: nowrap; flex-shrink: 0;
}
