@font-face{font-family:"Geist";src:url("../fonts/geist.woff2") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Geist Mono";src:url("../fonts/geist-mono.woff2") format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Phosphor";src:url("../fonts/phosphor.woff2") format("woff2");font-display:block}
.ph{font-family:"Phosphor"!important;font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;display:inline-block}
.ph.ph-arrow-down:before{content:"\e03e"}.ph.ph-arrow-right:before{content:"\e06c"}.ph.ph-arrow-square-out:before{content:"\e5de"}.ph.ph-arrow-up:before{content:"\e08e"}.ph.ph-arrows-clockwise:before{content:"\e094"}.ph.ph-arrows-left-right:before{content:"\e0a0"}.ph.ph-article:before{content:"\e0a8"}.ph.ph-bell:before{content:"\e0ce"}.ph.ph-briefcase:before{content:"\e0ee"}.ph.ph-broom:before{content:"\ec54"}.ph.ph-buildings:before{content:"\e102"}.ph.ph-car:before{content:"\e112"}.ph.ph-car-profile:before{content:"\e8cc"}.ph.ph-caret-down:before{content:"\e136"}.ph.ph-caret-right:before{content:"\e13a"}.ph.ph-certificate:before{content:"\e766"}.ph.ph-check:before{content:"\e182"}.ph.ph-check-circle:before{content:"\e184"}.ph.ph-clipboard-text:before{content:"\e198"}.ph.ph-clock:before{content:"\e19a"}.ph.ph-clock-counter-clockwise:before{content:"\e1a0"}.ph.ph-cloud-arrow-up:before{content:"\e1ae"}.ph.ph-code-simple:before{content:"\e1be"}.ph.ph-database:before{content:"\e1de"}.ph.ph-envelope-simple:before{content:"\e218"}.ph.ph-envelope-simple-open:before{content:"\e21a"}.ph.ph-eye:before{content:"\e220"}.ph.ph-eye-slash:before{content:"\e224"}.ph.ph-facebook-logo:before{content:"\e226"}.ph.ph-file-magnifying-glass:before{content:"\e238"}.ph.ph-file-plus:before{content:"\e236"}.ph.ph-file-text:before{content:"\e23a"}.ph.ph-files:before{content:"\e710"}.ph.ph-folder-open:before{content:"\e256"}.ph.ph-gauge:before{content:"\e628"}.ph.ph-gavel:before{content:"\ea32"}.ph.ph-gear:before{content:"\e270"}.ph.ph-globe:before{content:"\e288"}.ph.ph-handshake:before{content:"\e582"}.ph.ph-house:before{content:"\e2c2"}.ph.ph-identification-card:before{content:"\e2c8"}.ph.ph-image:before{content:"\e2ca"}.ph.ph-image-square:before{content:"\e2cc"}.ph.ph-images:before{content:"\e836"}.ph.ph-info:before{content:"\e2ce"}.ph.ph-instagram-logo:before{content:"\e2d0"}.ph.ph-key:before{content:"\e2d6"}.ph.ph-leaf:before{content:"\e2da"}.ph.ph-lightbulb:before{content:"\e2dc"}.ph.ph-lightning:before{content:"\e2de"}.ph.ph-link:before{content:"\e2e2"}.ph.ph-link-simple:before{content:"\e2e6"}.ph.ph-linkedin-logo:before{content:"\e2ee"}.ph.ph-list:before{content:"\e2f0"}.ph.ph-list-bullets:before{content:"\e2f2"}.ph.ph-list-checks:before{content:"\eadc"}.ph.ph-list-numbers:before{content:"\e2f6"}.ph.ph-lock:before{content:"\e2fa"}.ph.ph-magnifying-glass:before{content:"\e30c"}.ph.ph-map-pin:before{content:"\e316"}.ph.ph-medal:before{content:"\e320"}.ph.ph-money:before{content:"\e588"}.ph.ph-navigation-arrow:before{content:"\eade"}.ph.ph-paper-plane-tilt:before{content:"\e398"}.ph.ph-pause-circle:before{content:"\e3a0"}.ph.ph-pencil-simple:before{content:"\e3b4"}.ph.ph-phone:before{content:"\e3b8"}.ph.ph-plus:before{content:"\e3d4"}.ph.ph-question:before{content:"\e3e8"}.ph.ph-quotes:before{content:"\e660"}.ph.ph-receipt:before{content:"\e3ec"}.ph.ph-seal-check:before{content:"\e606"}.ph.ph-shield-check:before{content:"\e40c"}.ph.ph-sign-out:before{content:"\e42a"}.ph.ph-signature:before{content:"\ebac"}.ph.ph-sliders-horizontal:before{content:"\e434"}.ph.ph-squares-four:before{content:"\e464"}.ph.ph-stack:before{content:"\e466"}.ph.ph-stamp:before{content:"\ea48"}.ph.ph-star:before{content:"\e46a"}.ph.ph-steering-wheel:before{content:"\e9ac"}.ph.ph-storefront:before{content:"\e470"}.ph.ph-tag:before{content:"\e478"}.ph.ph-text-b:before{content:"\e5be"}.ph.ph-text-h-three:before{content:"\e6c0"}.ph.ph-text-h-two:before{content:"\e6be"}.ph.ph-text-italic:before{content:"\e5c0"}.ph.ph-tractor:before{content:"\ec6e"}.ph.ph-trash:before{content:"\e4a6"}.ph.ph-tray:before{content:"\e4aa"}.ph.ph-truck:before{content:"\e4b4"}.ph.ph-upload-simple:before{content:"\e4c0"}.ph.ph-user-circle-check:before{content:"\ec38"}.ph.ph-users:before{content:"\e4d6"}.ph.ph-users-three:before{content:"\e68e"}.ph.ph-warning:before{content:"\e4e0"}.ph.ph-warning-circle:before{content:"\e4e2"}.ph.ph-whatsapp-logo:before{content:"\e5d0"}.ph.ph-wrench:before{content:"\e5d4"}.ph.ph-x:before{content:"\e4f6"}
@font-face{font-family:"PhosphorFill";src:url("../fonts/phosphor-fill.woff2") format("woff2");font-display:block}
.ph-fill{font-family:"PhosphorFill"!important;font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;display:inline-block}
.ph-fill.ph-check-circle:before{content:"\e184"}.ph-fill.ph-seal-check:before{content:"\e606"}
/* ==========================================================================
   Gestoría en Marcha · Web pública
   Sistema:
   - Tipografía: Geist (UI + titulares), Geist Mono (cifras, plazos, matrículas)
   - Acento único: naranja de marca. Texto sobre naranja siempre en tinta.
   - Radios: tarjetas 16px, campos 10px, botones y chips en píldora.
   - Tema: claro/oscuro automático (prefers-color-scheme).
   ========================================================================== */

:root {
  --bg: #f4f5f3;
  --surface: #fcfcfb;
  --surface-2: #eceeea;
  --ink: #15171b;
  --ink-2: #2a2e34;
  --muted: #565b62;
  --line: #dfe2dd;
  --accent: #f07a1f;
  --accent-soft: #fde9d8;
  --accent-text: #a54a06;
  --panel: #16191e;
  --panel-ink: #eef0ed;
  --panel-muted: #a6acb3;
  --panel-line: #2b3036;
  --shadow: 0 1px 2px rgb(21 23 27 / .04), 0 12px 32px -12px rgb(21 23 27 / .12);
  --ok: #1f7a4d;

  --r-card: 16px;
  --r-field: 10px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 80px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113;
    --surface: #16191c;
    --surface-2: #1d2125;
    --ink: #eceeeb;
    --ink-2: #d5d8d4;
    --muted: #a2a8ae;
    --line: #2a2f34;
    --accent-soft: #3a2413;
    --accent-text: #f6a463;
    --panel: #1b1f23;
    --panel-line: #31373d;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
    --ok: #4cc38a;
  }
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.mono { font-family: "Geist Mono", ui-monospace, SFMono-Regular, monospace; font-feature-settings: "tnum"; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: var(--r-pill);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 500; letter-spacing: .02em;
  color: var(--accent-text);
}
.eyebrow i { font-size: 1rem; }

.h-display { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.75rem); letter-spacing: -0.035em; }
.h-section { font-size: clamp(1.875rem, 1.2rem + 2.2vw, 2.75rem); letter-spacing: -0.03em; }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }

/* Botones ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 48px; padding-inline: 1.375rem;
  border: 0; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .9875rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn i { font-size: 1.125rem; }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #15171b; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sm { height: 40px; padding-inline: 1.1rem; font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 6px 20px -8px rgb(21 23 27 / .45); }
  .btn--accent:hover { background: #f58a36; }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .375rem;
  font-weight: 600; color: var(--ink);
}
.link-arrow i { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover i { transform: translateX(3px); }
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }

.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 64px; }
.footer__about .brand img { height: 76px; }

.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav a {
  padding: .5rem .875rem; border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 500; color: var(--muted);
  transition: color 150ms ease, background-color 150ms ease;
}
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9375rem; }
.header-phone i { color: var(--accent-text); font-size: 1.1rem; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); place-items: center; cursor: pointer; }
.menu-toggle i { font-size: 1.25rem; }

@media (max-width: 960px) {
  .nav, .header-phone { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: .25rem;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 1rem var(--gutter) 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line);
    animation: menu-in 220ms var(--ease-out);
  }
  .nav.is-open a { padding: .875rem 1rem; font-size: 1.0625rem; }
}
@media (max-width: 520px) { .header-actions .btn { display: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

/* Hero (portada) --------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--r-card); }
.hero__media::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); pointer-events: none;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media img { aspect-ratio: 16 / 11; }
}

/* Franja de datos útiles -------------------------------------------------- */
.facts { border-block: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); }
.fact { display: flex; gap: .875rem; align-items: flex-start; padding: 1.5rem 1.5rem 1.5rem 0; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.fact i { font-size: 1.5rem; color: var(--accent-text); flex: none; margin-top: .1rem; }
.fact strong { display: block; font-size: .9375rem; font-weight: 600; }
.fact span { font-size: .9375rem; color: var(--muted); }
@media (max-width: 900px) {
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 1.25rem 1rem 1.25rem 0; }
  .fact + .fact { border-left: 0; padding-left: 0; }
  .fact:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts__grid { grid-template-columns: 1fr; }
  .fact:nth-child(even) { padding-left: 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* Servicios: bento ------------------------------------------------------- */
.section-head { display: grid; gap: 1rem; max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); gap: 1rem; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .625rem;
  padding: 1.5rem; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 200ms ease;
}
.tile h3 { font-size: 1.25rem; }
.tile p { color: var(--muted); font-size: .975rem; }
.tile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 1.375rem; margin-bottom: auto; }
.tile__more { margin-top: .75rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9375rem; }
.tile__more i { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
  .tile:hover .tile__more i { transform: translateX(3px); }
}
.tile:active { transform: scale(0.99); }

.tile--feature { grid-column: span 2; grid-row: span 2; color: #f3f4f2; border: 0; justify-content: flex-end; padding: 2rem; background: #15171b; }
.tile--feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform 600ms var(--ease-out); }
.tile--feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(21 23 27 / 0) 20%, rgb(21 23 27 / .92) 100%); z-index: 1; }
.tile--feature > *:not(img) { position: relative; z-index: 2; }
.tile--feature h3 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); }
.tile--feature p { color: #c9cdd1; max-width: 46ch; }
.tile--feature .tile__icon { background: var(--accent); color: #15171b; margin-bottom: 1rem; }
@media (hover: hover) and (pointer: fine) { .tile--feature:hover img { transform: scale(1.03); } }

.tile--wide { grid-column: span 2; }
.tile--accent { background: var(--accent-soft); border-color: transparent; }
.tile--accent .tile__icon { background: var(--accent); color: #15171b; }
.tile--media { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.tile--media .tile__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .625rem; }
.tile--media .tile__body .tile__icon { margin-bottom: auto; }
.tile--media img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

.chips-inline { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .25rem; }
.chips-inline span { font-size: .8125rem; padding: .25rem .625rem; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--feature { grid-row: span 1; min-height: 360px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile--feature, .tile--wide, .tile--media { grid-column: auto; }
  .tile--media { grid-template-columns: 1fr; }
  .tile--media img { min-height: 180px; max-height: 220px; order: -1; }
}

/* Panel oscuro: solo profesionales -------------------------------------- */
.panel { background: var(--panel); color: var(--panel-ink); border-radius: calc(var(--r-card) + 8px); padding: clamp(2rem, 6vw, 4.5rem); }
.panel__title { font-size: clamp(1.875rem, 1.1rem + 2.6vw, 3rem); letter-spacing: -0.035em; max-width: 20ch; }
.panel__title em { font-style: normal; color: var(--accent); }
.panel__lead { color: var(--panel-muted); max-width: 58ch; margin-top: 1.25rem; font-size: 1.125rem; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.reason { padding-left: 1.25rem; border-left: 1px solid var(--panel-line); display: grid; gap: .5rem; align-content: start; }
.reason i { font-size: 1.5rem; color: var(--accent); margin-bottom: .5rem; }
.reason h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.reason p { color: var(--panel-muted); font-size: .975rem; }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Proceso ---------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: step; }
.process__step { position: relative; padding: 0 2rem 0 0; display: grid; gap: .625rem; align-content: start; }
.process__dot {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); font-size: 1.375rem; color: var(--ink);
  position: relative; z-index: 1; margin-bottom: 1rem;
}
.process__step:first-child .process__dot { background: var(--accent); border-color: var(--accent); color: #15171b; }
.process__step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.process__step h3 { font-size: 1.375rem; }
.process__step p { color: var(--muted); max-width: 34ch; }
@media (max-width: 760px) {
  .process { grid-template-columns: 1fr; gap: 2rem; }
  .process__step { grid-template-columns: 52px 1fr; column-gap: 1.25rem; padding: 0; }
  .process__dot { grid-row: span 2; margin: 0; }
  .process__step:not(:last-child)::after { top: 60px; left: 26px; right: auto; bottom: -2rem; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px); }
}

/* Blog: destacados en portada ------------------------------------------- */
.posts-feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.post-lg { display: grid; gap: 1.25rem; align-content: start; }
.post-lg__img { overflow: hidden; border-radius: var(--r-card); aspect-ratio: 16 / 10; background: var(--surface-2); }
.post-lg__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.post-lg h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
.post-list { display: grid; align-content: start; }
.post-row { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; padding-block: 1.25rem; border-top: 1px solid var(--line); align-items: center; }
.post-row:first-child { border-top: 0; padding-top: 0; }
.post-row__img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.post-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.post-row h3 { font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.25; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .875rem; font-size: .875rem; color: var(--muted); }
.post-meta .cat { color: var(--accent-text); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .post-lg:hover .post-lg__img img, .post-row:hover .post-row__img img, .card-post:hover .card-post__img img { transform: scale(1.04); }
  .post-lg:hover h3, .post-row:hover h3, .card-post:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}
@media (max-width: 860px) { .posts-feature { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .post-row { grid-template-columns: 88px 1fr; gap: 1rem; } }

/* Contacto / información -------------------------------------------------------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__info { display: grid; gap: 2rem; }
.contact-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-size: 1.25rem; color: var(--accent-text); }
.contact-list small { display: block; color: var(--muted); font-size: .875rem; }
.contact-list a, .contact-list span { font-weight: 600; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; gap: 1.25rem; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .5rem; }
.field label { font-size: .9375rem; font-weight: 600; }
.field .hint { font-size: .8125rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem .9rem;
  border-radius: var(--r-field); border: 1px solid #c4c8c2; background: var(--bg);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
@media (prefers-color-scheme: dark) { .field input, .field select, .field textarea { border-color: #3a4046; } }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b7077; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field.has-error input { border-color: #c2341b; }
.field .error { font-size: .8125rem; color: #c2341b; display: none; }
.field.has-error .error { display: block; }
@media (prefers-color-scheme: dark) { .field .error { color: #ff8a73; } .field.has-error input { border-color: #ff8a73; } }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .75rem .9rem;
  border: 1px solid #c4c8c2; border-radius: var(--r-field); font-weight: 500; background: var(--bg);
  transition: border-color 150ms ease, background-color 150ms ease;
}
@media (prefers-color-scheme: dark) { .segmented span { border-color: #3a4046; } }
.segmented input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--accent); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

.form-success { display: none; gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--r-field); background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); font-weight: 600; align-items: center; }
.form.is-sent .form-success { display: flex; animation: menu-in 300ms var(--ease-out); }
.btn.is-loading { pointer-events: none; opacity: .75; }

@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row, .segmented { grid-template-columns: 1fr; } }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: clamp(2rem, 5vw, 4rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer__grid h2 { font-size: .9375rem; letter-spacing: 0; margin-bottom: 1rem; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.footer__grid li, .footer__grid p { color: var(--muted); font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) { .footer__grid a:hover { color: var(--ink); } }
.footer__about p { margin-top: 1rem; max-width: 36ch; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 1.125rem; transition: border-color 150ms ease, transform 160ms var(--ease-out); }
.social a:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .social a:hover { border-color: var(--ink); } }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Migas ------------------------------------------------------------------ */
.breadcrumb { font-size: .875rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .375rem; opacity: .5; }
.breadcrumb a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .breadcrumb a:hover { text-decoration-color: currentColor; color: var(--ink); } }
.breadcrumb [aria-current] { color: var(--ink); }

/* Página interior: cabecera ---------------------------------------------- */
.page-hero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero__inner { display: grid; gap: 1.25rem; max-width: 64ch; margin-top: 1.5rem; }

/* Quiénes somos ---------------------------------------------------------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.about-intro__copy { display: grid; gap: 1.25rem; }
.photo-slot {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--ink) 5%, transparent) 14px 15px),
    var(--surface-2);
  border: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent);
  display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--muted);
}
.photo-slot i { font-size: 2rem; display: block; margin: 0 auto .5rem; color: var(--accent-text); }
.photo-slot strong { display: block; color: var(--ink); font-size: 1rem; }
.photo-slot span { font-size: .875rem; }
.about-intro .photo-slot { aspect-ratio: 5 / 4; }
@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; } }

.statement { max-width: 30ch; font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
.statement span { color: var(--muted); }

.scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.scope__group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem; display: grid; gap: 1rem; align-content: start; }
.scope__group:first-child { background: var(--accent-soft); border-color: transparent; }
.scope__group h3 { font-size: 1.25rem; display: flex; align-items: center; gap: .625rem; }
.scope__group h3 i { color: var(--accent-text); font-size: 1.375rem; }
.scope__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.scope__group li { display: flex; gap: .625rem; color: var(--ink-2); font-size: .975rem; }
.scope__group li i { color: var(--accent-text); margin-top: .3rem; font-size: .875rem; flex: none; }
@media (max-width: 900px) { .scope { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.value { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); }
.value:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); }
.value .num { font-family: "Geist Mono", monospace; font-size: .875rem; color: var(--accent-text); padding-top: .3rem; }
.value h3 { font-size: 1.375rem; margin-bottom: .5rem; }
.value p { color: var(--muted); max-width: 44ch; }
@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; }
  .value, .value:nth-child(even) { padding: 1.75rem 0; border-left: 0; }
}

.team { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.team .photo-slot { aspect-ratio: 16 / 11; }
.team__copy { display: grid; gap: 1.25rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: .875rem; font-weight: 500; }
.badge i { color: var(--accent-text); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: calc(var(--r-card) + 8px); background: var(--accent); color: #15171b; }
.cta-band h2 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); letter-spacing: -0.03em; max-width: 24ch; }
.cta-band p { margin-top: .5rem; color: #3d2a17; max-width: 52ch; }
.cta-band .btn { --btn-bg: #15171b; --btn-fg: #f4f5f3; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-band .btn--line { --btn-bg: transparent; --btn-fg: #15171b; box-shadow: inset 0 0 0 1px rgb(21 23 27 / .5); }

/* Blog: listado ---------------------------------------------------------- */
.blog-head { display: grid; gap: 1.5rem; }
.blog-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 1rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; height: 40px; padding-inline: 1rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); font-size: .9375rem; font-weight: 500; cursor: pointer; color: var(--muted);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .chip:hover { color: var(--ink); border-color: var(--ink); } }
.search { position: relative; width: min(100%, 320px); }
.search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.125rem; pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 1rem 0 2.6rem; border-radius: var(--r-pill); border: 1px solid #c4c8c2; background: var(--surface); }
@media (prefers-color-scheme: dark) { .search input { border-color: #3a4046; } }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

.featured-post { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1rem, 2vw, 1.25rem); border-radius: calc(var(--r-card) + 8px); background: var(--surface); border: 1px solid var(--line); }
.featured-post__img { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; }
.featured-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.featured-post__body { display: grid; gap: 1rem; padding: 1rem clamp(0rem, 2vw, 1.5rem) 1rem 0; }
.featured-post__body h2 { font-size: clamp(1.625rem, 1.1rem + 1.4vw, 2.375rem); letter-spacing: -0.03em; }
@media (hover: hover) and (pointer: fine) { .featured-post:hover .featured-post__img img { transform: scale(1.03); } }
@media (max-width: 860px) { .featured-post { grid-template-columns: 1fr; } .featured-post__body { padding: .5rem; } }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 1.75rem); }
.card-post { display: grid; gap: .875rem; align-content: start; }
.card-post__img { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.card-post h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }
.card-post p { color: var(--muted); font-size: .975rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-post.is-hidden { display: none; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.empty-state { display: none; text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: var(--r-card); color: var(--muted); }
.empty-state.is-visible { display: grid; gap: .75rem; justify-items: center; }
.empty-state i { font-size: 2rem; color: var(--accent-text); }

.pagination { display: flex; justify-content: center; align-items: center; gap: .375rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding-inline: .75rem; border-radius: var(--r-pill); font-weight: 500; font-size: .9375rem; }
.pagination [aria-current] { background: var(--ink); color: var(--bg); }
.pagination a { border: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) { .pagination a:hover { border-color: var(--ink); } }

/* Artículo --------------------------------------------------------------- */
.article-head { display: grid; gap: 1.25rem; max-width: 52rem; padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3rem); }
.article-head h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); letter-spacing: -0.035em; }
.byline { display: flex; align-items: center; gap: .875rem; padding-top: .5rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #15171b; display: grid; place-items: center; font-weight: 700; font-size: .9375rem; flex: none; }
.byline strong { display: block; font-size: .9375rem; }
.byline span { font-size: .875rem; color: var(--muted); }

.article-cover { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 21 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .article-cover { aspect-ratio: 4 / 3; } }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.toc-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.25rem; }
.toc { padding: 1.25rem 1.25rem 1rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.toc h2 { font-size: .875rem; letter-spacing: 0; color: var(--muted); font-weight: 500; margin-bottom: .75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .125rem; }
.toc a { display: block; padding: .45rem .75rem; border-radius: 8px; font-size: .9375rem; color: var(--muted); border-left: 2px solid transparent; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.toc a.is-active { color: var(--ink); background: var(--surface-2); border-left-color: var(--accent); border-radius: 0 8px 8px 0; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--ink); } }
.aside-cta { padding: 1.5rem; border-radius: var(--r-card); background: var(--panel); color: var(--panel-ink); display: grid; gap: .75rem; }
.aside-cta h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.aside-cta p { color: var(--panel-muted); font-size: .9375rem; }
.aside-cta .btn { margin-top: .5rem; }
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc-aside { position: static; order: -1; }
  .aside-cta { display: none; }
}

.prose { max-width: 68ch; font-size: 1.125rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + .8vw, 1.875rem); color: var(--ink); margin-top: 2.25em; letter-spacing: -0.025em; line-height: 1.2; }
.prose h3 { font-size: 1.25rem; color: var(--ink); margin-top: 1.75em; }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent-text); }
.prose .lead-p { font-size: 1.25rem; color: var(--ink); line-height: 1.6; }

.deadlines { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 2em; }
.deadline { padding: 1.5rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.deadline:first-child { background: var(--accent-soft); border-color: transparent; }
.deadline .mono { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.deadline .mono small { font-size: 1rem; letter-spacing: 0; margin-left: .25rem; font-weight: 500; }
.deadline p { font-size: .975rem; line-height: 1.55; margin-top: .75rem; color: var(--ink-2); }
@media (max-width: 560px) { .deadlines { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 1.5rem !important; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); display: grid; gap: .875rem; }
.checklist li { display: flex; gap: .875rem; margin: 0 !important; }
.checklist li i { color: var(--ok); font-size: 1.25rem; margin-top: .25rem; flex: none; }

.callout { display: flex; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--r-card); background: var(--surface-2); font-size: 1rem; line-height: 1.6; }
.callout i { font-size: 1.5rem; color: var(--accent-text); flex: none; margin-top: .1rem; }

.faq { display: grid; gap: .75rem; margin-top: 1.5em; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.125rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-weight: 600; color: var(--ink); font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { transition: transform 200ms var(--ease-out); flex: none; color: var(--muted); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq .faq__a { padding: 0 1.25rem 1.25rem; color: var(--ink-2); font-size: 1rem; line-height: 1.65; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: 2rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.share span { font-size: .9375rem; color: var(--muted); margin-right: .5rem; }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 1.125rem; transition: border-color 150ms ease, transform 160ms var(--ease-out); }
.share a:active, .share button:active { transform: scale(0.95); }

.author-box { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding: 1.5rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); margin-top: 2rem; }
.author-box .avatar { width: 56px; height: 56px; font-size: 1.0625rem; }
.author-box h2 { font-size: 1.125rem; letter-spacing: -0.015em; }
.author-box p { color: var(--muted); font-size: .9375rem; margin-top: .375rem; }

/* Toast ------------------------------------------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  padding: .75rem 1.125rem; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: .9375rem; font-weight: 500;
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Revelado al hacer scroll (solo jerarquía de entrada) ------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .hero__copy > * { animation: rise 800ms var(--ease-out) both; }
  .hero__copy > *:nth-child(2) { animation-delay: 60ms; }
  .hero__copy > *:nth-child(3) { animation-delay: 120ms; }
  .hero__copy > *:nth-child(4) { animation-delay: 180ms; }
  .hero__media { animation: media-in 1100ms var(--ease-out) 100ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes media-in { from { opacity: 0; clip-path: inset(8% 0 0 0 round var(--r-card)); transform: scale(1.02); } to { clip-path: inset(0 0 0 0 round var(--r-card)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-2 { margin-top: 2rem; }

/* Añadidos de la versión en PHP ------------------------------------------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-failure { display: none; padding: 1rem 1.25rem; border-radius: var(--r-field); background: color-mix(in srgb, #c2341b 12%, transparent); color: #c2341b; font-weight: 600; }
.form-failure.is-visible { display: block; }
@media (prefers-color-scheme: dark) { .form-failure { color: #ff8a73; } }
.about-intro__media img, .team__media img { width: 100%; border-radius: var(--r-card); object-fit: cover; }
.about-intro__media img { aspect-ratio: 5 / 4; }
.team__media img { aspect-ratio: 16 / 11; }
.chip { display: inline-flex; align-items: center; }
.chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.article-cover--small { aspect-ratio: auto; background: var(--surface-2); display: grid; place-items: center; padding: 1.5rem; }
.article-cover--small img { width: auto; height: auto; max-height: 380px; border-radius: 10px; object-fit: contain; }
.prose img { border-radius: 12px; }
.prose figure { margin-inline: 0; }
.prose blockquote { margin-inline: 0; padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: .625rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.card-post__title { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }
.card-post:hover .card-post__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.toc__title { font-size: .875rem; color: var(--muted); font-weight: 500; margin-bottom: .75rem; }
.aside-cta__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.author-box__name { font-size: 1.125rem !important; font-weight: 600; color: var(--ink) !important; margin: 0 !important; }
.related { margin-top: clamp(3rem, 7vw, 5.5rem); display: grid; gap: 2rem; }
.faq--narrow { max-width: 62ch; margin-top: 0; }
