/* ==========================================================================
   FIGURA & NUTRICIÓN — HOJA DE ESTILOS ÚNICA
   Sin dependencias externas: ni frameworks, ni fuentes remotas (RGPD).
   ========================================================================== */

/* ---------- 1. VARIABLES ---------- */
:root {
  /* --- Paleta cálida: beige, verdes suaves y terracota pastel ---
     Los tonos claros son para fondos y los "-texto" para escribir encima:
     un pastel puro sobre crema no tiene contraste suficiente para leerse. */
  --ink:        #2B443A;   /* verde profundo, algo más cálido que el anterior */
  --ink-soft:   #52685D;
  --ink-mute:   #5E7168;
  --sage:       #A8C0AE;   /* verde pastel */
  --sage-deep:  #55755F;   /* verde medio, para enlaces y acentos legibles */
  --sage-light: #E9F0E9;
  --cream:      #FDFBF7;   /* beige muy claro, fondo general */
  --sand:       #F5EDE3;   /* beige */
  --line:       #EADFD2;
  --clay:       #E9A87F;   /* terracota pastel: fondo de botones */
  --clay-dark:  #E0966A;
  --clay-texto: #A9613C;   /* el mismo tono, oscurecido para textos */
  --clay-light: #FBEDE4;
  --gold:       #C6A15E;
  --white:      #FFFFFF;
  --amber:      #E0B15C;
  --red:        #B4645C;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(23, 50, 42, .06);
  --shadow: 0 10px 30px rgba(23, 50, 42, .08);
  --shadow-lg: 0 24px 60px rgba(23, 50, 42, .12);
  --wrap: 1120px;
  --wrap-narrow: 760px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* El atributo hidden debe ganar siempre: los .btn tienen display propio. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }

p { margin: 0 0 1.1em; }
a { color: var(--sage-deep); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

section { padding: clamp(56px, 8vw, 104px) 0; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 14px;
}

.lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--ink-soft); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 620px; }
.muted { color: var(--ink-mute); font-size: .92rem; }

/* ---------- 3. BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border: 0;
  border-radius: 100px;
  background: var(--clay);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
  box-shadow: 0 6px 18px rgba(196, 138, 105, .34);
  text-align: center;
}
.btn:hover { background: var(--clay-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(196, 138, 105, .42); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 3px; }

.btn-lg { padding: 20px 38px; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--sand); color: var(--ink); box-shadow: none; }

.btn-sage { background: var(--sage-deep); box-shadow: 0 6px 18px rgba(78, 116, 96, .28); }
.btn-sage:hover { background: #3E5F4D; box-shadow: 0 10px 26px rgba(78, 116, 96, .32); }

.btn-note { display: block; margin-top: 12px; font-size: .88rem; color: var(--ink-mute); }

/* ---------- 4. CABECERA ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .01em;
}
.brand span { color: var(--sage-deep); }
.header-cta { padding: 11px 22px; font-size: .93rem; box-shadow: none; }

/* ---------- 5. HERO ---------- */
.hero {
  padding: clamp(44px, 6vw, 76px) 0 clamp(52px, 7vw, 92px);
  background:
    radial-gradient(1100px 480px at 88% -8%, var(--sage-light) 0%, transparent 62%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream) 70%, var(--sand) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em {
  font-style: normal;
  color: var(--clay-texto);
  text-decoration: underline;
  text-decoration-color: rgba(192, 98, 60, .28);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}
.hero-sub { font-size: clamp(1.06rem, 1.9vw, 1.24rem); color: var(--ink-soft); max-width: 30em; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 17px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: .84rem;
  font-weight: 600;
  color: var(--sage-deep);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(124, 156, 138, .22);
}

.hero-list { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 11px; }
.hero-list li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.hero-list li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--sage-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E7460' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 15px 20px;
  box-shadow: var(--shadow);
  max-width: 250px;
}
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.55rem; color: var(--clay-texto); line-height: 1; }
.hero-badge span { font-size: .84rem; color: var(--ink-mute); }

/* ---------- 6. FRANJA DE CONFIANZA ---------- */
.trust {
  background: var(--ink);
  color: rgba(255, 255, 255, .9);
  padding: 22px 0;
}
.trust ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px;
  font-size: .93rem;
}
.trust li { display: flex; align-items: center; gap: 9px; }
.trust li::before { content: "✓"; color: var(--sage); font-weight: 700; }

/* ---------- 7. TARJETAS GENÉRICAS ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--sage-light);
  display: grid; place-items: center;
  margin-bottom: 16px;
  font-size: 1.35rem;
}

/* ---------- 8. SECCIÓN "LA BÁSCULA" ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}
.quote-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.quote-card p { color: rgba(255, 255, 255, .88); }
.quote-card strong { color: var(--white); }
.quote-card .big {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  color: var(--white);
}

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .3em;
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--clay-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C98A64' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- 9. PASOS ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.step .time { font-size: .82rem; color: var(--clay-texto); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- 10. INVITACIÓN AL ESTUDIO ---------- */
.estudio-section {
  background:
    radial-gradient(700px 380px at 12% 8%, rgba(168, 192, 174, .30) 0%, transparent 62%),
    radial-gradient(620px 340px at 92% 92%, rgba(233, 168, 127, .22) 0%, transparent 60%),
    linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
}

.invitacion {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(30px, 5vw, 56px);
  max-width: 1000px;
  margin: 0 auto;
}

.invitacion h2 { margin-bottom: .35em; }
.invitacion .lead { margin-bottom: 26px; }

.invitacion-datos {
  list-style: none;
  margin: 0 0 30px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
}
.invitacion-datos li { display: flex; flex-direction: column; }
.invitacion-datos strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--clay-texto);
  line-height: 1.1;
}
.invitacion-datos span { font-size: .84rem; color: var(--ink-mute); }

/* Muestra del informe: adelanto visual de lo que va a recibir */
.invitacion-muestra {
  background: linear-gradient(160deg, var(--ink) 0%, #22443A 100%);
  border-radius: var(--radius-lg);
  padding: 26px 24px 20px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.invitacion-muestra::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(320px 180px at 80% 0%, rgba(124, 156, 138, .35), transparent 70%);
  pointer-events: none;
}
.muestra-etiqueta {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 16px;
}
.muestra-cara { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.muestra-dato {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.muestra-dato b {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 2px;
}
.muestra-dato span { font-size: .72rem; color: rgba(255, 255, 255, .62); letter-spacing: .04em; }
.muestra-pie { margin: 14px 0 0; font-size: .76rem; color: rgba(255, 255, 255, .45); text-align: center; }

/* ---------- 11. MODAL DEL ESTUDIO ---------- */
body.modal-abierto { overflow: hidden; }

.modal-estudio {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s ease;
}
.modal-estudio.is-visible { opacity: 1; }
.modal-estudio[hidden] { display: none; }

.modal-fondo {
  position: absolute;
  inset: 0;
  background: rgba(15, 32, 27, .62);
  backdrop-filter: blur(4px);
}

.modal-caja {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: min(92vh, 760px);
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(.985);
  transition: transform .28s cubic-bezier(.2, .8, .3, 1);
  outline: none;
}
.modal-estudio.is-visible .modal-caja { transform: none; }

.modal-top {
  padding: 16px 20px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.modal-top-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.modal-marca {
  font-family: var(--serif);
  font-size: .98rem;
  color: var(--ink);
}
.modal-marca span { color: var(--sage-deep); }
.modal-contador {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: .04em;
  margin-left: auto;
  margin-right: 6px;
}
.modal-cerrar {
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s ease;
}
.modal-cerrar:hover { background: var(--line); }

.modal-top .progress { margin: 0 -20px; border-radius: 0; height: 4px; }

.modal-cuerpo {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 38px) clamp(20px, 4vw, 40px) 10px;
  -webkit-overflow-scrolling: touch;
}

.pantalla { animation: entra .3s cubic-bezier(.2, .8, .3, 1); }
.pantalla.desde-atras { animation: entraAtras .3s cubic-bezier(.2, .8, .3, 1); }
@keyframes entra { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes entraAtras { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.pantalla-num {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--clay-texto);
  margin-bottom: 10px;
}
.pantalla-num span { font-size: .8rem; color: var(--ink-mute); }

.pantalla-pregunta {
  font-family: var(--serif);
  font-size: clamp(1.32rem, 3vw, 1.72rem);
  line-height: 1.22;
  margin: 0 0 8px;
  color: var(--ink);
}
.pantalla-ayuda { color: var(--ink-mute); font-size: .95rem; margin-bottom: 24px; }
.pantalla-pregunta + .pantalla-campos { margin-top: 22px; }

.pantalla-campos.es-grupo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

/* Opciones tipo entrevista, con letra para elegir por teclado */
.opciones { display: grid; gap: 10px; }
.opciones.cols-2 { grid-template-columns: repeat(2, 1fr); }

.opcion {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.opcion:hover { border-color: var(--sage); transform: translateX(2px); }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }

.opcion .tecla {
  flex: 0 0 auto;
  width: 27px; height: 27px;
  border-radius: 7px;
  background: var(--sand);
  color: var(--ink-mute);
  font-size: .78rem;
  font-weight: 700;
  display: grid; place-items: center;
  transition: background .15s ease, color .15s ease;
}
.opcion .txt { flex: 1; }
.opcion .marca {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
}
.opcion .marca::after {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sage-deep);
  transform: scale(0);
  transition: transform .15s ease;
}
.opcion:has(input:checked) { border-color: var(--sage-deep); background: var(--sage-light); }
.opcion:has(input:checked) .tecla { background: var(--sage-deep); color: var(--white); }
.opcion:has(input:checked) .txt { font-weight: 600; }
.opcion:has(input:checked) .marca { border-color: var(--sage-deep); }
.opcion:has(input:checked) .marca::after { transform: scale(1); }
.opcion:has(input:focus-visible) { border-color: var(--sage-deep); box-shadow: 0 0 0 4px rgba(124, 156, 138, .25); }

/* Campos de escritura dentro del modal */
.campo { margin-bottom: 18px; }
.campo:last-child { margin-bottom: 0; }
.campo > label {
  display: block;
  font-weight: 650;
  margin-bottom: 8px;
  font-size: .96rem;
}
.campo .unidad { color: var(--ink-mute); font-weight: 400; }
.campo .hint { display: block; font-weight: 400; color: var(--ink-mute); font-size: .86rem; margin-top: 3px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(124, 156, 138, .18);
}
.campo.has-error input, .campo.has-error textarea { border-color: var(--red); }
.opciones.has-error .opcion { border-color: rgba(180, 69, 60, .5); }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  background: var(--sand);
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--sage-deep); }

.error-msg {
  display: none;
  color: var(--red);
  font-size: .9rem;
  font-weight: 600;
  padding: 0 clamp(20px, 4vw, 40px);
  margin: 0 0 4px;
}
.error-msg.is-visible { display: block; }

.modal-pie {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px clamp(20px, 4vw, 40px) 20px;
  background: var(--white);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.modal-pie .btn { flex: 0 0 auto; }
.modal-pie #btn-siguiente { min-width: 190px; }
.pista-teclado { margin-left: auto; font-size: .8rem; color: var(--ink-mute); }
.pista-teclado kbd {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: inherit;
  font-size: .78rem;
}

/* Pantalla de cálculo */
.calculando { text-align: center; padding: 30px 0 10px; }
.cargando { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; }
.cargando span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--sage-deep);
  animation: pulso 1s infinite ease-in-out;
}
.cargando span:nth-child(2) { animation-delay: .15s; }
.cargando span:nth-child(3) { animation-delay: .3s; }
@keyframes pulso { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- 11b. INFORME EN LA PÁGINA ---------- */
.resultado, .no-encaje { display: none; }
.resultado.is-active, .no-encaje.is-active { display: block; animation: entra .45s ease; }

.resultado-caja, .no-encaje-caja {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 46px);
  max-width: 1000px;
  margin: 0 auto;
}

.no-encaje-caja { text-align: center; max-width: 640px; }
.no-encaje-caja .ico-grande { font-size: 2.6rem; margin-bottom: 10px; }
.no-encaje-caja .lead { max-width: 500px; margin: 0 auto 16px; }

.resultado-hero { text-align: center; margin-bottom: 30px; }
.resultado-hero h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .3em; }

.metricas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 26px; }
.metrica {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.metrica .valor {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.metrica .valor.acento { color: var(--clay-texto); }
.metrica .etiqueta { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-mute); font-weight: 650; }
.metrica .nota { font-size: .86rem; color: var(--ink-soft); margin: 8px 0 0; }

.barra-rango { margin: 14px 0 4px; }
.barra-rango .pista {
  position: relative;
  height: 8px;
  border-radius: 100px;
  background: linear-gradient(90deg, #E8E2D6 0%, var(--sage-light) 35%, var(--sage-light) 65%, #F3DCD2 100%);
}
.barra-rango .marcador {
  position: absolute;
  top: 50%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  transform: translate(-50%, -50%);
}
.barra-rango .leyenda { display: flex; justify-content: space-between; font-size: .74rem; color: var(--ink-mute); margin-top: 8px; }

.bloque-resultado {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}
.bloque-resultado h4 { font-size: 1.12rem; margin-bottom: 14px; }
.palanca { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.palanca:last-child { border-bottom: 0; padding-bottom: 0; }
.palanca strong { display: block; margin-bottom: 3px; color: var(--ink); }
.palanca span { font-size: .94rem; color: var(--ink-soft); }

.preencuadre { display: grid; gap: 12px; margin-bottom: 26px; }
.preencuadre .item {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--sage-light);
  border-radius: 12px;
  padding: 16px 18px;
}
.preencuadre .item .ico { font-size: 1.05rem; line-height: 1.4; color: var(--sage-deep); }
.preencuadre .item p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.preencuadre .item strong { color: var(--ink); }

.cta-resultado {
  background: linear-gradient(150deg, var(--ink) 0%, #23453A 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 38px);
  text-align: center;
}
.cta-resultado h4 { color: var(--white); font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.cta-resultado p { color: rgba(255, 255, 255, .85); max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-resultado .paso {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay); margin: 0 0 10px; font-weight: 600;
}
.preencuadre-titulo {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 2px; font-weight: 600;
}
.cierre-resultado { text-align: center; margin-top: 28px; }
.cta-resultado .mini { font-size: .84rem; color: rgba(255, 255, 255, .58); margin: 14px 0 0; }

/* ---------- 12. MÉTODO ---------- */
.metodo { background: var(--ink); color: rgba(255, 255, 255, .86); }
.metodo h2, .metodo h3 { color: var(--white); }
.metodo .eyebrow { color: var(--sage); }
.metodo .card {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
  color: rgba(255, 255, 255, .82);
}
.metodo .card-icon { background: rgba(124, 156, 138, .22); }

/* ---------- 13. JOHANNA ---------- */
.johanna-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.johanna-foto {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
}
.johanna-foto img { width: 100%; height: 100%; object-fit: cover; }
.firma { font-family: var(--serif); font-size: 1.3rem; color: var(--sage-deep); margin-top: 6px; }

/* ---------- 14. TESTIMONIOS ---------- */
.testimonios { background: var(--sand); }
.testimonio {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonio .texto { font-size: 1.02rem; color: var(--ink-soft); flex: 1; }
.testimonio .texto::before { content: "“"; font-family: var(--serif); font-size: 2.4rem; color: var(--sage); line-height: 0; vertical-align: -.32em; margin-right: 4px; }
.testimonio .persona { display: flex; align-items: center; gap: 12px; }
.testimonio .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage-light);
  display: grid; place-items: center;
  font-family: var(--serif);
  color: var(--sage-deep);
  font-size: 1.05rem;
  flex: 0 0 auto;
  overflow: hidden;
}
.testimonio .avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonio .persona strong { display: block; font-size: .96rem; }
.testimonio .persona span { font-size: .84rem; color: var(--ink-mute); }

.placeholder-nota {
  background: #FFF8E6;
  border: 1px dashed var(--amber);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .88rem;
  color: #7A5B18;
  margin-top: 26px;
}

/* ---------- 15. COMPARATIVA ---------- */
.comparativa { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.comparativa .col {
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  border: 1px solid var(--line);
  background: var(--white);
}
.comparativa .col.destacada {
  background: var(--ink);
  color: rgba(255, 255, 255, .86);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.comparativa .col.destacada h3 { color: var(--white); }
.comparativa .precio {
  font-family: var(--serif);
  font-size: 2.2rem;
  display: block;
  margin-bottom: 4px;
}
.comparativa .col.destacada .precio { color: var(--sage); }
.comparativa ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: .95rem; }
.comparativa li { padding-left: 26px; position: relative; }
.comparativa li::before { content: "•"; position: absolute; left: 6px; color: var(--sage); font-weight: 700; }

/* ---------- 16. PROGRAMAS ---------- */
.programa {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.programa.destacado { border: 2px solid var(--clay); box-shadow: var(--shadow); }
.programa .badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--clay); color: var(--ink);
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
}
.programa .rol { font-size: .84rem; color: var(--sage-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.programa h3 { margin: 6px 0 10px; }
.programa .precio { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-bottom: 12px; }
.programa ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: .95rem; color: var(--ink-soft); flex: 1; }
.programa li { padding-left: 26px; position: relative; }
.programa li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--sage-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E7460' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}

.garantia {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--sage-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 30px;
}
.garantia .sello {
  flex: 0 0 auto;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--white);
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--serif);
  line-height: 1.1;
  color: var(--sage-deep);
  box-shadow: var(--shadow-sm);
}
.garantia .sello b { display: block; font-size: 1.7rem; }
.garantia .sello span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- 17. FAQ ---------- */
.faq { max-width: var(--wrap-narrow); margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 20px 54px 20px 24px;
  font-weight: 650;
  list-style: none;
  position: relative;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--sage-deep);
  font-weight: 400;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--sage-deep); }
.faq .respuesta { padding: 0 24px 22px; color: var(--ink-soft); }
.faq .respuesta p:last-child { margin-bottom: 0; }

/* ---------- 18. CTA FINAL ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--ink) 0%, #234438 100%);
  color: var(--white);
  text-align: center;
}
.cta-final h2 { color: var(--white); }
.cta-final p { color: rgba(255, 255, 255, .85); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- 19. PIE ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  padding: 44px 0 30px;
  font-size: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; line-height: 1.6; }

/* ---------- 20. CTA FIJO EN MÓVIL ---------- */
.cta-movil {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 243, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: none;
  transform: translateY(110%);
  transition: transform .3s ease;
}
.cta-movil.is-visible { transform: none; }

/* ---------- 21. BANNER DE COOKIES ---------- */
.cookies {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 70;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  display: none;
}
.cookies.is-visible { display: block; animation: fade .3s ease; }
.cookies p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }
.cookies .acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.cookies .btn { padding: 11px 20px; font-size: .92rem; box-shadow: none; }

/* ---------- 22. PÁGINAS LEGALES ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 22px 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.32rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; }
.legal .volver { display: inline-block; margin-bottom: 26px; font-weight: 600; text-decoration: none; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .93rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--sand); font-weight: 650; }

/* ---------- 23. ACCESIBILIDAD ---------- */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 24. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; margin: 0 auto; }

  /* Cuadrada, no alargada: así el sello de 0 € entra en el primer vistazo.
     El encuadre se sube un poco para no cortar a la persona por la cabeza. */
  .hero-media img {
    aspect-ratio: 1 / 1;
    max-height: 46vh;
  }
  /* El sello va dentro de la foto, apoyado en la esquina */
  .hero-badge {
    left: 12px;
    right: auto;
    bottom: 12px;
    max-width: 220px;
    padding: 12px 16px;
    background: rgba(253, 251, 247, .96);
    backdrop-filter: blur(3px);
  }
  .hero-badge strong { font-size: 1.3rem; }
  .hero-badge span { font-size: .78rem; line-height: 1.4; display: block; }

  /* El marco desplazado funciona en escritorio, pero en móvil asoma por
     encima de la foto y ensucia el primer golpe de vista. */
  .hero-media::before { display: none; }
  .hero-media img { box-shadow: var(--shadow); }

  /* La pastilla se comía dos líneas enteras */
  .pill { font-size: .8rem; padding: 7px 14px; margin-bottom: 18px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .johanna-grid { grid-template-columns: 1fr; }
  .johanna-foto { max-width: 330px; }
  .invitacion { grid-template-columns: 1fr; }
  .invitacion-muestra { order: -1; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .grid-3, .grid-2, .steps, .split, .comparativa { grid-template-columns: 1fr; }

  /* --- Márgenes y ritmo vertical ---
     En móvil todo comparte el mismo margen lateral (20 px) y las bandas de
     color van a ancho completo: con 12 px de margen quedaba un escalón
     respecto al resto del contenido. */
  .wrap { padding: 0 20px; }
  section { padding: 52px 0; }

  .metodo,
  .cta-final {
    margin-left: 0;
    margin-right: 0;
    border-radius: 30px 30px 0 0;
  }
  .metodo { border-radius: 30px; }

  /* Separación entre el encabezado de cada sección y su contenido */
  .center[style*="margin-bottom"] { margin-bottom: 28px !important; }

  /* Los bloques que iban sueltos, al mismo ritmo */
  .grid, .steps, .videos, .galeria { gap: 14px; }
  .invitacion { padding: 26px 20px; }
  .contador { padding: 18px 20px; margin-bottom: 16px; }
  .garantia { margin-top: 22px; padding: 24px 20px; }
  .hero { padding: 32px 0 44px; }
  .hero-grid { gap: 26px; }
  .hero-list { margin: 20px 0 24px; }

  /* Las cuatro tarjetas del informe, en dos columnas, dejaban renglones de
     dos palabras. En móvil pasan a una sola columna y en formato fila:
     el icono a la izquierda y el texto al lado. Ocupa menos alto que antes. */
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .grid-4 .card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 15px;
    align-items: start;
    padding: 18px 20px;
  }
  .grid-4 .card-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    font-size: 1.2rem;
  }
  .grid-4 .card h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.06rem;
    margin-bottom: .25em;
    align-self: center;
  }
  .grid-4 .card p {
    grid-column: 2;
    grid-row: 2;
    font-size: .93rem;
    margin: 0;
  }
  .header-cta { display: none; }
  .cta-movil { display: block; }
  .metricas { grid-template-columns: 1fr; }
  .opciones.cols-2 { grid-template-columns: 1fr; }
  .garantia { flex-direction: column; text-align: center; }
  body.tiene-cta-movil { padding-bottom: 86px; }
  body.estudio-hecho .cta-movil { display: none; }
  body.estudio-hecho.tiene-cta-movil { padding-bottom: 0; }
  .cookies { left: 10px; right: 10px; bottom: 10px; }

  /* El estudio ocupa toda la pantalla en móvil: sensación de app, no de formulario */
  .modal-estudio { padding: 0; }
  .modal-caja {
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
  }
  .modal-cuerpo { padding: 24px 20px 12px; }
  .modal-pie { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
  .modal-pie #btn-siguiente { flex: 1 1 auto; min-width: 0; }
  .pista-teclado { display: none; }
  .invitacion-datos { gap: 12px 24px; }
  .muestra-cara { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .pantalla-campos.es-grupo { grid-template-columns: 1fr; }
  .opcion { padding: 14px 14px; gap: 11px; }
  .modal-pie .btn-ghost { padding: 15px 20px; }
}

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


/* ==========================================================================
   25. MOVIMIENTO Y FORMAS ORGÁNICAS
   --------------------------------------------------------------------------
   Todo lo de este bloque es decorativo: si se quita, la landing sigue
   funcionando igual. Respeta prefers-reduced-motion (bloque 26).
   ========================================================================== */

/* ---------- 25.1 · APARICIÓN AL HACER SCROLL ----------
   Los elementos con [data-reveal] entran suavemente al verse.
   La clase .reveal-listo la pone el propio JS que gestiona la animación: si ese
   JS no carga, falla o es de una versión antigua, la clase no aparece y todo se
   ve con normalidad. Una animación nunca debe poder ocultar contenido. */
.reveal-listo [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
  transition-delay: calc(var(--retraso, 0) * 90ms);
  will-change: opacity, transform;
}
.reveal-listo [data-reveal].se-ve { opacity: 1; transform: none; }

/* Variantes de entrada */
.reveal-listo [data-reveal="izquierda"] { transform: translateX(-30px); }
.reveal-listo [data-reveal="derecha"] { transform: translateX(30px); }
.reveal-listo [data-reveal="escala"] { transform: scale(.94); }
.reveal-listo [data-reveal="izquierda"].se-ve,
.reveal-listo [data-reveal="derecha"].se-ve,
.reveal-listo [data-reveal="escala"].se-ve { transform: none; }

/* ---------- 25.2 · MANCHAS DE COLOR ----------
   Formas irregulares de fondo que rompen la cuadrícula. */
.mancha {
  position: absolute;
  border-radius: 62% 38% 45% 55% / 52% 45% 55% 48%;
  filter: blur(2px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
  animation: flotar 18s ease-in-out infinite;
}
.mancha-verde { background: radial-gradient(circle at 35% 35%, rgba(168, 192, 174, .60), rgba(168, 192, 174, .14)); }
.mancha-arena { background: radial-gradient(circle at 60% 40%, rgba(224, 197, 163, .55), rgba(224, 197, 163, .10)); }
.mancha-barro { background: radial-gradient(circle at 50% 50%, rgba(233, 168, 127, .30), rgba(233, 168, 127, .05)); }

@keyframes flotar {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%      { transform: translate(14px, -18px) rotate(6deg) scale(1.04); }
  66%      { transform: translate(-12px, 12px) rotate(-4deg) scale(.97); }
}

/* El contenido siempre por encima de las manchas */
.hero .wrap, .estudio-section .wrap, .cta-final .wrap { position: relative; z-index: 1; }
.hero, .estudio-section, .cta-final, .testimonios { position: relative; overflow: hidden; }

/* Colocación concreta */
.hero .mancha-verde { width: 460px; height: 460px; top: -140px; right: -120px; }
.hero .mancha-arena { width: 300px; height: 300px; bottom: -110px; left: -90px; animation-delay: -6s; }
.estudio-section .mancha-verde { width: 380px; height: 380px; top: -120px; left: -110px; animation-delay: -3s; }
.estudio-section .mancha-barro { width: 320px; height: 320px; bottom: -120px; right: -90px; animation-delay: -9s; }
.testimonios .mancha-arena { width: 340px; height: 340px; top: -120px; right: -100px; opacity: .4; }
.cta-final .mancha-verde { width: 420px; height: 420px; bottom: -180px; left: -100px; opacity: .3; }

/* ---------- 25.3 · SECCIONES CON ESQUINAS REDONDEADAS ----------
   Las bandas oscuras dejan de ser rectángulos a sangre. */
.metodo {
  border-radius: clamp(28px, 5vw, 56px);
  margin: 0 clamp(12px, 3vw, 40px);
}
.cta-final {
  border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0;
  margin: 0 clamp(12px, 3vw, 40px);
}
.trust { border-radius: 0 0 clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px); }

/* ---------- 25.4 · IMÁGENES CON FORMA ---------- */
.hero-media img {
  border-radius: clamp(80px, 14vw, 170px) 24px clamp(80px, 14vw, 170px) 24px;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -18px -18px 30px 26px;
  border: 1.5px solid rgba(124, 156, 138, .45);
  border-radius: clamp(80px, 14vw, 170px) 24px clamp(80px, 14vw, 170px) 24px;
  z-index: -1;
}

.johanna-foto {
  border-radius: 58% 42% 52% 48% / 46% 50% 50% 54%;
  animation: morfar 16s ease-in-out infinite;
}
@keyframes morfar {
  0%, 100% { border-radius: 58% 42% 52% 48% / 46% 50% 50% 54%; }
  50%      { border-radius: 46% 54% 44% 56% / 54% 44% 56% 46%; }
}

/* ---------- 25.5 · SUBRAYADO A MANO ----------
   Sustituye al subrayado recto del hero. */
.hero h1 em {
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.08em;
  height: .32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none'%3E%3Cpath d='M2 13C48 5 104 3 152 6c46 3 92 7 146 2' stroke='%23C98A64' stroke-width='5' fill='none' stroke-linecap='round' opacity='.42'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  z-index: -1;
}

/* ---------- 25.6 · MICROINTERACCIONES ---------- */
.card, .step, .programa, .testimonio {
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover, .step:hover, .testimonio:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(124, 156, 138, .5);
}
.programa:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.card-icon { transition: transform .35s cubic-bezier(.34, 1.4, .64, 1); }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.1); }

.step::before { transition: transform .35s cubic-bezier(.34, 1.4, .64, 1); }
.step:hover::before { transform: scale(1.12) rotate(-6deg); }

.invitacion-muestra { transition: transform .4s cubic-bezier(.2, .7, .3, 1); }
.invitacion:hover .invitacion-muestra { transform: translateY(-6px) rotate(-.8deg); }

.muestra-dato { transition: background .3s ease, transform .3s ease; }
.invitacion-muestra:hover .muestra-dato { background: rgba(255, 255, 255, .12); }

/* La pastilla del hero respira */
.pill .dot { animation: latido 2.6s ease-in-out infinite; }
@keyframes latido {
  0%, 100% { box-shadow: 0 0 0 4px rgba(124, 156, 138, .22); }
  50%      { box-shadow: 0 0 0 8px rgba(124, 156, 138, .10); }
}

/* Flecha del botón principal */
.btn .flecha { transition: transform .25s ease; }
.btn:hover .flecha { transform: translateX(4px); }

/* Cabecera: gana sombra al bajar */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.con-sombra { box-shadow: 0 6px 24px rgba(23, 50, 42, .08); }

/* ---------- 25.7 · CIFRAS DEL INFORME ----------
   El valor se anima al aparecer (contador en JS) y la barra se desliza. */
.metrica { transition: transform .3s ease, box-shadow .3s ease; }
.metrica:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.barra-rango .marcador { transition: left 1.1s cubic-bezier(.2, .8, .3, 1); }

/* ---------- 25.8 · SEPARADOR ONDULADO ---------- */
.onda {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 80px);
  margin-bottom: -1px;
}
.onda path { fill: var(--sand); }
.onda-crema path { fill: var(--cream); }

/* ---------- 26. SIN MOVIMIENTO (accesibilidad) ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-listo [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mancha, .johanna-foto, .pill .dot { animation: none !important; }
  .card:hover, .step:hover, .testimonio:hover, .programa:hover, .metrica:hover { transform: none; }
}


/* ==========================================================================
   31. AJUSTES FINALES DE MÓVIL
   Van al final a propósito: corrigen reglas declaradas más arriba
   (las bandas de color del bloque 25 traían su propio margen lateral).
   ========================================================================== */
@media (max-width: 760px) {
  /* Las bandas de color, a ancho completo: con margen lateral quedaba un
     escalón respecto a los 20 px del resto del contenido. */
  .metodo {
    margin: 0;
    border-radius: 30px;
  }
  .cta-final {
    margin: 0;
    border-radius: 30px 30px 0 0;
  }
  .trust { border-radius: 0 0 24px 24px; }
}

@media print {
  .site-header, .cta-movil, .cookies, .estudio-nav, .btn { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   27. CUENTA ATRÁS DEL GRUPO DEL MES
   ========================================================================== */
.contador {
  max-width: 1000px;
  margin: 0 auto 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px 34px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.contador::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--clay), var(--gold));
}

.contador-info { flex: 1 1 240px; }
.contador-titulo {
  font-family: var(--serif);
  font-size: 1.12rem;
  margin: 0 0 3px;
  color: var(--ink);
}
.contador-sub { margin: 0; font-size: .88rem; color: var(--ink-mute); }

/* --- Los dígitos --- */
.contador-reloj { display: flex; gap: 8px; }
.reloj-bloque {
  min-width: 60px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 6px;
  text-align: center;
}
.reloj-bloque b {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.reloj-bloque span {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
}
.reloj-bloque.segundos b { color: var(--clay-texto); }

/* --- Plazas --- */
.contador-plazas { flex: 1 1 200px; min-width: 190px; }
.plazas-texto {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .86rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.plazas-texto b { font-family: var(--serif); font-size: 1.15rem; color: var(--clay-texto); }
.plazas-barra {
  height: 8px;
  border-radius: 100px;
  background: var(--sand);
  overflow: hidden;
}
.plazas-barra span {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--clay) 0%, var(--gold) 100%);
  width: 0;
  transition: width 1.2s cubic-bezier(.2, .8, .3, 1);
}

/* --- Grupo cerrado: se dice, no se falsea --- */
.contador.cerrado::before { background: var(--sage-deep); }
.contador.cerrado .contador-titulo { color: var(--sage-deep); }

@media (max-width: 760px) {
  .contador { padding: 18px 20px; gap: 16px; }
  .contador-reloj { width: 100%; justify-content: space-between; }
  .reloj-bloque { flex: 1; min-width: 0; }
  .contador-plazas { flex-basis: 100%; }
}

/* ==========================================================================
   28. TESTIMONIOS EN VÍDEO
   ========================================================================== */
.videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.video-tarjeta {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  overflow: hidden;
  font: inherit;
  text-align: left;
  color: inherit;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease, border-color .3s ease;
}
.video-tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--sage);
}
.video-tarjeta:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 3px; }

.video-miniatura {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--sand);
  overflow: hidden;
}
.video-miniatura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.video-tarjeta:hover .video-miniatura img { transform: scale(1.04); }

/* Velo suave para que el botón de play se lea siempre */
.video-miniatura::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 68, 58, 0) 45%, rgba(43, 68, 58, .35) 100%);
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(253, 251, 247, .92);
  color: var(--clay-texto);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(43, 68, 58, .25);
  transition: transform .3s cubic-bezier(.34, 1.4, .64, 1), background .3s ease;
}
.video-play svg { margin-left: 3px; }
.video-tarjeta:hover .video-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--white);
}

.video-datos {
  display: block;
  padding: 16px 18px 18px;
}
.video-datos strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.video-datos span {
  display: block;
  font-size: .88rem;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* ==========================================================================
   29. RESULTADOS (ANTES Y DESPUÉS)
   ========================================================================== */
.resultados { background: var(--sand); position: relative; }

.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.resultado-tarjeta {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
  color: inherit;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease;
}
.resultado-tarjeta:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.resultado-tarjeta:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 3px; }

.resultado-tarjeta img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  background: var(--cream);
}

.resultado-datos { display: block; padding: 15px 18px 17px; border-top: 1px solid var(--line); }
.resultado-datos strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
}
.resultado-datos span { display: block; font-size: .86rem; color: var(--ink-mute); line-height: 1.45; }

.aviso-resultados {
  max-width: 700px;
  margin: 30px auto 0;
  text-align: center;
  font-size: .84rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   30. VISOR A PANTALLA COMPLETA (vídeo y foto)
   ========================================================================== */
.visor {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .24s ease;
}
.visor.is-visible { opacity: 1; }

.visor-fondo {
  position: absolute;
  inset: 0;
  background: rgba(28, 44, 38, .82);
  backdrop-filter: blur(6px);
}

.visor-caja {
  position: relative;
  max-width: min(92vw, 480px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.visor-contenido {
  max-height: 82vh;
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  background: #000;
}
.visor-contenido video,
.visor-contenido img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  display: block;
}
.visor-contenido img { background: var(--cream); }

.visor-pie {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: .95rem;
  text-align: center;
}

.visor-cerrar {
  position: absolute;
  top: -46px;
  right: -6px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
.visor-cerrar:hover { background: rgba(255, 255, 255, .3); }

@media (max-width: 980px) {
  .videos, .galeria { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .videos, .galeria { grid-template-columns: 1fr; gap: 18px; }
  .resultado-tarjeta img { height: 320px; }
  .visor { padding: 16px; }
  .visor-cerrar { top: -44px; right: 0; }
}

/* ==========================================================================
   32. INFORME: ESTADO METABÓLICO Y PROYECCIÓN
   ========================================================================== */
.metabolico {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.metabolico div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.metabolico b {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.metabolico span {
  font-size: .78rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 650;
}
.nota-metabolico { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.aviso-proyeccion {
  font-size: .84rem;
  color: var(--ink-mute);
  background: var(--sand);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .metabolico { grid-template-columns: 1fr; gap: 8px; }
  .metabolico div { display: flex; align-items: baseline; justify-content: space-between; text-align: left; padding: 12px 14px; }
  .metabolico b { margin-bottom: 0; font-size: 1.3rem; }
}

/* ==========================================================================
   33. INFORME AL ESTILO DEL SISTEMA ACTUAL DE FIGURA Y NUTRICIÓN
   Barras de rango, cuadro de ranking físico e indicadores de aguja.
   Mismos elementos que sus informes, con nuestra paleta.
   ========================================================================== */
:root {
  --rango-bajo:      #C4D4DE;
  --rango-saludable: #A8C0AE;
  --rango-alto:      #E8C98A;
  --rango-muyalto:   #E4977A;
}

/* ---------- Ficha del interesado ---------- */
.ficha-interesado {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.ficha-interesado div span {
  display: block;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
  margin-bottom: 2px;
}
.ficha-interesado div b { font-family: var(--serif); font-size: 1rem; font-weight: 600; }

/* ---------- Barra de rango ---------- */
.grafica-barra { margin: 0 0 26px; }
.gb-titulo {
  font-family: var(--serif);
  font-size: 1.28rem;
  text-align: center;
  margin-bottom: 12px;
  color: var(--ink);
}
.gb-titulo b { color: var(--clay-texto); font-weight: 600; }
.gb-escala {
  display: flex;
  justify-content: space-between;
  font-size: .62rem;
  color: var(--ink-mute);
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}
.gb-pista {
  position: relative;
  height: 13px;
  border-radius: 100px;
  overflow: visible;
}
.gb-marcador {
  position: absolute;
  top: -9px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--ink);
  transition: left 1s cubic-bezier(.2,.8,.3,1);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}
.gb-marcador.inicial { border-top-color: var(--clay-texto); opacity: .75; }
.gb-leyenda {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: .76rem;
  color: var(--ink-soft);
}
.gb-leyenda i {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}

/* ---------- Cuadro de ranking físico ---------- */
.ranking {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.ranking-eje-y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--sand);
  border-radius: 8px;
  padding: 6px 3px;
}
.ranking-cuadro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ranking-celda {
  background: var(--sage-light);
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 8px 4px 6px;
  text-align: center;
  min-height: 62px;
}
.ranking-celda b {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--sage-deep);
  line-height: 1;
  margin-bottom: 3px;
}
.ranking-celda span { font-size: .58rem; color: var(--ink-mute); line-height: 1.25; display: block; }
.ranking-celda.activa {
  background: var(--clay);
  border-color: var(--clay-texto);
  box-shadow: 0 4px 14px rgba(196,138,105,.4);
}
.ranking-celda.activa b, .ranking-celda.activa span { color: var(--ink); }
.ranking-celda.activa span { font-weight: 600; }
.ranking-eje-x {
  grid-column: 2;
  text-align: center;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--sand);
  border-radius: 8px;
  padding: 4px;
  margin-top: 4px;
}
.ranking-pies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; font-size: .6rem; color: var(--ink-mute); text-align: center; margin-top: 3px; }
.ranking-titulo {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 16px 0 4px;
}
.ranking-desc { text-align: center; font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* ---------- Indicadores de aguja ---------- */
.agujas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 6px; }
.aguja { text-align: center; }
.aguja h5 { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin: 0 0 6px; }
.aguja svg { width: 100%; max-width: 210px; height: auto; }
.aguja .pie-aguja { font-size: .78rem; color: var(--ink-soft); margin: 4px 0 0; }
.aguja .fuente { font-size: .66rem; color: var(--ink-mute); margin: 2px 0 0; }

/* ---------- Tabla de estado metabólico ---------- */
.tabla-metabolica { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla-metabolica th {
  text-align: left;
  background: var(--sand);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 12px;
}
.tabla-metabolica td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla-metabolica td:first-child { color: var(--ink-soft); width: 46%; }
.tabla-metabolica td b { font-family: var(--serif); font-size: 1.15rem; }
.tabla-metabolica td i { display: block; font-size: .8rem; color: var(--ink-mute); font-style: italic; margin-top: 2px; }

@media (max-width: 620px) {
  .ficha-interesado { grid-template-columns: repeat(2, 1fr); }
  .agujas { grid-template-columns: 1fr; }
  .gb-titulo { font-size: 1.1rem; }
  .ranking-celda { min-height: 56px; padding: 6px 2px; }
  .ranking-celda span { font-size: .52rem; }
}

/* ==========================================================================
   34. EVOLUCIÓN PREVISTA — gráfica de líneas y cuadro de seguimiento
   ========================================================================== */
.grafica-evolucion {
  margin: 0 0 22px;
}
.grafica-evolucion .svg-evolucion {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* El cuadro puede desbordar en móvil: que ruede él, no la página */
.tabla-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}
.tabla-evolucion {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .92rem;
}
.tabla-evolucion th,
.tabla-evolucion td {
  padding: 9px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.tabla-evolucion thead th {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.25;
  border-bottom: 2px solid var(--line);
}
.tabla-evolucion thead th i {
  display: block;
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: .75;
}
.tabla-evolucion tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-mute);
  white-space: nowrap;
}
.tabla-evolucion tbody td {
  font-variant-numeric: tabular-nums;
}
.tabla-evolucion tr.hoy {
  background: var(--sand);
}
.tabla-evolucion tr.hoy th,
.tabla-evolucion tr.hoy td {
  font-weight: 700;
  color: var(--ink);
}
.tabla-evolucion tbody tr:last-child td,
.tabla-evolucion tbody tr:last-child th {
  border-bottom: none;
}

@media (max-width: 600px) {
  .tabla-evolucion { font-size: .85rem; }
  .tabla-evolucion th,
  .tabla-evolucion td { padding: 8px 6px; }
}

/* --- Informe en móvil: los paddings de wrap + caja + bloque se sumaban y
       dejaban el contenido en 231 px de 375. Se recortan los tres. --- */
@media (max-width: 600px) {
  .estudio-section .wrap { padding-left: 16px; padding-right: 16px; }
  .resultado-caja { padding-left: 14px; padding-right: 14px; }
  .bloque-resultado { padding-left: 14px; padding-right: 14px; }
  .tabla-scroll { margin: 0 -14px; padding: 0 14px; }
}

/* ==========================================================================
   35. HERO CON LA FOTO DE BÁSCULA + APP
   --------------------------------------------------------------------------
   La foto es apaisada y su interés está repartido: la báscula abajo a la
   izquierda, el móvil con el informe en el centro y la mujer a la derecha.
   Con el encuadre vertical anterior, ni el recorte orgánico ni el sello de
   0 € en su sitio de antes respetaban esa composición.
   ========================================================================== */
.hero-media img {
  border-radius: clamp(48px, 7vw, 96px) 24px clamp(48px, 7vw, 96px) 24px;
}
.hero-media::before {
  inset: -16px -16px 22px 20px;
  border-radius: clamp(48px, 7vw, 96px) 24px clamp(48px, 7vw, 96px) 24px;
}

/* El sello se va a la esquina superior izquierda, medio fuera de la foto:
   ocupa el hueco que deja el recorte orgánico. Dentro de la imagen no cabe
   sin tapar algo —el display de la báscula, el móvil con el informe o la
   cara— y esos tres son justo lo que la foto tiene que contar. */
.hero-badge {
  left: -34px;
  top: -14px;
  bottom: auto;
  max-width: 258px;
}

@media (max-width: 980px) {
  .hero-media { max-width: 520px; }
  .hero-badge { left: -12px; top: -10px; }
}
@media (max-width: 520px) {
  .hero-badge { left: 0; top: -6px; max-width: 240px; }
}

/* ==========================================================================
   36. MENOS EDITORIAL, MÁS INTERFAZ
   --------------------------------------------------------------------------
   El serif en TODOS los títulos daba a la página un aire de revista: bonito,
   pero lento. Los titulares grandes lo mantienen —es lo que da carácter de
   marca—; los rótulos de tarjeta y de paso pasan a sans con peso alto, que
   es lo que se lee de un vistazo. Display serif + interfaz sans.
   ========================================================================== */
.card h3,
.step h3,
.palanca strong,
.preencuadre .item strong {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.015em;
  font-size: 1.02rem;
  line-height: 1.3;
}

/* Iconos de línea: cuadrados, con el trazo del verde de marca */
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--sage-deep);
}
.card-icon svg {
  width: 23px;
  height: 23px;
  display: block;
}
.metodo .card-icon { color: var(--sage); }

/* ---------- Ritmo: cada tarjeta lleva su número ---------- */
.grid-3 .card,
.metodo .card {
  position: relative;
  counter-increment: paso-metodo;
}
.metodo .grid-3 { counter-reset: paso-metodo; }
.metodo .card::after {
  content: counter(paso-metodo, decimal-leading-zero);
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .3);
}

/* Una línea de acento que aparece al pasar por encima: la tarjeta responde */
.card {
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), border-color .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--clay);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.card:hover { transform: translateY(-3px); }
.card:hover::before { transform: scaleY(1); }
.metodo .card:hover { border-color: rgba(255, 255, 255, .28); }

@media (prefers-reduced-motion: reduce) {
  .card, .card::before { transition: none; }
  .card:hover { transform: none; }
}

/* ---------- Última semana del grupo: el contador se pone en guardia ---------- */
.contador.apura {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(233, 168, 127, .16);
}
.contador.apura .contador-titulo { color: var(--clay-texto); }
.contador.apura .reloj-bloque b {
  background: var(--clay-light);
  color: var(--clay-texto);
}
.contador.apura .plazas-barra span { background: var(--clay-dark); }

/* ---------- Lectura de la OMS bajo la gráfica de grasa ---------- */
.lectura-oms {
  background: var(--sage-light);
  border-left: 3px solid var(--sage-deep);
  border-radius: 8px;
  padding: 14px 18px;
  margin: -4px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.lectura-oms.alerta {
  background: var(--clay-light);
  border-left-color: var(--clay-dark);
}
.lectura-oms p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.lectura-oms strong { color: var(--ink); }
.lectura-oms.alerta strong { color: var(--clay-texto); }

/* ---------- Aviso previo: qué hace falta tener a mano ---------- */
.necesitas {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--clay-light);
  border-left: 3px solid var(--clay-dark);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.necesitas strong { color: var(--clay-texto); font-family: var(--sans); font-weight: 700; }
.necesitas b { color: var(--ink); font-weight: 600; }
