/* Estilo «instrumento» (nov-2026). Se carga DESPUÉS de style.css y antes
   de paginas.css. Para volver al estilo anterior basta con quitar las dos
   líneas que lo cargan: web/index.html y app/paginas.py::page(). */
/* ============================================================
   capa casómetro, 4: un instrumento, no una app
   Papel blanco; el yeso queda para las lecturas de datos. Sin
   tarjetas redondeadas ni sombras: filetes finos entre filas, cifras
   grandes en Space Grotesk con la unidad y la etiqueta DEBAJO, como
   en un medidor. El azulejo solo para enlaces y acciones; el albero
   solo para la aguja y la respuesta. Radios de 4 px en controles.
   ============================================================ */
:root {
    --bg: #FFFFFF;             /* papel */
    --bg-panel: #FFFFFF;
    --bg-raised: #F7F7F4;      /* yeso: lecturas y bandas */
    --bg-soft: #F7F7F4;
    --card: #FFFFFF;
    --border: #D9D7CF;         /* filete */
    --border-strong: #121826;  /* filete de tinta */
    --accent-dim: #EEF2FC;
    --r-sm: 4px; --r-md: 4px; --r-lg: 4px; --r-xl: 4px;
    --rule: 1px solid var(--border);
    --rule-ink: 1px solid var(--border-strong);
}
body { background: var(--bg); font-variant-numeric: tabular-nums; }

/* tipografía: titulares sin apretar, peso medio */
h1, h2, h3, .view-header h2, .quiz-q, .ori-step-head strong, .home-h,
.tray-head strong, .home-hero h1, .home-task b, .home-tile .v {
    font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }
.view-header h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.08; }
h3 { font-size: 21px; }

/* barra superior: cabecera con filete de tinta, pestañas subrayadas */
.sidebar { height: 64px; background: var(--bg); border-bottom: var(--rule-ink); gap: 4px; }
.sidebar .sb-brand { font-weight: 500; letter-spacing: 0; font-size: 22px; margin-right: 26px; }
.nav-btn { border-radius: 0; padding: 0 10px; height: 64px; color: var(--text-2);
    border-bottom: 2px solid transparent; font-weight: 500; }
.nav-btn:hover { background: none; color: var(--text); }
.nav-btn.active { background: none; color: var(--text); border-bottom-color: var(--accent); font-weight: 500; }

/* controles */
button, .btn, input, select, textarea { border-radius: 4px; }
button.primary, .btn.primary { border-radius: 4px; min-height: 48px; font-weight: 500; }
button.small, .small { border-radius: 3px; }
.chip, .chip-btn { border-radius: 3px; }
.chips { border-radius: 4px; }
input, select, textarea { border-width: 1px; border-color: var(--border-strong); background: var(--bg); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* paneles: filete, sin radio ni sombra */
.card, .chart-card, .quiz-opt, .home-tile, .esc-card { border-radius: 0; box-shadow: none;
    border: var(--rule); }
.card { padding: 22px 24px; }
.home-tile { background: var(--bg-raised); border: 0; border-top: 2px solid var(--border-strong); }
.home-tile .k { order: 2; margin-top: 4px; }
.home-tile .v { font-weight: 500; font-size: 30px; }
.home-tile { display: flex; flex-direction: column; }
.home-tile .s { order: 3; }

/* Inicio: el titular y el medidor sobre el papel; nada de cajas */
.home-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 40px); align-items: flex-start; }
.home-kicker { display: flex; align-items: center; gap: 12px; font-family: var(--font-display);
    font-size: 17px; font-weight: 500; color: var(--text); margin: 0 0 18px; letter-spacing: 0; text-transform: none; }
.home-kicker::before { content: ""; width: 28px; height: 3px; background: var(--albero); }
.home-hero h1 { font-size: clamp(40px, 5.6vw, 62px); line-height: 1.04; letter-spacing: 0; margin: 0 0 20px; }
.home-lead { color: var(--text-2); max-width: 32em; }
.home-start input { border-color: var(--border-strong); }
.home-hero-demo { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; gap: 14px;
    flex-basis: 340px; }
.home-hero-demo svg text { font-family: var(--font-ui); }
.home-demo-k { order: 2; padding-top: 10px; border-top: var(--rule-ink); color: var(--text); font-weight: 500;
    font-family: var(--font-display); font-size: 15px; }
.home-hero-demo ul { order: 3; gap: 0; }
.home-hero-demo li { padding: 9px 0; border-bottom: var(--rule); font-size: 15px; color: var(--text-2); }
.home-hero-demo li b { color: var(--text); font-weight: 500; min-width: 22px; }

/* «¿Qué necesitas?»: una lista con filetes, no cinco cajas iguales */
.home-h { font-size: 22px; margin: 36px 0 0; padding-bottom: 10px; border-bottom: var(--rule-ink); }
.home-tasks { display: block; }
.home-task { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 6px 32px;
    align-items: baseline; padding: 16px 0; border: 0; border-bottom: var(--rule); border-radius: 0;
    background: none; color: inherit; text-decoration: none; }
.home-task b { font-size: 19px; line-height: 1.25; }
.home-task span:not(.ht-ic) { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.home-task:hover { border-color: var(--border); background: none; transform: none; box-shadow: none; }
.home-task:hover b { color: var(--accent); }
@media (max-width: 720px) {
    .home-task { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
    .home-task b { font-size: 17px; }
    .sidebar { height: 58px; border-bottom-width: 1px; }
    .nav-btn { height: 58px; }
}

/* veredicto: sigue siendo tinta con la aguja en albero, pero cuadrado */
.ori-hero { border-radius: 0; }

/* foco de teclado visible en todo lo que se puede pulsar */
a:focus-visible, button:focus-visible, summary:focus-visible, .home-task:focus-visible,
.nav-btn:focus-visible, .tab-btn:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px; }
.home-task:focus-visible b { color: var(--accent); }
/* objetivos táctiles de 44 px como mínimo en el teléfono */
@media (max-width: 720px) {
    .pg-otros li a, .pg-foot .pg-links a, .pg-migas a { display: inline-block; padding: 12px 0; }
    .pg-faq summary { padding: 10px 0; }
    .pg-det summary { padding: 11px 0; }
    .pg-logo { min-height: 44px; }
}

/* Inicio, secciones nuevas (gráfico, ranking, cómo funciona, ayudas,
   preguntas) en el mismo lenguaje: sin cajas redondeadas, filetes. */
.home-sec-head { border-bottom: var(--rule-ink); padding-bottom: 10px; margin-top: 36px; }
.home-sec-head .home-h { border-bottom: 0; padding-bottom: 0; margin: 0; }
.home-sec-head + * { margin-top: 18px; }
.home-chart { border: 0; border-radius: 0; padding: 0; background: none; }
.home-chart figcaption b { font-weight: 500; }
.hg-area { fill: var(--bg-raised); }
.home-mkt .home-tile { border-radius: 0; }
.home-rank { border: 0; border-radius: 0; padding: 0; background: none; }
.home-rank-tabs { gap: 0; border-bottom: var(--rule); margin-bottom: 10px; }
.home-rank-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    padding: 8px 12px; margin-bottom: -1px; color: var(--text-2); background: none; }
.home-rank-tabs button[aria-selected="true"] { background: none; color: var(--text);
    border-bottom-color: var(--accent); font-weight: 500; }
.home-rank-list a { border-radius: 0; border-bottom: var(--rule); padding: 8px 2px; }
.hr-bar { border-radius: 0; height: 6px; }
.hr-bar i { border-radius: 0; }
.home-pasos { gap: 0 32px; margin-top: 0; }
.home-pasos li { background: none; border: 0; border-radius: 0; padding: 16px 0 4px; }
.home-pasos li::before { width: auto; height: auto; border-radius: 0; background: none;
    color: var(--accent); font-size: 30px; font-weight: 500; justify-content: flex-start; margin: 0; }
.home-pasos b { font-weight: 500; }
.home-ayudas { border-radius: 4px; }
.home-ayudas::after { border-radius: 0; border: 0; border-top: 3px solid var(--albero);
    width: 28px; height: 0; left: 28px; top: 0; right: auto; bottom: auto; }
.home-ayudas-cta { border-radius: 4px; }
.home-ayudas b { font-weight: 500; }
.home-faq { border: 0; border-radius: 0; padding: 0; background: none; }
.home-faq details { border-bottom: var(--rule); }
.home-faq details:last-child { border-bottom: var(--rule); }
.home-faq summary { font-weight: 500; }
@media (max-width: 720px) {
    .home-rank-tabs { margin: 0 0 10px; padding: 0; }
    .home-ayudas::after { left: 22px; }
}
@media (max-width: 720px) { .home-mkt .home-tile .v { font-size: 23px; } }
