/* Prevención Real · hoja de estilos · marca Josep Sirera Psicólogos */

/* ---------- Fuentes autoalojadas ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --crema: #F4EBD8;
  --crema-2: #EFE4CC;
  --antracita: #3D3D3D;
  --antracita-2: #333333;
  --mostaza: #9C7B1F;
  --lima: #B8E833;
  --linea: #D8D2C2;
  --blanco: #FFFFFF;
  --texto-suave: #5A5750;
  --crema-texto: #F4EBD8;
  --crema-texto-suave: #D9D1BF;
  --wa-dot: #25D366;

  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-footer: "Roboto", system-ui, sans-serif;

  --t-body: clamp(1.0625rem, 1rem + .25vw, 1.125rem);   /* 17–18 px */
  --t-small: .9375rem;
  --t-xs: .8125rem;
  --t-h3: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem);
  --t-h2: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);       /* 22–28 px */
  --t-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);         /* 40–72 px */
  --t-display: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  --gutter: 16px;
  --maxw: 1240px;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur: 400ms;
  --header-h: 72px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body {
  margin: 0; background: var(--crema); color: var(--antracita);
  font-family: var(--f-sans); font-size: var(--t-body); font-weight: 400; line-height: 1.6;
  font-feature-settings: "ss01" 0, "cv11" 1; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
q { quotes: "«" "»"; }
cite { font-style: italic; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.5em; height: 1.5em; flex: none; }
:focus-visible { outline: 2px solid var(--antracita); outline-offset: 3px; border-radius: 2px; }
.segundo :focus-visible, .cierre :focus-visible, .mbar :focus-visible, .wa-float:focus-visible { outline-color: var(--crema); }
.wa-float:focus-visible { box-shadow: 0 0 0 2px var(--antracita); }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--antracita); color: var(--blanco); padding: .6rem 1rem; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; min-height: 48px;
  padding: .8em 1.25em; border-radius: 2px; text-decoration: none; white-space: nowrap;
  font-weight: 400; font-size: 1rem; line-height: 1.2; border: 1px solid transparent;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn .ico { width: 1.35em; height: 1.35em; }
.btn .gt { color: var(--mostaza); font-weight: 500; margin-left: .1em; transition: transform 200ms var(--ease-out); }
.btn:hover .gt { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--antracita); color: var(--blanco); }
.btn--dark:hover { background: var(--antracita-2); }
.btn--light { background: var(--crema); color: var(--antracita); }
.btn--light:hover { background: var(--blanco); }
.btn--cream { background: var(--crema); color: var(--antracita); }
.btn--cream:hover { background: var(--blanco); }
.btn--light .gt, .btn--cream .gt { color: var(--mostaza); }
.btn--sm { min-height: 40px; padding: .55em 1em; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 1em 1.6em; font-size: 1.0625rem; }

.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: .7em 1.4em; border-radius: 999px;
  background: var(--lima); color: var(--antracita); text-decoration: none; text-transform: uppercase;
  font-size: .8125rem; letter-spacing: .06em; font-weight: 500; white-space: nowrap;
  transition: filter 200ms var(--ease-out);
}
.pill:hover { filter: brightness(.95); }

.link { text-decoration: underline; text-decoration-color: var(--mostaza); text-underline-offset: .25em; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }
.link-wa { display: inline-flex; align-items: center; gap: .5em; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; text-decoration-color: var(--linea); font-weight: 500; }
.link-wa:hover { text-decoration-color: var(--antracita); }
.link-wa .gt { color: var(--mostaza); text-decoration: none; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--crema); border-bottom: .5px solid var(--linea); }
.site-header__inner { max-width: 1440px; margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand img { width: auto; height: 48px; }
.brand__x { font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.site-nav { display: none; gap: var(--s-5); font-size: .9375rem; }
.site-nav a { text-decoration: none; padding: .5rem 0; background: linear-gradient(var(--antracita), var(--antracita)) 0 100% / 0 1px no-repeat; transition: background-size 200ms var(--ease-out); }
.site-nav a:hover { background-size: 100% 1px; }
.site-header .btn { display: none; }
@media (min-width: 640px) { .site-header .btn { display: inline-flex; } }
@media (min-width: 860px) { .site-nav { display: flex; gap: var(--s-4); } }
@media (min-width: 860px) and (max-width: 1099px) { .brand__x { display: none; } }
@media (min-width: 1100px) { .site-nav { gap: var(--s-5); } }
@media (max-width: 420px) { .brand__x { font-size: .8125rem; } .brand img { height: 40px; } }

/* ---------- Hero ---------- */
.kicker { font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-suave); margin-bottom: var(--s-5); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero__text { padding: var(--s-7) var(--gutter) var(--s-6); max-width: 720px; }
.hero h1 { margin-bottom: var(--s-5); min-width: 0; hyphens: manual; font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.25rem); }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); max-width: 34em; color: var(--antracita); margin-bottom: var(--s-6); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; margin-bottom: var(--s-6); }
.seals { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: var(--t-small); color: var(--texto-suave); }
.seals li { display: flex; align-items: center; gap: .5rem; }
.seals li::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--antracita); border-radius: 50%; background: radial-gradient(circle, var(--antracita) 0 2px, transparent 2.5px); flex: none; }
.ast { text-decoration: none; margin-left: 1px; }
.hero__media { margin: 0; position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 92% 40%; }
.ilustrativa { font-size: 11px; color: rgba(61,61,61,.78); /* 60 % no alcanza AA (3,2:1); 78 % = 4,6:1 */ text-align: right; padding: 6px var(--gutter) 0; line-height: 1.3; }
@media (min-width: 900px) {
  .hero { grid-template-columns: repeat(12, minmax(0, 1fr)); min-height: min(calc(100svh - var(--header-h)), 880px); align-items: center; }
  .hero__text { grid-column: 1 / span 6; padding: var(--s-8) 0 var(--s-8) max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); max-width: none; }
  .hero__media { grid-column: 7 / -1; align-self: stretch; display: flex; flex-direction: column; padding-left: var(--s-6); }
  .hero__media picture { flex: 1; display: block; }
  .hero__media img { height: 100%; aspect-ratio: auto; min-height: 520px; }
  .hero__media .ilustrativa { padding-right: var(--gutter); padding-bottom: 6px; }
}

/* ---------- Un segundo ---------- */
.segundo { background: var(--antracita); color: var(--crema-texto); padding: var(--s-9) 0 0; position: relative; }
.segundo__grid { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); }
.segundo h2 { font-size: var(--t-display); letter-spacing: -.02em; margin-bottom: var(--s-5); }
.segundo__text p { color: var(--crema-texto-suave); max-width: 32em; }
.segundo .frase { color: var(--crema-texto); font-size: var(--t-h3); font-weight: 500; line-height: 1.35; border-left: 2px solid var(--mostaza); padding-left: var(--s-4); margin: var(--s-6) 0; max-width: 22em; }
.segundo .dato { font-size: var(--t-small); color: var(--crema-texto-suave); }
.segundo .dato small { display: block; font-size: 11px; opacity: .8; margin-top: .25rem; }
.timeline { margin: 0; align-self: center; }
.timeline__svg { width: 100%; height: auto; overflow: visible; }
.timeline__cap { font-size: 11px; color: var(--crema-texto-suave); opacity: .8; margin-top: var(--s-3); }
.tl-line { fill: none; stroke: var(--crema-texto); stroke-width: 1.5; stroke-linecap: round; }
.tl-line--b { stroke: var(--crema-texto-suave); stroke-dasharray: 2 6; }
.tl-mark circle { fill: var(--antracita); stroke: var(--crema-texto); stroke-width: 1.5; }
.tl-time { fill: var(--crema-texto); font: 500 17px var(--f-sans); font-variant-numeric: tabular-nums; }
.tl-lab { fill: var(--crema-texto-suave); font: 400 15px var(--f-sans); }
.tl-time--break { fill: var(--crema-texto); font-size: 24px; }
.tl-lab--break { fill: var(--crema-texto); }
.tl-crack { fill: none; stroke: var(--mostaza); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.segundo__detalle { margin: var(--s-8) 0 0; }
.segundo__detalle img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
@media (min-width: 900px) {
  .segundo__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .segundo__text { grid-column: 1 / span 5; }
  .timeline { grid-column: 7 / -1; padding-top: var(--s-8); }
  .segundo__detalle img { aspect-ratio: 21 / 8; object-position: 50% 45%; }
}

/* Animación protagonista: la línea del día */
.js .tl-line--a { stroke-dasharray: 380; stroke-dashoffset: 380; }
.js .tl-mark { opacity: 0; }
.js .tl-break, .js .tl-after { opacity: 0; }
.js .tl-line--b { clip-path: inset(0 100% 0 0); }
.js .timeline.is-in .tl-line--a { stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease-in-out); }
.js .timeline.is-in .tl-mark { opacity: 1; transition: opacity 300ms var(--ease-out) var(--d); }
.js .timeline.is-in .tl-break { opacity: 1; transition: opacity 200ms linear 1450ms; }
.js .timeline.is-in .tl-after { opacity: 1; transition: opacity 300ms var(--ease-out) 1700ms; }
.js .timeline.is-in .tl-line--b { clip-path: inset(0 0 0 0); transition: clip-path 1600ms var(--ease-out) 1750ms; }

/* ---------- Por qué funciona ---------- */
.porque { padding: var(--s-9) 0; }
.porque h2 { max-width: 20em; margin-bottom: var(--s-4); }
.porque__intro { max-width: 36em; color: var(--texto-suave); margin-bottom: var(--s-7); }
.steps3 { list-style: none; padding: 0; margin: 0 0 var(--s-8); display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); position: relative; }
.steps3__item h3 { margin: var(--s-4) 0 var(--s-2); }
.steps3__item p { color: var(--texto-suave); max-width: 22em; margin: 0; }
.steps3__num { width: 64px; height: 64px; }
.steps3__num circle { fill: var(--crema); stroke: var(--antracita); stroke-width: 1.5; }
.steps3__num text { font: 500 24px var(--f-sans); fill: var(--mostaza); }
@media (min-width: 800px) {
  .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
  .steps3::before { content: ""; position: absolute; top: 32px; left: 64px; right: calc(33% - 32px); border-top: 1.5px solid var(--antracita); z-index: -1; }
  .steps3__item:nth-child(2) { margin-top: var(--s-6); }
  .steps3__item:nth-child(3) { margin-top: var(--s-8); }
  .steps3::before { transform-origin: left; transform: rotate(4deg); }
}
.compare { border-top: 1.5px solid var(--antracita); margin-bottom: var(--s-7); font-size: var(--t-small); }
.compare__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem 1.5rem; padding: var(--s-4) 0; border-bottom: .5px solid var(--linea); }
.compare__row span[role="rowheader"] { font-weight: 500; }
.compare__row span[role="cell"]:nth-child(2) { color: var(--texto-suave); }
.compare__row span[role="cell"]:nth-child(2)::before { content: "Charla suelta · "; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; }
.compare__row span[role="cell"]:nth-child(3)::before { content: "Prevención Real · "; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--texto-suave); }
.compare__row--head { display: none; }
@media (min-width: 800px) {
  .compare__row { grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 1.3fr); }
  .compare__row--head { display: grid; font-weight: 500; }
  .compare__row--head span:nth-child(2) { color: var(--texto-suave); }
  .compare__row span[role="cell"]::before { content: none !important; }
}

/* ---------- Programas ---------- */
.programas { padding: var(--s-9) 0 var(--s-7); border-top: .5px solid var(--linea); }
.programas h2 { font-size: var(--t-display); letter-spacing: -.02em; margin-bottom: var(--s-4); }
.programas__intro { max-width: 36em; color: var(--texto-suave); margin-bottom: var(--s-7); }
.indice ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1.5px solid var(--antracita); }
.indice a { display: grid; grid-template-columns: 3.25rem 1.75rem minmax(0, 1fr); align-items: center; gap: .75rem; padding: .9rem 0; border-bottom: .5px solid var(--linea); text-decoration: none; transition: padding-left 200ms var(--ease-out); }
.indice a:hover { padding-left: .5rem; }
.indice__n { font-size: 1.5rem; font-weight: 500; color: var(--mostaza); font-variant-numeric: tabular-nums; line-height: 1; }
.indice .ico { width: 28px; height: 28px; }
@media (min-width: 800px) {
  .indice ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); grid-auto-flow: column; grid-template-rows: repeat(5, auto); }
}

.fichas { margin-top: var(--s-8); }
.ficha { border-top: .5px solid var(--linea); }
.ficha details { padding: 0 var(--gutter); }
.ficha summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: start; gap: .75rem; padding: var(--s-5) 0; }
.ficha summary::-webkit-details-marker { display: none; }
.ficha__n { font-size: 1.5rem; font-weight: 500; color: var(--mostaza); font-variant-numeric: tabular-nums; line-height: 1.2; }
.ficha__ico { width: 32px; height: 32px; margin-top: 2px; }
.ficha summary h3 { padding-top: 3px; }
.ficha__toggle { width: 28px; height: 28px; transition: transform 200ms var(--ease-out); margin-top: 2px; }
.ficha details[open] .ficha__toggle { transform: rotate(45deg); }
.ficha__body { padding-bottom: var(--s-6); }
.ficha__valor { font-size: var(--t-h3); line-height: 1.4; max-width: 26em; }
.ficha__datos { margin: var(--s-5) 0; display: grid; gap: 0; border-top: .5px solid var(--linea); }
.ficha__datos > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem 1.5rem; padding: .8rem 0; border-bottom: .5px solid var(--linea); }
.ficha__datos dt { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--texto-suave); padding-top: .2rem; }
.ficha__datos dd { margin: 0; font-size: var(--t-small); line-height: 1.55; }
.ficha__nota { font-size: var(--t-small); color: var(--texto-suave); border-left: 2px solid var(--linea); padding-left: .75rem; }
.ficha__media { margin: 0 0 var(--s-6); }
.ficha__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.nota-norma { font-size: var(--t-xs); color: var(--texto-suave); padding-top: var(--s-5); border-top: .5px solid var(--linea); }
@media (max-width: 899px) {
  .ficha__media { display: none; }
  .ficha details[open] + .ficha__media { display: block; }
}
@media (min-width: 560px) {
  .ficha__datos > div { grid-template-columns: 11rem minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .ficha { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-6); border-top: 0; padding: var(--s-8) 0; }
  .ficha details { grid-column: 1 / span 6; padding: 0 0 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
  .ficha__media { grid-column: 7 / -1; margin: 0; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
  .ficha--rev details { grid-column: 7 / -1; grid-row: 1; padding: 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 0 0; }
  .ficha--rev .ficha__media { grid-column: 1 / span 6; grid-row: 1; }
  .ficha--rev .ficha__media .ilustrativa { text-align: right; }
  .ficha:not(.ficha--img) details { grid-column: 3 / span 8; padding: 0 var(--gutter); max-width: none; }
  .ficha summary { cursor: default; border-top: 1.5px solid var(--antracita); }
  .ficha__toggle { display: none; }
  .ficha:not(.ficha--img) { background: var(--crema-2); }
}

/* ---------- Sectores ---------- */
.sectores { padding: var(--s-9) 0 0; border-top: .5px solid var(--linea); }
.sectores__grid { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); }
.sectores__frase { font-size: var(--t-h3); line-height: 1.4; max-width: 20em; margin: var(--s-4) 0 var(--s-6); }
.sect { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--antracita); border-left: .5px solid var(--linea); }
.sect__i { display: flex; flex-direction: column; gap: .75rem; padding: var(--s-4); border-right: .5px solid var(--linea); border-bottom: .5px solid var(--linea); font-size: var(--t-small); font-weight: 500; line-height: 1.3; min-height: 112px; }
.sect__i .ico { width: 32px; height: 32px; }
.sect__i--xl, .sect__i--full { grid-column: span 2; flex-direction: row; align-items: center; }
.sect__i--xl { font-size: var(--t-h3); }
.sect__i--xl .ico { width: 48px; height: 48px; }
@media (min-width: 900px) {
  .sectores__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sectores__text { grid-column: 1 / span 4; }
  .sect { grid-column: 6 / -1; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: var(--s-6); }
  .sect__i { grid-column: span 2; }
  .sect__i--xl { grid-column: span 4; grid-row: span 2; flex-direction: column; justify-content: flex-end; align-items: flex-start; font-size: var(--t-h2); }
  .sect__i--xl .ico { width: 64px; height: 64px; }
  .sect__i--h { grid-column: span 3; }
  .sect__i--full { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 88px; }
}
.tira { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-top: var(--s-8); }
.tira figure { margin: 0; }
.tira img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) {
  .tira { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: start; }
  .tira figure:nth-child(1) img { aspect-ratio: 4 / 3; }
  .tira figure:nth-child(2) { margin-top: var(--s-8); }
  .tira figure:nth-child(3) { margin-top: var(--s-6); }
}

/* ---------- Cómo trabajamos ---------- */
.como { padding: var(--s-9) 0; }
.como h2 { font-size: var(--t-display); letter-spacing: -.02em; margin-bottom: var(--s-7); }
.proceso { list-style: none; padding: 0; margin: 0 0 var(--s-7); display: grid; grid-template-columns: minmax(0, 1fr); counter-reset: none; border-top: 1.5px solid var(--antracita); }
.proceso li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-5) 0; border-bottom: .5px solid var(--linea); }
.proceso__n { grid-row: span 2; font-size: 1.75rem; font-weight: 500; line-height: 1; color: var(--mostaza); font-variant-numeric: tabular-nums; }
.proceso h3 { margin-bottom: .35rem; }
.proceso p { color: var(--texto-suave); margin: 0; max-width: 26em; font-size: var(--t-small); }
@media (min-width: 900px) {
  .proceso { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-6); border-bottom: .5px solid var(--linea); }
  .proceso li { grid-template-columns: minmax(0, 1fr); border-bottom: 0; padding: var(--s-5) 0 var(--s-6); }
  .proceso__n { grid-row: auto; font-size: 2.75rem; margin-bottom: var(--s-4); }
}

/* ---------- Quiénes somos ---------- */
.quienes { padding: 0 0 var(--s-9); }
.quienes__foto { margin: 0 0 var(--s-7); }
.quienes__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 900px) { .quienes__foto img { aspect-ratio: 21 / 9; max-height: 78vh; } }
.quienes h2 { font-size: var(--t-display); letter-spacing: -.02em; margin-bottom: var(--s-6); }
.quienes__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
.persona { border-top: 1.5px solid var(--antracita); padding-top: var(--s-5); }
.persona h3 { margin-bottom: var(--s-4); font-size: var(--t-h2); }
.persona p { max-width: 32em; }
.creds { list-style: none; padding: 0; margin: 0 0 var(--s-5); font-size: var(--t-small); }
.creds li { padding: .45rem 0; border-bottom: .5px solid var(--linea); }
.nota-roles { font-size: var(--t-small); color: var(--texto-suave); margin-top: var(--s-6); }
@media (min-width: 900px) {
  .quienes__cols { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .persona:first-child { grid-column: 1 / span 6; }
  .persona:last-child { grid-column: 8 / -1; margin-top: var(--s-8); }
}

/* ---------- Norma y FAQ ---------- */
.norma, .faq { padding: var(--s-8) 0; border-top: .5px solid var(--linea); }
.norma__grid, .faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.norma__body p { max-width: 36em; }
.faq__list details { border-bottom: .5px solid var(--linea); }
.faq__list details:first-child { border-top: 1.5px solid var(--antracita); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-weight: 500; min-height: 48px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .ico { width: 24px; height: 24px; transition: transform 200ms var(--ease-out); }
.faq__list details[open] summary .ico { transform: rotate(45deg); }
.faq__list details p { max-width: 36em; color: var(--texto-suave); padding-bottom: .5rem; }
.faq__list > p { margin-top: var(--s-5); }
@media (min-width: 900px) {
  .norma__grid, .faq__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6); }
  .norma h2, .faq h2 { grid-column: 1 / span 4; }
  .norma__body, .faq__list { grid-column: 6 / -1; }
}

/* ---------- Cierre ---------- */
.cierre { background: var(--antracita); color: var(--crema-texto); padding: var(--s-10) 0 var(--s-9); }
.cierre__h { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -.025em; max-width: 12em; color: var(--crema); margin-bottom: var(--s-5); }
.cierre__sub { color: var(--crema-texto-suave); margin-bottom: var(--s-7); }
.cierre__ctas { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; }
.tel { display: inline-flex; align-items: center; gap: .5em; color: var(--crema); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; font-variant-numeric: tabular-nums; min-height: 48px; font-size: 1.0625rem; }
.tel .ico { width: 1.3em; height: 1.3em; }

.colabora { margin: 0; padding: var(--s-5) var(--gutter); text-align: center; font-size: var(--t-xs); color: var(--texto-suave); border-top: .5px solid var(--linea); background: var(--crema); }

/* ---------- WhatsApp flotante y barra móvil ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--antracita); color: var(--blanco);
  box-shadow: 0 2px 10px rgba(0,0,0,.18); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.wa-float .ico { width: 28px; height: 28px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.no-js .wa-float { opacity: 1; transform: none; pointer-events: auto; }
.wa-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--wa-dot); border: 1.5px solid var(--antracita); }
.mbar { display: none; }
@media (max-width: 767px) {
  .wa-float { display: none; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--antracita); border-top: .5px solid #555; padding-bottom: env(safe-area-inset-bottom); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 56px; color: var(--blanco); text-decoration: none; font-size: 1rem; }
  .mbar a + a { border-left: .5px solid #666; }
  .mbar .ico { width: 22px; height: 22px; }
  body { padding-bottom: 56px; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 150ms linear; }
  .js .tl-line--a { stroke-dashoffset: 0; transition: none !important; }
  .js .tl-mark, .js .tl-break, .js .tl-after { opacity: 1; transition: none !important; }
  .js .tl-line--b { clip-path: none; transition: none !important; }
  .btn, .btn .gt, .wa-float, .ficha__toggle { transition: none; }
}

/* =========================================================
   FOOTER · réplica fiel de https://www.josepsirera.es
   ========================================================= */
.o-mainFooter { background: #fbfbfb; color: #000; border-bottom: 7px solid #1d1d1b; font-family: var(--f-footer); font-size: 16px; line-height: 1.4; padding-top: 32px; }
.o-mainFooter a { color: #000; }
.o-mainFooter .wrap { max-width: 1345px; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; padding: 32px 16px 50px; gap: 64px; row-gap: 16px; }
.o-mainFooter__container { display: flex; flex-direction: column; gap: 32px; }
.o-mainFooter__container:last-child { max-width: 370px; }
.o-mainFooter__groupTitle { display: block; font-family: "Inter", sans-serif; font-weight: 700; font-size: 15px; color: #1d1d1b; margin-bottom: 8px; }
.m-mainFooter__item { display: flex; flex-direction: column; padding-top: 8px; gap: 8px; }
.m-contact__mail, .m-contact__telf { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.a-icon { width: 16px; height: 16px; color: #1d1d1b; }
.o-legalNav__list { list-style: none; margin: 0; padding: 8px 0 0; }
.o-legalNav__item:not(:last-child) { margin-bottom: 8px; }
.o-legalNav__link { text-decoration: none; display: flex; max-width: 250px; }
.o-legalNav__link:hover { text-decoration: underline; }
.o-mainFooter__social { text-align: center; }
.m-socialLinks { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.m-socialLinks__item { display: flex; justify-content: center; align-items: center; width: 48px; height: 48px; color: #1d1d1b; text-decoration: none; }
.m-socialLinks__item svg { width: 40px; height: 40px; }
.o-mainFooter__logo { display: flex; flex-flow: wrap; align-items: center; justify-content: center; gap: 32px; max-width: 480px; }
.o-mainFooter__logo .m-logo__link { display: flex; gap: 16px; }
.o-mainFooter__logo .m-logoFooter__img { max-height: 58px; width: auto; }
.o-mainFooter__logo .m-logoFooter__img--col { max-height: 72px; }
.o-mainFooter__logo .-aCenter { text-align: center; }
.-aCenter { text-align: center; }
.o-mainFooter__container.-aCenter { align-items: center; }
.m-logoBannerFooter__img { max-width: 330px; width: 100%; display: block; margin: 0 auto; }
.o-footerInfo { padding: 16px; }
.o-footerInfo .row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.o-footerInfo .col-50 { width: 50%; display: flex; flex-direction: column; justify-content: start; align-items: center; gap: 16px; padding: 16px; }
.o-footerInfo .col-50 p { text-align: center; max-width: 700px; text-wrap: balance; margin: 0; }
.o-footerInfo .col-50 img { max-width: 350px; width: 100%; height: auto; margin: 0 auto; }
.o-footerInfo em { font-style: italic; }
.o-footerInfo a { overflow-wrap: anywhere; }
.o-mainFooter__copyright { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; margin-top: 16px; color: #000; padding: 0 16px 16px; }
.o-mainFooter__copyright p { margin: 8px 0 0; }
.a-kdBanner img { max-width: 560px; width: 100%; }
@media (max-width: 768px) {
  .o-mainFooter .wrap { flex-direction: column; gap: 32px; }
  .o-mainFooter__container:nth-child(2) { order: -1; max-width: 300px; }
  .o-footerInfo .col-50 { width: 100%; }
}

/* =========================================================
   IMPRESIÓN · propuesta A4
   ========================================================= */
@page { size: A4; margin: 2.5cm; }
@media print {
  :root { --gutter: 0px; }
  html, body { background: #fff; font-size: 10.5pt; }
  body { padding: 0 !important; }
  .site-header, .wa-float, .mbar, .skip, .site-nav { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero { display: block; min-height: 0; }
  .hero__text { padding: 0 0 12pt; }
  .hero h1 { font-size: 30pt; }
  .hero__media img { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .segundo, .cierre { background: #fff; color: var(--antracita); padding: 18pt 0; }
  .segundo__text p, .segundo .frase, .segundo .dato, .cierre__sub, .cierre__h { color: var(--antracita); }
  .segundo h2, .programas h2, .como h2, .quienes h2 { font-size: 22pt; }
  .tl-line, .tl-mark circle { stroke: var(--antracita); }
  .tl-mark circle { fill: #fff; }
  .tl-time, .tl-lab, .tl-time--break, .tl-lab--break { fill: var(--antracita); }
  .timeline__cap { color: var(--antracita); }
  .js .tl-line--a { stroke-dashoffset: 0 !important; }
  .js .tl-mark, .js .tl-break, .js .tl-after { opacity: 1 !important; }
  .js .tl-line--b { clip-path: none !important; stroke: var(--antracita); }
  .segundo__detalle, .tira, .quienes__foto img { max-height: 9cm; }
  .segundo__detalle { width: 100%; margin: 12pt 0 0; }
  .porque, .programas, .sectores, .como, .quienes, .norma, .faq { padding: 18pt 0; }
  .ficha { display: block; padding: 10pt 0; break-inside: auto; background: #fff !important; }
  .ficha summary { break-after: avoid; }
  .ficha__datos > div, .ficha__valor { break-inside: avoid; }
  a.pill.wa, .o-mainFooter { display: none !important; }
  .colabora { background: #fff; border-top: 1px solid var(--linea); }
  .sect { border-left: 1px solid var(--linea); }
  .sect__i { min-height: 0; }
  .ficha details { padding: 0 !important; }
  .ficha__media { display: none !important; }
  .ficha__toggle, .faq__list summary .ico { display: none; }
  .ficha summary { border-top: 1px solid var(--antracita); }
  .steps3__item, .compare__row, .proceso li, .persona, .faq__list details { break-inside: avoid; }
  .tira { display: none; }
  .quienes__foto img { aspect-ratio: 21 / 9; }
  h2, h3 { break-after: avoid; }
  /* Los botones de WhatsApp pasan a texto */
  a.wa { background: none !important; color: var(--antracita) !important; border: 1px solid var(--antracita) !important; border-radius: 2px !important; min-height: 0; padding: 4pt 8pt !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 10pt !important; filter: none !important; }
  a.wa > *, a.wa .ico, a.wa .gt { display: none !important; }
  a.wa { font-size: 0 !important; }
  a.wa::after { content: "WhatsApp 694 249 845"; font-size: 10pt; }
  .tel { color: var(--antracita); }
}
