/*
 * Agenda DGOAE: hoja de estilos del sistema.
 * Conserva la identidad original: amarillo #febe20, gris #e8e8e8,
 * morado institucional #170051 y turquesa #00B7C0, con la tipografía Grey Scale.
 */
:root {
  --ag-amarillo: #febe20;
  --ag-amarillo-oscuro: #d99c00;
  --ag-gris: #e8e8e8;
  --ag-morado: #170051;
  --ag-turquesa: #00B7C0;
  --ag-texto: #393939;
}

body {
  color: var(--ag-texto);
  background: #fff;
}

a { color: #0a7f86; }
a:hover { text-decoration: none; color: var(--ag-morado); }

/* ---------- Encabezado ---------- */
.encabezado { padding-top: .5rem; }
.cabeza {
  display: block;
  width: 100%;
  height: auto;
}
.barra {
  background: var(--ag-gris);
  padding: .35rem .75rem;
  border-radius: 0 0 .5rem .5rem;
}
.casita img {
  height: 38px;
  width: auto;
}

/* Franja con el título de la sección */
.breadcrumbs {
  background: #f6f6f6;
  border-bottom: 3px solid var(--ag-amarillo);
  padding: 1rem 0;
  margin-bottom: 2rem;
}
.breadcrumbs h2 {
  font-family: "Grey Scale Bold", system-ui, sans-serif;
  font-size: 1.6rem;
  color: var(--ag-morado);
  margin: 0;
}

.section-title { text-align: center; margin-bottom: 1.5rem; }
.section-title h2 {
  font-family: "Grey Scale Bold", system-ui, sans-serif;
  color: var(--ag-morado);
  font-size: 1.8rem;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: .5rem auto 0;
  background: var(--ag-amarillo);
}

/* ---------- Calendario público ---------- */
.anus {
  width: 80%;
  max-width: 100%;
  height: auto;
}
.card-top-letreo {
  font-family: "Grey Scale Bold", system-ui, sans-serif;
  background-color: var(--ag-amarillo);
  color: #fff;
  font-size: 1.5em;
  padding: .35rem .5rem;
  margin: 0;
  letter-spacing: .04em;
  border-radius: .5rem .5rem 0 0;
}
.mes-card {
  background-color: var(--ag-gris);
  border: none;
  border-radius: .5rem;
}
.mes-card .card-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; }
.card-text-mes {
  font-family: "Grey Scale Bold", system-ui, sans-serif;
  color: var(--ag-amarillo-oscuro);
  background: transparent;
  font-size: 1.5em;
  border: 0;
  padding: 0;
}
.card-text-mes:hover, .card-text-mes:focus { color: var(--ag-morado); }
.icono-calendario { width: 50%; max-width: 90px; height: auto; }

.evento-card {
  border: none;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.evento-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.evento-card .card-img-top { aspect-ratio: 4 / 3; object-fit: cover; background: var(--ag-gris); }
.card-text {
  font-size: 1em;
  background: transparent;
  color: var(--ag-texto);
  border: 0;
}
.card-text:hover, .card-text:focus { color: var(--ag-morado); }

/* Pestañas de cuatrimestre */
.nav-tabs { border-bottom: none; gap: .5rem; justify-content: center; }
.paginar {
  font-family: "Grey Scale Bold", system-ui, sans-serif;
  background-color: var(--ag-gris);
  color: var(--ag-amarillo-oscuro);
  font-size: 1.25em;
  padding: .9rem 1.5rem;
  border: none;
  border-radius: .5rem;
}
.paginar:hover { color: var(--ag-morado); }
.nav-tabs .paginar.active {
  background-color: var(--ag-amarillo);
  color: #fff;
}

/* ---------- Eventos del mes (filtros) ---------- */
.portfolio { padding-bottom: 60px; }
.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 0 0 2rem;
}
.filtros button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 4px 6px;
  font-weight: 500;
  color: #444;
}
.filtros button:hover,
.filtros button.filter-active {
  border-color: #68A4C4;
  color: #2b6f93;
}
.detalle-evento { font-size: .95rem; text-align: left; }
.detalle-evento b { color: var(--ag-morado); }

/* ---------- Paneles y tablas del área de registro ---------- */
.panel {
  background: #fff;
  border: 1px solid #eee;
  border-top: 4px solid var(--ag-amarillo);
  border-radius: .5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.panel h4, .panel h5 { color: var(--ag-morado); }
.table thead th { background: var(--ag-gris); color: var(--ag-morado); white-space: nowrap; }
.valor-actual { display: block; font-size: .85rem; color: #6c757d; font-weight: normal; }

/* ---------- Pie ---------- */
.bg-dark { background-color: var(--ag-morado) !important; }
.pie a { color: var(--ag-turquesa); }
.pie a:hover { color: #fff; }
.pie .redes a { font-size: 1.8rem; margin: 0 .5rem; }
.pie hr { border-color: rgba(255, 255, 255, .35); }

@media (max-width: 600px) {
  .anus { width: 100%; }
  .breadcrumbs h2 { font-size: 1.3rem; }
}

/* =====================================================================
 * Agenda Staff: tarjetas de meses por volumen, calendario mensual y
 * tarjetas de evento con detalle en ventana (paleta propia de esta versión).
 * ===================================================================== */
.staff { background: #f4f6f9; }

/* Tarjeta de mes */
.month-card {
  border-radius: 14px;
  height: 100%;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.month-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, .08); }
.month-header {
  color: #fff;
  padding: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 14px 14px 0 0;
}
/* Color según la cantidad de eventos */
.month-header.low    { background: #6c757d; }  /* 1 a 5 */
.month-header.medium { background: #0d6efd; }  /* 6 a 15 */
.month-header.high   { background: #dc3545; }  /* 16 o más */
.current-month { outline: 3px solid #ffc107; }
.events-btn {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 14px;
  color: #212529;
}
.events-btn:hover, .events-btn:focus { color: #0d6efd; }
.calendar-icon { width: 45px; opacity: .85; }

/* Calendario mensual */
.calendar-header { text-align: center; margin-bottom: 20px; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.day {
  background: #fff;
  min-height: 120px;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
  overflow: hidden;
}
.day.empty { background: transparent; box-shadow: none; }
.day.today { outline: 2px solid #ffc107; }
.day-number { font-weight: 600; font-size: 13px; color: #333; }
.event {
  font-size: 11px;
  background: #0d6efd;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
a.event:hover, a.event:focus { background: #0a58ca; color: #fff; }
.event.more { background: #6c757d; }

/* Tarjeta de evento del mes */
.evento-staff { border-top: 3px solid #0d6efd !important; }

@media (max-width: 576px) {
  .calendar-grid { gap: 4px; }
  .day { min-height: 70px; padding: 3px; }
  .event { font-size: 9px; padding: 1px 3px; }
}
