/* Home R10 · base clara editorial + «sala de control» oscura · móvil primero · sin estilos en línea.
   Las animaciones solo se activan con html.jd-anim (JS y sin movimiento reducido).
   Sin JS o con movimiento reducido todo se ve en su estado final. */

.h-r10 {
  --h-night-2: #16181A;
  --h-night-text: #C9C6BF;
  overflow-x: clip;
}

.jd-web.h-r10 h2 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.jd-web.h-r10 h3 {
  letter-spacing: -0.02em;
}

.h-nota {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jd-muted);
}

/* Botón con flecha y brillo dorado al pasar */
.jd-web .h-btn {
  position: relative;
  overflow: hidden;
  min-height: 52px;
  padding-inline: 1.5rem;
}

.h-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(181, 154, 93, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--jd-ease);
  pointer-events: none;
}

.h-btn:hover::after {
  transform: translateX(120%);
}

.h-btn__flecha {
  display: inline-block;
  transition: transform 0.3s var(--jd-ease);
}

.h-btn:hover .h-btn__flecha {
  transform: translateX(4px);
}

/* Entrada suave de bloques */
html.jd-anim .h-rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--jd-ease), transform 0.7s var(--jd-ease);
}

html.jd-anim .h-rv.is-in {
  opacity: 1;
  transform: none;
}

/* ================= 1 · Cabecera ================= */
.h-hero {
  padding: calc(var(--jd-header-h) + 1.25rem) 0 var(--jd-space-7);
}

.h-hero .jd-eyebrow {
  display: block;
  margin-bottom: 0.9rem;
}

.jd-web .h-hero__titulo {
  font-size: clamp(2.35rem, 1.2rem + 5.2vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 1.25rem;
  max-width: 14.5em;
}

/* Palabra a palabra: siempre a 800 (la entrada solo usa opacidad y desplazamiento, sin cambiar el ancho). */
.jd-web .h-hero__titulo .jd-word {
  font-variation-settings: "wght" 800;
}

.h-hero__lead {
  margin: 1.1rem 0 0.5rem;
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 34rem;
}

.h-hero__micro {
  margin: 0;
  font-size: 13px;
  color: var(--jd-muted);
  max-width: 30rem;
}

.h-hero__duo-movil {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1.25rem;
}

.jd-web .h-hero__duo-movil img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--jd-bg);
}

.jd-web .h-hero__duo-movil img + img {
  margin-left: -12px;
}

.h-hero__duo-movil p {
  margin: 0 0 0 0.75rem;
  font-size: 13px;
  line-height: 1.35;
  color: var(--jd-muted);
}

.h-hero__duo-movil strong {
  display: block;
  color: var(--jd-ink);
}

.h-cifras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--jd-line);
}

.h-cifras div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.h-cifras dd {
  margin: 0;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--jd-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.h-cifras .h-cifras__peq {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  color: var(--jd-gold-texto);
  padding-top: 0.3rem;
}

.h-cifras dt {
  font-size: 12px;
  line-height: 1.35;
  color: var(--jd-muted);
  margin-top: 0.25rem;
}

.h-hero__duo {
  display: none;
}

@media (min-width: 1024px) {
  .h-hero {
    padding: calc(var(--jd-header-h) + 3.5rem) 0 var(--jd-space-8);
    min-height: min(100svh, 980px);
    display: flex;
    align-items: center;
  }

  .h-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(2rem, 3.5vw, 4rem);
    align-items: center;
  }

  .jd-web .h-hero__titulo {
    font-size: clamp(3rem, 0.8rem + 3.4vw, 4rem);
    max-width: none;
  }

  .h-hero__lead {
    font-size: 17px;
    max-width: 36rem;
  }

  .h-hero__duo-movil {
    display: none;
  }

  .h-hero__duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    align-items: start;
    width: 100%;
    margin-left: auto;
  }

  .h-retrato {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    background: var(--jd-night);
    box-shadow: 0 30px 60px -30px rgba(26, 28, 30, 0.45);
    overflow: hidden;
  }

  .jd-web .h-retrato img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
  }

  .h-retrato--maria {
    margin-top: 3.5rem;
  }

  .h-retrato figcaption {
    position: absolute;
    left: 0.75rem;
    bottom: 0.6rem;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
  }

  .h-cifras {
    max-width: 40rem;
    margin-top: 2.25rem;
  }

  .h-cifras dt {
    font-size: 13px;
  }
}

/* ================= 2 · Logos ================= */
.h-logos {
  padding: var(--jd-space-6) 0 var(--jd-space-7);
  text-align: center;
  border-top: 1px solid var(--jd-line);
  border-bottom: 1px solid var(--jd-line);
  background: var(--jd-paper);
}

.h-logos .h-nota {
  margin-bottom: 1.25rem;
}

.h-logos__franja {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.h-logos__pista {
  display: flex;
  width: max-content;
}

.h-logos__lista {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0 clamp(1rem, 2vw, 1.75rem);
  list-style: none;
}

.jd-web .h-logos__lista img {
  width: auto;
  max-width: none;
  opacity: 0.85;
  transition: opacity 0.3s;
}

/* Altura por logo: los alargados más bajos y los cuadrados algo más altos, para que pesen igual. Móvil ≈ 82 %. */
.jd-web .h-logos__lista .h-logo--alexa-marine { height: 23px; }
.jd-web .h-logos__lista .h-logo--low-pressure-fitness { height: 22px; }
.jd-web .h-logos__lista .h-logo--hipopressfit { height: 16px; }
.jd-web .h-logos__lista .h-logo--alarvi { height: 25px; }
.jd-web .h-logos__lista .h-logo--fernando-riveira { height: 26px; }
.jd-web .h-logos__lista .h-logo--academy { height: 34px; }
.jd-web .h-logos__lista .h-logo--aula-ingles { height: 44px; }
.jd-web .h-logos__lista .h-logo--clinica-torrelaguna { height: 30px; }
.jd-web .h-logos__lista .h-logo--surarquia { height: 32px; }
.jd-web .h-logos__lista .h-logo--wellness-coaching-team { height: 19px; }
.jd-web .h-logos__lista .h-logo--noelia-moran { height: 20px; }
.jd-web .h-logos__lista .h-logo--encantadora-de-gatos { height: 34px; }
@media (min-width: 1024px) {
  .jd-web .h-logos__lista .h-logo--alexa-marine { height: 31px; }
  .jd-web .h-logos__lista .h-logo--low-pressure-fitness { height: 30px; }
  .jd-web .h-logos__lista .h-logo--hipopressfit { height: 22px; }
  .jd-web .h-logos__lista .h-logo--alarvi { height: 35px; }
  .jd-web .h-logos__lista .h-logo--fernando-riveira { height: 36px; }
  .jd-web .h-logos__lista .h-logo--academy { height: 47px; }
  .jd-web .h-logos__lista .h-logo--aula-ingles { height: 54px; }
  .jd-web .h-logos__lista .h-logo--clinica-torrelaguna { height: 42px; }
  .jd-web .h-logos__lista .h-logo--surarquia { height: 44px; }
  .jd-web .h-logos__lista .h-logo--wellness-coaching-team { height: 26px; }
  .jd-web .h-logos__lista .h-logo--noelia-moran { height: 27px; }
  .jd-web .h-logos__lista .h-logo--encantadora-de-gatos { height: 47px; }
}

html.jd-anim .h-logos__pista {
  animation: h-marquesina 48s linear infinite;
}

.h-logos__franja:hover .h-logos__pista {
  animation-play-state: paused;
}

.jd-web .h-logos__franja:hover img {
  opacity: 1;
}

@keyframes h-marquesina {
  to { transform: translateX(-50%); }
}

html:not(.jd-anim) .h-logos__franja {
  overflow-x: auto;
}

/* ================= 3 · El problema ================= */
.h-problema {
  padding: var(--jd-space-9) 0 var(--jd-space-8);
}

.h-problema__cab p {
  max-width: 36rem;
  margin: 1.25rem 0 0;
}

.h-problema__lista {
  list-style: none;
  margin: var(--jd-space-7) 0 0;
  padding: 0;
}

.h-fila {
  --p: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--jd-line);
}

.h-fila::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: var(--p);
  background: var(--jd-gold);
}

html.jd-anim .h-fila {
  --p: 0%;
}

.h-fila__n {
  grid-row: span 2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--jd-gold-texto);
  padding-top: 0.45rem;
}

.jd-web .h-fila h3 {
  margin: 0;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.4rem);
  font-weight: 800;
}

.h-fila p {
  margin: 0;
  color: var(--jd-text);
  max-width: 34rem;
}

.h-manifiesto {
  margin: var(--jd-space-9) 0 0;
  font-size: clamp(2.2rem, 1rem + 6vw, 6.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--jd-ink);
  text-wrap: balance;
}

.h-tachar {
  --k: 1;
  position: relative;
  white-space: nowrap;
  color: #A7A49E;
}

.h-tachar::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 0.09em;
  background: var(--jd-ink);
  transform-origin: left center;
  transform: scaleX(var(--k));
}

html.jd-anim .h-tachar {
  --k: 0;
  color: var(--jd-ink);
}

html.jd-anim .h-tachar.is-hecho {
  color: #A7A49E;
}

.h-orden {
  --o: 1;
  color: var(--jd-gold-texto);
  font-weight: 800;
}

/* «orden.» gana grosor sin mover el texto: hueco fijo a 800 y capa visual encima. */
html.jd-anim .h-orden {
  --o: 0;
  position: relative;
  display: inline-block;
  color: transparent;
}

html.jd-anim .h-orden::after {
  content: attr(data-w);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--jd-gold-texto);
  font-variation-settings: "wght" var(--ow, 300);
  transform-origin: left 80%;
  transform: scale(calc(0.9 + 0.1 * var(--o)));
}

@media (min-width: 1024px) {
  .h-problema__cab {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--jd-space-8);
    align-items: end;
  }

  .h-problema__cab p {
    margin: 0;
  }

  .h-fila {
    grid-template-columns: 6rem minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: baseline;
    padding: 2.25rem 0 2.5rem;
  }

  .h-fila__n {
    grid-row: auto;
    font-size: 15px;
  }
}

/* ================= 4 · El sistema ================= */
.h-sistema {
  position: relative;
  background: var(--jd-night);
  color: var(--h-night-text);
}

.h-sistema__escena {
  position: relative;
  padding: var(--jd-space-9) 0;
}

.h-sistema__lienzo,
.h-sistema__barra,
.h-sistema__hud {
  display: none;
}

.h-sistema__fases {
  width: var(--jd-wrap);
  margin: 0 auto;
  display: grid;
  gap: var(--jd-space-7);
}

.jd-web .h-fase h2,
.jd-web .h-fase h3 {
  color: #fff;
}

.jd-web .h-fase h3 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}

.jd-web .h-fase h2 {
  margin: 0.75rem 0 1rem;
}

.h-fase p {
  margin: 0;
  max-width: 34rem;
}

.h-fase .jd-eyebrow,
.h-fase__k {
  color: var(--jd-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.h-fase .h-btn {
  margin-top: 1.5rem;
}

.h-sistema__pie {
  width: var(--jd-wrap);
  margin: var(--jd-space-7) auto 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9A978F;
}

/* Escena animada (solo con JS y movimiento normal) */
html.jd-anim .h-sistema {
  height: 520svh;
}

html.jd-anim .h-sistema__escena {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}

html.jd-anim .h-sistema__lienzo {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

html.jd-anim .h-sistema__barra {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--jd-night-line);
}

.h-sistema__barra i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--jd-gold);
  transform-origin: left center;
  transform: scaleX(0);
}

html.jd-anim .h-sistema__hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: absolute;
  top: calc(var(--jd-header-h) + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  width: var(--jd-wrap);
  gap: 0.5rem;
}

.h-sistema__hud div {
  border-top: 1px solid var(--jd-night-line);
  padding-top: 0.5rem;
}

.h-sistema__hud b {
  display: block;
  font-size: clamp(1.15rem, 0.8rem + 1.8vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.h-sistema__hud span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8E8B84;
  line-height: 1.3;
}

.h-sistema__hud .h-sistema__hud-oro {
  border-top-color: var(--jd-gold);
}

.h-sistema__hud-oro b {
  color: var(--jd-gold);
}

html.jd-anim .h-sistema__fases {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: block;
  height: 40svh;
}

html.jd-anim .h-fase {
  position: absolute;
  inset: auto 0 0 0;
  padding-top: 2.5rem;
  background: linear-gradient(180deg, rgba(30, 32, 34, 0) 0, var(--jd-night) 2.5rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.45s var(--jd-ease), transform 0.45s var(--jd-ease), visibility 0s 0.45s;
}

html.jd-anim .h-fase.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s var(--jd-ease), transform 0.45s var(--jd-ease), visibility 0s;
}

html.jd-anim .h-fase p {
  font-size: 15px;
  line-height: 1.55;
}

html.jd-anim .jd-web .h-fase h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.5rem);
}

html.jd-anim .h-sistema__pie {
  position: absolute;
  left: 50%;
  bottom: 0.5rem;
  transform: translateX(-50%);
  margin: 0;
  font-size: 9.5px;
}

@media (min-width: 900px) {
  html.jd-anim .h-sistema__fases {
    left: max(1.25rem, calc((100% - 1120px) / 2));
    bottom: auto;
    top: 50%;
    transform: translateY(-40%);
    width: min(32%, 380px);
    height: auto;
    min-height: 22rem;
  }

  html.jd-anim .h-fase {
    inset: 0 0 auto 0;
    padding-top: 0;
    background: none;
  }

  html.jd-anim .h-fase p {
    font-size: 16px;
  }

  html.jd-anim .h-sistema__hud {
    left: auto;
    right: max(1.25rem, calc((100% - 1120px) / 2));
    transform: none;
    width: min(58%, 680px);
    gap: 1.25rem;
  }

  .h-sistema__hud span {
    font-size: 11px;
  }

  html.jd-anim .h-sistema__pie {
    left: max(1.25rem, calc((100% - 1120px) / 2));
    transform: none;
    bottom: 1.25rem;
    font-size: 11px;
  }
}

/* ================= 5 · Diagnóstico ================= */
.h-quiz {
  padding: var(--jd-space-9) 0;
}

.jd-web .h-quiz__intro h2 {
  margin: 0.75rem 0 1rem;
}

.h-quiz__intro p {
  max-width: 30rem;
}

.h-quiz__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--jd-muted);
}

.h-quiz__meta b {
  display: block;
  font-size: 1.75rem;
  color: var(--jd-ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.h-quiz__caja {
  position: relative;
  margin-top: var(--jd-space-7);
  background: var(--jd-paper);
  border: 1px solid var(--jd-line);
  padding: 1.75rem 1.25rem;
  box-shadow: 0 30px 60px -40px rgba(26, 28, 30, 0.35);
  min-height: 25rem;
}

.h-quiz__progreso {
  height: 3px;
  background: var(--jd-line);
  margin-bottom: 1.5rem;
}

.h-quiz__progreso i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--jd-gold);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.5s var(--jd-ease);
}

.h-q {
  border: 0;
  margin: 0;
  padding: 0;
  display: none;
}

html.jd-js .h-q.is-on {
  display: grid;
  gap: 0.6rem;
  animation: h-entra 0.45s var(--jd-ease);
}

@keyframes h-entra {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

.h-q legend {
  padding: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--jd-ink);
}

.h-q legend span,
.h-quiz__res-k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jd-gold-texto);
  margin-bottom: 0.6rem;
}

.h-q button {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  color: var(--jd-ink);
  background: var(--jd-bg);
  border: 1px solid var(--jd-line);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--jd-ease);
}

.h-q button span {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--jd-line);
  color: var(--jd-muted);
  background: var(--jd-paper);
}

.h-q button:hover,
.h-q button:focus-visible {
  border-color: var(--jd-ink);
  background: var(--jd-paper);
  transform: translateX(4px);
}

.h-q button:focus-visible {
  outline: 2px solid var(--jd-gold);
  outline-offset: 2px;
}

.h-quiz__res {
  display: none;
}

html.jd-js .h-quiz__res.is-on {
  display: block;
  animation: h-entra 0.45s var(--jd-ease);
}

.h-quiz__res:focus {
  outline: none;
}

.h-anillo {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0.5rem 0 1.25rem;
}

.h-anillo svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.h-anillo circle {
  fill: none;
  stroke-width: 8;
}

.h-anillo__fondo {
  stroke: var(--jd-line);
}

.h-anillo__oro {
  stroke: var(--jd-gold);
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1.3s var(--jd-ease);
}

.h-anillo p {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--jd-ink);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.h-anillo small {
  font-size: 12px;
  font-weight: 600;
  color: var(--jd-muted);
  letter-spacing: 0;
}

.h-quiz__out {
  display: none;
}

.h-quiz__out.is-on {
  display: block;
}

.jd-web .h-quiz__out h3 {
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.h-quiz__out p {
  margin: 0 0 1.25rem;
}

.h-quiz__repetir {
  margin: 1rem 0 0;
  padding: 0.5rem 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--jd-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.h-quiz__sinjs {
  margin: 0;
}

html.jd-js .h-quiz__sinjs {
  display: none;
}

html:not(.jd-js) .h-quiz__progreso,
html:not(.jd-js) .h-quiz__caja {
  min-height: 0;
}

html:not(.jd-js) .h-quiz__progreso {
  display: none;
}

@media (min-width: 1024px) {
  .h-quiz__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--jd-space-9);
    align-items: center;
  }

  .h-quiz__caja {
    margin-top: 0;
    padding: 2.5rem 2.5rem 2.25rem;
  }
}

/* ================= 6 · Casos ================= */
.h-casos {
  padding: var(--jd-space-9) 0 var(--jd-space-8);
  background: var(--jd-paper);
  border-top: 1px solid var(--jd-line);
}

.h-casos__cab p {
  max-width: 38rem;
  margin: 1.25rem 0 0;
}

.h-casos__pista {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 1rem;
  margin-top: var(--jd-space-7);
  padding: 0 1.25rem 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.25rem;
  scrollbar-width: none;
}

.h-casos__pista::-webkit-scrollbar {
  display: none;
}

.h-caso {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--jd-bg);
  border: 1px solid var(--jd-line);
}

.jd-web .h-caso .h-caso__media,
.jd-web .h-caso .jd-video {
  display: block;
  position: relative;
  width: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--jd-night);
}

.jd-web .h-caso .h-caso__media img,
.jd-web .h-caso .jd-video img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 30%;
  transition: filter 0.5s var(--jd-ease), transform 0.8s var(--jd-ease);
}

.jd-web .h-caso a.h-caso__media img {
  object-position: center;
}

.h-caso .jd-video__play {
  background: linear-gradient(180deg, rgba(26, 28, 30, 0) 40%, rgba(26, 28, 30, 0.45));
}

.h-caso .jd-video__play span {
  width: 56px;
  height: 56px;
  transition: transform 0.3s var(--jd-ease);
}

.h-caso:hover .jd-video__play span {
  transform: scale(1.08);
}

@media (hover: hover) {
  .jd-web .h-caso .h-caso__media img,
  .jd-web .h-caso .jd-video img {
    filter: grayscale(1);
  }

  .jd-web .h-caso:hover .h-caso__media img,
  .jd-web .h-caso:hover .jd-video img,
  .jd-web .h-caso:focus-within .h-caso__media img,
  .jd-web .h-caso:focus-within .jd-video img {
    filter: none;
    transform: scale(1.03);
  }
}

.h-caso__cuerpo {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.5rem;
}

.h-caso__cuerpo .jd-eyebrow {
  font-size: 10.5px;
}

.jd-web .h-caso h3 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.15;
}

.h-caso__cuerpo p {
  margin: 0 0 1rem;
  font-size: 14.5px;
  line-height: 1.5;
}

.h-caso__cuerpo .h-caso__cifra {
  margin: 0 0 0.5rem;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--jd-gold-texto);
  font-variant-numeric: tabular-nums;
}

.jd-web .h-caso__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--jd-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--jd-gold);
  align-self: flex-start;
}

.h-casos__indicador {
  width: var(--jd-wrap);
  margin: 0.75rem auto 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--jd-muted);
  text-align: right;
}

@media (min-width: 1024px) {
  .h-casos__cab {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--jd-space-8);
    align-items: end;
  }

  .h-casos__cab p {
    margin: 0;
  }

  .h-casos__pista {
    width: var(--jd-wrap);
    margin-inline: auto;
    padding: 0;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: 1.25rem;
  }

  .h-casos__indicador {
    display: none;
  }
}

/* ================= 7 · Calculadora ================= */
.h-calc {
  padding: var(--jd-space-9) 0;
  background: var(--h-night-2);
  color: var(--h-night-text);
}

.jd-web .h-calc h2 {
  color: #fff;
  margin: 0.75rem 0 1rem;
}

.h-calc .jd-eyebrow {
  color: var(--jd-gold);
}

.h-calc__intro > p {
  max-width: 30rem;
  margin: 0 0 2rem;
}

.h-deslizador {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1.75rem;
}

.h-deslizador label {
  font-size: 14px;
  color: var(--h-night-text);
}

.h-deslizador output {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.h-deslizador input {
  --f: 15%;
  grid-column: 1 / -1;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.h-deslizador input::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, var(--jd-gold) var(--f), var(--jd-night-line) var(--f));
}

.h-deslizador input::-moz-range-track {
  height: 4px;
  background: linear-gradient(90deg, var(--jd-gold) var(--f), var(--jd-night-line) var(--f));
}

.h-deslizador input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--jd-gold);
}

.h-deslizador input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--jd-gold);
}

.h-deslizador input:focus-visible {
  outline: 2px solid var(--jd-gold);
  outline-offset: 4px;
}

.h-calc__salida {
  margin-top: var(--jd-space-7);
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--jd-night-line);
  background: var(--jd-night);
}

.h-calc__num {
  margin: 0.5rem 0 0.25rem;
  font-size: clamp(2.75rem, 1.4rem + 6vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--jd-gold);
  font-variant-numeric: tabular-nums;
}

.h-calc__txt {
  margin: 0 0 1.75rem;
  font-size: 14px;
}

.h-calc__barras {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 140px;
}

.h-calc__barras i {
  --h: 0.5;
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, var(--jd-gold), rgba(181, 154, 93, 0.25));
  transform-origin: bottom center;
  transform: scaleY(var(--h));
  transition: transform 0.6s var(--jd-ease);
}

.h-calc__juego {
  margin: 1.5rem 0 0;
  font-size: 15px;
  color: #E8E2D6;
}

.h-calc__cta {
  margin-top: 1.25rem;
}

.h-calc__meses {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A09D96;
}

@media (min-width: 1024px) {
  .h-calc__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--jd-space-9);
    align-items: center;
  }

  .h-calc__salida {
    margin-top: 0;
    padding: 2.5rem;
  }

  .h-calc__barras {
    height: 200px;
  }
}

/* ================= 8 · Arsenal ================= */
.h-arsenal {
  padding: var(--jd-space-9) 0;
}

.h-arsenal__cab {
  max-width: 44rem;
}

.jd-web .h-arsenal__cab h2 {
  margin: 0.75rem 0 1rem;
}

.h-arsenal__lista {
  display: grid;
  gap: 0;
  margin-top: var(--jd-space-7);
}

.h-serv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--jd-line);
}

.jd-web .h-serv__icono {
  grid-row: span 3;
  width: 56px;
  height: 56px;
  padding: 14px;
  background: var(--jd-paper);
  border: 1px solid var(--jd-line);
  transition: background 0.3s, border-color 0.3s;
}

.h-serv:hover .h-serv__icono {
  border-color: var(--jd-gold);
}

.h-serv__n {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--jd-gold-texto);
}

.jd-web .h-serv h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.15;
}

.h-serv p {
  margin: 0.5rem 0 0;
  font-size: 15px;
  max-width: 32rem;
}

.h-arsenal__cta {
  margin: var(--jd-space-7) 0 0;
}

@media (min-width: 1024px) {
  .h-arsenal__lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .h-serv {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0.5rem;
    padding: 2.5rem;
    background: var(--jd-paper);
    border: 1px solid var(--jd-line);
  }

  .jd-web .h-serv__icono {
    grid-row: auto;
    width: 88px;
    height: 88px;
    padding: 22px;
    margin-bottom: 1rem;
    background: var(--jd-bg);
  }
}

/* ================= 9 · Oferta + formulario ================= */
.h-oferta {
  padding: var(--jd-space-9) 0;
  background: var(--jd-paper);
  border-top: 1px solid var(--jd-line);
}

.jd-web .h-oferta__texto h2 {
  margin: 0.75rem 0 1rem;
}

.h-oferta__texto > p {
  max-width: 34rem;
}

.jd-web .h-oferta__sub {
  margin: var(--jd-space-6) 0 1rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jd-gold-texto);
}

.h-oferta__lista {
  list-style: none;
  margin: 0;
  padding: 0;
}

.h-oferta__lista li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--jd-line);
}

.h-oferta__lista li > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--jd-gold-texto);
  padding-top: 0.2rem;
}

.jd-web .h-oferta__lista h4 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--jd-ink);
  letter-spacing: -0.01em;
}

.h-oferta__lista p {
  margin: 0;
  font-size: 15px;
}

.h-oferta__porque {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.25rem;
  background: var(--jd-bg);
  border-left: 2px solid var(--jd-gold);
  font-size: 15px;
}

.h-oferta__form {
  margin-top: var(--jd-space-7);
}

.h-oferta__form #formulario {
  background: var(--jd-bg);
  border: 1px solid var(--jd-line);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 40px 80px -50px rgba(26, 28, 30, 0.45);
}

.h-despues {
  margin-top: 1.5rem;
}

.jd-web .h-despues h3 {
  margin: 0 0 0.75rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jd-muted);
}

.h-despues ol {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: h-paso;
}

.h-despues li {
  counter-increment: h-paso;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  font-size: 14.5px;
}

.h-despues li::before {
  content: counter(h-paso);
  font-weight: 800;
  color: var(--jd-gold-texto);
}

@media (min-width: 1024px) {
  .h-oferta__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: var(--jd-space-9);
    align-items: start;
  }

  .h-oferta__form {
    margin-top: 0;
    position: sticky;
    top: calc(var(--jd-header-h) + 1.5rem);
  }

  .h-oferta__form #formulario {
    padding: 2.25rem 2rem;
  }
}

/* ================= 10 · El estudio ================= */
.h-estudio {
  background: var(--jd-night);
  color: var(--h-night-text);
  padding-bottom: var(--jd-space-9);
}

/* Foto del estudio: nunca más grande que su contenedor (1440), 16:9, encuadrada arriba para no cortar cabezas.
   El texto va debajo de la foto, sin superponerse a las caras. */
.h-estudio__foto {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #232527;
}

.jd-web .h-estudio__foto img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 25%;
}

/* Funde solo el 30 % inferior de la foto con el fondo de la sección (sin texto encima). */
.h-estudio__foto::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(30, 32, 34, 0), var(--jd-night));
  pointer-events: none;
}

.h-estudio__grid {
  position: relative;
  margin-top: var(--jd-space-7);
}

.h-estudio .jd-eyebrow {
  color: var(--jd-gold);
}

.jd-web .h-estudio h2 {
  color: #fff;
  margin: 0.75rem 0 1.25rem;
}

.h-estudio__grid p {
  max-width: 34rem;
}

.jd-web .h-estudio strong {
  color: #fff;
}

.h-estudio .jd-btn--ghost {
  margin-top: 1rem;
}

.jd-web .h-estudio a.jd-btn--ghost,
.jd-web .h-estudio a.jd-btn--ghost:link,
.jd-web .h-estudio a.jd-btn--ghost:visited {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.jd-web .h-estudio a.jd-btn--ghost:hover,
.jd-web .h-estudio a.jd-btn--ghost:focus-visible {
  background: #fff;
  color: var(--jd-ink);
}

.h-principios {
  list-style: none;
  margin: var(--jd-space-7) 0 0;
  padding: 0;
}

.h-principios li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--jd-night-line);
  font-size: 15px;
}

.h-principios strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 1024px) {
  .h-estudio__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--jd-space-9);
    margin-top: var(--jd-space-8);
  }

  .h-principios {
    margin-top: 0;
    align-self: end;
  }
}

/* ================= 11 · Filtro + preguntas ================= */
.h-filtro {
  padding: var(--jd-space-9) 0;
}

.h-filtro__cab p {
  max-width: 38rem;
  margin: 1.25rem 0 0;
}

.h-filtro__grid {
  display: grid;
  gap: 1rem;
  margin-top: var(--jd-space-7);
}

.h-filtro__col {
  padding: 1.75rem 1.5rem;
  background: var(--jd-paper);
  border: 1px solid var(--jd-line);
}

.h-filtro__col--no {
  background: transparent;
}

.jd-web .h-filtro__col h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.h-filtro__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.h-filtro__col li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  font-size: 15px;
}

.h-filtro__col--si li::before {
  content: "✓";
  font-weight: 800;
  color: var(--jd-gold-texto);
}

.h-filtro__col--no li::before {
  content: "–";
  font-weight: 800;
  color: var(--jd-muted);
}

.h-faq {
  margin-top: var(--jd-space-9);
}

.jd-web .h-faq h3 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  margin: 0 0 1.5rem;
}

.h-faq details {
  border-top: 1px solid var(--jd-line);
}

.h-faq details:last-child {
  border-bottom: 1px solid var(--jd-line);
}

.h-faq summary {
  position: relative;
  padding: 1.25rem 3rem 1.25rem 0;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  font-weight: 700;
  color: var(--jd-ink);
  cursor: pointer;
  list-style: none;
}

.h-faq summary::-webkit-details-marker {
  display: none;
}

.h-faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--jd-gold-texto);
  transition: transform 0.3s var(--jd-ease);
}

.h-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.h-faq summary:focus-visible {
  outline: 2px solid var(--jd-gold);
  outline-offset: 4px;
}

.h-faq .faq-content p {
  margin: 0 0 1.5rem;
  max-width: 46rem;
}

@media (min-width: 1024px) {
  .h-filtro__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .h-filtro__col {
    padding: 2.5rem;
  }

  .h-faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--jd-space-8);
    align-items: start;
  }

  .jd-web .h-faq h3 {
    position: sticky;
    top: calc(var(--jd-header-h) + 2rem);
    grid-column: 1;
    grid-row: 1;
  }

  /* Todas las preguntas en la columna derecha, sean las que sean (el titular se queda fijo a la izquierda) */
  .h-faq > details {
    grid-column: 2;
  }
}

/* ================= 12 · La Letter ================= */
.h-letter {
  padding: var(--jd-space-9) 0;
  background: var(--jd-paper);
  border-top: 1px solid var(--jd-line);
}

.jd-web .h-letter__logo {
  width: min(100%, 340px);
  height: auto;
  margin: 0 0 0.5rem -1rem;
}

.jd-web .h-letter h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  margin: 0 0 1rem;
}

.h-letter__grid > div:first-child p {
  max-width: 30rem;
}

.h-letter__nota {
  margin: 0.75rem 0 0;
  font-size: 13px;
  color: var(--jd-muted);
}

@media (min-width: 1024px) {
  .h-letter__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--jd-space-9);
    align-items: center;
  }

  .jd-web .h-letter__logo {
    width: 420px;
  }
}

/* ================= Barra fija del móvil ================= */
.h-mbar {
  display: none;
}

@media (max-width: 1023px) {
  html.jd-js .h-mbar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.6rem 0.6rem 1rem;
    background: var(--jd-ink);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    transform: translateY(160%);
    transition: transform 0.4s var(--jd-ease), bottom 0.3s var(--jd-ease);
  }

  html.jd-js .h-mbar.is-on {
    transform: none;
  }

  .h-mbar > span:first-child {
    font-size: 12px;
    line-height: 1.3;
    color: #BDBAB3;
  }

  .h-mbar strong {
    display: block;
    font-size: 14px;
    color: #fff;
  }

  .h-mbar__btn {
    padding: 0.7rem 1rem;
    background: var(--jd-gold);
    color: var(--jd-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* Con el banner de cookies abierto, la barra se oculta (el banner ocupa ese sitio). */
  html.jd-js body:has(#cookie-banner:not([hidden])) .h-mbar {
    display: none;
  }

  /* Espacio bajo el pie para que la barra fija no tape sus últimos enlaces («Configurar cookies»…). */
  html.jd-js body:has(.h-mbar) .jd-footer {
    padding-bottom: calc(var(--jd-space-6) + 5rem);
  }
}

/* ================= Movimiento reducido ================= */
@media (prefers-reduced-motion: reduce) {
  .h-btn::after,
  .h-logos__pista {
    animation: none;
    transition: none;
  }
}

/* ================= Piezas para las demás páginas (R10b) ================= */

/* Cabecera de página: misma composición que la home, con una pieza propia a la derecha */
.h-hero__lado {
  margin-top: var(--jd-space-7);
}

.jd-web .h-hero__lado .h-oferta__sub {
  margin-top: 0;
}

.jd-web .h-hero__lado .h-oferta__lista h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
  .h-hero--pagina {
    min-height: min(92svh, 860px);
  }

  .h-hero__lado {
    margin-top: 0;
    padding: 2rem 2rem 1.25rem;
    background: var(--jd-paper);
    border: 1px solid var(--jd-line);
    box-shadow: 0 40px 80px -50px rgba(26, 28, 30, 0.35);
  }
}

/* Escena del sistema en versión corta */
html.jd-anim .h-sistema--corta {
  height: 360svh;
}

/* Qué no es */
.h-noes {
  padding: var(--jd-space-9) 0;
  background: var(--jd-paper);
  border-top: 1px solid var(--jd-line);
}

.h-noes__lista {
  list-style: none;
  margin: var(--jd-space-6) 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.h-noes__lista li {
  padding-left: 1.25rem;
  border-left: 2px solid var(--jd-gold);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--jd-ink);
  letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
  .h-noes__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--jd-space-9);
    align-items: start;
  }

  .h-noes__lista {
    margin-top: 0.5rem;
  }
}

/* Filtro sin entradilla */
.h-filtro--claro {
  background: var(--jd-bg);
}

.h-filtro--claro .h-filtro__grid {
  margin-top: var(--jd-space-6);
}

/* Preguntas frecuentes como sección propia (con h2) */
.h-faq--solo {
  margin-top: 0;
}

.jd-web .h-faq--solo h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  margin: 0 0 1.5rem;
}

@media (min-width: 1024px) {
  .jd-web .h-faq--solo h2 {
    position: sticky;
    top: calc(var(--jd-header-h) + 2rem);
    grid-column: 1;
    grid-row: 1;
  }
}

.jd-web.h-r10 .h-hero__lado .h-oferta__sub {
  margin: 0 0 1rem;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jd-gold-texto);
}

/* —— Cabecera de caso: el vídeo manda —— */
.h-casohero {
  padding: calc(var(--jd-header-h) + 1rem) 0 var(--jd-space-7);
}

.jd-web .h-casohero__volver {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--jd-muted);
  text-decoration: none;
}

.h-casohero .jd-eyebrow {
  display: block;
  margin-bottom: 0.6rem;
}

.jd-web.h-r10 .h-casohero h1 {
  font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 0.9rem;
}

.h-casohero__frase {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  line-height: 1.4;
  color: var(--jd-text);
  max-width: 32rem;
}

.h-casohero__texto .h-btn {
  margin-bottom: 1.5rem;
}

.jd-web .h-casohero .jd-video {
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 0;
  box-shadow: 0 40px 80px -40px rgba(26, 28, 30, 0.55);
}

.jd-web .h-casohero--vertical .jd-video {
  aspect-ratio: 9 / 16;
  width: min(100%, 22rem);
  margin-inline: auto;
}

.h-casohero .jd-video__play span {
  width: 76px;
  height: 76px;
  font-size: 1.5rem;
}

.h-casohero__foto {
  margin: 0;
  background: var(--jd-paper);
  padding: 0.6rem;
  border: 1px solid var(--jd-line);
  box-shadow: 0 40px 80px -40px rgba(26, 28, 30, 0.55);
}

.jd-web .h-casohero__foto img {
  width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  .h-casohero {
    padding: calc(var(--jd-header-h) + 2.5rem) 0 var(--jd-space-8);
    min-height: min(92svh, 860px);
    display: flex;
    align-items: center;
  }

  .h-casohero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--jd-space-8);
    align-items: center;
  }

  .h-casohero--vertical .h-casohero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .jd-web .h-casohero--vertical .jd-video {
    width: 100%;
    max-width: 24rem;
    max-height: 78svh;
    margin: 0 0 0 auto;
  }

  .h-casohero__texto .h-btn {
    margin-bottom: 0;
  }
}

/* —— Historia del caso —— */
.h-casohist {
  padding: var(--jd-space-9) 0;
  background: var(--jd-paper);
  border-top: 1px solid var(--jd-line);
}

.h-casohist__grid {
  display: grid;
  gap: var(--jd-space-7);
}

.h-casohist__n {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--jd-gold-texto);
  padding-top: 1rem;
  border-top: 2px solid var(--jd-gold);
  width: 4rem;
  margin-bottom: 0.75rem;
}

.jd-web.h-r10 .h-casohist h2 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  margin: 0 0 1rem;
}

.h-casohist p {
  max-width: 34rem;
}

@media (min-width: 1024px) {
  .h-casohist__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--jd-space-9);
  }
}

/* —— Casos: variantes —— */
.h-casos__cab--simple {
  display: block;
}

@media (min-width: 1024px) {
  .h-casos__pista--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.h-casos--indice {
  padding-top: var(--jd-space-6);
}

.h-casos--indice .h-casos__pista {
  margin-top: 0;
}

/* —— Miniaturas de /casos/ —— */
.h-minis {
  display: none;
}

@media (min-width: 1024px) {
  .h-minis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .jd-web .h-minis a {
    display: block;
    color: var(--jd-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
  }

  .jd-web .h-minis img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
    filter: grayscale(1);
    transition: filter 0.3s;
    margin-bottom: 0.5rem;
  }

  .jd-web .h-minis a:hover img,
  .jd-web .h-minis a:focus-visible img {
    filter: none;
  }
}

/* —— Cierre centrado —— */
.h-cierre__inner {
  text-align: center;
  max-width: 44rem;
}

.jd-web.h-r10 .h-cierre h2 {
  margin: 0 0 1rem;
}

.h-cierre p {
  margin: 0 0 1.5rem;
}

/* —— Fernando: resultado, informe y prensa —— */
.h-fresultado {
  padding: var(--jd-space-9) 0;
  background: var(--jd-paper);
  border-top: 1px solid var(--jd-line);
}

.jd-web .h-fresultado__logo {
  width: auto;
  height: 56px;
  margin-bottom: 1.5rem;
}

.jd-web.h-r10 .h-fresultado h2 {
  margin: 0 0 1.5rem;
}

.h-fresultado__cifras {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

/* Enlace a la página de escuelas, bajo el resultado del caso Fernando y en su tarjeta de /casos */
.h-fresultado__escuelas {
  margin: 2rem 0 0;
  font-size: 15px;
}

.jd-web .h-fresultado__escuelas a {
  color: var(--jd-ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--jd-gold);
}

.jd-web .h-caso__link.h-caso__link--escuelas {
  margin-top: 0.75rem;
  font-weight: 600;
}

.h-fresultado__cifras li {
  padding-top: 1rem;
  border-top: 2px solid var(--jd-gold);
}

.h-fresultado__cifras strong {
  display: block;
  font-size: clamp(2.5rem, 1.4rem + 5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--jd-ink);
  font-variant-numeric: tabular-nums;
}

.h-fresultado__cifras span {
  display: block;
  margin-top: 0.5rem;
  font-size: 14.5px;
  color: var(--jd-muted);
  max-width: 26rem;
}

.h-fresultado__informe {
  margin: var(--jd-space-7) 0 0;
  border: 1px solid var(--jd-line);
  background: var(--jd-bg);
  padding: 0.75rem;
  box-shadow: 0 40px 80px -50px rgba(26, 28, 30, 0.45);
}

.jd-web .h-fresultado__informe img {
  width: 100%;
  height: auto;
}

.h-fresultado__informe figcaption,
.h-prensa figcaption,
.h-hero__foto figcaption {
  margin-top: 0.6rem;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jd-muted);
}

@media (min-width: 1024px) {
  .h-fresultado__cifras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--jd-space-8);
  }
}

.h-prensa {
  padding: var(--jd-space-9) 0;
  background: var(--jd-night);
}

.jd-web.h-r10 .h-prensa h2 {
  color: #fff;
  margin: 0 0 var(--jd-space-6);
}

.h-prensa__grid {
  display: grid;
  gap: 1rem;
}

.h-prensa figure {
  margin: 0;
}

.jd-web .h-prensa img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s;
}

.jd-web .h-prensa figure:hover img {
  filter: none;
}

.h-prensa figcaption {
  color: #A09D96;
}

.h-prensa__cta {
  margin: var(--jd-space-7) 0 0;
}

.jd-web .h-prensa a.jd-btn--ink,
.jd-web .h-prensa a.jd-btn--ink:link,
.jd-web .h-prensa a.jd-btn--ink:visited,
.jd-web .h-prensa a.jd-btn--ink:hover,
.jd-web .h-prensa a.jd-btn--ink:focus-visible {
  background: var(--jd-gold);
  color: var(--jd-ink);
}

@media (min-width: 768px) {
  .h-prensa__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* —— Servicios: índice en la cabecera, bloques con esquema y política —— */
.h-sindice ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.h-sindice li + li {
  border-top: 1px solid var(--jd-line);
}

.jd-web .h-sindice a {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  padding: 0.85rem 0;
  font-weight: 700;
  color: var(--jd-ink);
  text-decoration: none;
  transition: color 0.2s, padding 0.3s var(--jd-ease);
}

.h-sindice a span {
  font-size: 12px;
  color: var(--jd-gold-texto);
  padding-top: 0.2rem;
}

.jd-web .h-sindice a:hover,
.jd-web .h-sindice a:focus-visible {
  padding-left: 0.4rem;
  color: var(--jd-gold-texto);
}

.h-servicios {
  padding: var(--jd-space-8) 0;
  background: var(--jd-paper);
  border-top: 1px solid var(--jd-line);
}

.h-sbloque {
  display: grid;
  gap: 1.5rem;
  padding: var(--jd-space-7) 0;
  border-top: 1px solid var(--jd-line);
  scroll-margin-top: calc(var(--jd-header-h) + 1rem);
}

.h-sbloque:first-child {
  border-top: 0;
}

.h-sbloque__texto {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  align-content: start;
}

.h-sbloque__texto > :not(.h-serv__icono):not(.h-serv__n) {
  grid-column: 1 / -1;
}

.jd-web .h-sbloque .h-serv__icono {
  grid-row: auto;
}

.h-sbloque .h-serv__n {
  align-self: center;
}

.jd-web.h-r10 .h-sbloque h2 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
  margin: 1rem 0 0.75rem;
}

.h-sbloque p {
  margin: 0 0 0.75rem;
  max-width: 34rem;
}

.h-sbloque__caso {
  font-size: 14px;
  color: var(--jd-muted);
}

.jd-web .h-sbloque__caso a {
  color: var(--jd-ink);
  font-weight: 700;
}

.jd-web .h-sbloque__cta {
  justify-self: start;
  font-size: 14px;
  font-weight: 700;
  color: var(--jd-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--jd-gold);
}

/* Esquema de 3 pasos: tarjeta oscura con camino dorado */
.h-esquema {
  list-style: none;
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: var(--jd-night);
  display: grid;
  gap: 1.4rem;
  position: relative;
  counter-reset: h-esq;
}

.h-esquema::before {
  content: "";
  position: absolute;
  left: calc(1.5rem + 7px);
  top: 2.4rem;
  bottom: 2.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--jd-gold), rgba(181, 154, 93, 0.25));
}

.h-esquema li {
  position: relative;
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 1rem;
  align-items: center;
  color: #E8E2D6;
  font-size: 15px;
  font-weight: 600;
}

.h-esquema i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--jd-gold);
  background: var(--jd-night);
}

.h-esquema li:last-child i {
  background: var(--jd-gold);
  box-shadow: 0 0 0 5px rgba(181, 154, 93, 0.18);
}

.h-esquema li:last-child {
  color: #fff;
}

@media (min-width: 1024px) {
  .h-sbloque {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--jd-space-9);
    align-items: center;
    padding: var(--jd-space-8) 0;
  }

  .h-esquema {
    padding: 2.5rem 2.25rem;
    gap: 2rem;
  }

  .h-esquema::before {
    left: calc(2.25rem + 7px);
    top: 3.1rem;
    bottom: 3.1rem;
  }

  .h-esquema li {
    font-size: 17px;
  }
}

.h-politica__a {
  margin: 0 0 1rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jd-gold);
}

.h-politica__b {
  margin: 0;
  max-width: 52rem;
  font-size: clamp(1.6rem, 1rem + 2.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #fff;
}

/* —— Cabecera con foto (estudio y La Letter) —— */
.h-hero__foto {
  margin: var(--jd-space-6) 0 0;
}

/* Cabeceras claras (estudio y La Letter): cuadro oscuro limpio, recorte cerrado a las caras. */
.jd-web .h-hero__foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 2px;
  background: #232527;
  box-shadow: 0 18px 40px -24px rgba(26, 28, 30, 0.45);
}

@media (min-width: 1024px) {
  .h-hero--estudio .h-hero__grid,
  .h-hero--letter .h-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .h-hero__foto {
    margin: 0;
  }
}

/* —— Estudio —— */
.h-estudio--sinfoto {
  padding-top: var(--jd-space-9);
}

.h-estudio--sinfoto .h-estudio__grid {
  margin-top: 0;
}

.h-proceso {
  padding: var(--jd-space-9) 0;
}

.jd-web.h-r10 .h-proceso h2 {
  margin: 0 0 var(--jd-space-6);
}

.h-pasos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.h-paso {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: baseline;
  padding: 1.25rem 1.25rem;
  background: var(--jd-paper);
  border: 1px solid var(--jd-line);
}

.h-paso > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--jd-gold-texto);
}

.jd-web.h-r10 .h-paso h3 {
  margin: 0;
  font-size: 1.2rem;
}

.h-paso small {
  display: block;
  margin-top: 0.25rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--jd-gold-texto);
}

@media (min-width: 1024px) {
  .h-pasos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .h-paso {
    display: block;
    padding: 1.75rem 1.75rem 2rem;
    min-height: 10rem;
  }

  .h-paso > span {
    display: block;
    margin-bottom: 2.5rem;
  }

  .jd-web.h-r10 .h-paso h3 {
    font-size: 1.4rem;
  }
}

.h-logos--estudio {
  text-align: left;
  padding-top: var(--jd-space-9);
}

.h-clientes {
  margin-bottom: var(--jd-space-6);
}

.jd-web.h-r10 .h-clientes h2 {
  margin: 0 0 0.75rem;
}

.h-clientes p {
  margin: 0;
  color: var(--jd-muted);
}

.h-clientes .h-clientes__rel {
  margin-top: 0.25rem;
  color: var(--jd-ink);
  font-weight: 700;
}

/* —— La Letter —— */
.jd-web .h-letter__logo--grande {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin: 0 0 0.5rem -1rem;
}

.jd-web.h-r10 .h-hero__titulo--letter {
  font-size: clamp(2rem, 1rem + 3vw, 3rem);
}

.h-temas {
  padding: var(--jd-space-9) 0;
  background: var(--jd-paper);
  border-top: 1px solid var(--jd-line);
}

.jd-web.h-r10 .h-temas h2 {
  margin: 0.75rem 0 var(--jd-space-6);
}

.h-temas__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.h-tema {
  padding: 1.5rem;
  background: var(--jd-bg);
  border: 1px solid var(--jd-line);
  transition: border-color 0.3s;
}

.h-tema:hover {
  border-color: var(--jd-gold);
}

.jd-web.h-r10 .h-tema h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.3rem;
}

.h-tema p {
  margin: 0;
  font-size: 15px;
}

@media (min-width: 768px) {
  .h-temas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .h-temas__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .h-tema {
    padding: 2rem;
  }
}

.h-letterbox {
  background: var(--jd-bg);
  border: 1px solid var(--jd-line);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 40px 80px -50px rgba(26, 28, 30, 0.45);
}

@media (min-width: 1024px) {
  .h-letterbox {
    padding: 2.25rem 2rem;
  }
}

/* Casos en móvil: el vídeo sube justo debajo del nombre, para que se vea en el primer pantallazo */
@media (max-width: 1023px) {
  .h-casohero__grid {
    display: flex;
    flex-direction: column;
  }

  .h-casohero__texto {
    display: contents;
  }

  .h-casohero .jd-video,
  .h-casohero__foto {
    order: 1;
    margin-bottom: 1.25rem;
  }

  .h-casohero__frase {
    order: 2;
  }

  .h-casohero__texto .h-btn {
    order: 3;
    align-self: flex-start;
  }

  .jd-web .h-casohero--vertical .jd-video {
    width: min(100%, calc(56svh * 9 / 16));
  }

  .jd-web.h-r10 .h-casohero h1 {
    margin-bottom: 1rem;
  }
}

/* La Letter en móvil: logo y foto más pequeños y el botón justo debajo del titular,
   para que se vea en el primer pantallazo con el banner de cookies abierto. */
@media (max-width: 1023px) {
  .h-hero--letter .h-hero__texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .jd-web .h-hero--letter .h-letter__logo--grande {
    width: 190px;
    margin: 0 0 0.25rem -0.5rem;
  }

  .jd-web.h-r10 .h-hero--letter .h-hero__titulo--letter {
    font-size: clamp(1.7rem, 1rem + 3.4vw, 2.1rem);
    margin-bottom: 1rem;
  }

  .h-hero--letter .h-btn {
    order: 4;
  }

  .h-hero--letter .h-hero__lead {
    order: 5;
    margin-top: 1.25rem;
  }

  .h-hero__foto--letter {
    max-width: 22rem;
  }
}

/* Fernando: las dos cifras de publicidad (ROAS), con el estilo de la web */
.h-informe {
  margin: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--jd-night);
  color: #E8E2D6;
  box-shadow: 0 40px 80px -40px rgba(26, 28, 30, 0.55);
}

.h-informe__cab {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--jd-night-line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #A09D96;
}

.h-informe__cifras {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 1rem;
  margin: 0;
}

.h-informe__cifras div {
  padding: 1rem 0.85rem;
  border: 1px solid var(--jd-night-line);
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.h-informe__cifras dd {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(1.3rem, 0.3rem + 5.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.h-informe__cifras dt {
  margin-top: 0.4rem;
  font-size: 12px;
  color: #A09D96;
}

.h-informe__cifras .h-informe__oro {
  border-color: var(--jd-gold);
}

.h-informe__cifras .h-informe__oro dd {
  color: var(--jd-gold);
}

.h-informe figcaption {
  margin-top: 1rem;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A09D96;
}

@media (max-width: 1023px) {
  .h-informe {
    order: 1;
    margin-bottom: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .h-informe {
    padding: 2rem 2rem 1.5rem;
  }

  .h-informe__cifras div {
    padding: 1.5rem;
  }
}

/* Pantallas de más de 1440 px: los laterales de la foto se funden con el fondo para que no se vea el borde. */
@media (min-width: 1441px) {
  .h-estudio__foto {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
}


/* Fernando: foto entera (los pies son clave) y la tarjeta de cifras debajo, sin superponerse. */
.h-casohero__lado {
  display: grid;
  gap: 1rem;
}

.h-casohero__retrato {
  margin: 0;
}

.jd-web .h-casohero__retrato img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1);
  border-radius: 2px;
}

@media (max-width: 1023px) {
  .h-casohero__lado {
    order: 1;
    margin-bottom: 1.25rem;
  }

  .h-casohero__lado .h-informe {
    margin-bottom: 0;
  }
}

/* /estudio/: banda sin foto, mismo aire arriba que abajo */
.h-estudio--sinfoto {
  padding-top: var(--jd-space-9);
}

.h-estudio--sinfoto .h-estudio__grid {
  margin-top: 0;
}

@media (min-width: 1024px) {
  /* Fernando: foto + tarjeta altas; la cabecera arranca arriba para que entren en la primera pantalla. */
  .h-casohero--fernando {
    min-height: 0;
    padding-top: calc(var(--jd-header-h) + 1.5rem);
    align-items: flex-start;
  }

  .h-casohero--fernando .h-casohero__grid {
    align-items: start;
  }

  .h-casohero--fernando .h-casohero__texto {
    padding-top: 3rem;
  }

  .h-casohero--fernando .h-informe {
    padding: 1.25rem 1.5rem 1rem;
  }

  .h-casohero--fernando .h-informe__cab {
    padding-bottom: 0.75rem;
    margin-bottom: 0.9rem;
  }

  .h-casohero--fernando .h-informe__cifras div {
    padding: 1rem 1.25rem;
  }
}

/* ================= Servicios · panel con enjambre de partículas ================= */
.h-sfx {
  position: relative;
  background: var(--jd-night);
  overflow: hidden;
  border-radius: 2px;
}

.h-sfx .h-esquema {
  position: relative;
  z-index: 1;
  background: transparent;
}

.h-sfx__lienzo {
  display: none;
}

html.jd-js .h-sfx__lienzo {
  display: block;
  width: 100%;
  height: 230px;
}

/* Pasos: con la animación viva, el paso de la fase actual se enciende */
.h-sfx.is-vivo .h-esquema li {
  color: #8E8B84;
  transition: color 0.5s var(--jd-ease);
}

.h-sfx.is-vivo .h-esquema li i {
  transition: background 0.5s var(--jd-ease), box-shadow 0.5s var(--jd-ease);
}

.h-sfx.is-vivo .h-esquema li.is-past {
  color: #C9C6BF;
}

.h-sfx.is-vivo .h-esquema li.is-on {
  color: #fff;
}

.h-sfx.is-vivo .h-esquema li:last-child i {
  background: var(--jd-night);
  box-shadow: none;
}

.h-sfx.is-vivo .h-esquema li.is-on i,
.h-sfx.is-vivo .h-esquema li.is-past i {
  background: var(--jd-gold);
}

.h-sfx.is-vivo .h-esquema li.is-on i {
  box-shadow: 0 0 0 5px rgba(181, 154, 93, 0.22);
}

/* Móvil, opción «detrás»: el enjambre ocupa todo el panel, detrás del esquema */
@media (max-width: 1023px) {
  html.jd-js .h-sfx--detras .h-sfx__lienzo {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0.55;
  }

  .h-sfx--detras .h-esquema {
    min-height: 300px;
    align-content: center;
  }

  /* Opción «debajo» (por defecto): el lienzo va después del esquema */
  .h-sfx:not(.h-sfx--detras) {
    display: flex;
    flex-direction: column;
  }

  .h-sfx:not(.h-sfx--detras) .h-sfx__lienzo {
    order: 2;
  }

  .h-sfx:not(.h-sfx--detras) .h-esquema {
    padding-bottom: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .h-sbloque:has(.h-sfx) {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: var(--jd-space-8);
  }

  .h-sfx {
    min-height: 440px;
  }

  html.jd-js .h-sfx__lienzo {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .h-sfx .h-esquema {
    width: 38%;
    min-height: 440px;
    align-content: center;
  }
}

/* ===== Páginas legales (aviso legal, privacidad, cookies) ===== */
.h-legal {
  padding: calc(var(--jd-header-h) + 2.5rem) 0 var(--jd-space-8);
}
.h-legal__wrap {
  max-width: 820px;
}
.jd-web .h-legal__titulo {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.jd-web .h-legal__meta {
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--jd-line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jd-gold-texto);
}
.jd-web .h-legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
}
.jd-web .h-legal p,
.jd-web .h-legal li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--jd-ink);
}
.jd-web .h-legal p { margin: 0 0 1rem; }
.jd-web .h-legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.jd-web .h-legal li { margin-bottom: 0.35rem; }
.jd-web .h-legal a {
  color: var(--jd-ink);
  text-decoration: underline;
  text-decoration-color: var(--jd-gold);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.h-legal__pendiente {
  background: #FFF1C2;
  color: #5C4300;
  padding: 0 0.2em;
  border-radius: 3px;
}
.h-legal__tabla { margin: 1.5rem 0 2rem; }
.h-legal__tabla table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}
.h-legal__tabla th,
.h-legal__tabla td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--jd-line);
}
.h-legal__tabla th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jd-muted);
  border-bottom: 1px solid var(--jd-ink);
}
@media (max-width: 767px) {
  .h-legal { padding-top: calc(var(--jd-header-h) + 1.5rem); }
  .h-legal__tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .h-legal__tabla table, .h-legal__tabla tbody, .h-legal__tabla tr, .h-legal__tabla td { display: block; width: 100%; }
  .h-legal__tabla tr {
    border: 1px solid var(--jd-line);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
  }
  .h-legal__tabla td { border: 0; padding: 0.35rem 0; }
  .h-legal__tabla td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--jd-muted);
  }
}

/* ===== Gracias de la sesión (/enhorabuena-confirma-tu-crecimiento/) ===== */
.h-gcab .jd-header__inner { justify-content: center; }
.h-gracias {
  background: var(--jd-night);
  color: #E8E2D6;
  padding: calc(var(--jd-header-h) + 2.5rem) 0 var(--jd-space-8);
  text-align: center;
}
.h-gracias__wrap { max-width: 760px; }
.h-gcheck {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.75rem;
  background: transparent;
  border-radius: 50%;
}
html.jd-js .h-gcheck .h-sfx__lienzo { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-gcheck__fijo { width: 100%; height: 100%; fill: none; stroke: var(--jd-gold); stroke-width: 1.5; stroke-dasharray: 0.01 3.2; stroke-linecap: round; }
html.jd-js .h-gcheck.is-vivo .h-gcheck__fijo { display: none; }
.jd-web .h-gracias__titulo {
  margin: 0 0 1.5rem;
  color: #fff;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h-gracias__texto p {
  margin: 0 auto 1rem;
  max-width: 40rem;
  color: #C9C6BF;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.h-gpasos-sec { padding: var(--jd-space-8) 0; }
.h-gpasos-sec__wrap { max-width: 640px; display: grid; gap: 1.5rem; }
.jd-web.h-r10 .h-gpasos-sec__eyebrow, .jd-web .h-gpasos-sec__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jd-gold-texto);
}
.h-gpasos li { color: #8E8B84; }
.h-gpasos li:last-child { color: #8E8B84; }
.h-gpasos li:last-child i { background: var(--jd-night); box-shadow: none; }
.h-gpasos li.is-on { color: #fff; }
.h-gpasos li.is-on i { background: var(--jd-gold); box-shadow: 0 0 0 5px rgba(181, 154, 93, 0.22); }
body.jd-web.h-r10 a.h-gwa, .jd-web .h-gwa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: #0F7A40;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s var(--jd-ease), transform 0.2s var(--jd-ease);
}
body.jd-web.h-r10 a.h-gwa:hover, .jd-web .h-gwa:hover { background: #0B6634; transform: translateY(-1px); }
.jd-web .h-gwa:focus-visible { outline: 3px solid var(--jd-gold); outline-offset: 3px; }
.h-gwa svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; }
.h-gurgente { padding: var(--jd-space-7) 0; border-top: 1px solid var(--jd-line); }
.h-gurgente__wrap { max-width: 640px; }
.jd-web .h-gurgente h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0 0 1rem; }
.h-gurgente p { margin: 0 0 0.9rem; line-height: 1.65; }
.h-gurgente__btn { margin-top: 0.75rem; }
.h-gvideo { padding: var(--jd-space-8) 0; background: var(--jd-bg-soft, #F4F2EC); }
.h-gvideo__grid { display: grid; gap: 1.5rem; align-items: center; }
.h-gvideo__media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.h-gvideo__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jd-web .h-gvideo__texto h2 { margin: 0.5rem 0 0.75rem; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }
.h-gvideo__texto p { margin: 0; font-size: 1.125rem; line-height: 1.5; }
.h-glogos { padding-top: var(--jd-space-7); }
.h-gcierre { padding: var(--jd-space-7) 0 var(--jd-space-8); text-align: center; }
.h-gcierre__wrap { max-width: 640px; }
.h-gcierre__manifiesto { margin: 0 0 0.75rem; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); font-weight: 700; line-height: 1.4; }
.h-gcierre__marca { margin: 0 0 1.5rem; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--jd-gold-texto); }
.h-gcierre__micro { margin: 0; font-size: 13px; line-height: 1.6; color: var(--jd-muted); }
.h-gpie { padding: var(--jd-space-5) 0; }
.h-gpie .jd-footer__legal { margin-top: 0; padding-top: 0; border-top: 0; }
/* No hereda la altura de los paneles de /servicios/ */
.h-sfx.h-gcheck { min-height: 0; }
@media (min-width: 1024px) {
  .h-sfx.h-gcheck { width: 240px; height: 240px; min-height: 0; }
  .h-gvideo__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--jd-space-8); }
}
@media (max-width: 1023px) {
  .h-gpie { padding-bottom: 6rem; }
}
@media (max-width: 480px) {
  .jd-web .h-gwa { font-size: 1rem; padding: 0 1rem; gap: 0.6rem; min-height: 58px; }
  .h-gwa svg { width: 22px; height: 22px; }
}
