/* ============================================================
   FECOAR — Rediseño Moderno / Limpio
   Regla: NO se modifican anchos de sidebar ni margin-left de main.
   Solo colores, fuentes, apariencia.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === VARIABLES === */
:root {
  --accent:       #2563eb;
  --accent-light: #eff6ff;
  --accent-mid:   #bfdbfe;
  --text-dark:    #1e293b;
  --text-body:    #475569;
  --text-muted:   #94a3b8;
  --bg:           #f8fafc;
  --bg-white:     #ffffff;
  --border:       #e2e8f0;
  --shadow-xs:    0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.07);
  --shadow-md:    0 6px 20px rgba(0,0,0,.09);
  --r:            10px;
  --r-sm:         7px;
  --transition:   all 0.18s ease;
}

/* === BASE === */
html { background: var(--bg) !important; }
body {
  font-family: 'Inter', 'Nunito', sans-serif !important;
  background: var(--bg) !important;
  color: var(--text-body) !important;
  font-size: 0.875rem !important;
}

/* ============================================================
   NAVBAR — Blanco limpio con borde inferior suave
   ============================================================ */

.navbar {
  background: #fff !important;
  height: 68px !important;
  padding: 0 1.5rem !important;
  box-shadow: 0 1px 0 var(--border), 0 2px 10px rgba(0,0,0,.04) !important;
}

@media (max-width: 1439px) { .navbar { height: 68px !important; } }
@media (max-width: 1199px) { .navbar { height: 68px !important; } }
@media (max-width: 767px)  { .navbar { height: 60px !important; } }

/* Logo - se ve sobre fondo blanco */
.navbar .navbar-logo .logo {
  height: 60px !important;
  margin-top: -4px !important;
  background-size: contain !important;
  filter: none !important;
}
.navbar .navbar-logo .logo-mobile {
  height: 48px !important;
  margin-top: -2px !important;
  background-size: contain !important;
}

@media (max-width: 767px) {
  .navbar .navbar-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
  }

  .navbar .navbar-logo .logo,
  .navbar .navbar-logo .logo-mobile {
    width: 130px !important;
    height: 50px !important;
    margin: 0 !important;
    background-image: url("../img/logos/logofca.png") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
  }
}

/* Hamburguesa — oscura sobre fondo blanco */
.navbar .menu-button svg rect,
.navbar .menu-button .main,
.navbar .menu-button .sub,
.navbar .menu-button-mobile svg rect {
  fill: #475569 !important;
}
.navbar .menu-button:hover .main,
.navbar .menu-button:hover .sub,
.navbar .menu-button:hover svg rect {
  fill: var(--accent) !important;
}

/* Botón volver */
.navbar .header-icon {
  color: #64748b !important;
  transition: var(--transition) !important;
}
.navbar .header-icon:hover {
  color: var(--accent) !important;
}

/* Nombre sitio */
.navbar .user .btn,
.navbar .user .name {
  color: var(--text-dark) !important;
  font-weight: 500 !important;
  font-size: 0.86rem !important;
  letter-spacing: 0 !important;
}

/* ============================================================
   SIDEBAR — Blanco con acento azul
   Mantenemos anchos originales: 120px main + 230px sub
   ============================================================ */

/* Ajuste padding-top al nuevo navbar */
.sidebar { padding-top: 68px !important; }
@media (max-width: 1439px) { .sidebar { padding-top: 68px !important; } }
@media (max-width: 1199px) { .sidebar { padding-top: 68px !important; } }
@media (max-width: 767px)  { .sidebar { padding-top: 60px !important; } }

/* Ajuste app-menu (Info/Vientos) al nuevo navbar */
.app-menu { top: 68px !important; }
@media (max-width: 1439px) { .app-menu { top: 68px !important; } }
@media (max-width: 1199px) { .app-menu { top: 68px !important; } }
@media (max-width: 767px)  { .app-menu { top: 60px !important; } }

/* Menú principal (120px, blanco) */
.sidebar .main-menu {
  background: #fff !important;
  border-right: 1px solid var(--border) !important;
}

.sidebar .main-menu ul li a {
  color: #64748b !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  transition: var(--transition) !important;
}
.sidebar .main-menu ul li a:hover,
.sidebar .main-menu ul li a:focus {
  background: var(--accent-light) !important;
  color: var(--accent) !important;
}
.sidebar .main-menu ul li i {
  color: inherit !important;
}
.sidebar .main-menu ul li.active a {
  color: var(--accent) !important;
  background: var(--accent-light) !important;
}
.sidebar .main-menu ul li.active:after {
  background: var(--accent) !important;
}

/* Submenú (230px, blanco) */
.sidebar .sub-menu {
  background: #fff !important;
  border-left: 1px solid var(--border) !important;
  box-shadow: 4px 0 12px rgba(0,0,0,.05) !important;
}
.sidebar .sub-menu ul li a {
  color: #475569 !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  transition: var(--transition) !important;
}
.sidebar .sub-menu ul li a:hover,
.sidebar .sub-menu ul li a:focus {
  color: var(--accent) !important;
  background: var(--accent-light) !important;
  border-radius: 6px !important;
  text-decoration: none !important;
}
.sidebar .sub-menu ul li.active a,
.sidebar .sub-menu ul li.active i {
  color: var(--accent) !important;
}
.sidebar .sub-menu ul li i {
  color: #94a3b8 !important;
}
/* Título de sección en el submenú (.concursosNac) */
.sidebar .sub-menu b {
  color: #94a3b8 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

/* ============================================================
   MAIN CONTENT — Solo ajusta margin-top (navbar más bajo)
   NO se toca margin-left para no romper estados del menú
   ============================================================ */

main {
  margin-top: 108px !important;
}
@media (max-width: 1439px) { main { margin-top: 88px !important; } }
@media (max-width: 1199px) { main { margin-top: 78px !important; } }
@media (max-width: 767px) {
  main {
    margin-top: 72px !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
}

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */

h1 {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  letter-spacing: -0.01em !important;
}
h2, h3, h4 {
  font-family: 'Inter', sans-serif !important;
  color: var(--text-dark) !important;
  font-weight: 700 !important;
}
h5, h6 {
  font-family: 'Inter', sans-serif !important;
}
/* Titles de sección (CONCURSOS NACIONALES, etc.) */
h5 {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
}
p { color: var(--text-body) !important; }

/* ============================================================
   SEPARATOR
   ============================================================ */

.separator {
  border-top: 1px solid var(--border) !important;
  border-bottom: none !important;
  margin: 1.25rem 0 !important;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--bg-white) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  box-shadow: var(--shadow-xs) !important;
  transition: var(--transition) !important;
}
.card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
}
.card-body {
  padding: 1.25rem !important;
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  font-family: 'Inter', sans-serif !important;
}
.badge-theme-1 {
  background: var(--accent) !important;
  color: #fff !important;
}
.badge-theme-2 {
  background: #f59e0b !important;
  color: #fff !important;
}
.badge-danger  { background: #ef4444 !important; color: #fff !important; }
.badge-success { background: #10b981 !important; color: #fff !important; }
.badge-outline-primary {
  border: 1.5px solid var(--accent) !important;
  color: var(--accent) !important;
  background: transparent !important;
}

/* ============================================================
   BOTONES
   ============================================================ */

.btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}
.btn-primary:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.25) !important;
}

/* ============================================================
   TABLAS
   ============================================================ */

table.dataTable thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  border-bottom: 2px solid var(--border) !important;
}
table.dataTable tbody tr:hover { background: #f8fafc !important; }
table.dataTable tbody td {
  border-bottom: 1px solid #f1f5f9 !important;
  color: var(--text-body) !important;
}

/* ============================================================
   INPUTS
   ============================================================ */

.form-control {
  border-radius: var(--r-sm) !important;
  border: 1px solid var(--border) !important;
  transition: var(--transition) !important;
  font-size: 0.875rem !important;
}
.form-control:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1) !important;
}

/* ============================================================
   PORTADA — HERO BANNER
   Gradiente sobrio: azul muy profundo → azul medio
   No chillón, elegante y contenido.
   ============================================================ */

.fecoar-hero {
  background: linear-gradient(130deg, #0d2137 0%, #0f2f5a 45%, #17437d 100%);
  border-radius: var(--r);
  padding: 2.5rem 2rem;
  margin-bottom: 1.75rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13,33,55,.22);
}
.fecoar-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.fecoar-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 130px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}
.fecoar-hero .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28em 0.9em;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.fecoar-hero h2 {
  color: #fff !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 0.5rem !important;
  text-transform: none !important;
}
.fecoar-hero p {
  color: rgba(255,255,255,.65) !important;
  font-size: 0.85rem;
  line-height: 1.65;
  max-width: 560px;
  margin: 0;
}
.fecoar-hero .hero-logo {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.07;
  width: 150px;
  pointer-events: none;
}
@media (max-width: 768px) {
  .fecoar-hero { padding: 1.75rem 1.25rem; }
  .fecoar-hero h2 { font-size: 1.2rem !important; }
  .fecoar-hero .hero-logo { display: none; }
}

/* ============================================================
   PORTADA — TÍTULO DE SECCIÓN CON LÍNEA
   ============================================================ */

.seccion-titulo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.seccion-titulo h5 { margin: 0 !important; white-space: nowrap; }
.seccion-titulo .titulo-linea { flex: 1; height: 1px; background: var(--border); }
.seccion-titulo .titulo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   PORTADA — LOGOS (AILAC, SUBASTAS, ASES)
   ============================================================ */

.logo-nav-card {
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.logo-nav-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.logo-nav-card img { width: 100%; display: block; }

/* ============================================================
   PORTADA — INFO INSTITUCIONAL
   ============================================================ */

.fecoar-info-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border: 1px solid #bfdbfe !important;
  border-radius: var(--r) !important;
  box-shadow: var(--shadow-xs) !important;
}
.fecoar-info-card .card-body {
  padding: 1.75rem !important;
  color: #1e3a5f !important;
  font-size: 0.85rem !important;
  line-height: 1.75 !important;
}
.fecoar-info-card b {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

/* ============================================================
   NOTICIAS — LISTING CARDS
   ============================================================ */

.listing-card-container {
  border-radius: var(--r) !important;
  overflow: hidden !important;
  transition: var(--transition) !important;
}
.listing-card-container:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
}
.listing-heading {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  line-height: 1.45 !important;
}
.listing-desc {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  line-height: 1.5 !important;
}

/* ============================================================
   MENSAJERO CARD
   ============================================================ */

.mensajero-card {
  overflow: hidden;
  border-radius: var(--r) !important;
  box-shadow: var(--shadow-sm) !important;
}
.mensajero-cover {
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
  max-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mensajero-cover a {
  display: block;
  width: 100%;
}
.mensajero-cover img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
  object-fit: cover;
}
.mensajero-cover:hover img {
  transform: scale(1.02);
}
.mensajero-cover .mensajero-cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: 999px;
}

.mensajero-body {
  padding: 1.25rem !important;
}
.mensajero-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.mensajero-titulo {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  margin-bottom: 0.5rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.mensajero-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.mensajero-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1rem;
}
.mensajero-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5em 1.1em;
  border-radius: var(--r-sm);
  text-decoration: none !important;
  transition: var(--transition);
  margin-bottom: 1rem;
}
.mensajero-download:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
  color: #fff !important;
}
.mensajero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mensajero-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  padding: 0.22em 0.7em;
  border-radius: 999px;
  text-decoration: none !important;
  transition: var(--transition);
}
.mensajero-tag:hover {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}

/* ============================================================
   PALOMAS EXTRAVIADAS CARD
   ============================================================ */

.palomas-card {
  overflow: hidden;
  border-radius: var(--r) !important;
  box-shadow: var(--shadow-sm) !important;
}

.palomas-hero {
  height: 185px;
  background: url('../img/items/buscador.jpg') center/cover no-repeat;
  position: relative;
}

.palomas-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,33,55,.25) 0%, rgba(13,33,55,.78) 100%);
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.palomas-hero-content {
  padding: 1.1rem 1.25rem;
  width: 100%;
}

.palomas-badge {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  padding: 0.2em 0.7em;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.palomas-titulo {
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.25rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.palomas-subtitulo {
  color: rgba(255,255,255,.72) !important;
  font-size: 0.78rem !important;
  margin: 0 !important;
  line-height: 1.4;
}

.palomas-body {
  padding: 1.25rem !important;
  position: relative;
  z-index: 1;
  background: #fff;
}

.palomas-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  display: block;
}

.palomas-btn {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 0.55rem 1rem !important;
}

/* ============================================================
   NOTICIAS — TÍTULO Y TEXTO: TRUNCADO Y ESTILO UNIFORME
   ============================================================ */

/* Override h5 global para los títulos dentro de listing cards */
.listing-card-container .listing-heading,
.listing-card-container h5.listing-heading {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
  margin-bottom: 0.4rem !important;
}

/* Truncado de título a 2 líneas */
.listing-card-container .limit-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.45em !important;
  max-height: 2.9em !important;
}

/* Truncado de cuerpo a 3 líneas */
.listing-card-container .limit-text {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.5em !important;
  max-height: 4.5em !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

/* Aseguramos que p dentro de listing no tome el color global oscuro */
.listing-card-container p {
  color: var(--text-muted) !important;
  margin: 0 !important;
}

/* Evitar que imágenes de noticias heredan overflow */
.listing-card-container .w-40 {
  overflow: hidden;
  flex-shrink: 0;
}
.listing-card-container .card-img-left {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   FACEBOOK PAGE PLUGIN
   ============================================================ */

.facebook-card {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  box-shadow: var(--shadow-xs) !important;
  overflow: hidden;
}

.facebook-card__top {
  min-height: 68px;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
}

.facebook-card__top h6 {
  color: var(--text-dark) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  text-transform: none !important;
}

.facebook-card__label {
  color: var(--text-muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.facebook-card__cta {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent) !important;
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.48rem 0.72rem;
  text-decoration: none !important;
}

.facebook-card__cta:hover,
.facebook-card__cta:focus {
  background: var(--accent-light);
  border-color: var(--accent-mid);
}

.facebook-card__body {
  align-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  display: flex;
  justify-content: center;
  min-height: 420px;
  padding: 0.75rem;
}

.facebook-card .fb-page,
.facebook-card .fb-page span,
.facebook-card .fb-page iframe {
  max-width: 100% !important;
}

.facebook-card blockquote.fb-xfbml-parse-ignore {
  background: #fff;
  border: 1px dashed var(--accent-mid);
  border-radius: var(--r-sm);
  color: var(--text-body);
  margin: 0;
  padding: 1rem;
}

.facebook-card blockquote.fb-xfbml-parse-ignore a {
  color: var(--accent) !important;
  font-weight: 700;
}

/* ============================================================
   DATATABLES PAGINACIÓN — compacta, rectangular, estilo acorde
   ============================================================ */

/* anulamos el padding extra por item y los márgenes del << >> */
.dataTables_wrapper .pagination .page-item,
.dataTables_wrapper .paginate_button.page-item {
  padding: 1px !important;
}
.dataTables_wrapper .paginate_button.previous {
  margin-right: 3px !important;
}
.dataTables_wrapper .paginate_button.next {
  margin-left: 3px !important;
}

/* botón */
.dataTables_wrapper .pagination .page-item .page-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 3px !important;
  font-size: 0.75rem !important;
  min-width: 26px !important;
  height: 26px !important;
  padding: 0 0.45rem !important;
  line-height: 1 !important;
  color: var(--text-body) !important;
  background: var(--bg-white) !important;
  border: 1px solid var(--border) !important;
  transition: var(--transition) !important;
}
.dataTables_wrapper .pagination .page-item:first-child .page-link,
.dataTables_wrapper .pagination .page-item:last-child .page-link {
  border-radius: 3px !important;
}

/* hover */
.dataTables_wrapper .pagination .page-item .page-link:hover {
  background: var(--accent-light) !important;
  color: var(--accent) !important;
  border-color: var(--accent-mid) !important;
}

/* activo */
.dataTables_wrapper .pagination .page-item.active .page-link {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

/* << y >> — mismos colores que el resto, sin el azul oscuro del tema */
.dataTables_wrapper .pagination .page-item .page-link.next,
.dataTables_wrapper .pagination .page-item .page-link.prev {
  background: var(--bg-white) !important;
  border-color: var(--border) !important;
  color: var(--text-body) !important;
}
.dataTables_wrapper .pagination .page-item .page-link.next:hover,
.dataTables_wrapper .pagination .page-item .page-link.prev:hover {
  background: var(--accent-light) !important;
  color: var(--accent) !important;
  border-color: var(--accent-mid) !important;
}

/* deshabilitado */
.dataTables_wrapper .pagination .page-item.disabled .page-link {
  background: var(--bg) !important;
  color: var(--text-muted) !important;
  border-color: var(--border) !important;
}

@media (max-width: 767px) {
  table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child,
  table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child {
    padding-left: 42px !important;
    overflow: visible !important;
  }

  table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before,
  table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child,
  table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child {
    padding-left: 42px !important;
  }

  table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child:before,
  table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child:before {
    left: 12px !important;
  }
}

/* ============================================================
   SCROLLBAR SUAVE
   ============================================================ */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
