/* Journo blog — follows the landing (landing.css): Gambarino headings, General Sans text,
   ink #0c0c0c on white, paper tones, square buttons, black footer. Keep both in sync. */
:root {
    --bg: #fff;
    --tono: #f2f2ef;
    --papel: #f1ebdd;
    --hoja: #fbf8f1;
    --rojo: #be2f1d;
    --ink: #0c0c0c;
    --muted: #4a4a46;
    --faint: #7a7a74;
    --line: #e4e1d8;
    --m: clamp(24px, 7vw, 160px);
    --nav: 64px;
    --cara: 'Gambarino', Georgia, 'Times New Roman', serif;
    --texto: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
    --s-small: clamp(.875rem, .85rem + .1vw, 1rem);
    --s-body: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
    --s-lead: clamp(1.25rem, 1.05rem + .75vw, 1.75rem);
    --measure: 44rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 24px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--texto); font-size: var(--s-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── Barra (igual que la landing) ── */
.bl-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; height: var(--nav); padding: 0 var(--m); background: var(--bg); }
.bl-logo img { height: 24px; width: auto; display: block; }
.bl-navcenter { margin-left: auto; display: flex; gap: clamp(18px, 2.4vw, 40px); }
.bl-navlink { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500; white-space: nowrap; transition: opacity .15s ease; }
.bl-navlink:hover { opacity: .55; }
.bl-navright { margin-left: clamp(18px, 2.4vw, 40px); display: flex; align-items: center; gap: 18px; }
.bl-lang { position: relative; }
.bl-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: 1rem; font-weight: 500; white-space: nowrap; }
.bl-lang summary::-webkit-details-marker { display: none; }
.bl-lang[open] .bl-chev { transform: rotate(180deg); }
.bl-langmenu { position: absolute; right: 0; top: calc(100% + 6px); display: flex; flex-direction: column; min-width: 140px; z-index: 30; }
.bl-langmenu a { padding: 10px 14px; background: var(--tono); color: var(--ink); text-decoration: none; font-size: 1rem; }
.bl-langmenu a:hover { background: var(--bg); }
.bl-langmenu a[aria-current] { font-weight: 600; }
.bl-btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 11px 16px; font-size: 1rem; font-weight: 500; white-space: nowrap; transition: opacity .15s ease; }
.bl-btn:hover { opacity: .75; }

/* ── Cabecera del artículo ── */
.bl-main { padding: 0 var(--m) clamp(72px, 7vw, 140px); }
.bl-crumbs { padding-top: clamp(28px, 3vw, 48px); font-size: var(--s-small); color: var(--faint); }
.bl-crumbs a { text-decoration: none; }
.bl-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bl-hero { padding: clamp(28px, 3.4vw, 64px) 0 clamp(40px, 4vw, 72px); }
.bl-hero-index { padding-top: clamp(64px, 7vw, 140px); }
.bl-kicker { margin: 0 0 14px; font-size: var(--s-small); font-weight: 500; color: var(--muted); }
.bl-hero h1 { max-width: 15em; margin: 0 0 clamp(20px, 2vw, 32px); font-family: var(--cara); font-weight: 400; font-size: clamp(2.75rem, 1.4rem + 4.4vw, 6.5rem); line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
.bl-sub { max-width: 34em; margin: 0 0 24px; font-size: var(--s-lead); line-height: 1.3; }
.bl-byline { margin: 0 0 24px; font-size: var(--s-small); color: var(--muted); }
.bl-byline strong { font-weight: 600; color: var(--ink); }
.bl-pdf { font-size: var(--s-body); font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.bl-pdf:hover { opacity: .55; }

.bl-layout { display: grid; grid-template-columns: minmax(180px, 15rem) minmax(0, var(--measure)); gap: clamp(32px, 6vw, 112px); padding-top: clamp(32px, 3vw, 56px); border-top: 1px solid var(--ink); }

/* ── Índice ── */
.bl-toc details { position: sticky; top: calc(var(--nav) + 24px); font-size: var(--s-small); }
.bl-toc summary { list-style: none; cursor: default; margin-bottom: 14px; font-weight: 600; }
.bl-toc summary::-webkit-details-marker { display: none; }
.bl-toc ol { margin: 0; padding: 0 0 0 1.2em; display: grid; gap: 10px; color: var(--faint); }
.bl-toc a { color: var(--muted); text-decoration: none; line-height: 1.3; display: block; }
.bl-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Cuerpo ── */
.bl-article section { margin-bottom: clamp(64px, 6vw, 112px); }
.bl-article h2 { margin: 0 0 20px; font-family: var(--cara); font-weight: 400; font-size: clamp(2.25rem, 1.4rem + 2.2vw, 3.75rem); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.bl-article h3 { font-weight: 600; }
.bl-lead { font-size: var(--s-lead); line-height: 1.32; }
.bl-article p { margin: 0 0 1.1em; }
.bl-article p a { text-underline-offset: 3px; }

.bl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 36px 0; }
.bl-stat { background: var(--papel); padding: 24px 20px 22px; }
.bl-stat strong { display: block; font-family: var(--cara); font-weight: 400; font-size: clamp(3rem, 4.6vw, 4.5rem); line-height: .9; letter-spacing: -.02em; }
.bl-stat span { display: block; margin-top: 12px; font-size: var(--s-small); line-height: 1.35; }

.bl-quote { margin: 48px 0; padding: clamp(28px, 3vw, 48px); background: var(--papel); }
.bl-quote p { margin: 0 0 18px !important; font-family: var(--cara); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.bl-quote cite { font-style: normal; font-size: var(--s-small); color: var(--muted); }
.bl-note { margin: 28px 0; padding: 20px 24px; background: var(--tono); border-left: 3px solid var(--ink); font-size: var(--s-body); }

/* ── Casos ── */
.bl-case { margin: 0 0 10px; padding: clamp(20px, 2vw, 28px); background: var(--hoja); }
.bl-case-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.bl-case-org { display: inline-flex; align-items: center; gap: 12px; font-size: var(--s-small); font-weight: 600; }
.bl-case-org img { height: 20px; width: auto; max-width: 150px; object-fit: contain; mix-blend-mode: multiply; }
.bl-tag { font-size: .75rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; white-space: nowrap; }
.bl-tag-autoinforme { background: var(--papel); color: var(--ink); }
.bl-tag-proveedor { background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.bl-tag-prensa { background: var(--ink); color: #fff; }
.bl-case-fig { margin: 16px 0 8px; font-family: var(--cara); font-weight: 400 !important; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem); line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.bl-case p { margin: 0 0 10px; color: var(--muted); }
.bl-article .bl-case-src { margin: 0; font-size: .8125rem; color: var(--faint); overflow-wrap: anywhere; }
.bl-case-src a { color: var(--faint); text-underline-offset: 2px; }

/* ── Pasos ── */
.bl-steps { list-style: none; counter-reset: st; margin: 36px 0; padding: 0; }
.bl-steps li { counter-increment: st; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); }
.bl-steps li::before { content: counter(st); grid-row: span 2; font-family: var(--cara); font-size: 2.75rem; line-height: .9; }
.bl-steps h3 { margin: 0 0 6px; font-size: var(--s-body); }
.bl-steps p { margin: 0 !important; color: var(--muted); }

/* ── Llamada: las puertas de la landing ── */
.bl-cta { margin: 48px 0 0; padding: clamp(32px, 3.4vw, 56px); background: var(--papel); }
.bl-cta h3 { margin: 0 0 clamp(24px, 2.4vw, 40px); font-family: var(--cara); font-weight: 400; font-size: clamp(2.25rem, 1.4rem + 2.4vw, 4rem); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.bl-doors { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; }
.bl-door { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(48px, 5vw, 96px); padding: clamp(22px, 2.2vw, 36px); background: var(--hoja); color: var(--ink); text-decoration: none; transition: background-color .25s ease; }
.bl-door:hover { background: #fff; }
.bl-door-main { background: var(--ink); color: #fff; }
.bl-door-main:hover { background: var(--rojo); }
.bl-door-name { font-family: var(--cara); font-size: clamp(1.875rem, 1.2rem + 1.8vw, 3rem); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.bl-door-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; font-size: var(--s-small); line-height: 1.35; }
.bl-door svg { flex: none; width: clamp(26px, 2.2vw, 36px); height: auto; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s ease; }
.bl-door:hover svg { transform: translateX(8px); }

/* ── Fuentes ── */
.bl-sources { margin: 24px 0; padding-left: 1.4em; display: grid; gap: 8px; font-size: var(--s-small); color: var(--muted); }
.bl-sources a { color: var(--muted); overflow-wrap: anywhere; text-underline-offset: 2px; }
.bl-small { font-size: .8125rem; color: var(--faint); }
.bl-back { font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ── Portada del blog ── */
.bl-list { display: grid; gap: 10px; border-top: 1px solid var(--ink); padding-top: clamp(32px, 3vw, 56px); }
.bl-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 56px); align-items: center; background: var(--hoja); }
.bl-card-img img { display: block; width: 100%; height: auto; }
.bl-card-body { padding: clamp(24px, 2.6vw, 48px) clamp(24px, 2.6vw, 48px) clamp(24px, 2.6vw, 48px) 0; }
.bl-card h2 { margin: 0 0 14px; font-family: var(--cara); font-weight: 400; font-size: clamp(2rem, 1.3rem + 1.8vw, 3.25rem); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.bl-card h2 a { text-decoration: none; }
.bl-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.bl-card p { margin: 0 0 14px; color: var(--muted); }
.bl-more { font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ── Pie (igual que la landing) ── */
.bl-foot { padding: clamp(56px, 5.5vw, 104px) var(--m) clamp(32px, 2.6vw, 48px); background: var(--ink); color: #fff; font-size: var(--s-small); overflow: hidden; }
.bl-foot a { color: #fff; text-decoration: none; }
.bl-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bl-foot a:focus-visible { outline-color: #fff; }
.bl-foot-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.bl-foot-mark { --w: clamp(180px, 22vw, 420px); display: block; width: var(--w); height: auto; margin-left: calc(var(--w) * -.028); filter: invert(1); }
.bl-foot-links { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: var(--s-body); }
.bl-foot-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 48px; margin-top: clamp(40px, 4vw, 72px); }
.bl-foot-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.bl-foot-partners img { height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) invert(1) brightness(1.8); mix-blend-mode: screen; }
.bl-foot-partners img[alt="AWS"] { height: 72px; margin-block: -14px; }

/* ── Tablet ── */
@media (max-width: 1100px) {
    .bl-navcenter { display: none; }
    .bl-navright { margin-left: auto; }
    .bl-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .bl-toc details { position: static; margin-bottom: 48px; padding: 20px 24px; background: var(--tono); }
    .bl-toc summary { cursor: pointer; margin: 0; }
    .bl-toc details[open] summary { margin-bottom: 14px; }
    .bl-article { max-width: var(--measure); }
}

/* ── Móvil ── */
@media (max-width: 720px) {
    :root { --nav: 60px; }
    .bl-hide-sm { display: none; }
    .bl-stats { grid-template-columns: minmax(0, 1fr); }
    .bl-doors { grid-template-columns: minmax(0, 1fr); }
    .bl-door { gap: 48px; }
    .bl-card { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .bl-card-body { padding: 24px; }
    .bl-case-org { flex-wrap: wrap; gap: 8px 12px; }
    .bl-case-org img { max-width: 120px; height: 18px; }
    .bl-foot-mark { --w: 48vw; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bl-btn, .bl-navlink, .bl-door, .bl-door svg { transition: none; }
}
