/* Páginas de contenido (/sistemas/* y /guias/*): prosa, tablas, nota de precios y referencias.
   100 % sobre tokens.css (ver DESIGN.md): ningún color ni fuente literal. Reusa .pp-hero, .pp-section,
   .section-head, .faq-*, .pp-cierre y .btn de styles.css / presupuestador.css. */

.ct-revisado { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }

.ct-body { max-width: 760px; }
.ct-body > :first-child { margin-top: 0; }
.ct-body h2 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    margin: var(--space-12) 0 var(--space-4);
    text-wrap: balance;
}
.ct-body p, .ct-body li { font-size: var(--fs-base); line-height: 1.75; }
.ct-body p { max-width: none; }
.ct-body strong { color: var(--color-text); font-weight: var(--fw-semibold); }
.ct-body h3 { font-size: var(--fs-base); font-weight: var(--fw-semibold); line-height: var(--lh-tight); margin: var(--space-6) 0 var(--space-2); }

.ct-list { list-style: disc; padding-left: var(--space-6); margin: 0 0 var(--space-4); }
.ct-list-num { list-style: decimal; }
.ct-list li { margin-bottom: var(--space-2); padding-left: var(--space-1); }
.ct-list li::marker { color: var(--color-accent-decor); }
.ct-list-num li::marker { color: var(--color-accent-strong); font-weight: var(--fw-semibold); }

/* Tablas: ancho propio y desplazamiento horizontal en celular */
.ct-scroll {
    overflow-x: auto;
    max-width: 100%;
    margin: var(--space-4) 0 var(--space-3);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.ct-scroll:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; box-shadow: 0 0 0 4px var(--color-focus-halo); }
.ct-table { width: 100%; min-width: 320px; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.ct-table-ancha { min-width: 720px; }
.ct-table th, .ct-table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
    color: var(--color-text);
}
.ct-table tbody tr:last-child th, .ct-table tbody tr:last-child td { border-bottom: 0; }
.ct-table thead th {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--color-accent-strong);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding-bottom: var(--space-3);
}
.ct-table tbody th { font-weight: var(--fw-semibold); }
.ct-table td { font-weight: var(--fw-medium); }
.ct-table-ancha tbody th { min-width: 140px; }

/* Nota de precios (la fecha y el IVA, una sola vez bajo cada tabla) */
.ct-body p.ct-nota { font-size: var(--fs-sm); font-style: italic; color: var(--color-text-muted); margin-bottom: var(--space-6); }

/* Referencia de mercado: otra metodología, separada del precio de LPA */
.ct-ref {
    margin: var(--space-6) 0;
    padding: var(--space-5) var(--space-6);
    background: var(--color-surface-tint);
    border: 1px solid var(--color-tint-border);
    border-radius: var(--radius-md);
}
.ct-body .ct-ref p { font-size: var(--fs-sm); margin: 0; }
.ct-body .ct-ref p + p { margin-top: var(--space-2); }
.ct-body .ct-ref .ct-ref-titulo { font-weight: var(--fw-bold); color: var(--color-text); }

.ct-seguir { padding-top: 0; }
.pp-hero + .ct-section { padding-top: 0; }

@media (max-width: 768px) {
    .ct-body h2 { margin-top: var(--space-10); }
    .ct-table { font-size: var(--fs-sm); }
    .ct-table th, .ct-table td { padding: var(--space-3); }
    .ct-ref { padding: var(--space-4); }
}
.ct-hero { padding-bottom: var(--space-8); }
.ct-hero .pp-hero-head { margin-bottom: 0; }
.ct-seguir { padding-bottom: var(--space-8); }
