/* Páginas de posicionamiento: mejores autoescuelas, guías, comparador e informe anual (App\Helpers\VistaSeo). */
.seo-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; list-style: none; margin: 0 0 20px; padding: 0; }
.seo-cifras li { background: var(--ap-superficie); border: 1px solid var(--ap-borde); border-radius: var(--ap-radio); box-shadow: var(--ap-sombra); padding: 14px 16px; }
.seo-cifras strong { display: block; font-size: 26px; line-height: 1.15; color: var(--ap-marca); font-variant-numeric: tabular-nums; }
.seo-cifras span { color: var(--ap-texto-2); font-size: 14px; }

.seo-texto { max-width: 820px; font-size: 16px; line-height: 1.65; margin-bottom: 18px; }
.seo-texto p { margin: 0 0 12px; }

.seo-tabla { background: var(--ap-superficie); border: 1px solid var(--ap-borde); border-radius: var(--ap-radio); }
.seo-tabla > caption { caption-side: top; color: var(--ap-texto-2); padding: 0 0 8px; text-align: left; }
.seo-tabla > thead > tr > th { background: var(--ap-superficie-2); color: var(--ap-texto-2); font-weight: 600; border-bottom-width: 1px; white-space: nowrap; }
.seo-tabla td, .seo-tabla th { vertical-align: middle !important; }
.seo-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seo-pct { white-space: nowrap; font-variant-numeric: tabular-nums; }
.seo-barra { display: inline-block; width: 70px; height: 8px; border-radius: 4px; background: var(--ap-borde-suave); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.seo-barra i { display: block; height: 100%; background: var(--ap-verde); border-radius: 4px; }

.seo-fuente { color: var(--ap-texto-3); font-size: 13px; margin: 8px 0 14px; }

.seo-faq { margin: 28px 0; max-width: 820px; }
.seo-faq details { background: var(--ap-superficie); border: 1px solid var(--ap-borde); border-radius: var(--ap-radio); margin-bottom: 8px; }
.seo-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 600; }
.seo-faq details p { padding: 0 16px 14px; margin: 0; color: var(--ap-texto-2); }

.seo-relacionados { margin: 28px 0 10px; }
.seo-relacionados h2 { font-size: 18px !important; }
.seo-relacionados ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.seo-relacionados li a, .seo-relacionados li strong { display: inline-block; padding: 7px 12px; border: 1px solid var(--ap-borde); border-radius: 999px; background: var(--ap-superficie); text-decoration: none; }
.seo-relacionados li a:hover { border-color: var(--ap-acento); background: var(--ap-acento-suave); }

.seo-comparador { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; background: var(--ap-superficie); border: 1px solid var(--ap-borde); border-radius: var(--ap-radio); padding: 18px; box-shadow: var(--ap-sombra); }
.seo-comparador .btn { grid-column: 1 / -1; justify-self: center; }
.seo-lado { border: 0; margin: 0; padding: 0; min-width: 0; }
.seo-lado legend { font-size: 16px; font-weight: 600; border: 0; margin-bottom: 8px; }
.seo-lado label { display: block; font-weight: 500; margin-bottom: 10px; }
.seo-vs { font-size: 22px; font-weight: 700; color: var(--ap-texto-3); }
.seo-comparar th small { display: block; font-weight: 400; color: var(--ap-texto-3); }
.seo-comparar td.seo-gana { background: #eaf7ee; font-weight: 700; }

.seo-descargas { margin: 4px 0 20px; }
.seo-citar { margin: 24px 0; padding: 14px 18px; border-left: 4px solid var(--ap-acento); background: var(--ap-acento-suave); border-radius: 0 var(--ap-radio) var(--ap-radio) 0; }
.seo-citar h2 { font-size: 18px !important; margin-top: 0; }
.seo-citar code { white-space: normal; word-break: break-all; }

@media (max-width: 640px) {
    .seo-comparador { grid-template-columns: 1fr; }
    .seo-vs { text-align: center; }
    .seo-barra { width: 40px; }
    .seo-cifras strong { font-size: 22px; }
}

/* tema.css trata la primera fila de las tablas antiguas como cabecera; aquí las tablas tienen <thead>. */
.ap .seo-tabla > tbody > tr:first-child > td,
.ap .seo-tabla > tbody > tr:first-child > th {
    background: transparent; color: inherit; font-size: inherit; font-weight: inherit;
    text-transform: none; letter-spacing: normal; border-bottom: 1px solid var(--ap-borde-suave);
}
.ap .seo-tabla > tbody > tr:first-child > td a { color: var(--ap-acento); }
.ap .seo-tabla > tbody > tr > th[scope="row"] { font-weight: 500; }
