/* IDC Corporate · Correduría de Seguros — web
   Valores tomados del design system IDC (tokens.json). Estilo plano:
   paneles lisos de azul marino y blanco, bordes de 1px, sin sombras,
   sin degradados y sin figuras decorativas. El verde solo marca. */

/* Source Serif 4 alojada en la propia web (17/11/2026): así la página no
   pide nada a Google Fonts ni le pasa la IP de quien la visita. */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/source-serif-4-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/source-serif-4-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/source-serif-4-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/source-serif-4-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;

  /* Color (tema claro del design system) */
  --brand-navy: #04003d;
  --brand-green: #0e8f3c; /* verde bosque, design system 14/11/2026 (antes #06ed2b, ahora solo en el logo) */
  --logo-ground: #ffffff;
  --surface: #ffffff;
  --surface-raised: #f4f6f9;
  --surface-sunken: #ebeef8;
  --surface-green: #eafbf0;
  --ink: #242637;
  --ink-muted: #6d7480;
  --heading: #07044f;
  --border: #d9dee8;
  --border-strong: #858c9b;
  --primary: #04003d;
  --on-primary: #ffffff;
  --on-green: #04003d;
  --success-ink: #0b6a2b;
  --focus-ring: #07044f;

  /* Sobre paneles azul marino (valores del tema oscuro del sistema) */
  --navy-ink: #eef0f8;
  --on-navy-muted: #a9aed0; /* token del design system: texto secundario sobre brand-navy */
  --navy-muted: var(--on-navy-muted);
  --navy-border: #2f2d70;
  --navy-focus: #3fcf73; /* success-ink del tema oscuro: se ve mejor que el verde bosque sobre azul marino */

  /* Ampliación de paleta para la web (referencia: corredurías del sector, sobre todo Marsh):
     neutro cálido en lugar de gris frío, una banda clara azulada y titulares
     azul pálido sobre el azul marino. El azul y el verde del logo no cambian. */
  /* 14/11/2026: crema y bruma sustituidos por tokens del design system
     (surface-raised y surface-sunken con border), a recomendación de la sesión Design system. */
  --crema: #f4f6f9;
  --crema-borde: #d9dee8;
  --bruma: #ebeef8;
  --bruma-borde: #d9dee8;
  --navy-titular: #d3daff;

  /* Tipografía */
  --font-sans: Aptos, "Segoe UI", Arial, Helvetica, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Espaciado y forma */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-pill: 999px;

  /* Escala web */
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --header-h: 76px;
  --section: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.navy :focus-visible { outline-color: var(--navy-focus); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.saltar {
  position: absolute; left: var(--space-4); top: -80px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: var(--space-2) var(--space-4);
  font-weight: 700; text-decoration: none;
}
.saltar:focus { top: var(--space-4); }

/* ---------- Piezas comunes ---------- */

.etiqueta {
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-muted);
}
.navy .etiqueta { color: var(--navy-muted); }

.titular {
  font-family: var(--font-serif); font-weight: 400; color: var(--heading);
  font-size: clamp(30px, 3.7vw, 50px); line-height: 1.14; letter-spacing: -.005em;
  text-wrap: balance;
}
.navy .titular { color: var(--navy-titular); }

/* Iconos: trazo de 1,5 px y esquinas rectas */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: miter; stroke-linecap: square; }

/* Fotos: planas, a sangre, sin filtros ni sombras */
.foto { margin: 0; overflow: hidden; background: var(--surface-sunken); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto--32 { aspect-ratio: 3 / 2; }
.js .foto[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); transition-delay: var(--d, .1s); }
.js .foto[data-reveal].is-in { clip-path: inset(0); }
.js .foto[data-reveal] img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.js .foto[data-reveal].is-in img { transform: none; }

.linea {
  display: block; width: 130px; height: 3px; background: var(--brand-green);
  border-radius: var(--radius-pill); transform-origin: left center;
}

.entrada { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; max-width: 56ch; }

.cabecera-seccion { display: grid; gap: var(--space-6); max-width: 820px; }

.btn {
  display: inline-flex; align-items: center; gap: var(--space-3);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 14px 22px; font-weight: 700; font-size: 15px; line-height: 20px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn__flecha { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn__flecha, .btn:focus-visible .btn__flecha { transform: translateX(5px); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--heading); }
.btn--accent { background: var(--brand-green); color: var(--on-green); }
.btn--accent:hover { background: #ffffff; }
.btn--linea { background: transparent; color: var(--on-primary); border-color: var(--navy-muted); }
.btn--linea:hover { background: var(--on-primary); color: var(--brand-navy); border-color: var(--on-primary); }
.btn--secundario { background: var(--surface); color: var(--heading); border-color: var(--border-strong); }
.btn--secundario:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.navy { background: var(--brand-navy); color: var(--navy-ink); }
.seccion { padding: var(--section) 0; }
.seccion--gris { background: var(--crema); --border: var(--crema-borde); --ink-muted: #5f6672; }
.seccion--bruma { background: var(--bruma); --border: var(--bruma-borde); --ink-muted: #555c6b; }
.seccion--bruma .aviso { background: var(--surface); }

/* ---------- Cabecera ---------- */

.cab {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--logo-ground);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
}
.cab.is-scrolled { border-bottom-color: var(--border); }
.cab__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: var(--header-h); }
.cab__progreso {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-green);
  transform: scaleX(0); transform-origin: left center;
}

.marca { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--brand-navy); flex: none; }
/* Recorte del logo original (JPG 1600x1131) al hexágono, igual que en la portada del sistema */
.marca__logo { --h: 50px; position: relative; flex: none; width: calc(var(--h) * .818); height: var(--h); overflow: hidden; background: var(--logo-ground); }
.marca__logo img { position: absolute; left: calc(var(--h) * -.5227); top: calc(var(--h) * -.159); width: calc(var(--h) * 1.856); height: auto; max-width: none; }
.marca__div { flex: none; width: 1px; height: 34px; background: var(--brand-navy); opacity: .3; }
.marca__rotulo { display: flex; flex-direction: column; gap: 3px; text-transform: uppercase; white-space: nowrap; }
.marca__rotulo b { font-weight: 400; font-size: 14px; line-height: 16px; letter-spacing: .26em; }
.marca__rotulo span { font-size: 9px; line-height: 12px; letter-spacing: .18em; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav__lista { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav__link {
  position: relative; display: block; padding: 8px 0; color: var(--heading);
  font-size: 14px; line-height: 20px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--brand-green);
  border-radius: var(--radius-pill); transform: scaleX(0); transform-origin: left center; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__cta { padding: 10px 18px; font-size: 14px; }

.menu-btn {
  display: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 8px 14px; font-size: 14px; font-weight: 700; color: var(--heading); cursor: pointer;
}

@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--gutter) var(--space-6);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__lista { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: var(--space-6); justify-content: center; padding: 14px 22px; font-size: 15px; }
}
@media (max-width: 420px) {
  .marca__rotulo span { display: none; }
  .marca__rotulo b { font-size: 13px; }
}

/* ---------- Apertura ---------- */

.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
}
.hero__texto {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vh, 88px) clamp(28px, 4.5vw, 72px) clamp(48px, 7vh, 88px) max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.hero__foto { position: relative; margin: 0; overflow: hidden; min-height: 420px; background: var(--navy-border); animation: destapa 1.2s var(--ease) .15s both; }
@keyframes destapa { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }

/* Pase de fotos de la apertura: fundido + acercamiento lento; avanza al terminar de llenarse la barra */
.hero__diapo { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s var(--ease); }
.hero__diapo.is-on { opacity: 1; z-index: 1; }
.hero__diapo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 4.5s linear; }
.hero__diapo.is-on img { transform: none; }
.hero__diapo figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--brand-navy); color: var(--on-primary);
  padding: 12px 18px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.hero__foto :focus-visible { outline-color: var(--navy-focus); outline-offset: -2px; }
.ico--relleno { fill: currentColor; stroke: none; }
.hero__slogan {
  margin-top: var(--space-6);
  font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--on-primary);
  font-size: clamp(64px, 9.8vw, 152px); line-height: .96; letter-spacing: .005em; white-space: nowrap;
}
.hero__slogan span { display: inline-block; }
.hero__eco {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-4) var(--space-6);
  margin-top: clamp(24px, 3.5vw, 44px);
}
.hero__eco-texto { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.2; color: var(--navy-ink); }
.rota { display: inline-block; color: var(--on-primary); border-bottom: 1px solid var(--navy-muted); padding-bottom: 1px; }
.rota.sale { animation: rota-sale .32s var(--ease) both; }
.rota.entra { animation: rota-entra .5s var(--ease) both; }
@keyframes rota-sale { to { opacity: 0; transform: translateY(-.45em); } }
@keyframes rota-entra { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }

.hero__base {
  display: grid; gap: var(--space-6);
  margin-top: clamp(32px, 4.5vw, 56px); padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--navy-border);
}
.hero__titulo {
  font-family: var(--font-serif); font-weight: 400; color: var(--navy-titular);
  font-size: clamp(26px, 2.9vw, 42px); line-height: 1.14; text-wrap: balance; max-width: 22ch;
}
.hero__lado { display: grid; gap: var(--space-8); }
.hero__lado p { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--navy-ink); max-width: 44ch; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: var(--space-3); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__texto { padding: clamp(48px, 9vw, 72px) var(--gutter); }
  .hero__foto { min-height: 0; aspect-ratio: 4 / 3; }
  .hero__slogan { font-size: clamp(72px, 18vw, 150px); }
}

/* Entrada de la apertura (solo CSS, no depende de JS) */
@keyframes sube { from { opacity: 0; transform: translateY(.28em); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes traza { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .etiqueta { animation: aparece .7s var(--ease) .05s both; }
.hero__slogan span { animation: sube 1s var(--ease) both; }
.hero__slogan span:nth-child(1) { animation-delay: .12s; }
.hero__slogan span:nth-child(2) { animation-delay: .24s; }
.hero__slogan span:nth-child(3) { animation-delay: .36s; }
.hero__eco .linea { animation: traza .9s var(--ease) .85s both; }
.hero__eco-texto { animation: aparece .7s var(--ease) 1.05s both; }
.hero__base { animation: aparece .8s var(--ease) 1.2s both; }

/* ---------- Bloque de vídeo (vídeo a sangre + panel azul marino, como los bloques de Marsh) ---------- */

.video-bloque { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--brand-navy); }
.video-bloque__media { position: relative; min-height: clamp(380px, 40vw, 620px); background: var(--brand-navy); overflow: hidden; }
.video-bloque__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Pase de tres vídeos: fundido entre uno y otro, como las fotos de la apertura */
.video-diapo { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s var(--ease); }
.video-diapo.is-on { opacity: 1; z-index: 1; }
.video-diapo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-diapo figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--brand-navy); color: var(--on-primary);
  padding: 12px 18px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.video-bloque__btn {
  position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border: 0; background: var(--brand-navy); color: var(--on-primary);
  font: 700 14px/20px var(--font-sans); cursor: pointer; transition: background-color .25s var(--ease);
}
.video-bloque__btn:hover { background: var(--heading); }
.video-bloque__btn .ico { width: 16px; height: 16px; }
.video-bloque__btn:focus-visible { outline-color: var(--navy-focus); outline-offset: -4px; }
.video-bloque__texto {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-6);
  padding: clamp(48px, 5vw, 88px) max(var(--gutter), calc((100vw - var(--max)) / 2)) clamp(48px, 5vw, 88px) clamp(32px, 4.5vw, 72px);
}
.video-bloque__texto p:not(.etiqueta) { color: var(--navy-ink); font-size: 17px; line-height: 27px; max-width: 40ch; }
@media (max-width: 900px) {
  .video-bloque { grid-template-columns: 1fr; }
  .video-bloque__media { min-height: 0; aspect-ratio: 16 / 9; }
  .video-bloque__texto { padding: clamp(48px, 9vw, 72px) var(--gutter); }
}

/* ---------- Cinta de ramos ---------- */

.cinta { border-bottom: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.cinta__pista { display: flex; width: max-content; animation: cinta 60s linear infinite; }
.cinta:hover .cinta__pista { animation-play-state: paused; }
.cinta__grupo { display: flex; align-items: center; flex: none; }
.cinta__grupo span {
  display: inline-flex; align-items: center; gap: 14px; padding: 22px clamp(18px, 2.2vw, 34px);
  font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; color: var(--heading); white-space: nowrap;
}
.cinta__grupo .ico { width: 30px; height: 30px; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Compromisos ---------- */

.compromisos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--border); }
.compromiso { position: relative; padding: clamp(28px, 3vw, 44px) clamp(20px, 2.6vw, 40px) clamp(28px, 3vw, 44px) 0; display: grid; gap: var(--space-4); align-content: start; }
.compromiso + .compromiso { border-left: 1px solid var(--border); padding-left: clamp(20px, 2.6vw, 40px); }
.compromiso::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 3px; background: var(--brand-green);
  transform: scaleX(0); transform-origin: left center; transition: transform .6s var(--ease);
}
.compromiso:hover::before { transform: scaleX(1); }
.compromiso__n { font-family: var(--font-serif); font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--heading); font-variant-numeric: lining-nums; }
.compromiso__nombre { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--heading); margin-top: var(--space-4); }
.compromiso p { max-width: 36ch; }

@media (max-width: 820px) {
  .compromisos { grid-template-columns: 1fr; }
  .compromiso { padding-right: 0; }
  .compromiso + .compromiso { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
  .compromiso__nombre { margin-top: 0; }
}

/* ---------- Por qué un corredor ---------- */

.dos { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.dos__fijo { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: var(--space-6); }
.dos__texto { display: grid; gap: var(--space-8); }
.hechos { border-top: 1px solid var(--border); }
.hechos li { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.hechos__n { font-family: var(--font-serif); font-size: 22px; line-height: 1; color: var(--ink-muted); }
.hechos b { display: block; color: var(--heading); font-size: 18px; line-height: 26px; }
.hechos span { display: block; margin-top: var(--space-1); }

.aviso { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); background: var(--surface-green); border: 1px solid var(--border); }
.aviso__titulo { color: var(--success-ink); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.aviso p { font-size: 17px; line-height: 27px; }

@media (max-width: 900px) {
  .dos { grid-template-columns: 1fr; }
  .dos__fijo { position: static; }
}

/* ---------- Seguros ---------- */

.seguros__cab { display: flex; align-items: end; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.pestanas { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.pestana {
  appearance: none; background: var(--surface); border: 0; padding: 12px 20px; font-weight: 700; font-size: 14px; line-height: 20px;
  color: var(--heading); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease);
}
.pestana + .pestana { border-left: 1px solid var(--border-strong); }
.pestana[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.pestana:focus-visible { outline-offset: -4px; outline-color: var(--brand-green); }

.ramos-panel { margin-top: clamp(32px, 4vw, 56px); }
.ramos-panel[hidden] { display: none; }
.ramos { border-top: 1px solid var(--border); }
.ramo { border-bottom: 1px solid var(--border); }
.ramo__btn {
  appearance: none; width: 100%; background: transparent; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: var(--space-4);
  padding: 17px var(--space-4) 17px 0; transition: background-color .25s var(--ease), padding-left .35s var(--ease);
}
.ramo__ico { width: 28px; height: 28px; color: var(--ink-muted); transition: color .25s var(--ease); }
.ramo.is-active .ramo__ico { color: var(--heading); }
.ramo__ico-grande { display: none; }
.ramo__nombre { font-family: var(--font-serif); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.25; color: var(--ink); transition: color .25s var(--ease); }
.ramo__flecha { color: var(--heading); opacity: 0; transform: translateX(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.ramo.is-active .ramo__btn { background: var(--surface-raised); padding-left: var(--space-4); }
.ramo.is-active .ramo__nombre { color: var(--heading); }
.ramo.is-active .ramo__flecha { opacity: 1; transform: none; }

.ramo__detalle-in { display: grid; gap: var(--space-6); padding: var(--space-2) 0 var(--space-8) 60px; }
.ramo__titulo { display: none; }
.ramo__dato { display: grid; gap: var(--space-2); }
.ramo__dato p { max-width: 48ch; }
.ramo__link { justify-self: start; font-weight: 700; color: var(--heading); text-decoration: none; border-bottom: 2px solid var(--brand-green); padding-bottom: 2px; }
.ramo__link span { display: inline-block; transition: transform .3s var(--ease); }
.ramo__link:hover span { transform: translateX(5px); }

/* Con JS, en móvil: acordeón */
.js .ramo__detalle { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.js .ramo__detalle-in { overflow: hidden; min-height: 0; padding-top: 0; padding-bottom: 0; transition: padding .45s var(--ease); }
.js .ramo.is-active .ramo__detalle { grid-template-rows: 1fr; }
.js .ramo.is-active .ramo__detalle-in { padding-top: var(--space-2); padding-bottom: var(--space-8); }

/* Con JS, en escritorio: lista a la izquierda y panel azul marino a la derecha */
@media (min-width: 900px) {
  .js .ramos { position: relative; padding-right: 52%; min-height: 460px; }
  .js .ramos::after { content: ""; position: absolute; top: -1px; right: 0; bottom: -1px; width: calc(52% - clamp(24px, 4vw, 64px)); background: var(--brand-navy); }
  .js .ramo__detalle {
    display: block; position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: calc(52% - clamp(24px, 4vw, 64px));
    color: var(--navy-ink); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .js .ramo.is-active .ramo__detalle { opacity: 1; visibility: visible; transition-delay: 0s; }
  .js .ramo__detalle-in,
  .js .ramo.is-active .ramo__detalle-in {
    overflow: visible; position: sticky; top: calc(var(--header-h) + 24px);
    padding: clamp(32px, 3.6vw, 56px); gap: var(--space-8);
  }
  .js .ramo__ico-grande { display: block; width: 56px; height: 56px; color: var(--brand-green); stroke-width: 1.2; }
  .js .ramo__titulo { display: block; font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.12; color: var(--on-primary); text-wrap: balance; }
  .js .ramo__detalle .etiqueta { color: var(--navy-muted); }
  .js .ramo__link { color: var(--on-primary); }
  .js .ramo__detalle :focus-visible { outline-color: var(--navy-focus); }
  .js .ramo.is-active .ramo__detalle-in > * { animation: aparece .5s var(--ease) both; }
  .js .ramo.is-active .ramo__detalle-in > *:nth-child(2) { animation-delay: .06s; }
  .js .ramo.is-active .ramo__detalle-in > *:nth-child(3) { animation-delay: .12s; }
  .js .ramo.is-active .ramo__detalle-in > *:nth-child(4) { animation-delay: .18s; }
  .js .ramo.is-active .ramo__detalle-in > *:nth-child(5) { animation-delay: .24s; }
}

.nota { margin-top: var(--space-8); font-size: 13px; line-height: 18px; color: var(--ink-muted); max-width: 70ch; }

/* ---------- Cómo trabajamos ---------- */

.pasos { position: relative; padding-left: clamp(36px, 4vw, 56px); }
.pasos::before, .pasos::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: var(--radius-pill); }
.pasos::before { background: var(--navy-border); }
.pasos::after { background: var(--brand-green); transform: scaleY(var(--avance, 0)); transform-origin: center top; }
.paso { display: grid; gap: var(--space-3); padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--navy-border); opacity: .42; transition: opacity .5s var(--ease); }
.paso:first-child { padding-top: 0; }
.paso:last-child { border-bottom: 0; padding-bottom: 0; }
.paso.is-on { opacity: 1; }
.paso__n { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; color: var(--navy-muted); }
.paso__titulo { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.16; color: var(--navy-titular); }
.paso p { max-width: 50ch; color: var(--navy-ink); }
html:not(.js) .paso { opacity: 1; }
html:not(.js) .pasos::after { transform: none; }

/* ---------- Contacto (compacto) ---------- */

.contactos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-top: clamp(32px, 4vw, 48px); border: 1px solid var(--crema-borde); background: var(--crema); --border: var(--crema-borde); --ink-muted: #5f6672; }
.contacto { display: grid; gap: var(--space-1); justify-items: start; padding: var(--space-6); }
.contacto + .contacto { border-left: 1px solid var(--border); }
.contacto__nombre { color: var(--heading); font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.contacto__cargo { color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.contacto__tel {
  margin-top: var(--space-2); font-family: var(--font-sans); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--heading);
  text-decoration: none; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
  background: linear-gradient(var(--brand-green), var(--brand-green)) left bottom / 0 2px no-repeat; padding-bottom: 4px;
  transition: background-size .5s var(--ease);
}
.contacto__tel:hover, .contacto__tel:focus-visible { background-size: 100% 2px; }
.contacto .btn { margin-top: var(--space-4); padding: 9px 16px; font-size: 14px; }
.contacto-email { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-4); padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); }
.contacto__correo { min-width: 0; overflow-wrap: anywhere; font-weight: 700; font-size: 16px; line-height: 24px; color: var(--heading); text-decoration: underline; text-decoration-color: var(--brand-green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pie__legal a { color: var(--navy-ink); text-transform: none; letter-spacing: 0; font-size: 13px; }
@media (max-width: 720px) {
  .contactos { grid-template-columns: 1fr; }
  .contacto + .contacto { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- Cierre y pie ---------- */

.cierre { padding: var(--section) 0 0; }
.cierre__slogan { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--on-primary); font-size: clamp(64px, 12vw, 168px); line-height: 1; white-space: nowrap; }
.cierre__fila { display: flex; align-items: end; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; margin-top: clamp(28px, 3.4vw, 44px); }
.cierre__frase { display: grid; gap: var(--space-6); }
.cierre__frase p { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--on-primary); }

.cierre--pie { padding-top: 0; }
.cierre--pie .pie { margin-top: 0; }
.pie { margin-top: var(--section); border-top: 1px solid var(--navy-border); padding: var(--space-8) 0 var(--space-12); }
.pie__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.pie .marca { background: var(--logo-ground); padding: 12px 18px 12px 14px; }
.pie .marca__logo { --h: 42px; }
.pie__nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.pie__nav a { color: var(--navy-ink); font-size: 14px; line-height: 20px; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.pie__nav a:hover { border-bottom-color: var(--brand-green); }
.pie__legal { margin-top: var(--space-8); display: grid; gap: var(--space-2); color: var(--navy-muted); font-size: 11px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; }
.pie__legal i { text-transform: none; letter-spacing: 0; font-size: 13px; }
.pie__pendiente { text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 18px; max-width: 72ch; }
.pie__enlaces { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.pie__enlaces a { text-decoration: none; border-bottom: 1px solid transparent; }
.pie__enlaces a:hover, .pie__enlaces a:focus-visible { border-bottom-color: var(--brand-green); }

/* ---------- Actualidad: cabecera de página interior ---------- */

.pagina-cab { padding: clamp(44px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); }
.pagina-cab__in { display: grid; gap: var(--space-6); }
.pagina-cab__in > * { max-width: 900px; }
.pagina-cab h1 { font-family: var(--font-serif); font-weight: 400; color: var(--on-primary); font-size: clamp(36px, 5vw, 62px); line-height: 1.08; text-wrap: balance; }
.pagina-cab__entrada { color: var(--navy-ink); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; max-width: 62ch; }
.migas ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; line-height: 18px; color: var(--navy-muted); }
.migas li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.migas a { color: var(--navy-ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.migas a:hover { border-bottom-color: var(--brand-green); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; line-height: 20px; color: var(--navy-muted); }
.meta .etiqueta { color: var(--on-primary); }

/* Listado de artículos */
.actualidad-barra { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-6); }
/* ---------- Actualidad: menú de artículos (estructura de referencia: WTW; formato IDC) ---------- */

.seccion--menu { padding-top: clamp(32px, 4vw, 56px); }
.pagina-cab__acciones { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: center; }
.enlace-claro { color: var(--on-primary); font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--brand-green); padding-bottom: 2px; }
.enlace-claro span { display: inline-block; transition: transform .3s var(--ease); }
.enlace-claro:hover span { transform: translateX(4px); }

.filtros-panel { display: grid; gap: var(--space-6); padding: clamp(20px, 2.6vw, 32px); background: var(--surface-raised); border: 1px solid var(--border); }
.filtros-panel__fila { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-8); align-items: end; }
.buscador { display: grid; gap: var(--space-2); flex: 1 1 320px; max-width: 480px; }
.buscador span, .chips__tit { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.buscador input { width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-none); background: var(--surface); color: var(--ink); font: 16px/22px var(--font-sans); }
.chips-grupo { display: grid; gap: var(--space-2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* FilterChip del design system (idc-chip) */
.chip { appearance: none; min-height: 36px; padding: var(--space-2) var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--heading); font: 400 14px/20px var(--font-sans); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.chip:hover { background: var(--surface-sunken); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 700; }
@media (pointer: coarse) { .chip { min-height: 44px; } }

.resultados-barra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); margin: clamp(32px, 4vw, 48px) 0 var(--space-6); }
.resultados { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.vistas { display: inline-flex; gap: var(--space-1); }
.vista { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--heading); cursor: pointer; }
.vista .ico { width: 18px; height: 18px; }
.vista[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* ArticleCard del design system (idc-article), con los nombres de clase de la web */
.rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.rejilla--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .rejilla, .rejilla--2 { grid-template-columns: 1fr; } }
.tarjeta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-none); transition: border-color .25s var(--ease); }
.tarjeta[hidden] { display: none; }
.tarjeta:hover { border-color: var(--border-strong); }
.tarjeta__enlace { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.tarjeta__enlace:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tarjeta__foto { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-sunken); }
.tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; }
/* Sin foto (números de la newsletter): panel liso con el ramo, como idc-article__photo--empty */
.tarjeta__foto--vacia { display: flex; align-items: center; justify-content: center; padding: var(--space-6); text-align: center; color: var(--heading); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tarjeta__cuerpo { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; padding: var(--space-6); }
.tarjeta__tema { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.tarjeta__titulo { font-family: var(--font-serif); font-weight: 400; font-size: 22px; line-height: 28px; color: var(--heading); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
.tarjeta:hover .tarjeta__titulo { text-decoration-color: currentColor; }
.tarjeta__resumen { display: none; font-size: 15px; line-height: 1.6; color: var(--ink); max-width: 60ch; }
.tarjeta__fecha { margin-top: auto; padding-top: var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
/* Vista de lista */
.rejilla--lista { grid-template-columns: 1fr; gap: var(--space-4); }
.rejilla--lista .tarjeta__enlace { flex-direction: row; }
.rejilla--lista .tarjeta__foto { flex: none; width: clamp(200px, 26vw, 320px); }
.rejilla--lista .tarjeta__resumen { display: block; }
@media (max-width: 680px) {
  .rejilla--lista .tarjeta__enlace { flex-direction: column; }
  .rejilla--lista .tarjeta__foto { width: auto; }
}
.sin-resultados { padding: var(--space-8); border: 1px solid var(--border); background: var(--surface-raised); text-align: center; }
.sin-resultados[hidden] { display: none; }

.tarjeta--boletin { background: var(--brand-navy); border-color: var(--brand-navy); color: var(--navy-ink); }
.tarjeta--boletin:hover { border-color: var(--brand-navy); }
.tarjeta--boletin:hover .tarjeta__titulo { text-decoration-color: transparent; }
.tarjeta--boletin .boletin__form { margin-top: var(--space-2); gap: var(--space-3); }
.tarjeta--boletin .consentimiento span { font-size: 13px; line-height: 19px; }
.tarjeta--boletin .boletin__form .btn { justify-self: stretch; justify-content: center; }
.tarjeta--boletin .boletin__estado:empty { display: none; }
.tarjeta--boletin .tarjeta__cuerpo { justify-content: center; gap: var(--space-4); padding: clamp(24px, 3vw, 40px); }
.tarjeta--boletin .tarjeta__tema { color: var(--navy-muted); }
.tarjeta--boletin .tarjeta__titulo { color: var(--on-primary); font-size: 26px; line-height: 32px; -webkit-line-clamp: unset; }
.tarjeta--boletin p { font-size: 15px; line-height: 1.6; }
.tarjeta--boletin .tarjeta__enlace:focus-visible { outline-color: var(--navy-focus); }
.tarjeta__ir { font-weight: 700; color: var(--on-primary); }
.tarjeta__ir span { display: inline-block; transition: transform .3s var(--ease); }
.tarjeta--boletin:hover .tarjeta__ir span { transform: translateX(5px); }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--heading); font-size: 17px; line-height: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-serif); font-size: 24px; line-height: 26px; color: var(--success-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 0 var(--space-6); max-width: 62ch; }

/* Foto de cabecera de artículo */
.articulo-foto { margin: 0 0 var(--space-8); }
.articulo-foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-sunken); }
.articulo-foto figcaption { margin-top: var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.relacionados { padding: clamp(48px, 6vw, 80px) 0; background: var(--surface-raised); border-top: 1px solid var(--border); }
.relacionados .titular { margin-bottom: var(--space-8); }

/* Boletín (suscripción) */
.boletin__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.boletin__texto { display: grid; gap: var(--space-6); }
.boletin__texto p:not(.etiqueta) { color: var(--navy-ink); max-width: 46ch; }
.boletin__form { display: grid; gap: var(--space-4); }
.boletin__form label { font-size: 14px; line-height: 20px; color: var(--navy-ink); }
.campo { display: grid; gap: var(--space-2); }
.campo span { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-muted); }
.campo input { width: 100%; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-none); background: var(--surface); color: var(--ink); font: 16px/22px var(--font-sans); }
.campo input:focus-visible { outline: 2px solid var(--navy-focus); outline-offset: 2px; }
.consentimiento { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); align-items: start; }
.consentimiento input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand-green); }
.consentimiento a { color: var(--on-primary); }
.boletin__form .btn { justify-self: start; }
.boletin__estado { min-height: 20px; font-size: 14px; line-height: 20px; color: var(--on-primary); font-weight: 700; }
.boletin__aviso { font-size: 13px; line-height: 18px; color: var(--navy-muted); }
.boletin__aviso a { color: var(--on-primary); overflow-wrap: anywhere; }
.tarjeta--boletin .boletin__aviso { font-size: 13px; line-height: 19px; }
@media (max-width: 860px) { .boletin__in { grid-template-columns: 1fr; } }

/* Artículo */
.articulo { padding: clamp(48px, 6vw, 88px) 0 var(--section); }
.articulo__in { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 280px); justify-content: space-between; gap: clamp(40px, 6vw, 96px); align-items: start; }
.indice { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: var(--space-4); padding-top: var(--space-2); border-top: 2px solid var(--heading); }
.indice ol { display: grid; gap: var(--space-3); counter-reset: ind; }
.indice li { counter-increment: ind; display: grid; grid-template-columns: 26px 1fr; font-size: 14px; line-height: 20px; }
.indice li::before { content: counter(ind, decimal-leading-zero); color: var(--ink-muted); font-size: 12px; font-weight: 700; }
.indice a { color: var(--heading); text-decoration: none; }
.indice a:hover { text-decoration: underline; text-decoration-color: var(--brand-green); text-underline-offset: 3px; }
.indice__sigue-tit { margin-top: var(--space-4); }
.indice__sigue { font-family: var(--font-serif); font-size: 19px; line-height: 1.3; color: var(--heading); text-decoration: none; }
.indice__sigue span { display: inline-block; color: var(--success-ink); transition: transform .3s var(--ease); }
.indice__sigue:hover { text-decoration: underline; text-decoration-color: var(--brand-green); text-underline-offset: 3px; }
.indice__sigue:hover span { transform: translateX(4px); }
.articulo__in > * { min-width: 0; }
@media (max-width: 980px) {
  .articulo__in { grid-template-columns: minmax(0, 1fr); }
  .indice { position: static; order: -1; }
}

.prosa { font-size: 17px; line-height: 1.72; color: var(--ink); }
.prosa > * + * { margin-top: var(--space-4); }
.prosa h2 { margin-top: clamp(44px, 5vw, 64px); font-family: var(--font-serif); font-weight: 400; font-size: clamp(27px, 2.6vw, 34px); line-height: 1.18; color: var(--heading); scroll-margin-top: calc(var(--header-h) + 24px); text-wrap: balance; }
.prosa h3 { margin-top: var(--space-8); font-size: 18px; line-height: 26px; font-weight: 700; color: var(--heading); }
.prosa ul, .prosa ol { padding-left: 24px; }
.prosa ul { list-style: square; }
.prosa ol { list-style: decimal; }
.prosa li + li { margin-top: var(--space-2); }
.prosa li::marker { color: var(--success-ink); font-weight: 700; }
.prosa a { color: var(--heading); font-weight: 700; text-decoration: underline; text-decoration-color: var(--brand-green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prosa strong { color: var(--heading); }
.prosa .entrada { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; }
.texto-legal { margin: var(--space-6) 0; padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--border); }
.texto-legal p { font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1.6; color: var(--heading); }
.texto-legal footer { margin-top: var(--space-3); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.lo-esencial { padding: var(--space-6); background: var(--surface-green); border: 1px solid var(--border); }
.lo-esencial > * + * { margin-top: var(--space-3); }
.lo-esencial .aviso__titulo { margin: 0; }
.lo-esencial ul { padding-left: 22px; }
.tabla-wrap { overflow-x: auto; border: 1px solid var(--border); }
.tabla { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.tabla th, .tabla td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.tabla tr:last-child th, .tabla tr:last-child td { border-bottom: 0; }
.tabla thead th { background: var(--primary); color: var(--on-primary); font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; }
.tabla tbody th { width: 24%; background: var(--surface-raised); color: var(--heading); font-weight: 700; }
.tabla td + td { border-left: 1px solid var(--border); }
.fuentes { font-size: 14px; line-height: 1.6; }
.fuentes li { overflow-wrap: anywhere; }
.nota-final { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.cta-articulo { margin-top: var(--space-12); display: grid; gap: var(--space-4); justify-items: start; padding: clamp(28px, 3.4vw, 44px); }
.cta-articulo h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; color: var(--navy-titular); }
.cta-articulo p { color: var(--navy-ink); font-size: 16px; line-height: 1.6; max-width: 52ch; }

/* ---------- Ajustes por tamaño de pantalla (17/11/2026) ----------
   Móvil (<600), tablet vertical (600-900), tablet horizontal y portátil (900-1800),
   pantallas grandes (>=1800) y muy grandes (>=2400). */

/* Tablet vertical: la foto de la apertura, más baja para que no ocupe toda la pantalla */
@media (min-width: 600px) and (max-width: 900px) {
  .hero__foto { aspect-ratio: 16 / 10; }
  .video-bloque__media { aspect-ratio: 16 / 9; }
}

/* Móvil apaisado: la apertura no necesita tanta altura */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero__slogan { font-size: clamp(64px, 12vw, 110px); }
  .hero__foto { aspect-ratio: 21 / 9; }
}

/* Pantallas grandes: columna más ancha y textos algo mayores, para no dejar márgenes enormes */
@media (min-width: 1800px) {
  :root { --max: 1480px; --header-h: 84px; }
  body { font-size: 17px; line-height: 28px; }
  .hero__slogan { font-size: clamp(152px, 8.4vw, 210px); }
  .hero__titulo { font-size: clamp(42px, 2.3vw, 54px); }
  .titular { font-size: clamp(50px, 2.9vw, 66px); }
  .entrada, .pagina-cab__entrada { font-size: 20px; }
  .prosa { font-size: 18px; }
  .articulo__in { grid-template-columns: minmax(0, 780px) minmax(0, 300px); }
  .video-bloque__media { min-height: clamp(620px, 34vw, 880px); }
  .tarjeta__titulo { font-size: 24px; line-height: 30px; }
}
@media (min-width: 2400px) {
  :root { --max: 1720px; }
  body { font-size: 18px; line-height: 30px; }
  .nav__link, .nav__cta { font-size: 16px; }
  .marca__logo { --h: 58px; }
}

/* ---------- Aparición al hacer scroll ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .linea[data-reveal] { opacity: 1; transform: scaleX(0); transition: transform .9s var(--ease); transition-delay: var(--d, .15s); }
.js .linea[data-reveal].is-in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .linea[data-reveal] { opacity: 1; transform: none; }
  .paso { opacity: 1; }
  .cinta__pista { width: auto; flex-wrap: wrap; }
  .cinta__grupo { flex-wrap: wrap; }
  .cinta__grupo[aria-hidden="true"] { display: none; }
}
