/* ---------- Tipografia autoalojada (nada se carga de Google: RGPD) ----------
   Source Serif 4 para titulares, Source Sans 3 (variable) para todo lo demas. Subconjunto latin. */
@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fuentes/source-serif-4-600.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 Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url('/fuentes/source-sans-3.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;
}

/* Nomos · hoja de estilos única
   Sin fuentes externas, sin scripts de terceros, sin cookies.
   Color de marca #1F4E5F, el mismo del config.json del a11y-auditor. */

:root {
  --marca: #1F4E5F;
  --marca-oscuro: #143843;
  --marca-claro: #E8F1F3;
  --tinta: #16232A;
  --tinta-suave: #47585F;
  --linea: #D8E2E5;
  --fondo: #FFFFFF;
  --fondo-alt: #F4F8F9;
  --acento: #9A4A16;
  --acento-fondo: #FDF3EC;
  --ok: #1E6B45;
  --ok-fondo: #EAF5EF;
  --banda: #143843;
  --banda-acento: #9BD5E6;
  /* CTA: azul oceano. Texto blanco encima da 7.25:1 (AAA). El terracota se queda
     como color de aviso y de foco, no de accion. */
  --cta: #1C5B87;
  --cta-hover: #164A6D;
  --cta-texto: #FFFFFF;
  /* Sobre las bandas oscuras ningun azul oscuro despega 3:1, asi que el boton se
     invierte: azul claro con texto oscuro. Constante en los dos modos. */
  --cta-banda: #8FD3E5;
  --cta-banda-hover: #B0E4F2;
  --cta-banda-texto: #0E181C;
  --foco-banda: #FFFFFF;
  --ancho: 74rem;
  --prosa: 38rem;
  --radio: 6px;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sombra: 0 1px 2px rgba(22,35,42,.06), 0 8px 24px -12px rgba(22,35,42,.25);
  --sombra-alta: 0 2px 4px rgba(22,35,42,.08), 0 18px 40px -16px rgba(22,35,42,.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --marca: #7FC5D6;
    --marca-oscuro: #A9DCE8;
    --marca-claro: #14252B;
    --tinta: #E8EFF1;
    --tinta-suave: #A9BAC1;
    --linea: #2C3E45;
    --fondo: #0E181C;
    --fondo-alt: #142127;
    --acento: #E8A87C;
    --acento-fondo: #241A13;
    --ok: #7FCFA4;
    --ok-fondo: #12241A;
    --banda: #0B1A20;
    --banda-acento: #9BD5E6;
    --cta: #8FD3E5;
    --cta-hover: #B0E4F2;
    --cta-texto: #0E181C;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.env { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 1.25rem; }
.prosa { max-width: var(--prosa); }

/* ---------- Enlace de salto ---------- */
.saltar {
  position: absolute; left: -9999px;
  background: var(--marca); color: #fff;
  padding: .75rem 1.25rem; z-index: 100; border-radius: 0 0 var(--radio) 0;
}
.saltar:focus { left: 0; top: 0; }

/* ---------- Foco visible en todo ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 2px;
}

/* ---------- Cabecera ---------- */
.cab {
  border-bottom: 1px solid var(--linea);
  background: color-mix(in srgb, var(--fondo) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.cab-in {
  display: grid; grid-template-columns: auto 1fr auto; gap: .5rem 2rem;
  align-items: center; padding-top: .7rem; padding-bottom: .7rem;
}
.marca { margin: 0; line-height: 1.1; }
.marca a { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.marca a:hover strong { text-decoration: underline; text-underline-offset: .18em; }
.logo { height: 2.25rem; width: auto; flex-shrink: 0; color: var(--marca); }
.marca-texto { display: flex; flex-direction: column; }
.marca strong {
  font-family: var(--sans); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -.02em; color: var(--marca);
}
.marca small { font-size: .78rem; color: var(--tinta-suave); letter-spacing: .01em; margin-top: .2rem; }

.cab nav { justify-self: center; min-width: 0; }
.cab nav ul {
  display: flex; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; font-size: .95rem;
}
.cab nav a { color: var(--tinta); text-decoration: none; padding: .35rem 0; white-space: nowrap; display: inline-block; }
.cab nav a:hover { color: var(--marca); text-decoration: underline; text-underline-offset: .3em; }
.cab nav a[aria-current="page"] { color: var(--marca); font-weight: 700; box-shadow: inset 0 -2px 0 var(--marca); }
.boton-cab { padding: .6rem 1rem; font-size: .93rem; }
.boton-cab span { display: inline; }

@media (max-width: 58rem) {
  .cab-in { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: .35rem 1rem; padding-top: .6rem; padding-bottom: .5rem; }
  .marca { grid-column: 1; grid-row: 1; }
  .boton-cab { grid-column: 2; grid-row: 1; justify-self: end; }
  .cab nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; overflow-x: auto; -webkit-overflow-scrolling: touch;
             scrollbar-width: none; margin: 0 -1.25rem; padding: 0 1.25rem; }
  .cab nav::-webkit-scrollbar { display: none; }
  .cab nav ul { gap: 1.1rem; padding-bottom: .3rem; }
  .logo { height: 1.9rem; }
  .marca strong { font-size: 1.3rem; }
  .marca small { display: none; }
}

/* ---------- Secciones ---------- */
section { padding: 3.25rem 0; }
section.alt { background: var(--fondo-alt); border-block: 1px solid var(--linea); }
.hero { padding: 4rem 0 3.25rem; }

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--tinta); letter-spacing: -.012em; text-wrap: balance; }
h3 { line-height: 1.25; color: var(--tinta); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin: 0 0 .9rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
p { margin: 0 0 1.05rem; max-width: var(--prosa); }
.hero h1 { max-width: 22ch; }

.entrada {
  font-size: 1.2rem; line-height: 1.55; color: var(--tinta);
  max-width: 42rem;
}
.sobretitulo {
  text-transform: uppercase; letter-spacing: .09em;
  font-size: .78rem; font-weight: 700; color: var(--marca);
  margin: 0 0 .6rem;
}

a { color: var(--marca); text-underline-offset: .15em; }
a:hover { color: var(--marca-oscuro); }

/* ---------- Botones ---------- */
.boton, .boton-sec {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; font-weight: 700; line-height: 1.2;
  padding: .9rem 1.5rem; border-radius: var(--radio); font-size: 1.02rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.boton { background: var(--cta); border-color: var(--cta); color: var(--cta-texto); box-shadow: var(--sombra); }
.boton:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--cta-texto); transform: translateY(-2px); box-shadow: var(--sombra-alta); }
.boton:active { transform: translateY(0); box-shadow: var(--sombra); }
.boton-sec { background: transparent; color: var(--marca); border-color: var(--marca); }
.boton-sec:hover { background: var(--marca-claro); color: var(--marca-oscuro); transform: translateY(-2px); }
.boton-sec:active { transform: translateY(0); }
.boton-claro { color: #fff; border-color: rgba(255,255,255,.75); }
.boton-claro:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.boton svg, .boton-sec svg { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: currentColor; }
.acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 .5rem; }
.bajo-boton { font-size: .9rem; color: var(--tinta-suave); margin-top: .4rem; }
@media (prefers-reduced-motion: reduce) {
  .boton, .boton-sec { transition: none; }
  .boton:hover, .boton-sec:hover { transform: none; }
}

/* ---------- Rejilla de tarjetas ---------- */
.rejilla {
  display: grid; gap: 1.25rem; margin: 2rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.tarjeta {
  border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 1.5rem; background: var(--fondo);
  display: flex; flex-direction: column;
}
.tarjeta h3 { margin-top: 0; font-size: 1.2rem; color: var(--marca); }
.tarjeta p { flex: 1; font-size: .98rem; }
.tarjeta .etiqueta {
  align-self: flex-start; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  background: var(--marca-claro); color: var(--marca-oscuro);
  padding: .2rem .55rem; border-radius: 999px; margin-bottom: .8rem;
}

/* ---------- Bloque de respuesta (SEO/AEO) ---------- */
.respuesta {
  background: var(--marca-claro);
  border-left: 5px solid var(--marca);
  border-radius: 0 var(--radio) var(--radio) 0;
  padding: 1.35rem 1.5rem; margin: 0 0 2rem; max-width: 44rem;
}
.respuesta p { margin: 0; font-size: 1.1rem; line-height: 1.55; max-width: none; }

/* ---------- Datos y cifras ---------- */
.cifras {
  display: grid; gap: 1rem; margin: 2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  max-width: 46rem;
}
.cifra {
  border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 1.1rem; background: var(--fondo);
}
.cifra b {
  display: block; font-size: 2.1rem; line-height: 1.1;
  color: var(--marca); font-variant-numeric: tabular-nums;
}
.cifra span { display: block; font-size: .9rem; color: var(--tinta-suave); margin-top: .3rem; }

/* Barras de datos (sin imágenes ni scripts) */
.barras { list-style: none; margin: 1.5rem 0; padding: 0; max-width: 34rem; }
.barras li { margin-bottom: .9rem; font-size: .95rem; }
.barras .eti { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.barras .pista { background: var(--linea); border-radius: 3px; height: 12px; overflow: hidden; }
.barras .valor { display: block; height: 100%; background: var(--marca); }
.barras .valor.grave { background: var(--acento); }

/* ---------- Listas ---------- */
.lista { padding-left: 1.15rem; max-width: var(--prosa); }
.lista li { margin-bottom: .55rem; }
.marcas { list-style: none; padding: 0; max-width: var(--prosa); }
.marcas li { position: relative; padding-left: 1.75rem; margin-bottom: .7rem; }
.marcas li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: .7rem; height: .35rem; border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg);
}

/* ---------- Tablas ---------- */
.tabla-env { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: .97rem; }
caption { text-align: left; font-weight: 600; margin-bottom: .6rem; color: var(--tinta-suave); font-size: .93rem; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--linea); vertical-align: top; }
thead th { background: var(--fondo-alt); border-bottom: 2px solid var(--linea); }
tbody th { font-weight: 600; }
td .si { color: var(--ok); font-weight: 700; }
td .no { color: var(--acento); font-weight: 700; }

/* ---------- Avisos ---------- */
.aviso, .nota {
  border-radius: var(--radio); padding: 1.15rem 1.35rem;
  margin: 1.75rem 0; max-width: 44rem;
}
.aviso { background: var(--acento-fondo); border: 1px solid var(--acento); }
.nota { background: var(--fondo-alt); border: 1px solid var(--linea); }
.aviso p:last-child, .nota p:last-child { margin-bottom: 0; }
.aviso p, .nota p { max-width: none; }

/* ---------- Fuentes y fechas ---------- */
.fuentes { font-size: .92rem; color: var(--tinta-suave); }
.fuentes ul { padding-left: 1.15rem; }
.fuentes li { margin-bottom: .4rem; }
.revisado {
  font-size: .88rem; color: var(--tinta-suave);
  border-top: 1px solid var(--linea); padding-top: 1rem; margin-top: 2.5rem;
}

/* ---------- Migas ---------- */
.miga { font-size: .88rem; padding: 1rem 0 0; }
.miga ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.miga li::after { content: "›"; margin-left: .4rem; color: var(--tinta-suave); }
.miga li:last-child::after { content: ""; }
.miga [aria-current="page"] { color: var(--tinta-suave); }

/* ---------- Formulario ---------- */
form { max-width: 34rem; }
.campo { margin-bottom: 1.4rem; }
.campo label { display: block; font-weight: 600; margin-bottom: .35rem; }
.campo .ayuda { display: block; font-size: .88rem; color: var(--tinta-suave); margin-bottom: .4rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], select, textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; font-size: 1rem;
  color: var(--tinta); background: var(--fondo);
  border: 1px solid var(--tinta-suave); border-radius: var(--radio);
}
textarea { min-height: 7rem; resize: vertical; }
fieldset { border: 1px solid var(--linea); border-radius: var(--radio); padding: 1rem 1.15rem; margin: 0 0 1.4rem; }
legend { font-weight: 600; padding: 0 .4rem; }
.opcion { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.opcion:last-child { margin-bottom: 0; }
.opcion input { margin-top: .35rem; flex-shrink: 0; }
.opcion label { font-weight: 400; margin: 0; }
button[type="submit"] {
  font: inherit; font-weight: 600; font-size: 1.02rem; cursor: pointer;
  background: var(--cta); color: var(--cta-texto);
  border: 2px solid var(--marca); border-radius: var(--radio);
  padding: .85rem 1.5rem;
}
button[type="submit"]:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-campo { color: var(--acento); font-weight: 600; font-size: .93rem; display: block; margin-top: .35rem; }
.resultado-filtro { margin: 1.5rem 0; }

/* ---------- Pie ---------- */
.pie {
  border-top: 1px solid var(--linea); background: var(--fondo-alt);
  padding: 2.5rem 0; margin-top: 3.5rem; font-size: .95rem;
}
.pie-rejilla { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.pie h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tinta-suave); margin-bottom: .7rem; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { margin-bottom: .45rem; }
.pie a { color: var(--tinta); }
.pie a:hover { color: var(--marca); }
.pie p { max-width: none; }
.mini { font-size: .87rem; color: var(--tinta-suave); border-top: 1px solid var(--linea); padding-top: 1.25rem; margin-top: 2rem; }

@media (max-width: 40rem) {
  section { padding: 2.5rem 0; }
  .hero { padding: 2.75rem 0 2.25rem; }
}

/* ---------- Panel anclado de servicios ----------
   El visual es DECORATIVO (aria-hidden): toda la informacion vive en el texto,
   que esta siempre visible. Asi el efecto no puede dejar contenido inaccesible. */
.anc {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start; margin-top: 2rem;
}
.anc-visual {
  position: sticky; top: 5.5rem;
  aspect-ratio: 4 / 3; display: grid;
  border-radius: 10px; box-shadow: var(--sombra-alta);
  background: var(--marca-oscuro); overflow: hidden;
}
.anc-panel {
  grid-area: 1 / 1;
  opacity: 0; transition: opacity .45s ease;
}
.anc-panel[data-activo] { opacity: 1; }
.anc-panel img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Sin JS solo se ve el primero, que ya viene marcado en el HTML */
.anc-bloques { display: grid; gap: 1.25rem; }
.anc-bloque {
  border: 1px solid var(--linea); border-radius: var(--radio);
  background: var(--fondo); padding: 1.5rem 1.6rem;
  border-left: 3px solid var(--linea);
  transition: border-left-color .35s ease;
}
.anc-bloque[data-activo] { border-left-color: var(--marca); }
.anc-bloque h3 { margin-top: 0; }
.anc-bloque p:last-child { margin-bottom: 0; }
.anc-gana {
  list-style: none; margin: 1.1rem 0 1.1rem; padding: 0;
  display: grid; gap: .5rem; font-size: .95rem;
}
.anc-gana li { padding-left: 1.5rem; position: relative; }
.anc-gana li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .7rem; height: .35rem; border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.anc-gana strong { font-weight: 700; }


@media (max-width: 58rem) {
  /* El visual es decorativo: en movil desaparece en vez de romper el sticky */
  .anc { grid-template-columns: 1fr; gap: 1.25rem; }
  .anc-visual { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .anc-panel, .anc-bloque { transition: none; }
}

/* ================= LANDING (home) ================= */

/* ---------- Hero fotografico ---------- */
.hero-foto {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--banda); color: #fff; padding: 0;
}
.hero-foto .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%; z-index: -2;
}
.hero-foto::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20,56,67,.95) 0%, rgba(20,56,67,.88) 40%, rgba(20,56,67,.28) 100%);
}
.hero-in { padding-top: clamp(4.5rem, 11vw, 8rem); padding-bottom: clamp(3.75rem, 9vw, 6.5rem); }
.hero-foto .sobretitulo { color: var(--banda-acento); }
.hero-foto h1 { color: #fff; max-width: 19ch; font-size: clamp(2.2rem, 5.6vw, 3.7rem); margin-bottom: 1.25rem; }
.hero-foto .entrada { color: rgba(255,255,255,.92); max-width: 40rem; font-size: 1.2rem; }
.hero-foto .entrada strong { color: #fff; }
.hero-foto .bajo-boton { color: rgba(255,255,255,.78); }
.hero-foto .acciones { margin-top: 1.9rem; }
@media (max-width: 40rem) {
  .hero-foto::before { background: linear-gradient(180deg, rgba(20,56,67,.93) 0%, rgba(20,56,67,.9) 100%); }
  .hero-foto .hero-img { object-position: center; }
}

/* ---------- Banda de cifras ---------- */
.banda-cifras { padding: 0; background: var(--fondo-alt); border-bottom: 1px solid var(--linea); }
.banda-cifras .env { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 2.5rem; }
.banda-cifras div { padding: 1.5rem 0; }
.banda-cifras div + div { border-left: 1px solid var(--linea); padding-left: 2.5rem; }
.banda-cifras b {
  display: block; font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1;
  color: var(--marca); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.banda-cifras span { display: block; font-size: .93rem; color: var(--tinta-suave); margin-top: .45rem; line-height: 1.4; max-width: 24rem; }
@media (max-width: 48rem) {
  .banda-cifras .env { grid-template-columns: 1fr; }
  .banda-cifras div { padding: 1.1rem 0; }
  .banda-cifras div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--linea); }
}

/* ---------- Cabecera de seccion ---------- */
.cab-sec { max-width: 44rem; margin-bottom: 2.25rem; }
.cab-sec .sobretitulo { margin-bottom: .5rem; }
.cab-sec p { font-size: 1.1rem; color: var(--tinta-suave); }
.centrado { text-align: center; margin-left: auto; margin-right: auto; }
.centrado h2, .centrado p { margin-left: auto; margin-right: auto; }

/* ---------- Tarjetas de dolor ---------- */
.dolor .tarjeta { transition: transform .2s ease, box-shadow .2s ease; box-shadow: var(--sombra); }
.dolor .tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.dolor .tarjeta h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--tinta); }
.dolor .tarjeta p { color: var(--tinta-suave); }
.dolor .tarjeta a { font-weight: 700; text-decoration: none; }
.dolor .tarjeta a:hover { text-decoration: underline; }
.etiqueta.grave { background: var(--acento-fondo); color: var(--acento); }
.etiqueta.ok { background: var(--ok-fondo); color: var(--ok); }

/* ---------- Pasos ---------- */
.pasos { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: paso; }
.pasos li { position: relative; padding: 1.5rem 1.5rem 1.5rem 1.6rem; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--fondo); }
.pasos li::before {
  counter-increment: paso; content: counter(paso);
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--marca); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 1rem;
}
.pasos h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.pasos p { margin: 0; color: var(--tinta-suave); font-size: .98rem; max-width: none; }
.pasos .gratis { display: inline-block; margin-left: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ok); background: var(--ok-fondo); padding: .15rem .5rem; border-radius: 999px; vertical-align: middle; }

/* ---------- Dos columnas con foto ---------- */
.dos-col { display: grid; gap: 2.75rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.dos-col.invertido > .foto { order: 2; }
.foto { margin: 0; border-radius: 10px; overflow: hidden; box-shadow: var(--sombra-alta); background: var(--marca-oscuro); aspect-ratio: 3 / 2; }
.foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.foto.retrato { aspect-ratio: 4 / 5; max-width: 26rem; justify-self: center; }
.foto.retrato img { object-position: center 20%; }
.retrato-lateral { float: right; width: 15rem; margin: .35rem 0 1.25rem 2rem; }
@media (max-width: 48rem) { .retrato-lateral { float: none; width: 100%; max-width: 18rem; margin: 0 0 1.5rem; } }
.foto figcaption { padding: .6rem .9rem; font-size: .82rem; color: var(--tinta-suave); background: var(--fondo); border-top: 1px solid var(--linea); }
.dos-col .cifras { max-width: none; margin: 1.5rem 0 0; }
@media (max-width: 58rem) {
  .dos-col { grid-template-columns: 1fr; gap: 1.75rem; }
  .dos-col.invertido > .foto { order: -1; } /* en movil, la cara antes que el texto */
}

/* ---------- CTA final ---------- */
.cta-final { background: var(--banda); color: #fff; padding: 4.5rem 0; }
.cta-final h2 { color: #fff; }
.cta-final .entrada { color: rgba(255,255,255,.9); }
.cta-final .sobretitulo { color: var(--banda-acento); }
.cta-final .bajo-boton { color: rgba(255,255,255,.75); }
.cta-final .tel { color: #fff; font-weight: 700; text-decoration-color: rgba(255,255,255,.5); }

/* ---------- Revelado al entrar (progresivo: sin JS todo esta visible) ---------- */
.js .rev { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .rev.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rev { opacity: 1; transform: none; transition: none; }
  .dolor .tarjeta { transition: none; }
  .dolor .tarjeta:hover { transform: none; }
}

/* ---------- CTA sobre las bandas oscuras ----------
   Ningun azul con texto blanco llega a 3:1 contra #143843 (los rangos de luminancia
   no se solapan), asi que aqui el boton se invierte. Ademas destaca mas: 7.5:1
   contra la banda, frente al 2:1 que daba el terracota. */
.hero-foto .boton,
.cta-final .boton {
  background: var(--cta-banda); border-color: var(--cta-banda); color: var(--cta-banda-texto);
}
.hero-foto .boton:hover,
.cta-final .boton:hover {
  background: var(--cta-banda-hover); border-color: var(--cta-banda-hover); color: var(--cta-banda-texto);
}
/* El anillo de foco terracota solo daba 2:1 sobre las bandas oscuras. En blanco, 12.5:1. */
.hero-foto a:focus-visible, .hero-foto button:focus-visible,
.cta-final a:focus-visible, .cta-final button:focus-visible {
  outline-color: var(--foco-banda);
}

/* ---------- Preguntas frecuentes ----------
   <details> nativo: funciona sin JavaScript, con teclado y con lector de pantalla. */
.faq-indice ul { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.faq-indice a {
  display: inline-block; padding: .5rem .95rem; border: 1px solid var(--linea);
  border-radius: 999px; text-decoration: none; font-size: .93rem; font-weight: 600;
  color: var(--tinta); background: var(--fondo); transition: border-color .18s ease, color .18s ease;
}
.faq-indice a:hover { border-color: var(--cta); color: var(--cta); }

.faq-lista { display: grid; gap: .75rem; max-width: 46rem; }
.faq-item {
  border: 1px solid var(--linea); border-radius: var(--radio);
  background: var(--fondo); overflow: hidden;
}
.faq-item[open] { border-color: var(--marca); }
.faq-item summary {
  display: flex; align-items: flex-start; gap: .9rem; justify-content: space-between;
  padding: 1.05rem 1.25rem; cursor: pointer; font-weight: 700; font-size: 1.05rem;
  line-height: 1.35; color: var(--tinta); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: .7rem; height: .7rem; margin-top: .4rem;
  border-right: 2.5px solid var(--marca); border-bottom: 2.5px solid var(--marca);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--marca); }
.faq-resp { padding: 0 1.25rem 1.15rem; }
.faq-resp p { margin: 0 0 .8rem; max-width: none; color: var(--tinta-suave); }
.faq-resp p:last-child { margin-bottom: 0; }
.faq-resp strong { color: var(--tinta); }
@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after, .faq-indice a { transition: none; }
}

/* Credenciales en "Quien hay detras" */
.credenciales { list-style: none; margin: 1.25rem 0 1.25rem; padding: 0; display: grid; gap: .6rem; max-width: var(--prosa); }
.credenciales li { padding-left: 1rem; border-left: 2px solid var(--linea); font-size: .98rem; color: var(--tinta-suave); }
.credenciales strong { color: var(--tinta); }

/* Bloque compacto de dudas en la home */
.faq-home { max-width: 46rem; }
.faq-home .faq-lista { margin-bottom: 1.75rem; }
