/* dias_habiles.css — reglas propias de esta herramienta (fase 1, 20-10-2026: salieron de herramientas.css).
   Se carga DETRÁS de herramientas.css, que trae los tokens --herr-* y las piezas comunes .lt-herr__*.
   Solo esta herramienta toca este fichero. */

/* Calendario */
.lt-herr__cal { display: grid; gap: 22px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.lt-herr__mes { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-size: 12.5px; text-align: center; }
.lt-herr__mes caption {
  caption-side: top; padding: 0 3px 6px; text-align: left; font-family: var(--herr-font-head); font-size: 17px; font-weight: 600;
  color: var(--herr-ink); text-transform: capitalize;
}
.lt-herr__mes th { height: 22px; font-size: 10.5px; font-weight: 600; color: var(--herr-muted); }
.lt-herr__mes td { height: 30px; padding: 0; border-radius: 8px; color: var(--herr-muted); }
.lt-herr__mes td.is-fuera.is-finde { color: var(--herr-faint); }
.lt-herr__mes .is-neutro { background: transparent; color: var(--herr-ink); }
.lt-herr__mes .is-contado { background: var(--herr-cuenta-bg); color: var(--herr-cuenta-ink); font-weight: 600; }
.lt-herr__mes .is-saltado { background: var(--herr-divider); color: var(--herr-no-cuenta-ink); text-decoration: line-through; }
.lt-herr__mes .is-notificacion { box-shadow: inset 0 0 0 1.5px var(--herr-ink); color: var(--herr-ink); font-weight: 700; }
.lt-herr__mes .is-vence {
  background: var(--herr-primary); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 18px -6px rgba(197, 67, 67, .7);
}

/* Muestras de la leyenda del calendario */
.lt-herr__muestra {
  display: flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 4px;
  font-size: 9px; line-height: 1;
}
.lt-herr__muestra.is-contado { background: var(--herr-cuenta-bg); }
.lt-herr__muestra.is-saltado { background: var(--herr-divider); color: var(--herr-no-cuenta-ink); text-decoration: line-through; }
.lt-herr__muestra.is-notificacion { box-shadow: inset 0 0 0 1.5px var(--herr-ink); }
.lt-herr__muestra.is-vence { background: var(--herr-primary); }

/* Embebible: el calendario plegado (fase 1; en el móvil el iframe crecía de 1.387 a 3.102 px al calcular) */
.lt-herr__cal-plegado { margin: 0 0 6px; }
.lt-herr__cal-ver {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--herr-ink); list-style: none;
}
.lt-herr__cal-ver::-webkit-details-marker { display: none; }
.lt-herr__cal-ver::after {
  content: ''; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.lt-herr__cal-plegado[open] > .lt-herr__cal-ver::after { margin-top: 3px; transform: rotate(-135deg); }
.lt-herr__cal-ver:focus-visible { outline: 3px solid var(--herr-primary); outline-offset: 2px; border-radius: 4px; }
.lt-herr__cal-plegado[open] > .lt-herr__cal { margin-top: 10px; }

/* --- Fase 2 (20-10-2026): bloques de la página alrededor de la calculadora, bajo .lt-herr-dh --- */
/* Índice de la guía: 44 px de objetivo táctil (auditoría P2-5; medía 41). */
.lt-herr-dh .lt-herr__indice a { min-height: 44px; align-items: center; }

/* Plazo ya vencido (auditoría P1-2) */
.lt-herr-dh__vencido {
  margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--herr-error-bg);
  color: var(--herr-error-ink); font-size: 14.5px; font-weight: 700;
}

/* Ejemplo resuelto y feria judicial */
.lt-herr-dh__bloque {
  margin-top: 56px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--herr-border);
  border-radius: var(--herr-r-card); background: var(--herr-surface); scroll-margin-top: 96px;
}
.lt-herr-dh__bloque > .lt-herr__eyebrow { margin-bottom: 6px; }
.lt-herr-dh__h2 {
  margin: 0 0 12px; font-family: var(--herr-font-head); font-size: clamp(24px, 2.8vw, 34px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.015em; color: var(--herr-ink);
}
.lt-herr-dh__h2--peq { font-size: clamp(20px, 2.2vw, 26px); }
.lt-herr-dh__texto { margin: 0 0 16px; max-width: 70ch; font-size: 16px; line-height: 1.65; color: var(--herr-ink-soft); }
.lt-herr-dh__tabla-caja { margin: 0 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lt-herr-dh__tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.lt-herr-dh__tabla th, .lt-herr-dh__tabla td {
  padding: 10px 12px; border-bottom: 1px solid var(--herr-divider); text-align: left; vertical-align: top;
}
.lt-herr-dh__tabla tbody th { font-weight: 600; color: var(--herr-ink); }
.lt-herr-dh__tabla td { color: var(--herr-ink-soft); white-space: nowrap; }
.lt-herr-dh__tabla thead th {
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--herr-muted);
}
.lt-herr-dh__tabla tr.is-saltado th, .lt-herr-dh__tabla tr.is-saltado td { color: var(--herr-muted); }
.lt-herr-dh__tabla tr.is-vence th, .lt-herr-dh__tabla tr.is-vence td { border-bottom: 0; color: var(--herr-primary); }
.lt-herr-dh__tabla--feria td { white-space: normal; }
@media (max-width: 575.98px) {
  .lt-herr-dh__tabla--feria thead { display: none; }
  .lt-herr-dh__tabla--feria tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--herr-divider); }
  .lt-herr-dh__tabla--feria th, .lt-herr-dh__tabla--feria td { display: block; padding: 2px 0; border: 0; }
}
.lt-herr-dh__tabla a { color: var(--herr-ink); text-decoration: underline; text-underline-offset: 2px; }
.lt-herr-dh__norma { font-weight: 400; color: var(--herr-muted); }
.lt-herr-dh__bloque .lt-herr__boton-sec { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 575.98px) {
  .lt-herr-dh__tabla { font-size: 14px; }
  .lt-herr-dh__tabla th, .lt-herr-dh__tabla td { padding: 9px 8px; }
  .lt-herr-dh__tabla td { white-space: normal; }
}

/* También te puede servir + enlace al hub */
.lt-herr-dh__otras { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--herr-border); }
.lt-herr-dh__otras-lista {
  display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.lt-herr-dh__otra {
  display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 44px; padding: 16px 18px;
  border: 1px solid var(--herr-border); border-radius: 16px; background: var(--herr-surface); text-decoration: none;
}
.lt-herr-dh__otra:hover, .lt-herr-dh__otra:focus-visible { border-color: var(--herr-primary); text-decoration: none; }
.lt-herr-dh__otra:focus-visible { outline: 3px solid var(--herr-primary); outline-offset: 2px; }
.lt-herr-dh__otra-nombre { font-family: var(--herr-font-head); font-size: 17px; font-weight: 600; color: var(--herr-ink); }
.lt-herr-dh__otra-texto { font-size: 14px; line-height: 1.5; color: var(--herr-muted); }
.lt-herr-dh__hub {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--herr-primary);
}

/* Colombia (fase 4): términos frecuentes, notificación por correo y tablas de términos, festivos y meses */
.lt-herr-dh__atajos { margin: 0 0 20px; }
.lt-herr-dh__atajos-t {
  margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--herr-muted);
}
.lt-herr-dh .lt-herr-dh__atajos-lista {
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none;
}
.lt-herr-dh__atajo {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--herr-border); border-radius: 999px; background: var(--herr-surface);
  color: var(--herr-ink); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.lt-herr-dh__atajo:hover, .lt-herr-dh__atajo:focus-visible { border-color: var(--herr-primary); text-decoration: none; }
.lt-herr-dh__atajo:focus-visible { outline: 3px solid var(--herr-primary); outline-offset: 2px; }
.lt-herr-dh__atajo.is-activo { border-color: var(--herr-primary); box-shadow: inset 0 0 0 1px var(--herr-primary); }
.lt-herr-dh__atajo-d { font-weight: 500; color: var(--herr-muted); }
@media (max-width: 575.98px) {
  /* En el móvil, en dos columnas parejas y sin huecos */
  .lt-herr-dh .lt-herr-dh__atajos-lista { display: grid; grid-template-columns: 1fr 1fr; }
  .lt-herr-dh__atajos-lista > li { display: flex; }
  .lt-herr-dh__atajos-lista > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lt-herr-dh__atajo {
    flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
    white-space: normal; border-radius: 14px; line-height: 1.25;
  }
  .lt-herr-dh__atajo-d { font-size: 13.5px; }
}
.lt-herr-dh__check { gap: 4px; }
.lt-herr-dh__check-fila { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.lt-herr-dh__check-fila input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--herr-primary); }
.lt-herr-dh__check-texto { font-size: 16px; font-weight: 600; color: var(--herr-ink); }
.lt-herr__form:has(input[name="op"][value="contar"]:checked) [data-op-no="contar"] { display: none; }
.lt-herr-dh__tabla--terminos th:first-child, .lt-herr-dh__tabla--festivos tbody th { white-space: normal; }
.lt-herr-dh__calc { font-weight: 700; }
@media (max-width: 575.98px) {
  .lt-herr-dh__tabla--terminos thead { display: none; }
  .lt-herr-dh__tabla--terminos tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0;
                                    border-bottom: 1px solid var(--herr-divider); }
  .lt-herr-dh__tabla--terminos th, .lt-herr-dh__tabla--terminos td { display: block; padding: 0; border: 0; }
  .lt-herr-dh__tabla--terminos tr > :nth-child(3) { grid-column: 1; font-size: 13.5px; }
  .lt-herr-dh__tabla--terminos tr > :nth-child(4) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
.lt-herr-dh__check[hidden] { display: none; }
/* Selector de operación en una línea en el móvil («Entre dos fechas» partía la fila a 390 px; alineacion.js) */
@media (max-width: 479.98px) {
  .lt-herr-dh .lt-herr__seg-op span, .lt-herr--embed .lt-herr__seg-op span { padding-left: 2px; padding-right: 2px; font-size: 13px; letter-spacing: -.01em; white-space: nowrap; }
}
