/* =========================================================
   Observatorio de Sostenibilidad · estilos
   Paleta y reglas: docs/identidad.md (brief §3)
   ========================================================= */

:root {
  --ink: #0C0F13;
  --ink-2: #101113;
  --ink-3: #171A1F;
  --signal: #DEDC00;
  --paper: #FFFFFF;
  --bone: #F2F1EC;
  /* Tono de la sección clara: más apagado que --bone para no deslumbrar en una web oscura (v0.4) */
  --piedra: #B4B3AB;
  --piedra-2: #C7C6BF;
  --mist: #BBBAB7;
  --moss: #4F5C5B;
  --teal: #17929A;
  --text-on-bone: #0C0F13;
  --muted-on-bone: #33373A; /* AA sobre --piedra */

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 5vw, 56px);
  --sec-pad: clamp(88px, 12vw, 168px);
  --radius: 4px;

  --fs-etiqueta: .75rem;
  --fs-body: clamp(1rem, .95rem + .25vw, 1.125rem);
  --fs-h2: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 5vw, 5.5rem);
  --fs-cifra: clamp(3rem, 2rem + 4vw, 5.5rem);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 700; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
[id] { scroll-margin-top: 80px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.oculto { display: none; }
.saltar { position: absolute; left: 16px; top: -60px; background: var(--signal); color: var(--ink); padding: 10px 14px; z-index: 100; font-weight: 600; }
.saltar:focus { top: 12px; }

.contenedor { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* ---------- Tipos base ---------- */
.etiqueta {
  font-size: var(--fs-etiqueta);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1.5rem;
}
.etiqueta--oscura { color: var(--text-on-bone); }
.etiqueta--oscura::before { content: ""; display: inline-block; width: 24px; height: 3px; background: var(--signal); vertical-align: middle; margin-right: 10px; }
.titular { font-size: var(--fs-h2); max-width: 20ch; margin-bottom: 2.5rem; }
.titular strong, .hero__titulo strong { font-weight: 700; }
.intro { max-width: 60ch; color: var(--mist); }
.fuente { font-size: .85rem; color: var(--mist); margin-top: 2rem; }
.frase { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.2; max-width: 24ch; margin: clamp(48px, 8vw, 96px) 0 0; letter-spacing: -.01em; }

.dos-col { display: grid; gap: 1.5rem 4rem; max-width: 1000px; }
@media (min-width: 900px) { .dos-col { grid-template-columns: 1fr 1fr; } }
.dos-col p { color: #E4E3E0; }

/* Subrayado tipo rotulador */
.marca {
  background-image: linear-gradient(transparent 62%, rgba(222, 220, 0, .42) 62%, rgba(222, 220, 0, .42) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 .08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.anim .marca { background-size: 0% 100%; transition: background-size 1.1s cubic-bezier(.65, 0, .35, 1) .2s; }
.anim .marca.is-in { background-size: 100% 100%; }

/* Revelado al entrar */
.anim .revelar { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.anim .revelar.is-in { opacity: 1; transform: none; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid var(--paper);
  background: transparent; text-decoration: none; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.boton:hover { background: var(--paper); color: var(--ink); }
.boton--signal { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.boton--signal:hover { background: var(--paper); border-color: var(--paper); }
.boton-texto { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--paper); font-size: .9rem; }
.enlace-flecha { display: inline-block; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--signal); padding-bottom: 2px; margin-top: .5rem; }
.enlace-flecha::after { content: " →"; }

/* ---------- Cabecera ---------- */
.cabecera { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.cabecera.is-solida { background: rgba(12, 15, 19, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: rgba(187, 186, 183, .12); }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.cabecera__logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { list-style: none; display: flex; gap: 1.75rem; }
.nav ul a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--mist); transition: color .2s; }
.nav ul a:hover, .nav ul a.is-activo { color: var(--paper); }
.cabecera__menu { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.hamburguesa, .hamburguesa::before, .hamburguesa::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--paper); transition: transform .25s, opacity .25s; }
.hamburguesa { top: 21px; }
.hamburguesa::before, .hamburguesa::after { content: ""; left: 0; }
.hamburguesa::before { top: -7px; } .hamburguesa::after { top: 7px; }
.cabecera__menu[aria-expanded="true"] .hamburguesa { background: transparent; }
.cabecera__menu[aria-expanded="true"] .hamburguesa::before { transform: translateY(7px) rotate(45deg); }
.cabecera__menu[aria-expanded="true"] .hamburguesa::after { transform: translateY(-7px) rotate(-45deg); }

.nav ul a, .nav .boton { white-space: nowrap; }
@media (max-width: 1120px) {
  .cabecera__menu { display: block; }
  .nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 24px var(--gutter) 32px; background: var(--ink); border-bottom: 1px solid var(--moss); display: none; }
  .nav.is-abierta { display: flex; }
  .nav ul { flex-direction: column; gap: 1rem; }
  .nav ul a { font-size: 1.15rem; color: var(--paper); }
}

/* ---------- Página e hilo ---------- */
.pagina { position: relative; }
.hilo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.hilo__base { fill: none; stroke: rgba(222, 220, 0, .12); stroke-width: 1.5; }
.hilo__trazo { fill: none; stroke: var(--signal); stroke-width: 1.75; stroke-linecap: round; }
/* Hoja de la punta del hilo: capa propia en la GPU; el giro es alrededor del tallo (10 % / 97 %) */
.hilo-hoja { position: fixed; left: 0; top: 0; width: 28px; height: 28px; z-index: 1; pointer-events: none; opacity: 0; color: var(--signal); --hoja-nervio: var(--ink); transform-origin: 10% 97%; will-change: transform; backface-visibility: hidden; }
.hilo-hoja svg { display: block; width: 100%; height: 100%; }
.no-hilo .hilo-hoja { display: none; }

/* Hojas que flotan (hero, únete) */
.hojas-flotantes { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.flota { position: absolute; left: var(--x); top: var(--y); width: var(--t); height: var(--t); color: var(--signal); --hoja-nervio: var(--ink); opacity: .85; will-change: transform; }
.flota svg { width: 100%; height: 100%; display: block; }
.anim .flota svg { animation: flotar var(--d, 9s) ease-in-out infinite; }
@keyframes flotar {
  /* +30° respecto al dibujo: hojas casi horizontales, con la punta algo hacia arriba */
  0%, 100% { transform: translate(0, 0) rotate(18deg); }
  25% { transform: translate(10px, -14px) rotate(38deg); }
  50% { transform: translate(-6px, -24px) rotate(50deg); }
  75% { transform: translate(-12px, -8px) rotate(32deg); }
}
@media (max-width: 759px) { .hero .flota:nth-child(n+3) { display: none; } .hero .flota { opacity: .5; } }
.hojas-flotantes--unete .flota { opacity: .6; }
@media (max-width: 899px) { .hojas-flotantes--unete { display: none; } }
.no-hilo .hilo { display: none; }

/* ---------- Secciones ---------- */
.seccion { position: relative; padding: var(--sec-pad) 0; }
.seccion--alterna { background: var(--ink-2); z-index: 0; }
.seccion--clara { background: var(--piedra); color: var(--text-on-bone); z-index: 3; }
.seccion--clara p { color: var(--text-on-bone); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 clamp(64px, 10vh, 120px); overflow: hidden; }
.hero__fondo { position: absolute; inset: 0; z-index: 0; }
.hero__fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(12,15,19,.55) 0%, rgba(12,15,19,.6) 40%, rgba(12,15,19,.92) 85%, var(--ink) 100%), linear-gradient(90deg, rgba(12,15,19,.7), rgba(12,15,19,0) 70%); }
.hero__contenido { z-index: 2; }
.hero__titulo { font-size: var(--fs-h1); max-width: 15ch; margin-bottom: 1.5rem; }
.hero__sub { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); color: #E4E3E0; max-width: 46ch; margin-bottom: 3rem; }
.perfiles { list-style: none; display: grid; gap: 12px; max-width: 980px; }
@media (min-width: 760px) { .perfiles { grid-template-columns: repeat(3, 1fr); } }
.perfil { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); text-decoration: none; background: rgba(12,15,19,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, background .2s; position: relative; }
.perfil::after { content: "→"; position: absolute; right: 18px; top: 18px; transition: transform .2s; }
.perfil:hover { border-color: var(--signal); background: rgba(12,15,19,.7); }
.perfil:hover::after { transform: translateX(4px); }
.perfil__quien { font-weight: 700; }
.perfil__que { font-size: .88rem; color: var(--mist); }
.perfil--destacado { border-color: var(--signal); }
.perfil--destacado .perfil__quien { color: var(--signal); }

/* ---------- Cifras ---------- */
.cifras { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; margin-top: clamp(56px, 8vw, 96px); }
@media (min-width: 900px) { .cifras { grid-template-columns: repeat(4, 1fr); } }
.cifra { border-left: 3px solid var(--signal); padding-left: 18px; display: flex; flex-direction: column; }
.cifra__num { font-size: var(--fs-cifra); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cifra__txt { color: var(--mist); margin-top: .5rem; font-size: .98rem; line-height: 1.35; }
.cifra__txt small { display: block; font-size: .85rem; }

/* ---------- Ciclo ---------- */
.ciclo { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .ciclo { grid-template-columns: 1fr 1fr; } }
.ciclo__pasos { list-style: none; counter-reset: paso; display: grid; gap: 4px; }
.ciclo__pasos li { counter-increment: paso; position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid rgba(79, 92, 91, .6); color: var(--mist); transition: color .4s; }
.ciclo__pasos li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 0; top: 15px; font-size: .8rem; font-weight: 600; color: var(--moss); transition: color .4s; }
.ciclo__pasos li.is-activo { color: var(--paper); }
.ciclo__pasos li.is-activo::before { color: var(--signal); }
.ciclo__grafico svg { width: 100%; max-width: 460px; margin: 0 auto; display: block; overflow: visible; }
.ciclo__guia { fill: none; stroke: var(--moss); stroke-width: 1; stroke-dasharray: 2 6; }
.ciclo__arco { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.anim .ciclo__arco { stroke-dashoffset: 1; }
.ciclo__nodo circle { fill: var(--ink); stroke: var(--moss); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.ciclo__nodo text { fill: var(--mist); font-size: 13px; font-weight: 600; font-family: var(--font); transition: fill .4s; }
.ciclo__nodo.is-activo circle, .no-anim .ciclo__nodo circle { fill: var(--signal); stroke: var(--signal); }
.ciclo__nodo.is-activo text { fill: var(--ink); }
.ciclo__centro { fill: var(--paper); font-size: 18px; font-weight: 700; font-family: var(--font); }
.ciclo__centro--sub { font-weight: 400; font-size: 15px; fill: var(--mist); }

/* ---------- Red de hospitales (lista + mapa) ---------- */
.red { display: grid; gap: 32px 64px; grid-template-areas: "cab" "mapa" "lista"; }
@media (min-width: 960px) {
  .red { grid-template-columns: 5fr 7fr; grid-template-areas: "cab mapa" "lista mapa"; align-items: start; }
  .mapa { position: sticky; top: 110px; }
}
.red__cab { grid-area: cab; }
.red__cab .titular { margin-bottom: 1.25rem; }
.red__intro { color: var(--mist); max-width: 42ch; margin: 0; }
.red__lista { grid-area: lista; }

.hospitales { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid rgba(79, 92, 91, .6); }
.hospitales > li { border-bottom: 1px solid rgba(79, 92, 91, .6); }
.hosp { width: 100%; display: grid; gap: 2px; padding: 14px 0; background: none; border: 0; text-align: left; cursor: pointer; position: relative; transition: padding .3s cubic-bezier(.2,.7,.2,1); }
.hosp::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--signal); transform: scaleY(0); transition: transform .3s; }
.hosp__nombre { font-size: 1.05rem; font-weight: 600; line-height: 1.25; transition: color .2s; }
.hosp__ciudad { font-size: .82rem; color: var(--mist); }
.hosp:hover .hosp__nombre, .hosp.is-resaltado .hosp__nombre, .hosp[aria-pressed="true"] .hosp__nombre { color: var(--signal); }
.hosp.is-resaltado, .hosp[aria-pressed="true"] { padding-left: 14px; }
.hosp.is-resaltado::before, .hosp[aria-pressed="true"]::before { transform: scaleY(1); }

.mapa { grid-area: mapa; }
.mapa svg { width: 100%; height: auto; display: block; overflow: visible; }
.mapa__tierra { fill: var(--ink-3); stroke: rgba(187, 186, 183, .35); stroke-width: 1; stroke-linejoin: round; }
.mapa__portugal { fill: rgba(23, 26, 31, .5); stroke: rgba(187, 186, 183, .15); }
.mapa__nota { font-size: .75rem; color: var(--moss); margin-top: 8px; text-align: right; }

/* Red tenue de fondo: todos conectados con todos */
.mapa__red path { fill: none; stroke: rgba(187, 186, 183, .22); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.anim .mapa__red path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.5, 0, .2, 1); }
.anim .mapa.is-visto .mapa__red path { stroke-dashoffset: 0; }
.mapa.hay-activo .mapa__red path { stroke: rgba(187, 186, 183, .1); }

/* Hilos desde el hospital señalado */
.mapa__arco { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 0s, opacity .2s; }
.mapa__arco.is-on { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1) var(--retraso, 0s), opacity .1s var(--retraso, 0s); }
.mapa__arco--tuyo { stroke-width: 1.5; stroke-dasharray: .02 .025; stroke-dashoffset: 0; }
.mapa__arco--tuyo.is-on { stroke-dashoffset: 0; }
.no-anim .mapa__arco.is-on { transition: none; }

.mapa__punto { cursor: pointer; }
.mapa__punto .toque { fill: transparent; }
.mapa__punto .halo { fill: rgba(222, 220, 0, .16); transition: r .3s, fill .3s; }
.mapa__punto .nucleo { fill: var(--signal); stroke: var(--ink); stroke-width: 2; transition: r .3s; }
.mapa__punto .onda { fill: none; stroke: var(--signal); stroke-width: 2; opacity: 0; }
.mapa__punto.is-activo .halo { r: 22; fill: rgba(222, 220, 0, .26); }
.mapa__punto.is-activo .nucleo { r: 8; }
.mapa.hay-activo .mapa__punto:not(.is-activo):not(.recibe):not(.mapa__tuyo) .nucleo { fill: var(--mist); }
.anim .mapa__punto.recibe .onda { animation: onda 1s ease-out var(--retraso, 0s) both; }
@keyframes onda { 0% { r: 6; opacity: .9; } 100% { r: 26; opacity: 0; } }
.mapa__etiqueta { font-family: var(--font); font-size: 14px; font-weight: 700; fill: var(--paper); paint-order: stroke; stroke: var(--ink); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; opacity: 0; transition: opacity .2s; }
.mapa__punto.is-activo .mapa__etiqueta { opacity: 1; }
.mapa__tuyo .nucleo { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 3 3; }
.mapa__tuyo .mapa__etiqueta { opacity: 1; fill: var(--signal); font-weight: 600; }
.anim .mapa__tuyo .nucleo { animation: parpadeo 1.6s ease-in-out infinite; }
@keyframes parpadeo { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (max-width: 759px) {
  .mapa__etiqueta { font-size: 24px; stroke-width: 7px; }
  .mapa__punto .nucleo { r: 9; }
  .mapa__punto .halo { r: 18; }
  .mapa__punto.is-activo .halo { r: 28; }
  .mapa__arco { stroke-width: 3; }
}

/* ---------- Dimensiones ---------- */
.dimensiones { list-style: none; border-top: 1px solid rgba(79, 92, 91, .6); }
.dimension { display: grid; gap: 12px 40px; padding: 32px 0 32px 0; border-bottom: 1px solid rgba(79, 92, 91, .6); position: relative; transition: opacity .6s; }
@media (min-width: 900px) { .dimension { grid-template-columns: 80px 5fr 6fr; padding: 40px 0; } }
.anim .dimension { opacity: .38; }
.anim .dimension.is-lit { opacity: 1; }
.dimension__n { font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--moss); transition: color .6s; font-variant-numeric: tabular-nums; }
.dimension.is-lit .dimension__n, .no-anim .dimension__n, html:not(.anim) .dimension__n { color: var(--signal); }
.dimension__nombre { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 600; line-height: 1.2; margin-bottom: 12px; letter-spacing: -.01em; }
.claves { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.claves li { font-size: .78rem; border: 1px solid var(--moss); border-radius: 999px; padding: 3px 10px; color: var(--mist); }
.dimension__desc { color: var(--mist); margin-bottom: .75rem; }
.dimension__enlace { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; font-size: .92rem; border-bottom: 2px solid var(--signal); }

/* ---------- Selección ---------- */
.seleccion { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .seleccion { grid-template-columns: 5fr 6fr; } }
.criterios { list-style: none; display: grid; gap: 14px; margin-top: 1.5rem; }
.criterios li { display: flex; gap: 14px; align-items: baseline; font-size: 1.15rem; font-weight: 600; }
.criterios__n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--text-on-bone); color: var(--piedra-2); font-size: .85rem; display: inline-grid; place-items: center; transform: translateY(-2px); }
.anim .criterios li { opacity: 0; transform: translateX(-12px); transition: opacity .6s, transform .6s; }
.anim .criterios li.is-in { opacity: 1; transform: none; }
.puntos svg { width: 100%; height: auto; display: block; }
.puntos circle { transition: fill .6s; }
.punto--si { fill: var(--text-on-bone); }
.punto--no { fill: rgba(12, 15, 19, .16); }
.puntos__leyenda { font-size: .85rem; color: var(--muted-on-bone) !important; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.ley { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.ley--si { background: var(--text-on-bone); box-shadow: 0 0 0 3px var(--signal); }
.ley--no { background: rgba(12, 15, 19, .16); margin-left: 12px; }
.punto--si.es-marcado { stroke: var(--signal); stroke-width: 3; }

.niveles { display: grid; gap: 20px; margin-top: clamp(56px, 8vw, 96px); }
@media (min-width: 760px) { .niveles { grid-template-columns: 1fr 1fr; } }
.nivel { background: var(--piedra-2); padding: 28px; border-radius: var(--radius); border-top: 6px solid var(--signal); }
.nivel--inspirar { border-top-color: var(--moss); }
.nivel__tag { font-weight: 700; font-size: 1.25rem; }
.nivel ul { padding-left: 1.1em; display: grid; gap: 6px; }

/* ---------- Explorador ---------- */
.filtros { display: grid; gap: 18px; margin-bottom: 24px; }
.filtro { border: 0; margin: 0; padding: 0; min-width: 0; }
.filtro legend { font-size: var(--fs-etiqueta); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--mist); margin-bottom: 10px; padding: 0; }
.filtro__opciones { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 759px) {
  .filtro__opciones { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); padding-bottom: 4px; }
  .filtro__opciones::-webkit-scrollbar { display: none; }
}
.chip { flex: none; border: 1px solid var(--moss); background: transparent; border-radius: 999px; padding: 7px 14px; font-size: .88rem; cursor: pointer; color: var(--mist); transition: all .15s; white-space: nowrap; }
.chip:hover { border-color: var(--paper); color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 600; }
.filtros__estado { display: flex; gap: 16px; align-items: baseline; color: var(--mist); font-size: .95rem; margin-bottom: 24px; }
.filtros__estado #contador { color: var(--paper); font-weight: 600; }

.tarjetas { list-style: none; display: grid; gap: 16px; }
@media (min-width: 640px) { .tarjetas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tarjetas { grid-template-columns: repeat(3, 1fr); } }
.tarjeta { height: 100%; width: 100%; text-align: left; display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--ink-2); border: 1px solid rgba(79, 92, 91, .7); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, transform .2s; }
.tarjeta:hover { border-color: var(--signal); transform: translateY(-2px); }
.tarjeta__cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tarjeta__codigo { font-weight: 700; color: var(--signal); font-variant-numeric: tabular-nums; }
.tarjeta__titulo { font-size: 1.08rem; font-weight: 600; line-height: 1.3; flex: 1; }
.tarjeta__hospital { font-size: .88rem; color: var(--mist); }
.insignia { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.insignia--estandarizar { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.insignia--inspirar-resultados { color: var(--paper); border-color: var(--paper); }
.insignia--inspirar-prometedora { color: var(--mist); border-color: var(--moss); border-style: dashed; }
.vacio { color: var(--mist); padding: 40px 0; }

/* Ficha (diálogo) */
.ficha { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--moss); border-radius: 6px; background: var(--ink-2); color: var(--paper); }
.ficha::backdrop { background: rgba(5, 6, 8, .78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ficha__cuerpo { padding: clamp(28px, 5vw, 48px); }
.ficha__cerrar { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--paper); }
.ficha__cerrar:hover { background: rgba(255,255,255,.08); }
.ficha__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 18px; font-size: .9rem; color: var(--mist); }
.ficha h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; margin-bottom: 20px; padding-right: 32px; }
.ficha__seccion { font-size: var(--fs-etiqueta); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--signal); margin: 28px 0 8px; }
.ficha__dato { border-left: 3px solid var(--signal); padding-left: 16px; font-size: 1.1rem; font-weight: 600; }
.ficha__pie { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--moss); font-size: .9rem; color: var(--mist); }

/* ---------- Destacadas ---------- */
.destacada { display: grid; gap: 24px 64px; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid rgba(79, 92, 91, .6); }
@media (min-width: 900px) { .destacada { grid-template-columns: 4fr 7fr; } }
.destacada__cifra { border-left: 3px solid var(--signal); padding-left: 20px; display: flex; flex-direction: column; align-self: start; }
.destacada__cifra .cifra__num { font-size: clamp(3.5rem, 2rem + 6vw, 7rem); }
.destacada__meta { font-size: .85rem; color: var(--mist); letter-spacing: .04em; }
.destacada h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 600; margin-bottom: 16px; }
.destacada__texto > p:not(.destacada__meta) { color: #E4E3E0; max-width: 60ch; }

/* Calculadora de la 6.1 */
.calc { margin-top: 32px; background: var(--ink-2); border: 1px solid rgba(79, 92, 91, .7); border-radius: 6px; padding: clamp(22px, 4vw, 36px); position: relative; overflow: hidden; }
.calc__etq { font-size: var(--fs-etiqueta); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--signal); margin-bottom: 14px; }
.calc__usos { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.calc__usos-num { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.calc__usos-txt { color: var(--mist); }

.calc__rango { --p: 24%; -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; margin: 10px 0 22px; cursor: grab; }
.calc__rango:active { cursor: grabbing; }
.calc__rango::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--signal) var(--p), rgba(79, 92, 91, .6) var(--p)); }
.calc__rango::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--signal) var(--p), rgba(79, 92, 91, .6) var(--p)); }
.calc__rango::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--signal); border: 4px solid var(--ink); box-shadow: 0 0 0 2px var(--signal); transition: transform .15s; }
.calc__rango::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--signal); border: 4px solid var(--ink); box-shadow: 0 0 0 2px var(--signal); }
.calc__rango:hover::-webkit-slider-thumb, .calc__rango:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__rango:focus-visible { outline: none; }
.calc__rango:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--signal), 0 0 0 6px rgba(222, 220, 0, .35); }

.calc__grande { position: relative; display: flex; align-items: flex-end; gap: 6px 16px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid rgba(79, 92, 91, .6); }
.calc__evitado { font-size: clamp(3.6rem, 2rem + 7vw, 6.5rem); font-weight: 700; line-height: .9; letter-spacing: -.04em; color: var(--signal); font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; gap: 8px; transform-origin: left bottom; }
.calc__kg { font-size: .38em; letter-spacing: 0; }
.calc__evitado.is-salto { animation: salto .35s ease; }
@keyframes salto { 40% { transform: scale(1.05); } }
.calc__evitado-txt { font-size: 1.1rem; color: var(--paper); padding-bottom: 6px; max-width: 14ch; line-height: 1.25; }
.calc__hojas { position: absolute; left: 0; bottom: 30px; width: 60%; height: 0; pointer-events: none; }
.calc__hojas svg { position: absolute; bottom: 0; width: var(--t, 16px); height: var(--t, 16px); color: var(--signal); --hoja-nervio: var(--ink-2); animation: hoja-sube 1.6s ease-out forwards; }
@keyframes hoja-sube {
  0% { transform: translate(0, 0) rotate(0deg) scale(.4); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--dx, 20px), -140px) rotate(var(--rot, 120deg)) scale(1); opacity: 0; }
}

.calc__barras { display: grid; gap: 14px; }
.calc__fila { display: grid; grid-template-columns: 96px 1fr 84px; gap: 12px; align-items: center; font-size: .9rem; }
.calc__fila-etq { color: var(--mist); }
.calc__pista { position: relative; height: 26px; background: rgba(79, 92, 91, .18); border-radius: 2px; }
.calc__barra { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.calc__barra--antes { background: var(--mist); }
.calc__barra--despues { background: var(--signal); }
.calc__barra--hueco { border: 1.5px dashed rgba(222, 220, 0, .7); background: repeating-linear-gradient(135deg, rgba(222,220,0,.12) 0 6px, transparent 6px 12px); }
.calc__menos { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font-size: .8rem; font-weight: 700; color: var(--signal); white-space: nowrap; }
.calc__valor { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc__nota { font-size: .8rem; color: var(--mist); margin: 20px 0 0; }
@media (max-width: 480px) { .calc__fila { grid-template-columns: 1fr auto; } .calc__pista { grid-column: 1 / -1; grid-row: 2; } }

.mini-linea { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin-top: 20px; }
.mini-linea li { padding: 10px 24px 10px 0; margin-right: 24px; border-top: 2px solid var(--signal); display: flex; flex-direction: column; font-size: .92rem; color: var(--mist); }
.mini-linea li:last-child { border-top-style: dashed; }
.mini-linea strong { color: var(--paper); font-size: 1.05rem; }

/* ---------- Autodiagnóstico ---------- */
.aviso { display: flex; gap: 12px; max-width: 64ch; font-size: .92rem; color: var(--mist); border: 1px solid var(--moss); border-radius: var(--radius); padding: 14px 16px; margin: 8px 0 40px; }
.aviso::before { content: "i"; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--signal); color: var(--signal); font-weight: 700; font-size: .8rem; display: grid; place-items: center; font-style: italic; }
.diag { max-width: 820px; }
.diag.is-resultado { max-width: none; } /* el resultado ocupa todo el ancho: gráfico a la izquierda, texto a la derecha */
.diag__progreso { display: flex; gap: 6px; margin-bottom: 28px; }
.diag__progreso span { height: 4px; flex: 1; background: var(--moss); border-radius: 2px; transition: background .3s; }
.diag__progreso span.hecho { background: var(--signal); }
.diag__paso { font-size: .85rem; color: var(--mist); margin-bottom: 8px; }
.diag fieldset { border: 0; padding: 0; margin: 0; }
.diag legend { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.9rem); font-weight: 600; line-height: 1.25; margin-bottom: 24px; padding: 0; letter-spacing: -.01em; }
.diag__dim { display: block; font-size: var(--fs-etiqueta); letter-spacing: .2em; text-transform: uppercase; color: var(--signal); font-weight: 600; margin-bottom: 12px; }
.opciones { display: grid; gap: 10px; }
@media (min-width: 700px) { .opciones { grid-template-columns: repeat(2, 1fr); } }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; inset: 0; }
.opcion label { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--moss); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; min-height: 64px; }
.opcion label:hover { border-color: var(--paper); }
.opcion__escala { flex: none; display: flex; gap: 3px; }
.opcion__escala i { width: 6px; height: 18px; border-radius: 1px; background: var(--moss); }
.opcion__escala i.on { background: var(--signal); }
.opcion input:checked + label { border-color: var(--signal); background: rgba(222, 220, 0, .08); }
.opcion input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 2px; }
.diag__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.diag__nav .boton[disabled] { opacity: .35; cursor: not-allowed; }
.diag__nav .boton[disabled]:hover { background: transparent; color: var(--paper); }

.resultado { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .resultado { grid-template-columns: 7fr 5fr; gap: 64px; } }
.radar svg { width: 100%; max-width: 680px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.radar__rejilla { fill: none; stroke: var(--moss); stroke-width: 1; }
.radar__eje { stroke: var(--moss); stroke-width: 1; }
.radar__area { fill: rgba(222, 220, 0, .22); stroke: var(--signal); stroke-width: 2; stroke-linejoin: round; }
.radar__punto { fill: var(--signal); }
.radar__etiqueta { fill: var(--mist); font-size: 13px; font-family: var(--font); font-weight: 600; }
.radar__etiqueta--foco { fill: var(--paper); }
.resultado h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.recorrido { list-style: none; display: grid; gap: 28px; margin-top: 24px; }
.recorrido__dim { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.recorrido__dim span { color: var(--signal); margin-right: 8px; }
.recorrido ul { list-style: none; display: grid; gap: 6px; margin-top: 10px; }
.recorrido ul button { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: flex; gap: 10px; align-items: baseline; color: var(--paper); }
.recorrido ul button:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.recorrido ul .c { color: var(--signal); font-weight: 700; font-variant-numeric: tabular-nums; }
.cierre-diag { margin-top: 40px; padding: 28px; border: 1px solid var(--signal); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cierre-diag p { margin: 0; font-size: 1.15rem; font-weight: 600; max-width: 40ch; }

/* ---------- Decálogo ---------- */
.construccion { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .construccion { grid-template-columns: 2fr 1fr; } }
.construccion__fecha { border-left: 3px solid var(--signal); padding-left: 18px; }
.construccion__fecha strong { display: block; font-size: var(--fs-cifra); line-height: 1; }
.construccion__fecha span { color: var(--mist); }
.construccion__estado { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--signal); font-weight: 600; margin-bottom: 18px; }
.construccion__estado::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.anim .construccion__estado::before { animation: parpadeo 1.6s ease-in-out infinite; }
.decalogo { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(79,92,91,.6); }
.decalogo li { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(79,92,91,.6); }
.decalogo__n { font-size: 3rem; font-weight: 700; color: var(--signal); line-height: 1; }
.decalogo h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 6px; }
.decalogo p { color: var(--mist); margin: 0; }

/* ---------- Jornadas ---------- */
.jornada + .jornada { margin-top: clamp(88px, 12vw, 160px); }
.jornada__fecha { font-size: .9rem; color: var(--mist); margin-bottom: 1rem; }
.jornada__fecha time { color: var(--paper); font-weight: 600; }

/* ---------- Artículo de la jornada: tarjeta y ventana de lectura ---------- */
.articulo-tarjeta { display: grid; grid-template-columns: 1fr; width: 100%; max-width: 980px; margin-top: clamp(40px, 6vw, 64px); padding: 0; text-align: left; background: var(--ink-2); border: 1px solid rgba(79, 92, 91, .7); border-radius: 6px; overflow: hidden; cursor: pointer; transition: border-color .25s, transform .25s; }
@media (min-width: 760px) { .articulo-tarjeta { grid-template-columns: 5fr 7fr; } }
.articulo-tarjeta:hover { border-color: var(--signal); transform: translateY(-2px); }
.articulo-tarjeta img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.articulo-tarjeta__texto { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 3vw, 32px); justify-content: center; }
.articulo-tarjeta__tipo { font-size: var(--fs-etiqueta); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--signal); }
.articulo-tarjeta__titulo { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.65rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.articulo-tarjeta__entradilla { color: var(--mist); font-size: .95rem; }
.articulo-tarjeta__accion { align-self: flex-start; margin-top: 6px; font-weight: 600; border-bottom: 2px solid var(--signal); padding-bottom: 2px; }
.articulo-tarjeta__accion::after { content: " →"; }

.lector { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--moss); border-radius: 6px; background: var(--ink-2); color: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.lector::backdrop { background: rgba(5, 6, 8, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lector__barra { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(16, 17, 19, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(79, 92, 91, .5); }
.lector__barra form { margin: 0; }
.lector__pdf { background: none; border: 1px solid var(--moss); border-radius: 999px; padding: 7px 14px; font-size: .85rem; cursor: pointer; color: var(--paper); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.lector__pdf::before { content: "↓"; color: var(--signal); font-weight: 700; }
.lector__pdf:hover { border-color: var(--paper); }
.lector__cerrar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--paper); }
.lector__cerrar:hover { background: rgba(255, 255, 255, .08); }
.lector__cuerpo { padding: 0 0 clamp(40px, 6vw, 72px); }
.lector__cargando { padding: 48px clamp(24px, 6vw, 64px); color: var(--mist); }
.lector__cab { margin-bottom: 8px; }
.lector__portada { width: 100%; height: auto; display: block; margin-bottom: clamp(28px, 4vw, 44px); }
.lector__cab .etiqueta, .lector__cab h2, .lector__entradilla { padding: 0 clamp(24px, 6vw, 64px); }
.lector__cab h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.12; margin-bottom: 1rem; }
.lector__cab h2 strong { font-weight: 700; }
.lector__entradilla { font-size: 1.15rem; color: var(--mist); margin-bottom: 0; }
.lector__texto { padding: 0 clamp(24px, 6vw, 64px); }
.lector__texto p { color: #E4E3E0; font-size: 1.05rem; line-height: 1.7; max-width: 66ch; }
.lector__texto h3 { font-size: 1.35rem; font-weight: 700; margin: 2.2em 0 .7em; letter-spacing: -.01em; }
.lector__texto h3::before { content: ""; display: block; width: 32px; height: 3px; background: var(--signal); margin-bottom: 14px; }
.lector__texto figure { margin: 2em 0; }
.lector__texto figure img { width: 100%; height: auto; border-radius: 3px; }
.lector__texto figcaption { font-size: .85rem; color: var(--mist); margin-top: 8px; }


/* ---------- Galería en abanico (cartas) ---------- */
.abanico { position: relative; z-index: 2; max-width: calc(var(--max) + 2 * var(--gutter)); margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--gutter); }
.carta { margin: 0; border-radius: 4px; overflow: hidden; background: var(--ink-3); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); cursor: zoom-in; outline: none; }
.carta img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: saturate(.85) brightness(.92); transition: filter .4s; }
.carta figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-size: .8rem; line-height: 1.3; color: var(--paper); background: linear-gradient(transparent, rgba(5, 6, 8, .85)); opacity: 0; transition: opacity .3s; }
.carta.is-activa img { filter: none; }
.carta.is-activa figcaption, .carta:focus-visible figcaption { opacity: 1; }
.carta:focus-visible { box-shadow: 0 0 0 3px var(--signal), 0 18px 40px -12px rgba(0, 0, 0, .7); }
.abanico.hay-activa .carta:not(.is-activa) img { filter: saturate(.6) brightness(.6); }

/* Escritorio: posiciones calculadas en js/abanico.js (--x, --y, --r, --s) */
@media (min-width: 700px) {
  .abanico__mesa { position: relative; }
  .carta { position: absolute; left: 0; top: 0; width: var(--w); transform-origin: var(--ox, 50%) 62%;
    transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(var(--s, 1));
    transition: transform .55s cubic-bezier(.2, .8, .2, 1) var(--retraso, 0s), box-shadow .3s; z-index: var(--z, 1); } /* sin will-change: así la foto ampliada se vuelve a rasterizar nítida */
  .carta.is-activa { z-index: 20; box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .1); }
}
/* Móvil: fila deslizable con las cartas algo giradas */
@media (max-width: 699px) {
  .abanico { padding: 0; }
  .abanico__mesa { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px var(--gutter) 28px; scrollbar-width: none; }
  .abanico__mesa::-webkit-scrollbar { display: none; }
  .carta { position: relative; flex: 0 0 78%; scroll-snap-align: center; transform: rotate(var(--rm, 0deg)); transition: transform .35s; }
  .carta:nth-child(odd) { --rm: -2deg; } .carta:nth-child(even) { --rm: 2deg; }
  .carta.is-activa { transform: rotate(0) scale(1.03); }
  .carta figcaption { opacity: 1; }
}

/* ---------- Línea temporal ---------- */
.linea { list-style: none; display: grid; gap: 0; position: relative; }
@media (min-width: 900px) { .linea { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.linea__hito { position: relative; padding: 28px 0 28px 28px; border-left: 2px solid var(--moss); }
.linea__hito::before { content: ""; position: absolute; left: -7px; top: 32px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--signal); }
.linea__hito:first-child::before { background: var(--signal); }
@media (min-width: 900px) {
  .linea__hito { border-left: 0; border-top: 2px solid var(--moss); padding: 32px 0 0; }
  .linea__hito:first-child { border-top-color: var(--signal); }
  .linea__hito::before { left: 0; top: -7px; }
}
.linea__cuando { font-size: var(--fs-etiqueta); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--signal); margin-bottom: 6px; }
.linea__que { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.linea__hito p:last-child { color: var(--mist); }

/* ---------- Únete ---------- */
.seccion--unete { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.unete { display: grid; gap: 56px; }
@media (min-width: 900px) { .unete { grid-template-columns: 1fr 1fr; } }
.ventajas { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.ventajas li { padding-left: 30px; position: relative; color: #E4E3E0; }
.ventajas li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; background: url("../assets/hoja.svg") no-repeat center / contain; }
.descarga { color: var(--mist); font-size: .92rem; }
.formulario { display: grid; gap: 18px; background: var(--ink); border: 1px solid rgba(79,92,91,.7); border-radius: 6px; padding: clamp(24px, 4vw, 40px); }
.campo { display: grid; gap: 6px; }
.campo label { font-size: .88rem; font-weight: 600; }
.opcional { font-weight: 400; color: var(--mist); }
.campo input, .campo textarea { font: inherit; color: var(--paper); background: var(--ink-2); border: 1px solid var(--moss); border-radius: var(--radius); padding: 12px 14px; width: 100%; }
.campo input:focus, .campo textarea:focus { border-color: var(--signal); outline: none; box-shadow: 0 0 0 2px rgba(222,220,0,.25); }
.campo--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.campo--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--signal); }
.campo--check label { font-weight: 400; color: var(--mist); }
.formulario .boton { justify-self: start; }
.formulario__rgpd { font-size: .75rem; line-height: 1.5; color: var(--mist); margin: -4px 0 0; }
.formulario__rgpd a { color: var(--mist); }
.formulario__perfil { font-size: .85rem; color: var(--mist); border-left: 3px solid var(--signal); padding-left: 12px; }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid rgba(79,92,91,.6); padding: 64px 0 40px; background: var(--ink); position: relative; z-index: 2; }
.pie__logos { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-end; padding-bottom: 48px; border-bottom: 1px solid rgba(79,92,91,.4); }
.pie__rol { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); margin-bottom: 14px; }
.pie__petri { height: 40px; width: auto; }
.pie__ferrer { height: 44px; width: auto; }
.pie__club { font-weight: 600; font-size: 1.05rem; margin: 0; line-height: 44px; }
.pie__legal { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-top: 32px; font-size: .85rem; color: var(--mist); }
.pie__legal p { margin: 0; }
.pie__legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pie__legal a { text-decoration: none; }
.pie__legal a:hover { color: var(--paper); text-decoration: underline; }
.pie__obs { height: 26px; width: auto; }

/* ---------- Móvil ---------- */
@media (max-width: 759px) {
  .titular { margin-bottom: 1.75rem; }
  .hero { align-items: flex-end; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
