/* ==========================================================
   Calendario escolar interactivo (calendario.html)
   Dirección: agenda escolar editorial. Cuadrícula de libreta con líneas punteadas, notas a mano en Caveat
   y marcadores de color por tipo de evento (icono + texto + color, nunca solo color).
   Colores y fuentes: inicio de styles.css. Estructura: base · tema · filtros · tarjeta y cuadrícula · agenda (celular)
   · notas · ventana de detalle · hoja impresa · responsive.
   ========================================================== */

/* ---------- Tonos por tipo de evento ----------
   --t-fg texto y fondo de los chips activos · --t-bg tinte · --t-bar marcador · --t-edge borde · --t-tint fondo de la hoja impresa */
.cl .t-evaluacion {
  --t-fg: var(--red-deep);
  --t-bg: var(--red-tint);
  --t-bar: var(--red);
  --t-edge: var(--red-edge);
  --t-tint: #fef3f5;
}

.cl .t-familias {
  --t-fg: var(--blue-deep);
  --t-bg: var(--blue-tint);
  --t-bar: var(--blue);
  --t-edge: var(--blue-edge);
  --t-tint: #f1f6fb;
}

.cl .t-izada {
  --t-fg: var(--navy-dark);
  --t-bg: var(--navy-tint);
  --t-bar: var(--navy);
  --t-edge: var(--line-strong);
  --t-tint: #f1f3f8;
}

.cl .t-actividad {
  --t-fg: var(--green-deep);
  --t-bg: var(--green-tint);
  --t-bar: var(--green-bar);
  --t-edge: var(--green-edge);
  --t-tint: #f0f9f4;
}

.cl .t-festivo {
  --t-fg: var(--slate-deep);
  --t-bg: var(--slate-tint);
  --t-bar: var(--slate);
  --t-edge: var(--slate-edge);
  --t-tint: #eff2f6;
}

.cl .t-especial {
  --t-fg: var(--mist-deep);
  --t-bg: var(--white);
  --t-bar: var(--mist);
  --t-edge: var(--card-line);
  --t-tint: #f8fafc;
}

.cl .t-importante {
  --t-fg: var(--red-deep);
  --t-bg: var(--white);
  --t-bar: var(--red);
  --t-edge: #f2b8c4;
}

.cl .t-todo {
  --t-fg: var(--navy-dark);
  --t-bg: var(--white);
  --t-bar: var(--navy-dark);
  --t-edge: var(--line-strong);
}

/* ---------- Base ---------- */
.cl {
  padding: 34px 0 90px;
  background: var(--bg-soft);
  color: var(--navy-dark);
  font-family: var(--font-body);
}

.cl [hidden] {
  display: none !important;
}

.cl button {
  font-family: inherit;
  cursor: pointer;
}

.cl button:disabled {
  cursor: default;
}

.cl-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.cl .cl-ico {
  flex: none;
}

.cl .cl-estrella {
  color: var(--red);
}

/* Subrayado rojo a mano, como en el resto del sitio */
.cl-subraya::after {
  content: "";
  display: block;
  width: var(--subraya, 120px);
  height: 8px;
  margin: 4px 0 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5c40-3 90-4 176-1' fill='none' stroke='%23dd0d3a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / 100% 100%;
}

.cl-titulo {
  margin-bottom: 22px;
}

/* Regreso a Actividades y eventos: píldora con la flecha en un círculo navy, sombra plana como las tarjetas del sitio */
.cl-volver {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 5px 18px 5px 5px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--blue-tint);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: var(--navy-dark);
}

.cl-volver-flecha {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  background: var(--navy-dark);
  color: var(--white);
  border-radius: 50%;
}

.cl-volver .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
  transform: scaleX(-1);
}

/* la flecha del sitio apunta a la derecha: aquí hacia la izquierda */
.cl-titulo h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
}

.cl-titulo h1::after {
  --subraya: 170px;
  margin: 6px 0 0;
}

.cl-noscript {
  max-width: 640px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px dashed var(--card-line);
  border-radius: 12px;
  color: var(--text);
  line-height: 1.55;
}

.cl-noscript a {
  color: var(--blue-ink);
  font-weight: 800;
  text-decoration: underline;
}

.cl-solo-movil {
  display: none;
}

/* ---------- Tema del mes + períodos ---------- */
.cl-tema {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin-bottom: 22px;
  padding: 22px 32px 22px 24px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 22px;
}

.cl-tema-tarjeta {
  display: contents;
}

/* La mascota va "pegada" con cinta roja, como las fotos de las galerías del sitio */
.cl-mascota-caja {
  position: relative;
  display: block;
  flex: none;
  width: 176px;
  transform: rotate(-2.5deg);
}

.cl-mascota-caja::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -7px;
  left: 50%;
  width: 68px;
  height: 18px;
  margin-left: -34px;
  background: rgba(221, 13, 58, 0.55);
  transform: rotate(-4deg);
}

.cl-mascota {
  display: block;
  width: 100%;
  height: auto;
}

.cl-tema-texto {
  flex: 1 1 420px;
  min-width: 0;
}

.cl-etiqueta {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cl-tema-texto h2 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
}

.cl-tema-texto h2::after {
  --subraya: 150px;
  margin: 6px 0 14px;
}

.cl-frase {
  max-width: 660px;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 29px;
  line-height: 1.18;
  color: var(--navy);
}

.cl-periodos {
  flex: 0 0 330px;
  max-width: 100%;
}

.cl-tema.sin-tema .cl-periodos {
  flex: 1 1 100%;
}

.cl-periodos-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cl-periodo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  text-align: left;
  background: var(--white);
  color: var(--t-fg);
  border: 1px solid var(--t-edge);
  border-left: 4px solid var(--t-bar);
  border-radius: 10px;
}

.cl-periodo:hover {
  background: var(--t-bg);
}

.cl-periodo[aria-pressed="true"] {
  background: var(--t-bg);
  border-color: var(--t-bar);
}

.cl-periodo-texto {
  display: block;
  min-width: 0;
}

.cl-periodo-titulo {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
}

.cl-periodo-fechas {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Filtros ---------- */
.cl-filtros {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cl-filtro-fila {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cl-filtro-nombre {
  flex: none;
  width: 74px;
  padding-top: 9px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}

.cl-filtro-nombre::after {
  content: ":";
}

.cl-chips {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.cl-chip-filtro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px 7px 9px;
  font-size: 14px;
  font-weight: 800;
  background: var(--t-bg);
  color: var(--t-fg);
  border: 2px solid var(--t-edge);
  border-radius: 999px;
}

.cl-chip-filtro:hover {
  border-color: var(--t-bar);
}

.cl-chip-filtro[aria-pressed="true"] {
  background: var(--t-fg);
  border-color: var(--t-fg);
  color: var(--white);
}

.cl-chip-nivel {
  padding: 7px 16px;
  --t-fg: var(--navy-dark);
  --t-bg: var(--white);
  --t-bar: var(--navy-dark);
  --t-edge: var(--line-strong);
}

.cl-filtro-estado {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  margin-left: 84px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.cl-filtro-estado:not(.activo) {
  height: 0;
  margin: 0;
  overflow: hidden;
}

/* se queda en el árbol para que el lector de pantalla anuncie los cambios */
.cl-filtro-estado p {
  margin: 0;
}

.cl-limpiar {
  padding: 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue-ink);
  text-decoration: underline;
  background: transparent;
  border: 0;
}

.cl-limpiar:hover {
  color: var(--navy-dark);
}

/* ---------- Tarjeta del calendario ---------- */
.cl-tarjeta {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(21, 42, 69, 0.07);
}

.cl-cab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 24px 16px;
  border-bottom: 1px solid #e3eaf1;
}

.cl-flecha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--white);
  color: var(--navy-dark);
  border: 2px solid var(--navy-dark);
  border-radius: 50%;
}

.cl-flecha:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.cl-mes {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}

.cl-mes-nombre {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
}

.cl-mes-anio {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--red);
}

.cl-cab-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cl-imprimir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 800;
  background: var(--white);
  color: var(--navy-dark);
  border: 2px solid var(--line-strong);
  border-radius: 999px;
}

.cl-imprimir:hover:not(:disabled) {
  border-color: var(--navy-dark);
}

.cl-hoy {
  padding: 9px 22px;
  font-size: 16px;
  font-weight: 800;
  background: var(--white);
  color: var(--navy-dark);
  border: 2px solid var(--navy-dark);
  border-radius: 999px;
}

.cl-hoy:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.cl-imprimir-movil,
.cl-ics-movil,
.cl-agenda {
  display: none;
}

.cl-tira {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 0 16px;
  border-bottom: 1px solid #e3eaf1;
}

.cl-tab {
  position: relative;
  min-height: 44px;
  padding: 8px 2px 5px;
  font: 600 13px var(--font-title);
  text-transform: capitalize;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
}

.cl-tab:hover {
  color: var(--navy-dark);
}

.cl-tab.tiene {
  color: var(--navy-dark);
}

.cl-tab.tiene::after {
  content: "";
  position: absolute;
  top: 9px;
  left: calc(50% + 13px);
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50% 50% 50% 2px;
}

.cl-tab[aria-current="true"] {
  font-weight: 700;
  color: var(--navy-dark);
  border-bottom-color: var(--red);
}

.cl-ir-hoy {
  display: none;
}

.cl-aviso {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 110px;
  text-align: center;
  color: var(--text);
}

.cl-aviso-nota {
  margin-bottom: 4px;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  color: var(--red-ink);
  transform: rotate(-2deg);
}

.cl-aviso-mascota {
  position: absolute;
  right: 9%;
  bottom: -46px;
  width: 120px;
  height: auto;
  transform: rotate(7deg);
  pointer-events: none;
}

.cl-aviso-titulo {
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  color: var(--navy-dark);
}

.cl.sin-datos .cl-tema,
.cl.sin-datos .cl-filtros,
.cl.sin-datos .cl-cuadricula,
.cl.sin-datos .cl-agenda,
.cl.sin-datos .cl-notas,
.cl.sin-datos .cl-imprimir {
  display: none;
}

/* ---------- Cuadrícula (escritorio) ---------- */
.cl-dias {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 2px solid var(--navy-dark);
}

.cl-dias span {
  padding: 14px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.cl-dias .es-finde {
  color: var(--red);
}

.cl-semana {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px dashed var(--card-line);
}

.cl-semana:first-child {
  border-top: 0;
}

.cl-celda {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 150px;
  padding: 10px 8px 12px;
  background: var(--white);
  border-left: 1px dashed var(--card-line);
}

.cl-celda:first-child {
  border-left: 0;
}

.cl-celda.es-finde {
  background: #f8fafc;
}

.cl-celda.es-festivo {
  background: var(--slate-tint);
}

.cl-celda.es-otro-mes {
  background: var(--bg-soft);
}

.cl-celda-cab {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 26px;
}

.cl-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin-left: -2px;
  padding: 0 4px;
  font: 800 15px var(--font-body);
  color: var(--navy-dark);
  background: transparent;
  border: 0;
  border-radius: 14px;
}

button.cl-num:not(:disabled):hover {
  background: var(--bg-soft);
}

.cl-num:disabled {
  color: var(--navy-dark);
}

.cl-celda.es-otro-mes .cl-num {
  color: #566b80;
}

/* Hoy: número en rojo y un aro trazado a pulso (se dibuja con GSAP; sin GSAP queda dibujado) */
.cl-celda.es-hoy .cl-num,
.cl-celda.es-hoy .cl-num:disabled {
  position: relative;
  color: var(--red-ink);
}

.cl-celda.es-hoy button.cl-num:not(:disabled):hover {
  background: transparent;
}

.cl-hoy-aro {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  overflow: visible;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.cl-hoy-aro path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.cl-hoy-nota {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--red-ink);
  transform: translateY(-46%) rotate(-4deg);
  pointer-events: none;
}

.cl-hoy-flecha {
  flex: none;
  width: 28px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Días que ya pasaron: el número va en un tono más suave (sin tachones) */
.cl-celda.es-pasado .cl-num,
.cl-celda.es-pasado .cl-num:disabled {
  color: #566b80;
}

.cl-festivo-etiqueta {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--slate-deep);
}

.cl-espacio {
  flex: none;
}

.cl-evento {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 5px 7px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  background: var(--t-bg);
  color: var(--t-fg);
  border: 1px solid var(--t-edge);
  border-left: 3px solid var(--t-bar);
  border-radius: 8px;
}

.cl-evento:hover {
  border-color: var(--t-bar);
}

.cl-evento .cl-ico:first-child {
  margin-top: 1px;
}

.cl-evento .cl-estrella {
  margin-top: 1px;
}

.cl-evento-texto {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.cl-mas {
  align-self: flex-start;
  padding: 2px 4px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--blue-ink);
  background: transparent;
  border: 0;
  text-decoration: underline;
}

.cl-mas:hover {
  color: var(--navy-dark);
}

/* Franja de período: encima de las celdas, con su nombre */
.cl-banda {
  position: absolute;
  z-index: 1;
  top: calc(42px + var(--carril) * 32px);
  left: calc(var(--ini) / 7 * 100% + 6px);
  width: calc(var(--span) / 7 * 100% - 12px);
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  background: var(--t-bg);
  color: var(--t-fg);
  border: 1px solid var(--t-edge);
  border-left: 4px solid var(--t-bar);
  border-radius: 8px;
}

.cl-banda:hover {
  border-color: var(--t-bar);
}

.cl-banda-texto {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rayas suaves en el receso, como el sombreado de los fines de semana del sitio (sin degradados) */
.cl-banda.t-festivo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M-1 1l2-2M0 10L10 0M9 11l2-2' stroke='%236b7a90' stroke-opacity='.2' stroke-width='1.2'/%3E%3C/svg%3E");
}

/* Al apuntar, el chip se levanta con una sombra plana desplazada (la misma de las tarjetas del sitio) */
@media (hover: hover) {

  .cl-evento,
  .cl-banda,
  .cl-dia-item,
  .cl-prox-evento,
  .cl-periodo {
    transition: opacity 0.18s ease, transform 0.12s ease, box-shadow 0.12s ease;
  }

  .cl-evento:hover,
  .cl-banda:hover,
  .cl-dia-item:hover,
  .cl-prox-evento:hover,
  .cl-periodo:hover {
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 var(--t-bar);
  }
}

/* Lo que no coincide con el filtro se atenúa; no se oculta */
.cl-evento,
.cl-banda,
.cl-ag-item {
  transition: opacity 0.18s ease;
}

.es-tenue {
  opacity: 0.22;
}

.cl-evento:focus-visible,
.cl-banda:focus-visible {
  outline-offset: 1px;
}

/* ---------- Ventana de detalle ---------- */
.cl-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(21, 42, 69, 0.5);
}

.cl-modal-caja {
  position: relative;
  width: 620px;
  max-width: 100%;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(21, 42, 69, 0.38);
  outline: 0;
}

.cl-modal-caja.es-dia {
  width: 480px;
}

/* El scroll vive en el contenido (no en la caja) para que la chincheta pueda sobresalir del borde */
.cl-det,
.cl-dia {
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  overflow: auto;
  border-radius: 18px;
}

.cl-det {
  display: flex;
}

.cl-chincheta {
  position: absolute;
  z-index: 2;
  top: -10px;
  left: 161px;
  width: 22px;
  height: 22px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: inset -3px -3px 0 var(--red-deep), 2px 4px 0 rgba(21, 42, 69, 0.28);
  pointer-events: none;
}

.cl-chincheta::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.cl-modal-caja.es-dia .cl-chincheta {
  left: calc(50% - 11px);
}

.cl-det-fecha {
  display: flex;
  flex: 0 0 172px;
  flex-direction: column;
  align-items: center;
  padding: 30px 14px 26px;
  text-align: center;
  background: var(--t-bg);
  border-right: 2px dashed var(--t-bar);
}

.cl .t-especial .cl-det-fecha {
  background: var(--bg-soft);
}

.cl-det-medallon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--t-bar);
  background: var(--white);
  border: 2px solid var(--t-bar);
  border-radius: 50%;
}

.cl-det-dow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--t-fg);
}

.cl-det-num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 70px;
  line-height: 1.05;
  color: var(--navy-dark);
}

.cl-det.es-periodo .cl-det-num {
  font-size: 46px;
}

.cl-det.es-largo .cl-det-num {
  font-size: 36px;
}

.cl-det-mes {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--red);
}

.cl-det.es-largo .cl-det-mes {
  font-size: 28px;
}

.cl-det-anio {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.cl-det-cuerpo {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 26px 28px 22px;
}

.cl-cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--white);
  color: var(--navy-dark);
  border: 1px solid var(--card-line);
  border-radius: 50%;
}

.cl-cerrar:hover {
  background: var(--navy-dark);
  color: var(--white);
  border-color: var(--navy-dark);
}

.cl-det-tipo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 44px 8px 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-fg);
}

.cl-det-importante {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 9px 1px 7px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-ink);
  border: 2px solid var(--red-ink);
  border-radius: 4px;
  transform: rotate(-3deg);
}

/* sello de goma */
.cl-det-titulo {
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.cl-det-nivel {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.cl-det-desc {
  margin: 8px 0 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

.cl-det-accion {
  margin-top: 14px;
}

.cl-agregar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  background: var(--navy-dark);
  border: 0;
  border-radius: 10px;
}

.cl-agregar:hover {
  background: var(--navy);
}

.cl-det-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 2px dashed var(--card-line);
}

.cl-nav-ev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-ink);
  background: transparent;
  border: 0;
}

.cl-nav-ev:hover:not([aria-disabled]) {
  color: var(--navy-dark);
}

.cl-nav-ev[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
}

.cl-dia {
  padding: 24px 26px 26px;
}

.cl-dia .cl-det-tipo {
  margin-bottom: 4px;
  color: var(--muted);
}

.cl-dia-titulo {
  margin: 0 44px 16px 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.cl-dia-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cl-dia-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
  background: var(--t-bg);
  color: var(--t-fg);
  border: 1px solid var(--t-edge);
  border-left: 4px solid var(--t-bar);
  border-radius: 10px;
}

.cl-dia-item:hover {
  border-color: var(--t-bar);
}

.cl-dia-item .cl-ico:first-child {
  margin-top: 1px;
}

/* ---------- Para tener en cuenta / Próximos eventos ---------- */
.cl-notas {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 22px;
  margin-top: 26px;
}

.cl-bloque {
  flex: 1 1 440px;
  min-width: 0;
  padding: 26px 30px 28px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 22px;
}

.cl-bloque h2 {
  font-size: 24px;
  font-weight: 700;
}

.cl-notas-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cl-nota {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.cl-nota .cl-ico {
  margin-top: 1px;
  color: var(--t-bar);
  width: 20px;
  height: 20px;
}

.cl-nota strong {
  color: var(--navy-dark);
}

.cl-prox-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cl-prox {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cl-prox-vacio {
  color: var(--muted);
}

.cl-prox-fecha {
  flex: none;
  width: 54px;
  padding: 6px 0 7px;
  text-align: center;
  background: var(--bg-soft);
  border-radius: 12px;
}

.cl-prox-dow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.cl-prox-num {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.1;
}

.cl-prox-evento {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 12px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  background: var(--t-bg);
  color: var(--t-fg);
  border: 0;
  border-left: 4px solid var(--t-bar);
  border-radius: 6px;
}

.cl-prox-evento:hover {
  background: var(--t-edge);
}

.cl-ver-mes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 800;
  color: var(--red-ink);
}

.cl-ver-mes:hover {
  color: var(--navy-dark);
}

/* ---------- Hoja para imprimir: no se ve en pantalla ---------- */
.cl-hoja {
  display: none;
}

/* ---------- Pantallas medianas: cuadrícula más compacta ---------- */
@media (min-width: 721px) and (max-width: 1100px) {
  .cl-wrap {
    padding: 0 20px;
  }

  .cl-mes-nombre {
    font-size: 34px;
  }

  .cl-mes-anio {
    font-size: 32px;
  }

  .cl-celda {
    padding: 8px 5px 10px;
  }

  .cl-evento {
    padding: 4px 5px;
    gap: 4px;
    font-size: 11.5px;
  }

  .cl-banda {
    padding: 0 7px;
    font-size: 11.5px;
  }

  .cl-mas {
    font-size: 11.5px;
  }

  .cl-festivo-etiqueta {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .cl-hoy-flecha {
    display: none;
  }

  /* celdas angostas: queda el aro y la palabra "hoy" */
  .cl-hoy-nota {
    left: calc(100% + 4px);
    font-size: 19px;
  }

  .cl-cab {
    padding: 16px 16px 14px;
  }

  .cl-tema {
    gap: 20px 24px;
    padding: 20px;
  }

  .cl-periodos {
    flex-basis: 100%;
  }
}

/* Celdas de unos 100 px: el icono y la estrella van en una línea y el nombre ocupa todo el ancho (sin partir palabras) */
@media (min-width: 721px) and (max-width: 1000px) {
  .cl-evento {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .cl-evento .cl-estrella {
    order: 2;
    margin: 1px 0 0 auto;
  }

  .cl-evento-texto {
    order: 3;
    flex: 1 1 100%;
  }
}

/* ---------- Celular (720 px o menos): sin cuadrícula, agenda del mes ---------- */
@media (max-width: 720px) {
  .cl {
    padding: 22px 0 40px;
  }

  .cl-wrap {
    padding: 0 16px;
  }

  .cl-titulo {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  /* el título de la página queda para lectores de pantalla; el mes hace de título */
  .cl-solo-escritorio {
    display: none;
  }

  .cl-solo-movil {
    display: inline;
  }

  .cl-etiqueta {
    margin-bottom: 8px;
    font-size: 12px;
  }

  /* Un solo árbol de elementos: la tarjeta "desaparece" y sus partes se reordenan */
  .cl-app {
    display: flex;
    flex-direction: column;
  }

  .cl-tarjeta {
    display: contents;
  }

  .cl-cuadricula {
    display: none;
  }

  .cl-tema,
  .cl-filtros,
  .cl-imprimir-movil,
  .cl-agenda,
  .cl-notas {
    order: 1;
  }

  .cl-filtros {
    order: 2;
  }

  .cl-imprimir-movil {
    order: 3;
  }

  .cl-agenda {
    order: 4;
  }

  .cl-notas {
    order: 5;
  }

  .cl-cab,
  .cl-aviso {
    order: 0;
  }

  .cl-cab {
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0;
    border: 0;
  }

  .cl-mes {
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0 10px;
    order: 1;
  }

  .cl-mes::after {
    content: "";
    flex: 0 0 100%;
    height: 8px;
    margin-top: 5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5c40-3 90-4 176-1' fill='none' stroke='%23dd0d3a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / 120px 8px;
    clip-path: inset(0 calc((1 - var(--p, 1)) * 100%) 0 0);
  }

  .cl-mes-nombre {
    font-size: 36px;
    line-height: 1.05;
  }

  .cl-mes-anio {
    font-size: 32px;
  }

  .cl-flecha {
    width: 46px;
    height: 46px;
  }

  .cl-flecha-prev {
    order: 2;
  }

  .cl-flecha-next {
    order: 3;
  }

  .cl-cab-acciones {
    display: none;
  }

  .cl-aviso {
    margin-bottom: 8px;
    padding: 40px 20px 44px;
    background: var(--white);
    border: 1px solid var(--card-line);
    border-radius: 20px;
  }

  .cl-tema {
    display: block;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .cl-tema-tarjeta {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px 18px 18px;
    background: var(--white);
    border: 1px solid var(--card-line);
    border-radius: 20px;
  }

  .cl-tema-texto {
    display: contents;
  }

  .cl-mascota-caja {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 108px;
  }

  .cl-mascota-caja::before {
    top: -9px;
    width: 44px;
    height: 12px;
    margin-left: -22px;
  }

  .cl-tema-texto .cl-etiqueta {
    grid-column: 2;
    align-self: end;
    margin-bottom: 4px;
    font-size: 11.5px;
  }

  .cl-tema-texto h2 {
    grid-column: 2;
    align-self: start;
    font-size: 22px;
  }

  .cl-tema-texto h2::after {
    --subraya: 100px;
    margin: 5px 0 0;
  }

  .cl-frase {
    grid-column: 1 / -1;
    margin-top: 12px;
    font-size: 24px;
  }

  .cl-periodos {
    flex: none;
    margin-bottom: 18px;
  }

  .cl-periodos .cl-etiqueta {
    font-size: 12px;
  }

  .cl-periodos-lista {
    flex-direction: row;
    gap: 10px;
    margin: 0 -16px;
    padding: 0 16px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cl-periodos-lista::-webkit-scrollbar,
  .cl-chips::-webkit-scrollbar {
    display: none;
  }

  .cl-periodo {
    flex: none;
    width: 236px;
    min-height: 44px;
    background: var(--t-bg);
    border-radius: 12px;
    padding: 10px 12px;
  }

  .cl-periodo[aria-pressed="true"] {
    box-shadow: inset 0 0 0 2px var(--t-bar);
  }

  .cl-periodo-titulo {
    font-size: 14px;
  }

  .cl-filtros {
    gap: 0;
    margin-bottom: 0;
  }

  .cl-filtro-fila {
    display: block;
  }

  .cl-filtro-nombre {
    display: block;
    width: auto;
    margin-bottom: 8px;
    padding-top: 0;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .cl-filtro-nombre::after {
    content: none;
  }

  .cl-chips {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -16px 18px;
    padding: 0 16px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cl-chip-filtro {
    flex: none;
    min-height: 44px;
    padding: 0 16px 0 13px;
  }

  .cl-chip-nivel {
    padding: 0 18px;
  }

  .cl-imprimir-movil,
  .cl-ics-movil {
    display: flex;
    width: 100%;
    min-height: 48px;
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .cl-ics-movil {
    order: 3;
    margin-bottom: 22px;
  }

  .cl.sin-datos .cl-imprimir-movil,
  .cl.sin-datos .cl-ics-movil {
    display: none;
  }

  .cl-cab-acciones .cl-imprimir {
    display: none;
  }

  .cl-tira {
    display: flex;
    order: 0;
    margin: 0 -16px 16px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--card-line);
  }

  .cl-tira::-webkit-scrollbar {
    display: none;
  }

  .cl-tab {
    flex: none;
    min-width: 56px;
  }

  .cl-filtro-estado {
    margin: -8px 0 18px;
  }

  .cl-limpiar {
    min-height: 44px;
  }

  .cl-aviso-mascota {
    right: 4%;
    width: 96px;
    bottom: -36px;
  }

  .cl-ir-hoy {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
    background: var(--navy-dark);
    border: 0;
    border-radius: 999px;
    box-shadow: 3px 3px 0 rgba(21, 42, 69, 0.25);
  }

  .cl-agenda {
    display: block;
  }

  .cl-agenda h2 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
  }

  .cl-agenda-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .cl-ag-dia {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px 10px 10px;
    background: var(--white);
    border: 1px solid var(--card-line);
    border-radius: 16px;
  }

  .cl-ag-dia.es-hoy {
    border-color: var(--red);
  }

  .cl-ag-dia.es-festivo {
    background: var(--slate-tint);
  }

  .cl-ag-festivo {
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    color: var(--slate-deep);
  }

  .cl-ag-fecha {
    flex: none;
    width: 50px;
    padding: 6px 0 7px;
    text-align: center;
    background: var(--bg-soft);
    border-radius: 12px;
  }

  .cl-ag-dia.es-hoy .cl-ag-fecha {
    background: var(--red);
    color: var(--white);
  }

  .cl-ag-dow {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
  }

  .cl-ag-num {
    display: block;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.1;
  }

  .cl-ag-dia.es-pasado .cl-ag-num {
    color: #566b80;
  }

  .cl-ag-hoy {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
  }

  .cl-ag-entradas {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
  }

  .cl-ag-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    text-align: left;
    background: var(--t-bg);
    color: var(--t-fg);
    border: 1px solid var(--t-edge);
    border-left: 4px solid var(--t-bar);
    border-radius: 10px;
  }

  .cl-ag-item .cl-ico:first-child {
    margin-top: 1px;
  }

  .cl-ag-texto {
    display: block;
    flex: 1;
    min-width: 0;
  }

  .cl-ag-titulo {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .cl-ag-sub {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 600;
  }

  .cl-notas {
    margin-top: 22px;
    gap: 0;
  }

  .cl-bloque {
    flex-basis: 100%;
    padding: 20px 18px 22px;
    border-radius: 20px;
  }

  .cl-bloque h2 {
    font-size: 20px;
  }

  .cl-nota {
    gap: 10px;
    font-size: 15px;
  }

  /* Ventana de detalle: la columna de la fecha pasa arriba */
  .cl-modal {
    padding: 16px 12px 12px;
  }

  .cl-det,
  .cl-dia {
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
  }

  .cl-chincheta {
    left: 52%;
  }

  .cl-det {
    flex-direction: column;
  }

  .cl-det-fecha {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    padding: 16px 64px 16px 16px;
    text-align: left;
    border-right: 0;
    border-bottom: 2px dashed var(--t-bar);
  }

  .cl-det-medallon {
    width: 40px;
    height: 40px;
    margin: 0 4px 0 0;
  }

  .cl-det-num,
  .cl-det.es-periodo .cl-det-num {
    font-size: 34px;
  }

  .cl-det.es-largo .cl-det-num {
    font-size: 28px;
  }

  .cl-det-mes,
  .cl-det.es-largo .cl-det-mes {
    font-size: 26px;
  }

  .cl-det-anio {
    margin-top: 0;
  }

  .cl-det-cuerpo {
    padding: 18px 18px 18px;
  }

  .cl-det-tipo {
    margin-right: 0;
  }

  .cl-det-titulo {
    font-size: 22px;
  }

  .cl-cerrar {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .cl-dia {
    padding: 18px 16px 20px;
  }

  .cl-dia-titulo {
    font-size: 21px;
  }
}

@media (max-width: 380px) {
  .cl-mes-nombre {
    font-size: 30px;
  }

  .cl-mes-anio {
    font-size: 28px;
  }

  .cl-det-titulo {
    font-size: 20px;
  }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .cl * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================
   Impresión: hoja A4 horizontal con el mes visible. Todo lo demás se oculta.
   Las franjas y los tipos se leen también en blanco y negro (rótulos y letras, no solo color).
   ========================================================== */
@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  html,
  body {
    background: var(--white) !important;
  }

  .site-header,
  .site-footer,
  .cta-band,
  .brand-stripe,
  .whatsapp,
  .skip-link,
  .cl-pantalla,
  .cl-modal {
    display: none !important;
  }

  .cl {
    padding: 0;
    background: var(--white);
  }

  .cl-hoja,
  .cl-hoja * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cl-hoja {
    display: flex;
    flex-direction: column;
    height: 188mm;
    overflow: hidden;
    break-inside: avoid;
    color: var(--navy-dark);
    font-family: var(--font-body);
  }

  .cl-h-cab {
    display: flex;
    flex: none;
    align-items: center;
    gap: 28px;
    margin-bottom: 12px;
  }

  .cl-h-logo {
    flex: none;
    width: 130px;
    height: auto;
  }

  .cl-h-titulo {
    flex: 1;
    min-width: 0;
  }

  .cl-h-titulo h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    line-height: 1;
    letter-spacing: 0;
  }

  .cl-h-mes {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 42px;
  }

  .cl-h-anio {
    font-family: var(--font-script);
    font-weight: 700;
    font-size: 38px;
    color: var(--red);
  }

  .cl-h-intel {
    margin-left: 14px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
  }

  .cl-h-frase {
    margin: 6px 0 0;
    font-family: var(--font-script);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.15;
    color: var(--navy);
  }

  .cl-h-mascota {
    flex: none;
    width: 86px;
    height: auto;
  }

  .cl-h-cuadro {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border: 1.5px solid var(--navy-dark);
    border-radius: 10px;
  }

  .cl-h-dias {
    display: grid;
    flex: none;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: var(--blue-tint);
    border-bottom: 1.5px solid var(--navy-dark);
  }

  .cl-h-dias span {
    padding: 6px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
  }

  .cl-h-dias .es-finde {
    color: var(--red);
  }

  .cl-h-semanas {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
  }

  .cl-h-semana {
    display: grid;
    flex: 1 1 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-height: 0;
    border-top: 1px solid var(--line-strong);
  }

  .cl-h-semana:first-child {
    border-top: 0;
  }

  .cl-h-celda {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 7px 5px 4px;
    overflow: hidden;
    background: var(--white);
    border-left: 1px solid var(--line-strong);
  }

  .cl-h-celda:first-child {
    border-left: 0;
  }

  .cl-h-celda.es-finde {
    background: #f8fafc;
  }

  .cl-h-celda.es-otro-mes {
    background: var(--bg-soft);
  }

  .cl-h-celda.con-franja,
  .cl-h-celda.es-festivo {
    background: var(--t-tint);
  }

  .cl-h-franja,
  .cl-h-celda.es-festivo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--t-bar);
  }

  .cl-h-cab-dia {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
  }

  .cl-h-cab-dia b {
    font-size: 13px;
    font-weight: 800;
  }

  .cl-h-celda.es-otro-mes .cl-h-cab-dia b {
    color: #8a98ab;
  }

  .cl-h-rotulo {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    white-space: nowrap;
    color: var(--t-fg);
  }

  .cl-h-rotulo-franja {
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cl-h-evento {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .cl-h-evento.es-importante {
    font-weight: 800;
  }

  .cl-h-marca {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 11px;
    height: 11px;
    margin-top: 0.5px;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    color: var(--white);
    background: var(--t-fg);
    border-radius: 3px;
  }

  .cl-h-pie {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
  }

  .cl-h-leyenda {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
  }

  .cl-h-leyenda li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .cl-h-leyenda .cl-h-negrita {
    font-weight: 800;
  }

  .cl-h-web {
    flex: none;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
  }
}