/* DH Tech Inversiones — hoja de estilos
   Mundo visual: memoria anual suiza. Papel cálido, tinta pizarra, el rojo de la marca como única señal. */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e52642;
  --red-ink: #c81d37;          /* rojo para texto pequeño sobre papel (contraste AA) */
  --red-button: #dc213d;       /* rojo de marca apenas oscurecido: texto blanco a 4,85:1 (AA) */
  --slate: #3a506b;            /* azul pizarra del logotipo */
  --ink: #1c2838;              /* tinta principal, pizarra profunda */
  --ink-soft: #4a5a6e;
  --paper: #f5f3ef;
  --paper-2: #ebe8e2;
  --rule: #d5d1c8;
  --night: #16202d;
  --night-ink: #c9d2dd;

  --font: "Jost", "Futura", "Century Gothic", sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 82rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Superficies del navegador */
::selection { background: var(--red); color: #fff; }
html { scrollbar-color: var(--slate) var(--paper-2); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--slate); border: 2px solid var(--paper-2); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
input, textarea { caret-color: var(--red); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--red-ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.skip:hover { color: #fff; }

/* Aviso de borrador */
.draft-bar {
  background: var(--ink);
  color: var(--night-ink);
  font-size: .8125rem;
  letter-spacing: .04em;
  text-align: center;
  padding: .45rem var(--gutter);
}
.draft-bar strong { color: #fff; font-weight: 500; }
.tbd { background: linear-gradient(transparent 62%, rgba(229, 38, 66, .14) 62%); }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; gap: 1.5rem; }
.brand img { height: 2.1rem; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a {
  text-decoration: none; font-size: .8125rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--slate);
  padding-block: .4rem; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="true"]::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"], .nav a[aria-current="true"] { color: var(--ink); }
.lang { display: flex; gap: .15rem; border: 1px solid var(--rule); padding: .15rem; }
.lang a, .lang span { font-size: .75rem; font-weight: 500; letter-spacing: .12em; padding: .3rem .55rem; text-decoration: none; }
.lang span { background: var(--ink); color: #fff; }
.lang a::after { display: none; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: .6rem; background: none; border: 0; padding: .5rem 0;
    font: 500 .8125rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); cursor: pointer;
  }
  .menu-btn i { display: block; width: 1.4rem; height: 1px; background: currentColor; position: relative; }
  .menu-btn i::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] i { background: transparent; }
  .menu-btn[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: currentColor; transform: rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem var(--gutter) 1.5rem;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease); }
  .nav > a { font-size: 1rem; padding-block: .9rem; width: 100%; border-bottom: 1px solid var(--rule); }
  .lang { margin-top: 1.2rem; }
}

/* Portada */
.hero { padding-block: clamp(3.5rem, 10vw, 8.5rem) clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.display {
  font-weight: 300; font-size: clamp(2.6rem, 7.2vw, 6rem); line-height: .98;
  letter-spacing: -0.035em; margin: 0; text-wrap: balance;
}
.display em { font-style: normal; color: var(--red); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.35rem); font-weight: 300; line-height: 1.5; color: var(--ink-soft); max-width: 34ch; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .8rem; text-decoration: none;
  font: 500 .8125rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05rem 1.4rem; border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); cursor: pointer;
}
.btn svg { width: 1rem; height: 1rem; transition: transform .45s var(--ease); }
.btn:hover { background: var(--ink); color: #fff; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--red-button); border-color: var(--red-button); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:disabled { opacity: .5; cursor: progress; }

/* Línea de trayectoria: el trazo del logotipo convertido en eje temporal */
.timeline { margin-top: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.timeline ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.timeline ol::before, .timeline ol::after {
  content: ""; position: absolute; top: .5rem; height: 2px; left: 0;
}
.timeline ol::before { width: 60%; background: var(--slate); transform-origin: left; animation: draw 1.6s var(--ease) .2s both; }
.timeline ol::after {
  left: 60%; right: calc(-1 * var(--gutter));
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 18px);
  transform-origin: left; animation: draw 1.4s var(--ease) 1.3s both;
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.timeline li { position: relative; padding: 2.25rem 1.25rem 0 0; }
.timeline li::before {
  content: ""; position: absolute; top: .125rem; left: 0; width: .875rem; height: .875rem;
  background: var(--paper); border: 2px solid var(--slate); z-index: 1;
  animation: pop .5s var(--ease) both; animation-delay: calc(.3s + var(--i) * .25s);
}
.timeline li.now::before { background: var(--red); border-color: var(--red); width: 1.125rem; height: 1.125rem; top: 0; }
.timeline li.future::before { border-color: var(--red); border-style: dashed; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.timeline .year { font-size: 1.75rem; font-weight: 300; letter-spacing: -0.02em; line-height: 1; display: block; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.timeline .now .year, .timeline .future .year { color: var(--red-ink); }
.timeline p { margin: 0; font-size: .9375rem; color: var(--ink-soft); line-height: 1.45; max-width: 22ch; }

/* Cómpeta a sangre: cierra la portada */
.hero { padding-bottom: 0; }
.hero-photo { margin: clamp(3rem, 7vw, 5.5rem) 0 0; }
.hero-photo img { width: 100%; height: clamp(18rem, 42vw, 40rem); object-fit: cover; object-position: 50% 62%; background: var(--paper-2); }
.hero-photo figcaption { margin-top: 0; padding-block: .9rem 0; }
.hero + .section { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .timeline ol::before, .timeline ol::after, .timeline li::before { animation: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .timeline ol { grid-template-columns: 1fr; padding-left: 2rem; }
  .timeline ol::before, .timeline ol::after { top: 0; left: .4rem; width: 2px; height: auto; transform-origin: top; }
  .timeline ol::before { bottom: 40%; height: 60%; }
  .timeline ol::after { top: 60%; bottom: -1rem; right: auto; background: repeating-linear-gradient(180deg, var(--red) 0 10px, transparent 10px 18px); }
  @keyframes draw { from { transform: scale(1, 0); } to { transform: scale(1, 1); } }
  .timeline li { padding: 0 0 2rem; }
  .timeline li::before { left: -2rem; top: .45rem; }
  .timeline li.now::before { left: -2.125rem; top: .35rem; }
  .timeline p { max-width: 40ch; }
}

/* Secciones */
.section { padding-block: clamp(5rem, 11vw, 9rem); border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 5rem); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); align-items: end; }
.h2 { font-weight: 300; font-size: clamp(2.25rem, 5.2vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.section-head p { margin: 0; font-size: 1.1875rem; font-weight: 300; color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Quiénes somos */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); }
.about-mark { margin: 0; align-self: start; position: sticky; top: 6.5rem; max-width: 26rem; }
.about-mark img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.about-mark figcaption, .hero-photo figcaption, .post-cover figcaption {
  margin-top: .9rem; font-size: .875rem; color: var(--ink-soft);
}
.prose p { margin: 0 0 1.25rem; max-width: 62ch; }
.prose p:first-child { font-size: 1.3125rem; font-weight: 300; line-height: 1.5; color: var(--ink); }
.principles { list-style: none; margin: 2.75rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.principles li { display: grid; grid-template-columns: minmax(9rem, .8fr) minmax(0, 2fr); gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.principles h3 { margin: 0; font-size: 1.0625rem; font-weight: 500; letter-spacing: .01em; }
.principles p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .principles li { grid-template-columns: 1fr; gap: .35rem; }
  .about-mark { position: static; max-width: none; }
  .about-mark img { aspect-ratio: 4 / 3; }
}

/* Empresas participadas: índice tipo memoria anual */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  font: 500 .8125rem/1 var(--font); letter-spacing: .08em; padding: .7rem 1rem; cursor: pointer;
  background: transparent; color: var(--slate); border: 1px solid var(--rule); transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--slate); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { opacity: .6; margin-left: .35rem; font-variant-numeric: tabular-nums; }

.portfolio { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.co {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 2fr);
  gap: 1.5rem; align-items: baseline; padding: 1.75rem 0; border-bottom: 1px solid var(--rule);
  position: relative; transition: background .4s var(--ease), padding .4s var(--ease);
}
.co::before {
  content: ""; position: absolute; left: 0; top: 50%; width: .75rem; height: .75rem; background: var(--red);
  transform: translateY(-50%) scale(0); transition: transform .4s var(--ease);
}
.co:hover { background: var(--paper-2); }
.co:hover::before { transform: translateY(-50%) scale(1); }
.co .mono {
  width: 8.5rem; height: 4.25rem; display: grid; place-items: center; background: #fff; border: 1px solid var(--rule);
  font-weight: 500; font-size: 1rem; letter-spacing: .04em; color: var(--slate); align-self: center;
  transition: transform .4s var(--ease);
}
.co:hover .mono { transform: translateX(1.25rem); }
.co .mono img { max-width: 6.5rem; max-height: 2.75rem; width: auto; height: auto; object-fit: contain; }
.co .mono img.tall { max-height: 3.4rem; }
.co h3 { margin: 0; font-size: 1.375rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.co h3 a { text-decoration: none; }
.co .sector { font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.co p { margin: 0; color: var(--ink-soft); max-width: 58ch; }
.co .since { font-size: .9375rem; color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.co[hidden] { display: none; }
.portfolio-note { margin-top: 1.5rem; font-size: .875rem; color: var(--ink-soft); }
@media (max-width: 960px) {
  .co { grid-template-columns: 6rem minmax(0, 1fr); gap: .35rem 1rem; }
  .co .mono { width: 6rem; height: 3.25rem; grid-row: span 3; align-self: start; }
  .co .mono img { max-width: 4.6rem; max-height: 2rem; }
  .co .mono img.tall { max-height: 2.6rem; }
  .co h3, .co .sector, .co p { grid-column: 2; }
  .co .sector { grid-column: 2; }
  .co p { grid-column: 2 / -1; margin-top: .4rem; }
  .co .since { grid-column: 3; grid-row: 1; }
  .co:hover .mono { transform: none; }
}

/* Sectores en banda oscura */
.sectors { background: var(--night); color: var(--night-ink); border-top: 0; }
.sectors .h2 { color: #fff; }
.sectors .section-head p { color: var(--night-ink); }
.sector-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.18); }
.sector-list { column-gap: clamp(1.5rem, 3vw, 2.5rem); }
.sector-list li { padding: 2rem 0 0; }
.sector-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1.5rem; background: rgba(255,255,255,.06); }
.sector-list h3 { margin: 0 0 .6rem; color: #fff; font-weight: 400; font-size: 1.375rem; letter-spacing: -0.01em; }
.sector-list p { margin: 0; font-size: .9688rem; line-height: 1.55; }
@media (max-width: 960px) {
  .sector-list { grid-template-columns: 1fr 1fr; }
  .sector-list li { padding: 2rem 0; }
}
@media (max-width: 560px) {
  .sector-list { grid-template-columns: 1fr; }
}

/* Contacto */
/* Mismas columnas que .section-head: el formulario arranca alineado con la entradilla */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 5rem); }
.contact > div { align-self: start; position: sticky; top: 6.5rem; }
.mail-big { display: inline-block; font-size: clamp(1.5rem, 3.2vw, 2.5rem); font-weight: 300; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: .2rem; margin-bottom: 2.5rem; overflow-wrap: anywhere; }
.contact dl { margin: 0; display: grid; gap: 1.25rem; }
.contact dt { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-bottom: .25rem; }
.contact dd { margin: 0; }
.form { display: grid; gap: 1.25rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label { display: block; font-size: .8125rem; font-weight: 500; letter-spacing: .06em; margin-bottom: .45rem; }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink); background: #fff;
  border: 1px solid var(--rule); border-radius: 0; padding: .85rem 1rem; transition: border-color .25s;
}
.field input:hover, .field textarea:hover { border-color: var(--slate); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(229, 38, 66, .18); }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.consent { display: flex; gap: .75rem; font-size: .875rem; color: var(--ink-soft); align-items: flex-start; }
.consent { cursor: pointer; padding-block: .25rem; }
.consent input { accent-color: var(--red-button); width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; flex: none; cursor: pointer; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: .9375rem; min-height: 1.5em; margin: 0; }
.form-status.ok { color: #1f6a3f; }
.form-status.err { color: var(--red-ink); }
@media (max-width: 860px) { .contact, .form .row { grid-template-columns: 1fr; } .contact > div { position: static; } }
@media (max-width: 560px) {
  .hero .actions { display: grid; grid-template-columns: 1fr; }
  .hero .actions .btn, .form .btn { justify-content: center; }
  .form .actions { display: grid; }
}

/* Pie */
.site-footer { background: var(--night); color: var(--night-ink); padding-block: 4rem 2rem; font-size: .9375rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top img { height: 2.75rem; width: auto; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.footer-top a { text-decoration: none; color: var(--night-ink); }
.footer-top a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; font-size: .8125rem; color: #8d9aab; }
.footer-bottom a { color: #8d9aab; }
.footer-bottom a:hover { color: #fff; }

.opt { font-weight: 400; color: var(--ink-soft); }
.privacy-note { margin: -.5rem 0 0; font-size: .8125rem; color: var(--ink-soft); max-width: 60ch; }

/* Páginas legales */
.legal { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(5rem, 10vw, 8rem); }
.legal .h2 { margin-bottom: .75rem; }
.legal .updated { color: var(--ink-soft); font-size: .9375rem; margin: 0 0 3rem; }
.legal-body { max-width: 68ch; }
.legal-body h2 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; margin: 2.75rem 0 .75rem; }
.legal-body p { margin: 0 0 1rem; }
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 500; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: .2rem; } }
.legal .display { margin-bottom: 1.5rem; }

/* Blog */
.blog, .post { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(5rem, 10vw, 8rem); }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.post-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); grid-template-rows: auto auto 1fr; column-gap: clamp(1.5rem, 5vw, 5rem); padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.post-list .thumb { grid-row: 1 / 4; display: block; overflow: hidden; }
.post-list .thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); transition: transform .8s var(--ease); }
.post-list li:hover .thumb img { transform: scale(1.03); }
.post-list time { color: var(--ink-soft); font-size: .9375rem; margin-bottom: .6rem; }
.post-list h2 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .6rem; text-wrap: balance; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.post-list .tag { font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--red-ink); vertical-align: middle; margin-left: .5rem; }
@media (max-width: 640px) { .post-list li { grid-template-columns: 1fr; } .post-list .thumb { grid-row: auto; margin-bottom: 1.25rem; } }

.crumbs { font-size: .875rem; color: var(--ink-soft); margin-bottom: 2.5rem; }
.crumbs a { color: inherit; }
.post article { max-width: 46rem; }
.post-head { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--ink); }
.post-lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); font-weight: 300; line-height: 1.5; color: var(--ink-soft); margin: 1.25rem 0 1rem; }
.post-meta { font-size: .875rem; color: var(--ink-soft); margin: 0; }
.post-body { font-size: 1.125rem; line-height: 1.7; }
.post-body h2 { font-size: 1.625rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; margin: 3rem 0 1rem; scroll-margin-top: 5.5rem; }
.post-body h3 { font-size: 1.25rem; font-weight: 500; margin: 2.25rem 0 .75rem; }
.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.25rem; }
.post-body ul, .post-body ol { padding-left: 1.25rem; }
.post-body li { margin-bottom: .5rem; }
.post-body li::marker { color: var(--red); }
.post-body strong { font-weight: 500; }
.post-body blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 2px solid var(--red); font-size: 1.25rem; font-weight: 300; }
.post-body a { color: var(--slate); }
.post-foot { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.post-foot p { margin: 0 0 1rem; }
.disclaimer { font-size: .875rem; color: var(--ink-soft); }
.post-cta { font-size: 1.125rem; }
.post-cta a { color: var(--red-ink); font-weight: 500; }

/* Enlaces a las webs de las participadas */
.co h3 a::after { content: "\2197"; font-size: .7em; margin-left: .35em; color: var(--red-ink); vertical-align: .25em; }
.co h3 a:hover { text-decoration: underline; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Índice del artículo: columna derecha fija en pantallas anchas */
.toc { display: none; }
@media (min-width: 1100px) {
  .post .wrap { display: grid; grid-template-columns: minmax(0, 46rem) minmax(13rem, 17rem); justify-content: space-between; column-gap: 4rem; }
  .post .crumbs { grid-column: 1 / -1; }
  .post article { grid-column: 1; grid-row: 2; }
  .toc { display: block; grid-column: 2; grid-row: 2; align-self: start; position: sticky; top: 6.5rem; margin-top: .5rem; }
}
.toc-title { margin: 0 0 1rem; font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a {
  display: block; position: relative; padding: .75rem 0 .75rem 1.25rem; font-size: .9375rem; line-height: 1.35;
  color: var(--ink-soft); text-decoration: none; transition: color .3s var(--ease);
}
.toc a::before {
  content: ""; position: absolute; left: 0; top: 1.1rem; width: .5rem; height: .5rem; background: var(--red);
  transform: scale(0); transition: transform .35s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); }
.toc a[aria-current="true"]::before { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .toc a, .toc a::before { transition: none; } }

/* Portada de artículo */
.post-cover { margin: 0 0 3rem; }
.post-cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.post-cover figcaption a { color: inherit; }

/* Últimos artículos en la portada */
.section-head .more { display: table; margin-top: .75rem; color: var(--red-ink); font-weight: 400; text-decoration: none; }
.section-head .more:hover { text-decoration: underline; }
.teasers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--ink); padding-top: 2rem; }
.teasers a { display: block; text-decoration: none; }
.teasers picture { display: block; overflow: hidden; margin-bottom: 1.1rem; }
.teasers img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); transition: transform .8s var(--ease); }
.teasers a:hover img { transform: scale(1.03); }
.teasers time { display: block; font-size: .875rem; color: var(--ink-soft); margin-bottom: .4rem; }
.teasers h3 { margin: 0; font-size: 1.3125rem; font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.teasers a:hover h3 { color: var(--red-ink); }
@media (max-width: 860px) { .teasers { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .teasers img, .post-list .thumb img { transition: none; } }
