@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:500;font-display:swap;src:url("fuentes/barlow-condensed-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url("fuentes/barlow-condensed-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400;font-display:swap;src:url("fuentes/ibm-plex-sans-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:500;font-display:swap;src:url("fuentes/ibm-plex-sans-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:600;font-display:swap;src:url("fuentes/ibm-plex-sans-latin-600-normal.woff2") format("woff2")}
/* Tablero de precios tipo estación arriba; calculadora e historial debajo en dos columnas que se apilan en móvil. */
:root{
  --bg:#eef1f4; --panel:#ffffff; --ink:#14212e; --muted:#566575; --line:#d3dae1;
  --board:#14212e; --board-ink:#f4f6f8; --accent:#f2a900;
  --down:#1a7f4b; --up:#b93a1e;
  --display:"Barlow Condensed","Arial Narrow",sans-serif;
  --body:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0e161e; --panel:#17222d; --ink:#e8edf2; --muted:#9aa8b6; --line:#2b3947;
    --board:#060b10; --accent:#ffbf1f; --down:#4cc38a; --up:#ff8a6b;
    color-scheme:dark;
  }
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.5}
.wrap{max-width:980px;margin:0 auto;padding:24px 16px 48px;display:flex;flex-direction:column;gap:20px}
header{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:baseline;justify-content:space-between}
.brand{font-family:var(--display);font-weight:700;font-size:1.2rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
h1{font-family:var(--display);font-weight:700;font-size:2.1rem;line-height:1.05;margin:0;text-wrap:balance}
h2{font-family:var(--display);font-weight:700;font-size:1.45rem;margin:0 0 12px;text-wrap:balance}
.board{background:var(--board);color:var(--board-ink);border-radius:10px;padding:20px;display:flex;flex-direction:column;gap:16px}
.board-top{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;align-items:center;font-size:.92rem}
.board-top strong{color:var(--accent);font-weight:600}
.board select{background:transparent;color:var(--board-ink);border:1px solid rgba(255,255,255,.65);width:auto}
.board select option{color:#14212e}
.prices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.price{border-top:3px solid var(--accent);padding-top:10px;display:flex;flex-direction:column;gap:2px}
.price .name{font-size:.9rem;opacity:.85}
.price .num{font-family:var(--display);font-weight:700;font-size:3.2rem;line-height:1;font-variant-numeric:tabular-nums}
.price .num small{font-size:1.1rem;font-weight:500;opacity:.8}
.price .gal{font-size:.88rem;opacity:.8;font-variant-numeric:tabular-nums}
.chg{font-size:.9rem;font-weight:600;font-variant-numeric:tabular-nums}
.chg.down{color:#5fd39a}.chg.up{color:#ff9a7d}.chg.same{opacity:.75}
.alert{background:var(--panel);border:1px solid var(--up);border-left-width:5px;border-radius:8px;padding:12px 16px}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:20px}
.form{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:var(--muted);font-weight:500}
input,select{font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:8px 10px;width:100%}
input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.results{margin-top:16px;display:flex;flex-direction:column;gap:10px}
.res{display:flex;justify-content:space-between;gap:12px;align-items:baseline;border-top:1px solid var(--line);padding-top:10px}
.res b{font-family:var(--display);font-size:1.7rem;font-variant-numeric:tabular-nums}
.res .d{font-size:.9rem;font-weight:600}
.d.down{color:var(--down)}.d.up{color:var(--up)}
.chart{overflow-x:auto}
svg{display:block;width:100%;height:auto;min-width:320px}
svg text{font-family:var(--body);font-size:11px;fill:var(--muted)}
svg .val{fill:var(--ink);font-weight:600}
.note{font-size:.85rem;color:var(--muted);margin:10px 0 0;max-width:65ch}
footer{font-size:.85rem;color:var(--muted);max-width:75ch}
footer a{color:inherit}
[hidden]{display:none!important}
@media (max-width:720px){.cols{grid-template-columns:1fr}.price .num{font-size:2.3rem}}
@media (max-width:420px){.prices{grid-template-columns:1fr}.form{grid-template-columns:1fr}}
.en-linea{flex-direction:row;align-items:center;gap:8px;color:inherit}
.uso{border:1px solid var(--line);border-radius:8px;margin:14px 0 0;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.uso legend{font-size:.85rem;color:var(--muted);font-weight:500;padding:0 6px}
.opcion{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px;font-size:.95rem;color:var(--ink)}
.opcion input[type=radio]{width:auto;accent-color:var(--accent)}
.opcion input[type=number]{width:5.5em}
.res b small{font-family:var(--body);font-size:.85rem;font-weight:500;color:var(--muted)}
main{display:flex;flex-direction:column;gap:20px}
.opcion label{flex-direction:row;font-size:inherit;color:inherit;font-weight:400}
.opcion input[type=radio]{width:1.15rem;height:1.15rem;flex:none}
input[type=radio]:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tabla-historial{margin-top:12px;font-size:.9rem}
.tabla-historial summary{cursor:pointer;color:var(--muted);font-weight:500;padding:6px 0}
table{border-collapse:collapse;width:100%;margin-top:8px;font-variant-numeric:tabular-nums}
caption{text-align:left;color:var(--muted);padding-bottom:6px}
th,td{text-align:left;padding:6px 10px 6px 0;border-bottom:1px solid var(--line)}
td:last-child,th:last-child{text-align:right;padding-right:0}
/* Espacio reservado para lo que se dibuja al cargar los datos, para que la página no salte. */
#grafica{aspect-ratio:440/240;min-width:0}
#notaGrafica{min-height:2.6em}
.board-top>span{min-height:1.5em}
.acciones{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0}
.acciones .note{margin:0}
.boton{display:inline-block;background:var(--accent);color:#14212e;font-weight:600;text-decoration:none;border-radius:8px;padding:10px 16px}
.boton:hover{filter:brightness(1.08)}
.boton:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.contacto{display:block;margin-top:8px}
