/* Blog de Embarca. Mismos tokens, tipografía (Archivo) y cabecera/pie que la portada.
   Generado junto con las páginas por tools/blog/build.py: no editar a mano las páginas. */
:root {
  --paper: #FCFBF8; --surface: #FFFFFF; --band: #DCEAF1; --ink: #16303F; --ink-2: #33586C; --ink-3: #587482;
  --rule: #D3DFE6; --accent: #B23C1E; --ok: #1B6F45; --warn-bg: #FFF1DC; --warn-ink: #6B4100;
  --sea: #115E8A; --sea-2: #7FB2CF; --land: #E7E2D6; --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1A24; --surface: #10232F; --band: #0F2A3B; --ink: #E3EDF2; --ink-2: #B3C8D3; --ink-3: #8EA7B4;
    --rule: #22404F; --accent: #F0794A; --ok: #5CC48E; --warn-bg: #2E2312; --warn-ink: #F3C77A;
    --sea: #3C8DBA; --sea-2: #2A5C78; --land: #1C3140; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B1A24; --surface: #10232F; --band: #0F2A3B; --ink: #E3EDF2; --ink-2: #B3C8D3; --ink-3: #8EA7B4;
  --rule: #22404F; --accent: #F0794A; --ok: #5CC48E; --warn-bg: #2E2312; --warn-ink: #F3C77A;
  --sea: #3C8DBA; --sea-2: #2A5C78; --land: #1C3140; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }

/* Cabecera y pie: iguales a la portada */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }
@media (min-width: 1040px) { .wrap { padding: 0 60px; } }
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand svg { width: 32px; height: 32px; flex: none; }
.wordmark { font-weight: 700; font-size: 21px; letter-spacing: -0.015em; line-height: 1; }
.topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.navlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: none; }
.navlink:hover, .navlink[aria-current] { color: var(--ink); }
.navlink[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.lang { position: relative; flex: none; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; cursor: pointer; border-radius: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); }
.lang summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang .flag { width: 24px; height: 16px; border-radius: 2px; flex: none; }
.lang .chev { transition: transform .15s; }
.lang[open] .chev { transform: rotate(180deg); }
.lang ul { position: absolute; right: 0; top: 100%; z-index: 50; margin: 2px 0 0; padding: 4px; list-style: none; min-width: 150px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 8px 24px rgba(11,26,36,.18); }
.lang li { margin: 0; }
.lang li a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.2; }
.lang li a:hover { background: var(--paper); }
.lang li a[aria-current] { font-weight: 700; }

footer { padding: 32px 0 44px; font-size: 14px; color: var(--ink-3); margin-top: 72px; border-top: 1px solid var(--rule); }
footer .wrap { display: grid; gap: 12px; }
footer p { margin: 0; }
footer .disclaimer { color: var(--ink); font-weight: 600; font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }
footer a { color: var(--ink-2); }
footer nav a { display: inline-block; padding: 4px 0; min-height: 24px; line-height: 16px; }

/* Índice */
.blog-hero { background: var(--band); }
.blog-hero .wrap { padding-top: 48px; padding-bottom: 44px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.blog-hero h1 { font-weight: 700; font-size: clamp(36px, 8vw, 56px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
.blog-hero p.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 36em; }
.group-title { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 52px 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.card { border-bottom: 1px solid var(--rule); }
.card a.card-link { display: block; padding: 22px 0; color: inherit; text-decoration: none; }
.card h2 { font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 6px; text-wrap: balance; }
.card a.card-link:hover h2 { color: var(--accent); }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; max-width: 42em; }
.card .meta { font-size: 13px; color: var(--ink-3); margin-top: 8px; letter-spacing: .02em; }
@media (min-width: 900px) { .cards.two { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.card.feature h2 { font-size: 28px; }

/* Artículo */
.article { max-width: 46rem; margin: 0 auto; padding: 40px 16px 0; }
@media (min-width: 720px) { .article { padding-top: 56px; } }
.crumbs { font-size: 14px; color: var(--ink-3); margin: 0 0 22px; }
.crumbs a { color: var(--ink-2); }
.article h1 { font-weight: 700; font-size: clamp(32px, 7vw, 48px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
.byline { font-size: 14px; color: var(--ink-3); margin: 0 0 28px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.article .standfirst { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0 0 28px; }
.article h2 { font-weight: 700; font-size: clamp(24px, 5vw, 30px); line-height: 1.15; letter-spacing: -0.02em; margin: 2.4rem 0 .7rem; text-wrap: balance; }
.article h3 { font-weight: 600; font-size: 20px; line-height: 1.25; margin: 1.8rem 0 .4rem; }
.article p { margin: 0 0 1.1rem; }
.article ul, .article ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.article li { margin-bottom: .5rem; }
.article strong { font-weight: 700; }
.article blockquote { margin: 1.4rem 0; padding: .2rem 0 .2rem 1.1rem; border-left: 4px solid var(--accent); color: var(--ink-2); }
.article blockquote p { margin: 0 0 .6rem; }
.note, .warn { border-radius: 12px; padding: 14px 16px; font-size: 16px; line-height: 1.5; margin: 1.4rem 0; }
.note { background: var(--band); color: var(--ink); }
.warn { background: var(--warn-bg); color: var(--warn-ink); }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }
.article .story { border-left: 4px solid var(--accent, #E8503A); background: var(--band); border-radius: 0 12px 12px 0; padding: 4px 20px 6px; margin: 1.8rem 0; }
.article .story h3 { margin-top: .9rem; }
.article .story .tag { font-size: 13px; color: var(--ink-3); margin-top: -.2rem; }
.article figure.promo { display: flex; flex-direction: column; align-items: center; margin: 1.8rem 0; }
.promo-frame { width: min(300px, 78vw); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #0B1A24; border: 1px solid var(--rule); }
.promo-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.promo-pick { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.promo-pick button { font: inherit; font-size: 14px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.promo-pick button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.jose-todo { background: var(--warn-bg); color: var(--warn-ink); border: 1px dashed currentColor; border-radius: 8px; padding: 1px 8px; font-weight: 600; }
.article figure { margin: 1.8rem 0; }
.article figure.shot { display: flex; flex-direction: column; align-items: center; }
.article figure.shot img { width: min(260px, 70vw); border-radius: 18px; border: 1px solid var(--rule); }
.article figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; line-height: 1.45; }
figure.shot figcaption { text-align: center; max-width: 30em; }
.diagram { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 8px; }
.diagram svg { width: 100%; height: auto; display: block; }
.table-scroll { overflow-x: auto; margin: 1.4rem 0; -webkit-overflow-scrolling: touch; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; min-width: 40rem; }
.article th, .article td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.article thead th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; border-bottom: 2px solid var(--ink); }
.article tbody th { font-weight: 700; white-space: nowrap; }
.article td.em { color: var(--accent); font-weight: 700; }
.sources { font-size: 15px; color: var(--ink-2); }
.sources li { margin-bottom: .35rem; }
.cta-box { margin: 3rem 0 0; background: var(--band); border-radius: 16px; padding: 24px 22px; }
.cta-box h2 { margin-top: 0; font-size: 24px; }
.cta-box p { color: var(--ink-2); }
.cta-box .btn { display: inline-block; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; padding: 12px 20px; border-radius: 10px; }
.related { margin-top: 2.6rem; }
.related h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0; border-bottom: 1px solid var(--rule); }
.related li a { display: block; padding: 14px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.related li a:hover { color: var(--accent); }
.related li span { display: block; font-weight: 400; color: var(--ink-3); font-size: 14px; }

/* Diagramas SVG: colores de los tokens para que sigan el modo claro y oscuro */
.sv-water { fill: var(--sea-2); opacity: .55; }
.sv-sea { fill: var(--sea); opacity: .35; }
.sv-land { fill: var(--land); }
.sv-line { stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sv-thin { stroke: var(--ink-3); fill: none; stroke-width: 1.4; }
.sv-dash { stroke: var(--ink-2); fill: none; stroke-width: 1.8; stroke-dasharray: 7 5; }
.sv-acc { stroke: var(--accent); fill: none; stroke-width: 2.4; stroke-linecap: round; }
.sv-acc-fill { fill: var(--accent); }
.sv-ok { stroke: var(--ok); fill: none; stroke-width: 2.4; stroke-dasharray: 7 5; }
.sv-fill { fill: var(--ink); }
.sv-text { fill: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 600; }
.sv-sub { fill: var(--ink-2); font-family: var(--font); font-size: 13px; font-weight: 500; }
.sv-boat { fill: var(--surface); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
