/*
Theme Name: Legislacion Educativa
Theme URI: https://example.com/legislacion-educativa
Author: Tu Nombre
Author URI: https://example.com
Description: Tema WordPress minimalista compatible con Bootstrap para contenidos de legislación educativa.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: legislacion-educativa
Tags: bootstrap, responsive, accessibile
*/

/* Importa estilos adicionales si es necesario */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root {
  --le-primary: #1F5BFF;
  --le-accent:  #F8B84A;
  --le-bg:      #F5F7FB;
  --le-text:    #111827;
  --le-muted:   #6B7280;
}

body {
  background-color: var(--le-bg);
  color: var(--le-text);
}

.btn-primary {
  background-color: var(--le-primary);
  border-color: var(--le-primary);
}

a {
  color: var(--le-primary);
}
a:hover {
  color: #1742b8;
}
/* ===== Tarjetas destacadas Digesto ===== */
.digest-highlight-row {
  margin-top: 0.5rem;
}

/* card base */
.digest-stat-card {
  position: relative;
  border-radius: 24px;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

/* colores de fondo (ajustá al gusto) */
.digest-stat-resolucion {
  background: #ffe9c7;  /* beige suave */
}

.digest-stat-ley {
  background: #dde8ff;  /* celeste suave */
}

.digest-stat-decreto {
  background: #e3f2e7;  /* verdoso suave */
}

.digest-stat-circular {
  background: #f0e7ff;  /* violeta muy claro */
}

/* contenido */
.digest-stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.digest-stat-subtitle {
  font-size: 0.8rem;
  color: #555;
}

.digest-stat-number {
  font-size: 1.7rem;
  font-weight: 600;
  color: #111;
}

/* "burbuja" inferior derecha tipo notch */
.digest-stat-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70px;
  height: 70px;
  background: inherit;
  border-radius: 50% 0 0 0;
}

/* botón circular con flecha */
.digest-stat-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
     background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border: 20px solid rgba(var(--bs-light-rgb), var(--bs-bg-opacity));
}

.digest-stat-icon {
  font-size: 0.9rem;
  color: #fff;
  line-height: 1;
}

/* hover */
.digest-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}
.digest-stat-card:hover .digest-stat-cta {
  background: #0f172a;
}

/* responsivo */
@media (max-width: 575.98px) {
  .digest-stat-card {
    border-radius: 20px;
    padding: 1.25rem 1rem 1rem;
  }
  .digest-stat-number {
    font-size: 1.5rem;
  }
}

header {
    background: #ffffff;
}


header .nav a {
    color: #333 !important;
    font-weight: 500;
}
header .nav a:hover {
    color: #0d6efd !important;
}
.digest-stat-card-active {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
  filter: none;
  opacity: 1;
}

.digest-stat-card-inactive {
  filter: grayscale(100%);
  opacity: 0.6;
}

.digest-stat-card-inactive:hover {
  filter: grayscale(100%) brightness(1.02);
  opacity: 0.7;
}

.digest-result-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ===== Ítems del digesto (lista de normas) ===== */
.digest-item {
  border-left: 4px solid transparent;
  border-radius: 18px;
  transition: box-shadow 0.15s ease-out, transform 0.15s ease-out;
}

.digest-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* Colores por tipo (mismo sistema cromático que las tarjetas grandes) */
.digest-item-resolucion {
  border-left-color: #fbbf24; /* amarillo cálido, cercano al beige de resoluciones */
}

.digest-item-ley {
  border-left-color: #60a5fa; /* celeste, coherente con leyes */
}

.digest-item-decreto {
  border-left-color: #34d399; /* verde, coherente con decretos */
}

.digest-item-circular {
  border-left-color: #a855f7; /* violeta, coherente con circulares */
}

/* Pill de tipo */
.digest-item-type-pill {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Cada pill toma el color de su tarjeta “principal” */
.digest-pill-resolucion {
  background: #ffe9c7;
  color: #7c2d12;
}

.digest-pill-ley {
  background: #dde8ff;
  color: #1e3a8a;
}

.digest-pill-decreto {
  background: #e3f2e7;
  color: #065f46;
}

.digest-pill-circular {
  background: #f0e7ff;
  color: #5b21b6;
}

/* El extracto ya lo veníamos limitando: */
.digest-result-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



/* ===== Paginación del digesto ===== */

.digest-pagination {
  margin-top: 1.5rem;
}

.digest-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
}

/* Botones generales */
.digest-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #475569; /* slate-600 */
  background-color: #ffffff;
  transition:
    background-color 0.15s ease-out,
    color 0.15s ease-out,
    border-color 0.15s ease-out,
    transform 0.1s ease-out;
}

.digest-pagination .page-numbers:hover {
  background-color: #eff6ff; /* azul muy claro */
  border-color: #2563eb;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* Página actual */
.digest-pagination .page-numbers.current {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  cursor: default;
}

/* Anterior / Siguiente como pills un poco más anchas */
.digest-pagination .page-numbers.prev,
.digest-pagination .page-numbers.next {
  padding-inline: 0.8rem;
}

/* Opcional: ajustar los “…” */
.digest-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}
/* ===== Botones secundarios estilo outline ===== */

.btn-outline-secondary.btn-sm {
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-outline-secondary.btn-sm:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}
/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Menú */
.main-nav .nav {
  display: flex;
  gap: 1.25rem;
}

.main-nav .nav > li {
  list-style: none;
}

.main-nav .nav > li > a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
}

.main-nav .nav > li > a:hover {
  color: #2563eb;
}

/* Item activo */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: #2563eb;
  font-weight: 600;
}
