@import url("base.css");
/* Estilo unificado claro — páginas secundarias CombustibleBarato */
:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #059669;
  --brand-dark: #047857; /* para texto/enlaces: #059669 sobre blanco da 3.77:1, falla AA (4.5). #047857 da 5.48:1 */
  --brand-soft: #d1fae5;
  --border: #e2e8f0;
  --header-h: 56px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: 960px; margin: 0 auto; height: 100%;
  padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.site-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 14px; }
.site-brand:hover { text-decoration: none; }
.site-brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; border: 2px solid var(--brand-soft); }
.site-brand span.accent { color: var(--brand-dark); }
.site-nav { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--text); }

.site-main { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.site-main.narrow { max-width: 720px; }

h1 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 1.15rem; font-weight: 800; margin: 1.5rem 0 0.6rem; }
.lead { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.25rem; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 18px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 12px; border: none; cursor: pointer;
  font-weight: 700; font-size: 14px; min-height: 44px;
  background: var(--brand-dark); color: #fff;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; color: #fff; }
.btn-ghost {
  background: var(--card); color: var(--text); border: 1px solid var(--border);
}
.field {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; font: inherit;
}
label.lbl { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.muted { color: var(--muted); font-size: 0.875rem; }
.site-footer {
  max-width: 960px; margin: 0 auto; padding: 24px 16px 40px;
  font-size: 12px; color: var(--muted); border-top: 1px solid var(--border);
  text-align: center;
}
.site-footer a { color: var(--muted); }
.ad-slot {
  border: 1px dashed #cbd5e1; border-radius: 12px; padding: 20px;
  text-align: center; color: #94a3b8; font-size: 12px; background: #f8fafc; margin: 16px 0;
}
.prose p { margin: 0.75rem 0; color: #334155; line-height: 1.7; }
.prose h2 { color: var(--text); }
.prose ul { color: #334155; }
.tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand);
}
.grid-2 { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* cuenta.html — favoritos y alertas */
.fav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fav-row {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px;
}
.fav-row .fav-info { flex: 1; min-width: 0; }
.fav-row .fav-name { font-weight: 700; font-size: 14px; display: block; }
.fav-row .fav-sub { font-size: 12px; color: var(--muted); }
.fav-row .fav-price { font-weight: 800; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.fav-row button.remove {
  border: none; background: none; color: var(--muted); font-size: 18px;
  cursor: pointer; line-height: 1; padding: 4px 6px;
}
.fav-row button.remove:hover { color: #dc2626; }
.alert-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 13px;
}
.form-msg { font-size: 13px; margin-top: 8px; }
.form-msg.ok { color: var(--brand-dark); }
.form-msg.error { color: #dc2626; }

/* calculadora.html */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-result-big { font-size: 1.8rem; font-weight: 800; color: var(--brand-dark); margin: 4px 0; }
.calc-hint { font-size: 12px; color: var(--muted); }
