/* ─────────────────────────────────────────────────────────────────────────
   Plantilla de servicio — páginas de public/servicios/ (salvo el índice).

   Solo actúa en las páginas que llevan <html class="e27 e27-servicio"> y se
   enlaza después de elevacion.css, que pone la barra, la cabecera navy y las
   variables --e27-*. Aquí vive todo lo propio de la plantilla, para que las
   páginas no lleven estilos en línea: ficha de la cabecera, secciones
   numeradas, tarjetas de pilares, línea de tiempo del modelo de trabajo,
   columnas enfrentadas, banda de contacto y cierre.

   Sin JavaScript. El HTML trae el estado final; lo único que se mueve (el
   hilo de la línea de tiempo y los puntos del esquema) va ligado al
   desplazamiento con animation-timeline, solo donde el navegador lo admite y
   sin prefers-reduced-motion.
   ───────────────────────────────────────────────────────────────────────── */

html.e27-servicio {
  --sv-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --sv-lienzo:
    radial-gradient(ellipse 70% 60% at 85% 100%, rgba(248, 86, 22, 0.14), transparent 62%),
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(74, 95, 191, 0.24), transparent 60%);
}
html.e27-servicio .container {
  max-width: 1100px;
  counter-reset: sv-seccion;
}
html.e27-servicio h3,
html.e27-servicio h4 {
  font-family: var(--e27-titulares);
}

/* ── Cabecera ──────────────────────────────────────────────────────────── */
html.e27-servicio .page-hero {
  padding-bottom: 56px;
  margin-bottom: 0;
}
html.e27-servicio .page-hero h1 {
  font-size: clamp(30px, 3.5vw, 42px);
}
.sv-hero {
  display: grid;
  gap: 24px;
}
.sv-hero__pie .lead {
  margin: 0 0 26px;
  max-width: 34em;
}
.sv-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.sv-enlace {
  color: var(--e27-naranja-suave);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.sv-enlace:hover {
  color: #fff;
}

.sv-ficha {
  padding: 20px 24px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}
.sv-rotulo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--sv-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.sv-rotulo::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--e27-naranja);
}
.sv-ficha dl {
  display: grid;
  margin: 0;
}
.sv-ficha dl > div {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.sv-ficha dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sv-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--e27-naranja-suave);
}
.sv-ficha dt svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.sv-ficha dd {
  margin: 4px 0 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}
@media (min-width: 960px) {
  .sv-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    /* Si la ficha es más alta que el titular, el hueco queda bajo los botones */
    grid-template-rows: auto 1fr;
    gap: 0 64px;
    align-items: start;
  }
  .sv-hero__cab,
  .sv-hero__pie {
    grid-column: 1;
  }
  .sv-ficha {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}
/* En pantallas estrechas la ficha va justo bajo el titular y en dos columnas,
   para que sus cuatro datos se lean sin desplazarse. */
@media (max-width: 959px) {
  .sv-ficha {
    padding: 16px 16px 4px;
  }
  .sv-ficha dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  .sv-ficha dl > div {
    padding: 12px 0;
  }
  .sv-ficha dd {
    font-size: 14px;
  }
}
@media (max-width: 339px) {
  .sv-ficha dl {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Secciones ─────────────────────────────────────────────────────────── */
.sv-entrada {
  display: grid;
  gap: 18px 56px;
  padding: 56px 0 64px;
}
.sv-entrada p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}
.sv-entrada > p:first-of-type {
  color: var(--e27-navy);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
}
/* Resumen de la página: ocupa las dos columnas de la entrada */
.sv-resumen {
  grid-column: 1 / -1;
  padding: 20px 24px;
  border: 1px solid var(--e27-borde);
  border-left: 3px solid var(--e27-naranja);
  border-radius: 0 16px 16px 0;
  background: #fff;
}
.sv-entrada .sv-resumen p {
  max-width: 80ch;
  font-size: 17px;
}
.sv-entrada--una > p {
  max-width: 72ch;
}
/* Entrada de un párrafo, o de tres o más: el primero a lo ancho y el resto
   repartido en dos columnas de texto. */
@media (min-width: 900px) {
  .sv-entrada--una {
    display: block;
    columns: 2;
    column-gap: 56px;
  }
  .sv-entrada--una > .sv-resumen,
  .sv-entrada--una > p:first-of-type {
    column-span: all;
    margin-bottom: 20px;
  }
  .sv-entrada--una > p {
    break-inside: avoid;
    margin-bottom: 18px;
  }
  .sv-entrada--una > p:last-child {
    margin-bottom: 0;
  }
}
.sv-seccion {
  padding: 72px 0;
  border-top: 1px solid var(--e27-borde);
}
.sv-h2 {
  margin: 0 0 20px;
  color: var(--e27-navy);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}
/* El número de sección, como en el ritmo de página de elevacion.css */
.sv-h2::before {
  counter-increment: sv-seccion;
  content: counter(sv-seccion, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  color: var(--e27-naranja-aa);
  font-family: var(--sv-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  word-spacing: 0;
}
.sv-prosa p {
  margin: 0 0 18px;
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
}
.sv-prosa > :last-child {
  margin-bottom: 0;
}
.sv-prosa strong {
  color: var(--e27-navy);
  font-weight: 600;
}
.sv-prosa ul,
.sv-prosa ol {
  max-width: 68ch;
  margin: 0 0 18px;
  padding-left: 22px;
}
.sv-prosa li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.7;
}
.sv-prosa h3 {
  margin: 30px 0 10px;
  color: var(--e27-navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.sv-prosa > h3:first-child {
  margin-top: 0;
}
/* Un enlace dentro de una lista, una tabla o una ficha se distingue por el
   subrayado, como los de los párrafos en elevacion.css. */
html.e27-servicio :is(li, td, dd) a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.sv-prosa blockquote {
  max-width: 68ch;
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid var(--e27-borde);
  border-left: 3px solid var(--e27-naranja);
  border-radius: 0 12px 12px 0;
  background: #fff;
  color: var(--e27-navy);
  font-size: 16px;
  font-style: italic;
  box-shadow: 0 1px 2px rgba(32, 32, 62, 0.04);
}
@media (min-width: 900px) {
  .sv-entrada:not(.sv-entrada--una) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Título a la izquierda y texto a la derecha */
  .sv-seccion--partida {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    column-gap: 72px;
    align-items: start;
  }
  .sv-seccion--partida > .sv-h2 {
    margin: 0;
  }
}

/* ── Pilares ───────────────────────────────────────────────────────────── */
.sv-subtitulo {
  margin: 0;
  color: var(--e27-gris-texto);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.sv-pilares {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: sv-pilar;
}
.sv-pilar {
  position: relative;
  padding: 26px;
  border: 1px solid var(--e27-borde);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(32, 32, 62, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sv-pilar:hover {
  border-color: rgba(196, 69, 17, 0.45);
  box-shadow: 0 18px 40px -24px rgba(32, 32, 62, 0.28);
}
.sv-pilar::after {
  counter-increment: sv-pilar;
  content: counter(sv-pilar, decimal-leading-zero);
  position: absolute;
  top: 26px;
  right: 26px;
  color: var(--e27-gris-texto);
  font-family: var(--sv-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.sv-pilar__icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #FFF1E8;
  color: var(--e27-naranja-aa);
}
.sv-pilar__icono svg {
  width: 26px;
  height: 26px;
}
.sv-pilar h3,
.sv-pilar h4 {
  margin: 0 0 8px;
  color: var(--e27-navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.sv-pilar h3,
.sv-pilar h4 {
  padding-right: 36px;
}
.sv-pilar__icono + h3,
.sv-pilar__icono + h4 {
  padding-right: 0;
}
.sv-pilar p,
.sv-pilar li {
  margin: 0;
  color: var(--e27-gris-texto);
  font-size: 15px;
  line-height: 1.65;
}
.sv-pilar p + p,
.sv-pilar p + ul,
.sv-pilar ul + p {
  margin-top: 10px;
}
.sv-pilar ul {
  margin: 0;
  padding-left: 18px;
}
.sv-pilar li + li {
  margin-top: 6px;
}
.sv-pilar strong {
  color: var(--e27-navy);
  font-weight: 600;
}
/* Cuatro tarjetas o tarjetas con mucho texto: de dos en dos */
.sv-pilares--dos {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

/* ── Modelo de trabajo: línea de tiempo y esquema ──────────────────────── */
/* Mismo lenguaje que el recorrido de /metodologia/: tarjetas blancas a un lado
   y un esquema navy que se queda fijo al otro. */
.sv-modelo {
  display: grid;
  gap: 32px;
  margin-top: 16px;
}
.sv-rail {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sv-rail::before,
.sv-rail::after {
  content: '';
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 8px;
  width: 2px;
  border-radius: 1px;
  background: var(--e27-borde);
}
.sv-rail::after {
  content: none;
}
.sv-rail li {
  position: relative;
  margin-left: 40px;
  padding: 24px 28px;
  border: 1px solid var(--e27-borde);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(32, 32, 62, 0.04);
}
/* Nudo sobre el hilo */
.sv-rail li::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 26px;
  left: -40px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--e27-papel);
  border-radius: 50%;
  background: var(--e27-naranja-aa);
  box-shadow: 0 0 0 2px var(--e27-naranja-aa);
  box-sizing: border-box;
}
/* Pasos con orden: el nudo lleva el número */
.sv-rail--pasos {
  counter-reset: sv-paso;
}
.sv-rail--pasos li::before {
  counter-increment: sv-paso;
  content: counter(sv-paso);
  top: 20px;
  left: -47px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  color: #fff;
  font-family: var(--sv-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 0 0 4px var(--e27-papel);
}
.sv-rail strong {
  color: var(--e27-navy);
  font-weight: 600;
}
.sv-rail li > p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.sv-rail li > p + p:not(.sv-cuando) {
  margin-top: 10px;
}
.sv-rail li > p.sv-cuando,
.sv-cuando {
  margin: 0 0 6px;
  color: var(--e27-naranja-aa);
  font-family: var(--sv-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.sv-rail h3 {
  margin: 0 0 8px;
  color: var(--e27-navy);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.sv-esquema {
  margin: 0;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background-color: var(--e27-navy);
  background-image: var(--sv-lienzo);
  box-shadow: 0 40px 80px -40px rgba(32, 32, 62, 0.55);
}
.sv-esquema p,
.sv-esquema li {
  margin: 0;
}
.sv-esquema .sv-rotulo {
  justify-content: flex-start;
  margin-bottom: 18px;
}
.sv-esquema p.sv-esquema__titulo {
  margin-bottom: 16px;
  color: #fff;
  font-family: var(--e27-titulares);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.sv-esquema__meses {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.sv-esquema__meses li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--sv-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}
/* Sesión del mes */
.sv-esquema__meses li::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--e27-naranja-suave);
}
/* Del séptimo mes al duodécimo: según la hoja de ruta */
.sv-esquema__meses .es-plan {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
}
/* Consulta urgente entre dos sesiones */
.sv-esquema__meses .es-consulta::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -4px;
  width: 7px;
  height: 7px;
  background: #fff;
  transform: translate(50%, -50%) rotate(45deg);
}
.sv-esquema p.sv-esquema__nota {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.5;
}
.sv-esquema__leyenda {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
  font-family: var(--sv-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.sv-esquema__leyenda li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sv-esquema__leyenda li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--e27-naranja-suave);
}
.sv-esquema__leyenda li:nth-child(2)::before {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: #fff;
  transform: rotate(45deg);
}
.sv-esquema__leyenda li:nth-child(3)::before {
  width: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  background: transparent;
  box-sizing: border-box;
}
.sv-esquema figcaption {
  margin-top: 14px;
  font-family: var(--sv-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
@media (min-width: 960px) {
  .sv-modelo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    column-gap: 56px;
    align-items: start;
  }
  .sv-esquema {
    position: sticky;
    top: 112px;
  }
}

/* ── Tablas ────────────────────────────────────────────────────────────── */
.sv-tabla {
  margin: 20px 0 24px;
  border: 1px solid var(--e27-borde);
  border-radius: 16px;
  background: #fff;
  overflow-x: auto;
}
.sv-tabla table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.sv-tabla caption {
  padding: 14px 16px 12px;
  color: var(--e27-gris-texto);
  font-size: 14px;
  text-align: left;
}
.sv-tabla th,
.sv-tabla td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
.sv-tabla thead th {
  background: var(--e27-navy);
  color: #fff;
  font-weight: 600;
}
.sv-tabla tbody th {
  color: var(--e27-navy);
  font-weight: 600;
}
.sv-tabla tbody tr + tr > * {
  border-top: 1px solid var(--e27-borde);
}
.sv-tabla + p {
  margin-top: 0;
}

/* ── Preguntas frecuentes ──────────────────────────────────────────────── */
.sv-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin-top: 12px;
}
.sv-faq > div {
  padding: 24px 26px;
  border: 1px solid var(--e27-borde);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(32, 32, 62, 0.04);
}
.sv-faq h3 {
  margin: 0 0 8px;
  color: var(--e27-navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.sv-faq p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
}
.sv-faq p + p {
  margin-top: 10px;
}
.sv-faq + .sv-prosa {
  margin-top: 24px;
}

/* ── Banda de contacto a media página ──────────────────────────────────── */
.sv-banda {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: 72px;
  padding: 30px 36px;
  border-radius: 24px;
  color: #fff;
  background-color: var(--e27-navy);
  background-image: var(--sv-lienzo);
}
.sv-banda__texto {
  flex: 1 1 320px;
}
.sv-banda p {
  margin: 0;
  color: #dbe1ea;
  font-size: 16px;
  line-height: 1.6;
}
.sv-banda p.sv-banda__titulo {
  margin-bottom: 4px;
  color: #fff;
  font-family: var(--e27-titulares);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

/* ── Para quién es y lo que no se hace, enfrentados ────────────────────── */
.sv-frente {
  display: grid;
  gap: 20px;
  padding: 72px 0;
  border-top: 1px solid var(--e27-borde);
}
.sv-frente__col {
  padding: 36px 32px;
  border: 1px solid var(--e27-borde);
  border-radius: 24px;
  background: #fff;
}
.sv-frente__col > p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.7;
}
.sv-lista {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sv-lista li {
  position: relative;
  padding-left: 40px;
  font-size: 15.5px;
  line-height: 1.65;
}
.sv-lista li::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  width: 24px;
  height: 24px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C44511' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m7.8 12.4 2.8 2.8 5.6-6'/%3E%3C/svg%3E");
}
.sv-lista strong {
  display: block;
  margin-bottom: 4px;
  color: var(--e27-navy);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
}
/* Negrita dentro de la frase, no como título de la línea */
.sv-lista--seguida strong {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.sv-frente__col--no {
  border-color: transparent;
  color: #dbe1ea;
  background-color: var(--e27-navy);
  background-image: var(--sv-lienzo);
}
.sv-frente__col--no .sv-h2,
.sv-frente__col--no .sv-lista strong {
  color: #fff;
}
.sv-frente__col--no .sv-h2::before {
  color: var(--e27-naranja-suave);
}
.sv-frente__col--no .sv-lista li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FA7B45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m8.6 8.6 6.8 6.8m0-6.8-6.8 6.8'/%3E%3C/svg%3E");
}
@media (min-width: 900px) {
  .sv-frente {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .sv-frente__col {
    padding: 44px 40px;
  }
}

/* ── Cierre a todo el ancho ────────────────────────────────────────────── */
.sv-cierre {
  width: 100vw;
  margin-left: 50%;
  padding: 80px 20px;
  color: #dbe1ea;
  background-color: var(--e27-navy);
  background-image:
    radial-gradient(ellipse 60% 90% at 85% 100%, rgba(248, 86, 22, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% -10%, rgba(74, 95, 191, 0.26), transparent 60%);
  transform: translateX(-50%);
}
.sv-cierre__dentro {
  display: grid;
  gap: 36px;
  max-width: 1060px;
  margin: 0 auto;
}
.sv-cierre .sv-h2 {
  color: #fff;
}
.sv-cierre .sv-h2::before {
  color: var(--e27-naranja-suave);
}
.sv-cierre .sv-prosa p {
  color: #dbe1ea;
}
.sv-cierre .sv-prosa strong {
  color: #fff;
}
.sv-cierre__caja {
  padding: 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}
.sv-cierre__caja h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}
.sv-cierre__caja p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.65;
}
.sv-cierre__caja > :last-child {
  margin-bottom: 0;
}
.sv-cierre__caja .cta-button + p {
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: 13px;
}
/* Cierre sin sección de texto al lado: la caja sola, centrada */
.sv-cierre--solo .sv-cierre__dentro {
  max-width: 720px;
  text-align: center;
}
.sv-esquema a:not([class]),
.sv-banda a:not([class]),
.sv-frente__col--no a:not([class]),
.sv-cierre a:not([class]) {
  color: var(--e27-naranja-suave);
}
@media (min-width: 900px) {
  .sv-cierre:not(.sv-cierre--solo) .sv-cierre__dentro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    column-gap: 72px;
    align-items: center;
  }
}

html.e27-servicio .author-box {
  max-width: 840px;
  margin-top: 56px;
}
/* El nombre y el enlace a la trayectoria heredan el color del texto */
html.e27-servicio .author-box a {
  color: inherit;
}
/* Párrafo de presentación suelto, encima de unas tarjetas */
.sv-seccion > p {
  max-width: 68ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}
.sv-seccion > .sv-prosa + .sv-subtitulo,
.sv-seccion > .sv-prosa + .sv-pilares,
.sv-seccion > .sv-prosa + .sv-rail,
.sv-seccion > .sv-prosa + .sv-tabla,
.sv-seccion > .sv-prosa + .sv-faq {
  margin-top: 28px;
}
.sv-subtitulo + .sv-rail {
  margin-top: 24px;
}
.sv-prosa > .sv-lista,
.sv-prosa > .sv-rail {
  max-width: 68ch;
  margin: 24px 0;
  padding: 0;
}
.sv-prosa > .sv-lista li,
.sv-prosa > .sv-rail li {
  margin-bottom: 0;
  font-size: 15.5px;
}
.sv-prosa > .sv-rail li {
  font-size: 16px;
}

@media (max-width: 640px) {
  .sv-entrada {
    padding: 40px 0 48px;
  }
  .sv-entrada > p:first-of-type {
    font-size: 18px;
  }
  .sv-seccion,
  .sv-frente {
    padding: 52px 0;
  }
  .sv-pilar {
    padding: 22px;
  }
  .sv-pilar::after {
    top: 22px;
    right: 22px;
  }
  .sv-rail li {
    margin-left: 32px;
    padding: 20px;
  }
  .sv-rail li::before {
    left: -32px;
  }
  .sv-rail--pasos li::before {
    left: -39px;
  }
  .sv-esquema {
    padding: 20px;
  }
  .sv-esquema__meses {
    gap: 6px;
  }
  .sv-esquema__meses .es-consulta::before {
    right: -3px;
  }
  .sv-banda {
    margin-bottom: 52px;
    padding: 26px 24px;
  }
  .sv-frente__col {
    padding: 30px 22px;
  }
  .sv-cierre {
    padding: 56px 16px;
  }
  .sv-cierre__caja {
    padding: 28px 22px;
  }
}

/* ── Movimiento ligado al desplazamiento ───────────────────────────────── */
/* El hilo se tiñe de naranja y los puntos de sesión se encienden según se
   recorre el bloque. Sin soporte o con movimiento reducido queda el estado
   final, que es el que trae el HTML. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sv-rail {
      view-timeline: --sv-rail block;
    }
    .sv-rail::after {
      content: '';
      background: var(--e27-naranja);
      transform-origin: top;
      animation: sv-hilo linear both;
      animation-timeline: --sv-rail;
      animation-range: cover 22% cover 68%;
    }
    .sv-esquema {
      view-timeline: --sv-esquema block;
    }
    .sv-esquema__meses li::after {
      animation: sv-punto linear both;
      animation-timeline: --sv-esquema;
      animation-range: cover calc(6% + var(--i, 0) * 2%) cover calc(12% + var(--i, 0) * 2%);
    }
    .sv-esquema__meses li:nth-child(2) { --i: 1; }
    .sv-esquema__meses li:nth-child(3) { --i: 2; }
    .sv-esquema__meses li:nth-child(4) { --i: 3; }
    .sv-esquema__meses li:nth-child(5) { --i: 4; }
    .sv-esquema__meses li:nth-child(6) { --i: 5; }
    .sv-esquema__meses li:nth-child(7) { --i: 6; }
    .sv-esquema__meses li:nth-child(8) { --i: 7; }
    .sv-esquema__meses li:nth-child(9) { --i: 8; }
    .sv-esquema__meses li:nth-child(10) { --i: 9; }
    .sv-esquema__meses li:nth-child(11) { --i: 10; }
    .sv-esquema__meses li:nth-child(12) { --i: 11; }
  }
}
@keyframes sv-hilo {
  from { transform: scaleY(0); }
}
@keyframes sv-punto {
  from { opacity: 0.2; transform: scale(0.4); }
}
@media (prefers-reduced-motion: reduce) {
  .sv-pilar {
    transition: none;
  }
}

@media print {
  .sv-cierre {
    width: auto;
    margin-left: 0;
    transform: none;
  }
  .sv-esquema,
  .sv-banda,
  .sv-frente__col--no,
  .sv-cierre,
  .sv-cierre__caja {
    background: none !important;
    border: 1px solid #cbd5e1;
    box-shadow: none;
  }
  .sv-esquema,
  .sv-esquema *,
  .sv-banda,
  .sv-banda *,
  .sv-frente__col--no,
  .sv-frente__col--no *,
  .sv-cierre,
  .sv-cierre * {
    color: #20203E !important;
  }
  .sv-esquema {
    position: static;
  }
}
