/* Stinghal · El medio de las pymes — hoja de estilos única, sin dependencias. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --navy-950: #071528;
  --navy-900: #0b1f3a;
  --navy-800: #13315c;
  --navy-700: #1d4477;
  --navy-100: #dde6f2;
  --navy-50: #f1f5fa;
  --teal-700: #0b6e64;
  --teal-600: #0e8c7f;
  --teal-300: #7fd1c6;
  --teal-100: #d7efeb;
  --teal-50: #eef8f6;
  --amber-700: #8a5a00;
  --amber-50: #fdf6e7;
  --red-700: #b42318;
  --ink: #1b2330;
  --muted: #5a6474;
  --line: #e2e6ec;
  --surface: #f6f7f9;
  --white: #fff;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.prose a, .page-intro a, .bullets a, .other-tools a, .sources a, .help a, .assumptions a, .notice a, .nl-form a, .consent a, .disclaimer a, .empty-state a, td a {
  color: var(--navy-700); text-decoration: underline; text-decoration-color: rgb(14 140 127 / .6); text-underline-offset: 2px;
}
.prose a:hover, .bullets a:hover, .other-tools a:hover, .sources a:hover, .help a:hover, .assumptions a:hover { text-decoration-color: var(--teal-600); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal-600); outline-offset: 2px; }
::selection { background: var(--teal-100); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 14px; font-weight: 600; }
.skip-link:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 24px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.narrow { max-width: 820px; }
.narrow-lg { max-width: 960px; }

/* ---------- Tipografía editorial ---------- */
.kicker { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-700); }
a.kicker:hover { text-decoration: underline; }
.headline { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; color: var(--navy-900); text-wrap: balance; }
.headline a:hover { color: var(--navy-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.headline-xl { font-size: 2rem; line-height: 1.08; margin-top: 12px; }
@media (min-width: 640px) { .headline-xl { font-size: 2.6rem; } }
@media (min-width: 1024px) { .headline-xl { font-size: 2.9rem; } }
.headline-lg { font-size: 1.9rem; line-height: 1.15; }
.headline-md { font-size: 1.35rem; line-height: 1.25; }
.headline-sm { font-size: 1.2rem; line-height: 1.3; }
.headline-row { font-size: 1.12rem; line-height: 1.3; margin-top: 6px; }
@media (min-width: 640px) { .headline-row { font-size: 1.5rem; } }
.headline-page { font-size: 2.2rem; line-height: 1.1; margin-top: 4px; }
@media (min-width: 640px) { .headline-page { font-size: 3rem; } }
.standfirst { margin-top: 12px; font-size: 1.12rem; line-height: 1.6; color: var(--muted); }
.byline { margin-top: 12px; font-size: .875rem; }
.byline-sm { margin-top: 8px; font-size: .78rem; color: var(--muted); }
.excerpt { font-size: .95rem; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.excerpt-row { display: none; margin-top: 8px; -webkit-line-clamp: 2; }
@media (min-width: 640px) { .excerpt-row { display: -webkit-box; } }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 2px solid var(--navy-900); padding-top: 8px; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-900); }
.section-title h2 { font-size: inherit; }
.section-title a { font-size: .75rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--teal-700); }
.section-title a:hover { text-decoration: underline; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .75rem; color: var(--muted); }
.meta-sm { margin-top: 4px; font-size: .75rem; color: var(--muted); }
.label { display: inline-block; border-radius: 2px; padding: 1px 6px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.label-demo { border: 1px dashed var(--muted); color: var(--muted); }
.label-sponsored { background: var(--amber-50); color: var(--amber-700); }
.label-official { background: var(--teal-50); color: var(--teal-700); }

/* ---------- Botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 2px; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); }
.btn-accent { background: var(--teal-600); color: #fff; }
.btn-accent:hover { background: var(--teal-700); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--navy-900); }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
input[type="email"], input[type="search"], input[type="text"], input:not([type]), input[inputmode], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 2px; background: #fff; padding: 8px 12px; font-size: 1rem; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--navy-700); outline: 2px solid var(--navy-100); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal-600); width: 18px; height: 18px; flex: none; }

/* ---------- Cabecera ---------- */
.topbar { display: none; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .topbar { display: block; } }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; font-size: .75rem; color: var(--muted); }
.topbar-nav { display: flex; gap: 20px; }
.topbar-nav a:hover { color: var(--navy-900); }
.masthead { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding-block: 16px; }
@media (min-width: 1024px) { .masthead { grid-template-columns: 1fr auto 1fr; padding-block: 20px; } .masthead .logo { justify-self: center; } }
.menu-toggle, .menu-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 2px; color: var(--navy-900); cursor: pointer; }
@media (min-width: 1024px) { .menu-toggle { visibility: hidden; } }
.logo { display: inline-flex; flex-direction: column; line-height: 1; color: var(--navy-900); }
.logo-name { font-family: var(--serif); font-weight: 700; font-size: 1.75rem; letter-spacing: -.02em; }
@media (min-width: 640px) { .logo-name { font-size: 2.3rem; } }
.logo-dot { color: var(--teal-600); }
.logo-descriptor { margin-top: 4px; font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-700); }
.logo-sm .logo-name { font-size: 1.5rem; }
.logo-light { color: #fff; }
.logo-light .logo-descriptor { color: var(--teal-300); }
.masthead-actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
.header-search { display: none; }
@media (min-width: 768px) { .header-search { display: flex; } .search-mobile { display: none; } }
.header-search input { width: 220px; border-right: 0; border-radius: 2px 0 0 2px; min-height: 40px; }
.header-search .btn { min-height: 40px; padding: 0 12px; border-radius: 0 2px 2px 0; }
.icon-btn { min-height: 40px; padding: 0 10px; }
.subscribe-btn { display: none; min-height: 40px; }
@media (min-width: 640px) { .subscribe-btn { display: inline-flex; } }

.main-nav { position: sticky; top: 0; z-index: 40; border-block: 1px solid var(--line); background: rgb(255 255 255 / .96); backdrop-filter: saturate(1.4) blur(8px); }
.main-nav ul { display: flex; gap: 24px; overflow-x: auto; white-space: nowrap; list-style: none; padding-block: 12px; font-size: .9rem; font-weight: 600; color: var(--navy-900); scrollbar-width: none; }
.main-nav ul::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .main-nav ul { justify-content: center; } }
.main-nav a { border-bottom: 2px solid transparent; padding-bottom: 4px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-color: var(--teal-600); }

.ticker { background: var(--navy-900); color: #fff; }
.ticker-inner { display: flex; align-items: center; gap: 16px; overflow-x: auto; white-space: nowrap; padding-block: 8px; font-size: .875rem; scrollbar-width: none; }
.ticker-label { background: var(--teal-600); border-radius: 2px; padding: 2px 8px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.ticker ul { display: flex; gap: 24px; list-style: none; }
.ticker a:hover { text-decoration: underline; }

.mobile-menu { position: fixed; inset: 0; z-index: 60; background: rgb(7 21 40 / .55); }
.mobile-menu-panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 360px); overflow-y: auto; background: #fff; padding: 16px; box-shadow: 0 10px 40px rgb(0 0 0 / .2); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-search { display: flex; gap: 8px; margin-top: 20px; }
.mobile-nav { list-style: none; margin-top: 16px; border-top: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy-900); }
body.menu-open { overflow: hidden; }

/* ---------- Tarjetas ---------- */
.card-media { display: block; overflow: hidden; background: var(--navy-50); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-lead { display: flex; flex-direction: column; gap: 16px; }
.card-lead-split { display: grid; gap: 20px; }
@media (min-width: 1024px) { .card-lead-split { grid-template-columns: 1.35fr 1fr; align-items: center; } .card-lead-split .headline-xl { font-size: 2.3rem; } }
.card-secondary { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.card-secondary:last-child { border-bottom: 0; padding-bottom: 0; }
.card-standard { display: flex; flex-direction: column; gap: 12px; }
.card-row { display: grid; grid-template-columns: 1fr 112px; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.card-row .card-row-media { order: 2; align-self: start; }
@media (min-width: 640px) { .card-row { grid-template-columns: 220px 1fr; gap: 24px; } .card-row .card-row-media { order: 0; } }
.card-row-text { grid-template-columns: 1fr !important; }
.card-compact { display: flex; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.plain-list { list-style: none; }
.plain-list li:last-child .card-compact { border-bottom: 0; }
.card-compact h3 { font-size: .98rem; font-weight: 600; line-height: 1.35; color: var(--navy-900); }
.card-compact h3 a:hover { text-decoration: underline; }
.rank { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--teal-600); min-width: 18px; }

/* ---------- Portada ---------- */
.home { padding-top: 24px; }
.home-top { display: grid; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .home-top { grid-template-columns: 1fr 1fr; } .home-lead { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .home-top { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .home-lead { grid-column: auto; padding-right: 28px; }
  .home-secondary { padding-inline: 28px; border-left: 1px solid var(--line); }
  .home-latest { padding-left: 28px; border-left: 1px solid var(--line); }
  .home-top.no-secondary .home-latest { grid-column: span 2; }
}
.home-secondary { display: flex; flex-direction: column; gap: 20px; }
.home-featured { padding-block: 40px; }
.grid-4 { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.home-body { display: grid; gap: 48px; padding-block: 40px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .home-body { grid-template-columns: minmax(0, 1fr) 300px; } .home-aside { position: sticky; top: 64px; align-self: start; } }
.home-rails { display: flex; flex-direction: column; gap: 56px; }
.rail-note { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.rail-grid { display: grid; gap: 24px; margin-top: 20px; }
@media (min-width: 768px) { .rail-grid { grid-template-columns: 1.2fr 1fr; } }
.rail-list { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .rail-list { border-top: 0; } }
.rail-list .card-compact:last-child { border-bottom: 0; }
.home-aside { display: flex; flex-direction: column; gap: 40px; }
.section-links { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 12px; font-size: .875rem; }
.section-links a { font-weight: 600; color: var(--navy-900); }
.section-links a:hover { color: var(--teal-700); text-decoration: underline; }
.section-links-lg { margin-block: 16px 32px; font-size: 1rem; }
.home-tools { padding-block: 40px; border-top: 1px solid var(--line); }
.tool-grid { list-style: none; display: grid; gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); overflow: hidden; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }
.tool-grid li { background: #fff; }
.tool-grid a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; }
.tool-grid a:hover { background: var(--teal-50); }
.tool-grid strong { color: var(--navy-900); }
.tool-grid a:hover strong { text-decoration: underline; }
.tool-grid span:last-child { font-size: .875rem; color: var(--muted); }
.tool-grid-lg strong { font-family: var(--serif); font-size: 1.15rem; }
@media (min-width: 1024px) { .tool-grid-lg { grid-template-columns: repeat(2, 1fr); } }
.empty-state { padding: 80px 0; text-align: center; }
.empty { padding: 48px 0; color: var(--muted); }

/* ---------- Newsletter ---------- */
.nl-box { background: var(--navy-900); color: #fff; padding: 20px; }
.nl-box h2 { margin-top: 8px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.nl-box > p:not(.nl-kicker) { margin-top: 8px; font-size: .875rem; color: rgb(221 230 242 / .85); }
.nl-box .nl-form { margin-top: 16px; }
.nl-kicker { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--teal-300); }
.nl-band { display: grid; gap: 32px; margin-block: 24px 48px; padding: 24px; border: 1px solid var(--line); background: var(--navy-50); }
@media (min-width: 640px) { .nl-band { padding: 40px; } }
@media (min-width: 1024px) { .nl-band { grid-template-columns: 1fr 1fr; align-items: center; } }
.nl-band .muted { margin-top: 12px; }
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-row { display: flex; gap: 8px; }
.nl-compact .nl-row { flex-direction: column; }
@media (min-width: 400px) { .nl-compact .nl-row { flex-direction: row; } }
.nl-row input { flex: 1; min-width: 0; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-topics { border: 0; padding: 0; margin: 0; display: grid; gap: 6px 16px; font-size: .875rem; }
@media (min-width: 480px) { .nl-topics { grid-template-columns: 1fr 1fr; } }
.nl-topics legend { font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.nl-topics label, .nl-consent { display: flex; gap: 8px; align-items: flex-start; }
.nl-consent { font-size: .8rem; }
.nl-legal { font-size: .7rem; line-height: 1.5; color: var(--muted); }
.nl-status { font-size: .85rem; font-weight: 600; }
.nl-status:empty { display: none; }
.nl-status.is-error { color: var(--red-700); }
.nl-status.is-ok { color: var(--teal-700); }
.nl-dark { color: #fff; }
.nl-dark input[type="email"] { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .25); color: #fff; }
.nl-dark input[type="email"]::placeholder { color: rgb(255 255 255 / .6); }
.nl-dark .nl-legal { color: rgb(221 230 242 / .7); }
.nl-dark a { color: #fff; }
.nl-dark .nl-status.is-ok { color: var(--teal-300); }
.nl-dark .nl-status.is-error { color: #ffb4ab; }
.nl-inline { margin-block: 56px 24px; padding: 24px; background: var(--navy-50); }
@media (min-width: 640px) { .nl-inline { padding: 32px; } }
.nl-inline .nl-form { margin-top: 16px; max-width: 580px; }

/* ---------- Páginas y secciones ---------- */
.breadcrumbs { margin-top: 24px; font-size: .78rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.breadcrumbs a:hover { color: var(--navy-900); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.page-header { margin-top: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--navy-900); margin-bottom: 8px; }
.page-intro { margin-top: 12px; max-width: 48rem; font-size: 1.12rem; line-height: 1.6; color: var(--muted); }
.page-header .muted { margin-top: 12px; }
.with-aside { display: grid; gap: 40px; margin-top: 32px; padding-bottom: 48px; }
@media (min-width: 1024px) { .with-aside { grid-template-columns: minmax(0, 1fr) 300px; } }
.section-lead { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.aside-sticky { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) { .aside-sticky { position: sticky; top: 64px; align-self: start; } }
.tool-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.tool-list a { display: block; border: 1px solid var(--line); padding: 16px; }
.tool-list a:hover { border-color: var(--teal-600); background: var(--teal-50); }
.tool-list strong { display: block; color: var(--navy-900); }
.tool-list span { display: block; margin-top: 4px; font-size: .875rem; color: var(--muted); }
.box { border: 1px solid var(--line); padding: 20px; }
.box-lg { margin-top: 32px; padding: 24px; background: var(--navy-50); }
.box-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--navy-900); }
.box .nl-form { margin-top: 16px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; font-size: .9rem; }
.pagination ol { display: flex; gap: 4px; list-style: none; }
.pagination a, .pagination span[aria-current] { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--line); }
.pagination span[aria-current] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; font-weight: 700; }
.pagination a:hover { border-color: var(--navy-900); }
.bullets { margin-top: 24px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.notice { padding: 12px 14px; border-radius: 2px; font-size: .9rem; line-height: 1.55; }
.notice-warn { background: var(--amber-50); border: 1px solid rgb(138 90 0 / .25); color: var(--amber-700); }
.notice-warn a { color: inherit; }
.notice-demo { border: 1px dashed var(--muted); background: #fff; color: var(--ink); }
mark.pending { background: var(--amber-50); color: var(--amber-700); padding: 0 2px; }
.not-found { padding-bottom: 64px; }
.not-found .search-form { margin-block: 24px 40px; }
.search-form { display: flex; gap: 8px; margin-top: 24px; }
.search-results { margin-top: 8px; }
.search-results mark { background: var(--teal-100); color: inherit; }

/* ---------- Artículo ---------- */
.article-header { max-width: 48rem; margin-top: 24px; }
.article-kickers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.type-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.article-title { margin-top: 12px; font-size: 2.1rem; line-height: 1.1; }
@media (min-width: 640px) { .article-title { font-size: 3.1rem; line-height: 1.05; } }
.article-standfirst { margin-top: 16px; font-size: 1.2rem; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
@media (min-width: 640px) { .article-standfirst { font-size: 1.32rem; } }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; padding-block: 16px; border-block: 1px solid var(--line); font-size: .9rem; }
.article-meta a:hover { text-decoration: underline; }
.article-cover { max-width: 1024px; margin-top: 32px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy-50); }
.article-cover figcaption { margin-top: 8px; font-size: .75rem; color: var(--muted); }
.article-layout { display: grid; gap: 40px; max-width: 1024px; margin-top: 32px; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 260px; } }
.article-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.article-aside { display: none; }
@media (min-width: 1024px) { .article-aside { display: block; } .toc-mobile { display: none; } }
.toc { border-left: 3px solid var(--teal-600); background: var(--teal-50); padding: 14px 16px; font-size: .88rem; }
.toc-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-700); }
.toc ol { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.toc a { color: var(--navy-900); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc .toc-l3 { padding-left: 12px; font-size: .84rem; }

.prose { max-width: 68ch; font-family: var(--serif); font-size: 1.16rem; line-height: 1.75; color: var(--ink); }
@media (min-width: 640px) { .prose { font-size: 1.2rem; } }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 1.55rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--navy-900); }
.prose h3 { margin-top: 1.7em; font-family: var(--sans); font-size: 1.22rem; line-height: 1.35; font-weight: 700; color: var(--navy-900); }
.prose h4 { margin-top: 1.4em; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--teal-700); }
.prose strong { color: var(--navy-900); font-weight: 700; }
.prose blockquote { border-left: 4px solid var(--teal-600); background: rgb(238 248 246 / .6); padding: 4px 16px; }
.prose figure img { width: 100%; }
.prose figcaption { margin-top: 6px; font-family: var(--sans); font-size: .78rem; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose code { font-size: .88em; background: var(--surface); padding: 1px 4px; border-radius: 2px; }
.has-dropcap > p:first-child::first-letter { float: left; margin: .08em .1em 0 0; font-family: var(--serif); font-size: 4.1em; line-height: .78; font-weight: 700; color: var(--navy-900); }
.prose-page { font-size: 1.08rem; margin-top: 16px; padding-bottom: 56px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9rem; line-height: 1.5; }
th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px 12px 8px 0; }
td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }

.sources { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.sources h2 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--navy-900); }
.sources ol { margin-top: 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.source-date { display: block; font-size: .75rem; color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags a { display: inline-block; border: 1px solid var(--line); border-radius: 2px; padding: 4px 10px; font-size: .78rem; font-weight: 600; color: var(--navy-900); text-decoration: none; }
.tags a:hover { border-color: var(--navy-900); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; }
.share-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-right: 4px; }
.share a, .share button { border: 1px solid var(--line); background: #fff; padding: 6px 10px; border-radius: 2px; font-weight: 600; color: var(--navy-900); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--navy-900); }
.author-box { margin-top: 16px; background: var(--surface); padding: 20px; }
.author-box-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.author-box-name { margin-top: 4px; font-weight: 600; color: var(--navy-900); }
.author-box .muted { margin-top: 4px; }
.disclaimer { font-size: .78rem; color: var(--muted); }
.related { max-width: 1024px; margin-top: 56px; }
.reading-progress { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 3px; background: var(--teal-600); transform-origin: left; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) { .reading-progress { animation: reading-progress linear both; animation-timeline: scroll(root); } }
@supports not (animation-timeline: scroll()) { .reading-progress { display: none; } }
@keyframes reading-progress { to { transform: scaleX(1); } }

/* ---------- Herramientas ---------- */
.howto { margin-top: 24px; background: var(--teal-50); padding: 16px; font-size: .92rem; }
.howto h2 { font-size: .95rem; font-weight: 700; color: var(--teal-700); }
.howto p { margin-top: 4px; }
.tool { margin-top: 32px; }
.tool-form { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.field label, .radios legend, .yes-no legend { display: block; margin-bottom: 4px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.input-group { display: flex; }
.input-group input { border-radius: 2px 0 0 2px; }
.input-group input:only-child { border-radius: 2px; }
.suffix { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-left: 0; background: var(--surface); font-size: .875rem; color: var(--muted); border-radius: 0 2px 2px 0; }
.help { margin-top: 4px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.field-error { margin-top: 4px; font-size: .78rem; font-weight: 600; color: var(--red-700); }
[aria-invalid="true"] { border-color: var(--red-700) !important; }
.radios, .yes-no { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; }
.radios legend, .yes-no legend { width: 100%; }
.radios label, .yes-no label { display: inline-flex; align-items: center; gap: 8px; }
.yes-no { padding-block: 12px; border-bottom: 1px solid var(--line); }
.form-subtitle { border-top: 1px solid var(--line); padding-top: 16px; font-size: .9rem; font-weight: 600; color: var(--navy-900); }
.result { margin-top: 32px; border: 2px solid var(--teal-600); background: var(--teal-50); padding: 20px; }
.result-sep { border: 0; border-top: 2px solid var(--teal-100); margin: 16px 0; }
.result-caption { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-700); }
.result dl { margin: 12px 0 0; }
.result dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 8px; border-bottom: 1px solid var(--teal-100); }
.result dl > div:last-child { border-bottom: 0; }
.result dt { font-size: .9rem; }
.result dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.result .strong dt { font-weight: 700; color: var(--navy-900); }
.result .strong dd { font-size: 1.3rem; font-weight: 700; color: var(--navy-900); }
.assumptions { margin-top: 32px; border-left: 4px solid var(--navy-900); background: var(--surface); padding: 20px; font-size: .88rem; }
.assumptions h2 { font-size: .95rem; font-weight: 700; color: var(--navy-900); }
.assumptions p { margin-top: 8px; color: var(--muted); }
.checklist-result { margin-top: 32px; }
.checklist-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.checklist-head h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--navy-900); }
.checklist-count { font-size: .875rem; color: var(--muted); }
.checklist { list-style: none; border-block: 1px solid var(--line); }
.checklist li { padding-block: 12px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: flex; gap: 12px; cursor: pointer; }
.checklist input { margin-top: 3px; }
.check-title { font-weight: 600; color: var(--navy-900); }
.checklist input:checked + span .check-title { color: var(--muted); text-decoration: line-through; }
.check-detail { display: block; margin-top: 4px; font-size: .875rem; color: var(--muted); }
.tag { display: inline-block; margin-left: 4px; background: var(--teal-50); color: var(--teal-700); border-radius: 2px; padding: 1px 6px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; vertical-align: middle; }
.fiscal-block { margin-top: 32px; }
.fiscal-block .muted { margin-top: 8px; font-size: .88rem; }
.fiscal-block table { margin-top: 8px; }
.other-tools { margin-block: 48px; }
.other-tools ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 8px; }
@media (min-width: 640px) { .other-tools ul { grid-template-columns: 1fr 1fr; } }

/* ---------- Publicidad ---------- */
.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 100px; margin-block: 24px; background: var(--surface); border: 1px solid var(--line); }
.ad-slot span { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.ad-portada-lateral, .ad-articulo-lateral { min-height: 250px; margin: 0; }

/* ---------- Pie ---------- */
.site-footer { margin-top: 24px; background: var(--navy-950); color: rgb(221 230 242 / .85); font-size: .88rem; }
.footer-grid { display: grid; gap: 40px; padding-block: 48px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; } }
.site-footer h2 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer a:hover, .site-footer .link-button:hover { color: #fff; text-decoration: underline; }
.site-footer .nl-form { margin-top: 14px; }
.footer-claim, .footer-text { margin-top: 14px; line-height: 1.6; }
.footer-social { flex-direction: row !important; gap: 16px !important; margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); font-size: .75rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 16px; }

/* ---------- Aviso de cookies ---------- */
.consent { position: fixed; inset: auto 0 0 0; z-index: 70; background: #fff; border-top: 2px solid var(--navy-900); box-shadow: 0 -8px 30px rgb(0 0 0 / .12); }
.consent-inner { display: grid; gap: 16px; padding-block: 16px; }
@media (min-width: 900px) { .consent-inner { grid-template-columns: 1fr auto; align-items: center; } }
.consent-title { font-weight: 700; color: var(--navy-900); }
.consent-text { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.consent-options { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: .875rem; }
.consent-options label { display: inline-flex; align-items: center; gap: 8px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Impresión y movimiento ---------- */
@media print {
  .site-header, .main-nav, .ticker, .site-footer, .consent, .ad-slot, .share, .nl-inline, .related, .article-aside, .toc-mobile, .reading-progress, [data-print], .other-tools, form.tool-form, .howto { display: none !important; }
  body { font-size: 12pt; }
  .result, .checklist-result { display: block !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
