/* Blog and product pages. Loaded after site.css. */
.page-head { padding: 72px 0 44px; }
.crumbs { margin: 0 0 22px; color: var(--ink-muted); font-size: 13px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.page-head h1 { margin: 12px 0 0; max-width: 900px; font-family: var(--display); font-size: 60px; font-weight: 400; line-height: 1.04; text-wrap: balance; }
.page-lead { max-width: 720px; margin: 20px 0 0; color: var(--ink-soft); font-size: 20px; }
.byline { margin: 22px 0 0; color: var(--ink-muted); font-size: 14px; }
.topic { font-size: 13px; font-weight: 700; color: var(--red); }
.topic.fuels { color: var(--gold); }
.topic.metals { color: var(--blue); }
.topic.gas { color: var(--green); }
.topic.coal { color: var(--ink-soft); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 26px 28px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-family: var(--display); font-size: 31px; line-height: 1.1; }
.facts dd { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }

.layout { display: grid; grid-template-columns: minmax(0, 700px) 300px; gap: 80px; justify-content: space-between; padding: 60px 0 90px; }
.prose { font-size: 18px; line-height: 1.68; overflow-wrap: break-word; }
.prose p, .prose ul { margin: 0 0 22px; }
.prose h2 { margin: 46px 0 14px; font-family: var(--display); font-size: 35px; font-weight: 400; line-height: 1.12; }
.prose > h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; }
.prose li { margin: 0 0 12px; }
.prose a { color: var(--red); text-underline-offset: 3px; }
.sources { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line-strong); font-size: 14px; color: var(--ink-soft); }
.sources h2 { margin: 0 0 12px; font-family: var(--sans); font-size: 15px; font-weight: 700; }
.sources ul { margin: 0; padding-left: 18px; }
.sources li { margin: 6px 0; }
.small-note { margin: 22px 0 0; color: var(--ink-muted); font-size: 13px; }

.side { font-size: 15px; }
.side-box { position: sticky; top: 100px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.side-box h2 { margin: 0 0 10px; font-family: var(--display); font-size: 27px; font-weight: 400; line-height: 1.12; }
.side-box p { margin: 0 0 18px; color: var(--ink-soft); }
.side-box ul { margin: 22px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.side-box li { margin: 8px 0; }
.side-box li a:hover { color: var(--red); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { display: flex; flex-direction: column; padding: 28px; color: inherit; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 8px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.post-card:hover { border-color: var(--line-strong); box-shadow: 0 18px 44px rgba(17, 19, 18, 0.08); }
.post-card h2, .post-card h3 { margin: 14px 0 0; font-family: var(--display); font-size: 27px; font-weight: 400; line-height: 1.14; }
.post-card p { margin: 12px 0 0; color: var(--ink-soft); font-size: 15px; }
.post-card time { margin-top: auto; padding-top: 24px; color: var(--ink-muted); font-size: 13px; }
.post-card.lead-post { grid-column: span 2; padding: 40px; }
.post-card.lead-post h2 { font-size: 44px; line-height: 1.06; }
.post-card.lead-post p { max-width: 620px; font-size: 17px; }
.post-card[hidden] { display: none; }
.list-section { padding: 0 0 90px; }
.list-section .filter-bar { margin-bottom: 26px; }
.sub-title { margin: 0 0 26px; font-family: var(--display); font-size: 40px; font-weight: 400; line-height: 1.08; }
.guides { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.guides li { border-bottom: 1px solid var(--line); }
.guides a { display: block; padding: 18px 0; font-size: 17px; text-decoration: none; }
.guides a:hover { color: var(--red); }

.spec { width: 100%; margin: 0 0 46px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.spec th, .spec td { padding: 13px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec th { width: 38%; padding-right: 22px; color: var(--ink-soft); font-weight: 500; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--line-strong); }

.product-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.product-links a { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.product-links strong { font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1.15; }
.product-links span { color: var(--ink-muted); font-size: 14px; text-align: right; }
.product-links a:hover strong { color: var(--red); }
.home-sourcing { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.home-sourcing .product-links { grid-template-columns: 1fr; }
.home-sourcing .button { margin-top: 28px; }
.more { margin: 30px 0 0; }

.request { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 196px; }
.request-grid { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr); gap: 72px; }
.request form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.request label { display: block; font-size: 14px; font-weight: 600; }
.request .wide { grid-column: 1 / -1; }
.request input, .request select, .request textarea { display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; font: 400 16px var(--sans); }
.request textarea { min-height: 110px; resize: vertical; }
.request button { cursor: pointer; font-family: var(--sans); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-status { margin: 0; min-height: 22px; color: var(--green); font-size: 14px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 46px; padding: 44px 0 70px; }
  .side-box { position: static; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { border-bottom: 1px solid var(--line); }
  .facts div:nth-child(2n) { border-right: 0; }
  .facts div:nth-last-child(-n+2) { border-bottom: 0; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .home-sourcing, .request-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 640px) {
  .page-head { padding: 44px 0 34px; }
  .page-head h1 { font-size: 40px; }
  .page-lead { font-size: 18px; }
  .facts div { padding: 20px 18px; }
  .facts dt { font-size: 25px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 30px; }
  .post-grid, .product-links, .request form { grid-template-columns: minmax(0, 1fr); }
  .post-card.lead-post { grid-column: auto; padding: 28px; }
  .post-card.lead-post h2 { font-size: 32px; }
  .product-links a { display: block; }
  .product-links span { display: block; margin-top: 4px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Cotizaciones (widgets de TradingView) */
.tv-box { overflow: hidden; margin: 0 0 8px; padding: 6px 8px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.tv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tv-grid .tv-box { margin: 0; }
.tv-box iframe { display: block; }
@media (max-width: 980px) { .tv-grid { grid-template-columns: 1fr; } }
