/*
 * Puentazo · guia.css (hito de actualización 73, D3 del plan de simplificación). Solo la cargan las cuatro guías
 * cortas escritas a mano (cómo pedir las vacaciones, cuántos días te corresponden, asuntos propios y laborables o
 * naturales), al final de sus hojas. Con el patrón de la guía de los domingos: cifras grandes arriba (.cifras-guia,
 * en contenido.css) con la norma de cada una y su cita literal plegada; el paso a paso con número grande; la tarjeta
 * «laborables frente a naturales»; las fichas de dónde rinde más un día; y listas con icono.
 */

/* La norma de una cifra o de un apartado: una línea que abre la cita literal con su enlace (como «Fuente», .fuente) */
.ley { margin-top: 0.45rem; font-size: 0.85rem; font-weight: 600; line-height: 1.35; color: var(--c-soft); }
.ley summary { display: inline; cursor: pointer; list-style: none; color: var(--c-link); }
.ley summary::-webkit-details-marker { display: none; }
.ley summary::after { content: " ▾"; font-size: 0.75rem; }
.ley[open] summary::after { content: " ▴"; }
.ley .cita { margin-top: 0.5rem; font-size: 0.95rem; font-weight: 400; line-height: 1.55; color: var(--c-ink); }
.ley .cita p + p { margin-top: 0.4rem; }
.norma { margin-top: 0.45rem; font-size: 0.85rem; font-weight: 600; line-height: 1.35; }
/* abierta, la cifra ocupa la fila entera: la cita se lee a lo ancho */
.cifras-guia li:has(> .ley[open]) { grid-column: 1 / -1; }
@media (max-width: 559px) { .cifras-guia li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.plegable__cuerpo > .ley { margin-top: -0.3rem; }

/* Paso a paso: cada paso en una tarjeta con su número grande */
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; display: grid; gap: 0.6rem; }
.pasos > li {
  counter-increment: paso; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.85rem; align-items: center;
  padding: 0.75rem 1rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); line-height: 1.45;
}
.pasos > li::before {
  content: counter(paso); grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--c-primary); color: var(--c-on-primary); font-size: 1.3rem; font-weight: 800;
}
.pasos strong { font-size: 1.02rem; }
.pasos span { color: var(--c-soft); font-size: 0.93rem; }

/* Laborables frente a naturales: una tarjeta de dos columnas (en el móvil, el título de cada fila va encima) */
.comparar { width: 100%; border-collapse: separate; border-spacing: 0.4rem 0; table-layout: fixed; line-height: 1.4; }
.comparar :is(th, td) { padding: 0.55rem 0.8rem; text-align: left; vertical-align: top; }
.comparar thead th { padding-block: 0.7rem 0.5rem; border-radius: var(--radius) var(--radius) 0 0; font-size: 1.1rem; font-weight: 800; }
.comparar tbody th { width: 30%; padding-left: 0; font-size: 0.85rem; font-weight: 700; color: var(--c-soft); }
.comparar thead td { width: 30%; }
.comparar tbody td, .comparar thead th { background: var(--c-acento-suave); }
.comparar :is(tbody td, thead th):last-child { background: var(--c-azul-suave); }
.comparar tbody tr:last-child td { padding-bottom: 0.8rem; border-radius: 0 0 var(--radius) var(--radius); }
.comparar td b { display: block; font-size: 1.6rem; line-height: 1.1; font-weight: 800; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.comparar td:last-child b { color: var(--c-vac2); }
/* la tira de días del ejemplo: los que se gastan, llenos; los del fin de semana que no cuentan, vacíos */
.tira { display: flex; gap: 2px; margin-top: 0.4rem; }
.tira i { flex: 1 1 0; max-width: 1.1rem; height: 0.85rem; border-radius: 3px; background: var(--c-primary); }
td:last-child > .tira i { background: var(--c-vac2); }
.tira .no { background: none; box-shadow: inset 0 0 0 1.5px var(--c-border-strong); }
@media (max-width: 559px) {
  .comparar, .comparar tbody { display: block; }
  .comparar thead { display: block; }
  .comparar tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0.4rem; }
  .comparar thead td { display: none; }
  .comparar tbody th { grid-column: 1 / -1; width: auto; padding: 0.7rem 0 0.25rem; }
  .comparar :is(th, td) { padding-inline: 0.7rem; }
  .comparar td { border-radius: 10px; }
  .comparar thead th { border-radius: var(--radius); }
  .comparar tbody tr:last-child td { border-radius: 10px; }
}

/* Dónde rinde más un día: fichas con la hoja del día que pides y los días libres seguidos */
.rinde { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.rinde > li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.8rem; align-items: center;
  padding: 0.75rem 0.95rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface);
}
.rinde time {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 3.1rem; height: 3.1rem;
  border: 1px solid var(--c-border-strong); border-top: 5px solid var(--c-primary); border-radius: 10px; background: var(--c-surface); line-height: 1;
}
.rinde time b { font-size: 1.3rem; font-weight: 800; }
.rinde time span { margin-top: 0.12rem; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-soft); }
.rinde p { margin: 0; line-height: 1.35; }
.rinde p span { display: block; margin-top: 0.15rem; font-size: 0.88rem; color: var(--c-soft); }
.rinde__cifra { display: grid; justify-items: end; text-align: right; line-height: 1; }
.rinde__cifra b { font-size: 1.9rem; font-weight: 800; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.rinde__cifra small { margin-top: 0.15rem; font-size: 0.72rem; font-weight: 600; color: var(--c-soft); }

/* Listas con icono: cada punto con su marca (dónde mirarlo) */
.lista-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.lista-check li { position: relative; padding-left: 2rem; line-height: 1.45; }
.lista-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0.05rem; display: grid; place-items: center; width: 1.4rem; height: 1.4rem;
  border-radius: 50%; background: var(--c-verde-suave); color: var(--c-ok); font-size: 0.8rem; font-weight: 800;
}
