/* GEOCODE · hoja de estilos principal
   Paleta tomada del logo: naranja #D26A0D, gris #B0B0B0, negro. */
:root {
  --orange: #d26a0d;
  --orange-600: #b45a0a;
  --orange-100: #fbeadb;
  --gray: #b0b0b0;
  --ink: #15171a;
  --ink-2: #2a2e33;
  --text: #2b2f34;
  --muted: #646a72;
  --line: #e2ded6;
  --paper: #f6f4ef;
  --paper-2: #eeeae2;
  --white: #fff;
  --night: #111316;
  --night-2: #1b1e22;
  --ok: #2f7d4f;
  --ok-bg: #e3f1e8;
  --warn: #a2560a;
  --warn-bg: #fbeadb;
  --info: #2c5e8a;
  --info-bg: #e3edf6;
  --err: #a12a1f;
  --err-bg: #f8e2df;
  --radius: 10px;
  --wrap: 1180px;
  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--orange-600); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.small { font-size: .85rem; }
.muted, .muted-h { color: var(--muted); }
.muted-h { font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 760px); }
.mt { margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { width: 150px; height: auto; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .45rem .8rem; border-radius: 6px; text-decoration: none;
  color: var(--ink-2); font-weight: 500; font-size: .98rem;
}
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset: 68px 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line); display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .site-nav a { padding: .75rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: .75rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Botones y etiquetas ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem;
  border-radius: 8px; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  font-family: var(--font);
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-dark { color: var(--ink); text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.actions-end { justify-content: flex-end; align-items: center; margin: 0; }

.eyebrow {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: .9rem;
}
.eyebrow a { color: inherit; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .02em; padding: .18rem .55rem; border-radius: 999px; vertical-align: middle;
  white-space: nowrap;
}
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-info { background: var(--info-bg); color: var(--info); }
.tag-muted { background: var(--paper-2); color: var(--muted); }
.link-arrow { font-weight: 600; color: var(--ink); text-decoration: none; }
.link-arrow::after { content: " →"; color: var(--orange); transition: margin .15s; }
.link-arrow:hover::after { margin-left: .25rem; }

/* ---------- Hero portada ---------- */
.hero {
  background: var(--night); color: #d9dcdf; position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 600px at 85% 20%, rgba(210,106,13,.18), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero .accent { color: var(--orange); }
.hero .lead { font-size: 1.2rem; max-width: 36rem; color: #c3c7cc; }
.hero .lead strong { color: #fff; font-family: var(--mono); font-weight: 500; }
.hero .eyebrow { color: var(--gray); }

.readout { position: relative; }
.skyplot { width: 100%; max-width: 420px; margin-inline: auto; opacity: .9; }
.skyplot .ring { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1; }
.skyplot .axis { stroke: rgba(255,255,255,.08); }
.skyplot .card { fill: rgba(255,255,255,.4); font: 500 12px var(--mono); text-anchor: middle; }
.skyplot .sat { animation: pulse 3.6s ease-in-out infinite; }
.skyplot .sat-o { fill: var(--orange); }
.skyplot .sat-g { fill: var(--gray); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .skyplot .sat { animation: none; } html { scroll-behavior: auto; } }

.readout-card {
  position: absolute; left: 50%; bottom: -1rem; transform: translateX(-50%);
  width: min(100%, 340px); background: rgba(27,30,34,.92); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1rem 1.1rem; backdrop-filter: blur(6px);
}
.readout-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; color: #fff; }
.status { font-family: var(--mono); font-size: .75rem; display: inline-flex; align-items: center; gap: .4rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-on { color: #6fd39a; }
.status.is-on::before { box-shadow: 0 0 0 4px rgba(111,211,154,.18); }
.status.is-off { color: var(--gray); }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; margin: 0; }
.readout-grid dt { font-size: .75rem; color: #8d939a; }
.readout-grid dd { margin: 0; color: #fff; font-size: 1rem; }
.readout-foot { margin: .75rem 0 0; font-family: var(--mono); font-size: .7rem; color: #8d939a; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: 2rem 0 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.section-head.row h2 { margin-bottom: 0; }

.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); background:
  linear-gradient(rgba(21,23,26,.04) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, rgba(21,23,26,.04) 1px, transparent 1px) 0 0 / 40px 40px, var(--paper); }
.page-hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.subnav a { font-family: var(--mono); font-size: .82rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--white); padding: .35rem .75rem; border-radius: 999px; }
.subnav a:hover { border-color: var(--orange); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.split-wide { gap: clamp(2rem, 5vw, 4.5rem); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillars article { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.pillars .num { color: var(--orange); font-size: .9rem; display: block; margin-bottom: .6rem; }
.pillars h2 { font-size: 1.35rem; }
.pillars p { color: var(--muted); }

/* Pipeline */
.pipeline { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: p; }
.pipeline li {
  position: relative; padding: 1.1rem 1.2rem 1.1rem 1rem; background: var(--paper);
  border: 1px solid var(--line); margin-right: -1px; display: flex; flex-direction: column; gap: .2rem;
}
.pipeline li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.pipeline li:last-child { border-radius: 0 var(--radius) var(--radius) 0; background: var(--orange-100); border-color: #f0c9a4; }
.pipeline li:not(:last-child)::after {
  content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; z-index: 1;
  background: inherit; border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}
.pipeline .mono { color: var(--orange-600); font-size: .75rem; }
.pipeline strong { color: var(--ink); }
.pipeline small { color: var(--muted); font-size: .85rem; }
.pipeline-branch { color: var(--muted); }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th { text-align: left; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--paper); padding: .7rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfaf7; }
.data-table.compact { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); border-collapse: separate; border-spacing: 0; }
.data-table.compact td { white-space: normal; }
.coords td:nth-child(2) { text-align: right; }
.dl { display: flex; gap: .5rem; flex-wrap: wrap; }
.dl a {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600;
  text-decoration: none; color: var(--ink); border: 1px solid var(--line); padding: .3rem .6rem; border-radius: 6px; background: var(--paper);
}
.dl a::before { content: "↓"; color: var(--orange); }
.dl a:hover { border-color: var(--orange); }
.dl .size { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: .78rem; }
.meter { display: inline-block; width: 64px; height: 6px; background: var(--paper-2); border-radius: 3px; vertical-align: middle; margin-right: .5rem; overflow: hidden; }
.meter span { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--ok); }
.note { font-size: .88rem; color: var(--muted); margin-top: .9rem; }
.empty { padding: 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
tr.is-hidden { display: none; }

.filters { display: flex; gap: .75rem; }
.filters label { display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); gap: .2rem; }
select, input, textarea {
  font: inherit; font-size: 1rem; padding: .6rem .7rem; border: 1px solid #cfcac0; border-radius: 8px; background: var(--white); color: var(--ink);
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }

/* ---------- Tarjetas ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--text);
  transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--text); }
.card h3, .card h2 { margin: .3rem 0 .2rem; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.product-mini .icon { width: 72px; height: 72px; color: var(--ink); margin-bottom: .5rem; }
.product-mini .tag { align-self: flex-start; }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.quick-card {
  display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink);
}
.quick-card:hover { border-color: var(--orange); color: var(--ink); }
.quick-card .mono { color: var(--orange-600); font-size: .75rem; }
.quick-card strong { font-size: 1.1rem; }
.quick-card small { color: var(--muted); font-family: var(--mono); font-size: .75rem; overflow-wrap: anywhere; }

.article-list { display: flex; flex-direction: column; }
.article-row { display: grid; gap: .2rem; padding: 1.1rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.article-row:last-child { border-bottom: 1px solid var(--line); }
.article-row .mono { color: var(--orange-600); font-size: .75rem; }
.article-row strong { color: var(--ink); font-size: 1.15rem; }
.article-row small { color: var(--muted); font-size: .95rem; }
.article-row:hover strong { color: var(--orange-600); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.article-card .link-arrow { margin-top: auto; padding-top: .8rem; }
.article-card.is-soon { background: transparent; border-style: dashed; }

/* ---------- Productos ---------- */
.product-list { display: flex; flex-direction: column; gap: 1.5rem; }
.product {
  display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); scroll-margin-top: 90px;
}
.product-visual {
  display: grid; place-items: center; background: var(--paper); border-radius: 8px; color: var(--ink);
  aspect-ratio: 1; background-image: radial-gradient(circle at 30% 30%, var(--orange-100), transparent 55%);
}
.product-visual svg { width: 55%; }
.product h2 { margin-top: .6rem; }
.lead-sm { font-size: 1.1rem; color: var(--muted); }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 1rem; }
.price { font-family: var(--mono); font-size: 1rem; color: var(--ink); }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding: .3rem 0 .3rem 1.4rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ---------- Estación ---------- */
.spec { margin: 0 0 1rem; display: grid; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: .9rem; }
.spec dd { margin: 0; color: var(--ink); }
.spec-tight > div { padding: .45rem 0; }

.callout { border-left: 3px solid var(--orange); background: var(--orange-100); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; margin: 0 0 1.5rem; }
.callout ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.callout-plan { margin-top: 2.5rem; background: var(--paper); border-left-color: var(--ink); }
.callout-ok { background: var(--ok-bg); border-left-color: var(--ok); }
.callout-err { background: var(--err-bg); border-left-color: var(--err); }
.callout-err ul { margin: 0; }

.map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); z-index: 0; }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.flow-node { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; }
.flow-node small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.flow-arrow { width: 36px; height: 2px; background: var(--ink); position: relative; }
.flow-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }
.flow-split { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.flow-branch { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; background: var(--white); }
.flow-branch strong { display: block; color: var(--ink); margin: .5rem 0 .3rem; font-size: 1.1rem; }
.flow-branch p { margin: 0; color: var(--muted); }
.glossary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.glossary > div { border-top: 2px solid var(--ink); padding-top: .8rem; }
.glossary .mono { color: var(--orange-600); font-weight: 500; }
.glossary p { color: var(--muted); font-size: .95rem; margin: .3rem 0 0; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11.5rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 10rem 1fr; gap: 3rem; padding: 0 0 2rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(11.5rem - 6px); top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--ink); }
.timeline .tl-en-curso::before { background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.timeline .tl-proximo::before { background: var(--white); box-shadow: 0 0 0 1px var(--gray); }
.tl-date { text-align: right; color: var(--muted); font-size: .85rem; padding-top: .1rem; }
.tl-body h3 { margin-bottom: .3rem; }
.tl-body p { color: var(--muted); margin: 0; max-width: 44rem; }
.tl-proximo .tl-body h3 { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 2rem; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; }
.stats > div { background: var(--white); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; }
.stats .big { font-size: 1.7rem; color: var(--ink); font-weight: 500; }
.stats span:last-child { color: var(--muted); font-size: .9rem; }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding: 1rem 1rem 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow-x: auto; }
.bar { position: relative; flex: 1 0 18px; max-width: 42px; height: 100%; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; height: calc(var(--v) * 1%); background: var(--orange); border-radius: 3px 3px 0 0; }
.bar.is-low .bar-fill { background: var(--gray); }
.bar.is-null .bar-fill { background: repeating-linear-gradient(45deg, var(--paper-2) 0 4px, transparent 4px 8px); }
.bar-label { position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%); font-size: .68rem; color: var(--muted); }

/* ---------- Datos ---------- */
.code { background: var(--night); color: #e3e5e8; padding: 1rem 1.2rem; border-radius: 8px; overflow-x: auto; font-size: .85rem; line-height: 1.6; }
.code b { color: #f5a660; font-weight: 500; }
.cite { margin: 1rem 0; padding: 1rem 1.2rem; border-left: 3px solid var(--ink); background: var(--paper); font-family: var(--mono); font-size: .85rem; }

/* ---------- Artículo ---------- */
.prose { padding: 3rem 0 4rem; font-size: 1.1rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.6rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose code { background: var(--paper-2); padding: .1rem .35rem; border-radius: 4px; }
.prose pre.code code { background: none; padding: 0; }
.prose .code-example { margin: 1.5rem 0; }
.prose .h-small { font-size: 1rem; }
.prose .code-explanation { font-size: .95rem; color: var(--muted); margin-top: .6rem; }
.byline { color: var(--muted); }

/* ---------- Contacto ---------- */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; color: var(--ink); font-size: .95rem; }
.form button { align-self: flex-start; }
.hp { position: absolute; left: -9999px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { display: grid; grid-template-columns: 7rem 1fr; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.contact-list .mono { color: var(--muted); font-size: .8rem; padding-top: .15rem; }

/* ---------- CTA y pie ---------- */
.cta { background: var(--orange); color: #fff; padding: 3rem 0; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; max-width: 38rem; }
.cta .btn-primary { background: var(--ink); }
.cta .btn-primary:hover { background: #000; }

.site-footer { background: var(--night); color: #9aa0a6; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand img { width: 140px; margin-bottom: 1rem; }
.site-footer h2 { color: #fff; font-size: .8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #d6d9dc; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #2a2e33; font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline li { margin: 0 0 -1px; border-radius: 0 !important; }
  .pipeline li:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .pipeline li:last-child { border-radius: 0 0 var(--radius) var(--radius) !important; }
  .pipeline li:not(:last-child)::after { right: auto; left: 2rem; top: auto; bottom: -9px; transform: rotate(135deg); }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .glossary { grid-template-columns: repeat(2, 1fr); }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { width: 2px; height: 22px; margin-left: 2rem; }
  .flow-arrow::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-top: 7px solid var(--ink); border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .readout { margin-top: 1rem; padding-bottom: 6rem; }
  .readout-card { bottom: 0; }
  .pillars, .cards, .article-grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; padding: 1.4rem; }
  .product-visual { aspect-ratio: 16/9; }
  .product-visual svg { width: 30%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .flow-split { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: .3rem; padding-left: 2rem; }
  .timeline li::before { left: 0; }
  .tl-date { text-align: left; }
  .spec > div { grid-template-columns: 1fr; gap: .1rem; }
  .actions-end { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .quick, .glossary, .footer-grid { grid-template-columns: 1fr; }
  .filters { width: 100%; }
  .filters label { flex: 1; }
}

/* ---------- Bloques de artículos (plantilla de Aprende) ---------- */
.prose .callout { margin: 1.5rem 0; font-size: 1rem; }
.prose .table-wrap { margin: 1.5rem 0; }
.figura { margin: 2rem 0; }
.figura img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.figura figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.figura-portada { margin-top: 0; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 2rem; border-radius: 10px; overflow: hidden; background: var(--night); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ficha-geo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 1.5rem 0; }
.ficha-geo > div { background: var(--white); padding: .7rem .9rem; display: flex; flex-direction: column; }
.ficha-geo span { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-600); }
.ficha-geo strong { font-size: .95rem; color: var(--ink); font-weight: 600; }
.formula { font-family: var(--mono); text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; font-size: 1.05rem; color: var(--ink); }
.refs { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; }
.refs h2 { font-size: 1.2rem; margin-top: 0; }
.refs ol { padding-left: 1.3rem; color: var(--muted); }
.tags { margin-top: 1.5rem; }
.post-cta { margin-top: 2.5rem; padding: 1.2rem 1.4rem; border-radius: 10px; background: var(--night); color: #c3c7cc; display: flex; flex-direction: column; gap: .2rem; font-size: 1rem; }
.post-cta strong { color: #fff; }
.post-cta a { color: #f5a660; }
@media (max-width: 680px) { .ficha-geo { grid-template-columns: 1fr 1fr; } }
