/* ============================================================
   CUERPO ÚTIL — Hoja de estilos
   Paleta: naranja + negro (nada de azules)
   Tipos: Montserrat (titulares y cuerpo) + DejaVu Sans Mono (antetítulos), según la guía de marca
   ============================================================ */

/* Montserrat servida desde la propia web (no desde Google Fonts), para no enviar la IP de
   quien visita a terceros antes del consentimiento. Licencia SIL OFL 1.1: fonts/OFL.txt.
   Subconjunto latino de Google Fonts v31: el normal es variable (400–800) y la cursiva, 500. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-italic-latin.woff2") format("woff2");
}

:root {
  --negro: #202120;
  --carbon: #2B2C2B;
  --crema: #FAF6F0;
  --crema-osc: #F1EAE0;
  --naranja: #FF6600;
  --naranja-osc: #B34700;
  --naranja-suave: #FFE9DA;
  --tinta: #202120;
  --gris: #6B655E;
  --gris-claro: #A8A099;

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-mono: "DejaVu Sans Mono", Consolas, ui-monospace, monospace;

  --radius: 18px;
  --section-pad: clamp(90px, 12vw, 160px);
  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--naranja); color: #fff; }
img { max-width: 100%; display: block; }
/* ---------- Layout ---------- */
.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}
.container.narrow { width: min(820px, 92vw); }
.section { padding: var(--section-pad) 0; position: relative; }
.section-cream { background: var(--crema); color: var(--tinta); }
.section-black { background: var(--negro); color: var(--crema); }
/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.2em;
}
h2 em { font-style: italic; color: var(--naranja); }
.kicker {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--naranja-osc);
  margin-bottom: 1.4em;
}
.kicker-orange { color: var(--naranja); }
.closer {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  margin-top: 2.5em;
}
.closer em { color: var(--naranja-osc); font-style: italic; }
/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px) scale(1.015); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-primary {
  background: var(--naranja);
  color: var(--negro);
  box-shadow: 0 8px 24px rgba(255, 102, 0, 0.28);
}
.btn-primary:hover {
  background: var(--naranja-osc);
  box-shadow: 0 12px 32px rgba(255, 102, 0, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--crema);
  border-color: rgba(250, 246, 240, 0.35);
}
.btn-ghost:hover { border-color: var(--naranja); color: var(--naranja); }
.btn-dark {
  background: var(--negro);
  color: var(--crema);
}
.btn-dark:hover { background: var(--naranja-osc); }
.btn-big { font-size: 1.12rem; padding: 20px 40px; }
.btn-nav { padding: 10px 22px; font-size: 0.92rem; background: var(--naranja); color: var(--negro); }
.btn-nav:hover { background: var(--naranja-osc); }
/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.nav.scrolled {
  background: rgba(32, 33, 32, 0.9);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255, 102, 0, 0.25);
}
.nav.nav-solid { background: #202120; box-shadow: 0 1px 0 rgba(255, 102, 0, 0.25); }
.nav-inner {
  width: min(1160px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--crema);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--naranja); font-style: italic; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: rgba(250, 246, 240, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--naranja); }
.nav-toggle { display: none; }
/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--negro);
  color: var(--crema);
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
}
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.22) 0%, transparent 62%);
  top: -280px; right: -280px;
  pointer-events: none;
  animation: glowDrift 14s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-90px, 70px) scale(1.12); }
}
.hero-glow-bottom { top: auto; right: auto; bottom: -350px; left: -300px; }
.hero-inner { position: relative; z-index: 1; }
.hero-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--naranja);
  margin-bottom: 2em;
}
.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  max-width: 18ch;
  margin-bottom: 0.5em;
}
.hero-title .accent { color: var(--naranja); }
.hero-title em { font-style: italic; color: var(--naranja); }
/* Entrada línea a línea con máscara */
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line-inner {
  display: inline-block;
  transform: translateY(115%);
  animation: lineUp 750ms cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero-title .line:nth-child(1) .line-inner { animation-delay: 150ms; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 300ms; }
.hero-title .line:nth-child(3) .line-inner { animation-delay: 450ms; }
@keyframes lineUp { to { transform: translateY(0); } }
/* Subrayado que se dibuja bajo "forma de silla" */
.hero-title em {
  position: relative;
  white-space: nowrap;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 0.09em;
  background: var(--naranja);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: drawLine 550ms cubic-bezier(.4, 0, .2, 1) 1200ms forwards;
}
@keyframes drawLine { to { transform: scaleX(1); } }
/* Secuencia del resto del hero, después del titular */
.hero .hero-kicker.reveal { transition-delay: 0ms; }
.hero .hero-sub.reveal { transition-delay: 600ms; }
.hero .hero-ctas.reveal { transition-delay: 780ms; }
/* CTA principal con micro-copy de riesgo cero */
.hero-cta-main { display: flex; flex-direction: column; gap: 10px; }
.hero-cta-micro {
  font-size: 0.82rem;
  color: rgba(250, 246, 240, 0.55);
  letter-spacing: 0.02em;
  padding-left: 6px;
}
/* Brillo periódico del botón principal: imán de atención */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out 2s infinite;
}
@keyframes shine {
  0% { left: -60%; }
  18% { left: 130%; }
  100% { left: 130%; }
}
.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(250, 246, 240, 0.78);
  max-width: 52ch;
  margin-bottom: 2.2em;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 2.2em; }
.hero-ctas .btn-ghost { padding-top: 20px; padding-bottom: 20px; }

/* ---------- Página de servicios ---------- */
.hero-page { min-height: auto; padding: 190px 0 120px; }
.hero-page .hero-title { max-width: 22ch; }
.fit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 10px;
}
.fit-col {
  background: var(--carbon);
  border: 1px solid rgba(255, 102, 0, 0.22);
  border-radius: calc(var(--radius) * 1.2);
  padding: 32px 30px;
}
.fit-col h3 { font-size: 1.35rem; margin-bottom: 1em; color: var(--crema); }
.trust-dark li { color: rgba(250, 246, 240, 0.85); }
.no-list { list-style: none; display: grid; gap: 12px; }
.no-list li {
  position: relative;
  padding-left: 34px;
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(250, 246, 240, 0.6);
}
.no-list li::before {
  content: "✕";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(250, 246, 240, 0.12);
  color: rgba(250, 246, 240, 0.55);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Carta personal (Sobre mí) */
.offer-lead { color: var(--gris); margin-bottom: 1.2em; max-width: 58ch; }
.final-lead {
  color: rgba(250, 246, 240, 0.75);
  max-width: 52ch;
  margin: 0 auto 2.6em;
  font-size: 1.08rem;
}
/* ---------- Marquee ---------- */

/* ---------- Checklist ---------- */

/* ---------- Pausa de movimiento guiada ---------- */
.pausa-lead { color: rgba(250, 246, 240, 0.78); max-width: 56ch; margin-bottom: 2em; }
.player {
  background: var(--carbon);
  border: 1px solid rgba(255, 102, 0, 0.25);
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
}
.player-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.pstep {
  width: 36px; height: 5px;
  border-radius: 3px;
  background: rgba(250, 246, 240, 0.15);
  transition: background var(--transition);
}
.pstep.on { background: var(--naranja); }
.player-move { font-size: clamp(1.3rem, 2.8vw, 1.8rem); color: var(--crema); margin-bottom: 0.4em; }
.player-inst { color: rgba(250, 246, 240, 0.7); max-width: 46ch; margin: 0 auto 22px; }
.player-timer {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 700;
  color: var(--naranja);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.player-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(250, 246, 240, 0.12);
  overflow: hidden;
  margin-bottom: 26px;
}
.player-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--naranja);
  transition: width 300ms linear;
}
.player-controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.player-controls .btn { border: none; cursor: pointer; font-family: var(--font-body); }
.player-controls .btn-ghost { border: 2px solid rgba(250, 246, 240, 0.35); background: transparent; }
.player-done {
  margin-top: 24px;
  border: 1px solid var(--naranja);
  border-radius: calc(var(--radius) * 1.4);
  background: rgba(255, 102, 0, 0.12);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
}
.player-done h3 { font-size: 1.6rem; color: var(--crema); margin-bottom: 0.4em; }
.player-done p { color: rgba(250, 246, 240, 0.75); margin-bottom: 1.3em; }
/* ---------- Calculadora ---------- */
input[type="range"] {
  flex: 1;
  min-width: 200px;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--naranja) var(--fill, 25%), rgba(250, 246, 240, 0.15) var(--fill, 25%));
  outline: none;
  cursor: grab;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--naranja);
  border: 4px solid var(--negro);
  box-shadow: 0 0 0 2px var(--naranja), 0 6px 16px rgba(255, 102, 0, 0.5);
  transition: transform var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--naranja);
  border: 4px solid var(--negro);
  box-shadow: 0 0 0 2px var(--naranja);
}
/* ---------- Pilares ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 10px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--crema-osc);
  border-radius: calc(var(--radius) * 1.2);
  padding: 38px 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: var(--naranja);
  box-shadow: 0 20px 44px rgba(20, 20, 20, 0.09);
}
.pillar-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--naranja);
  display: block;
  margin-bottom: 18px;
}
.pillar h3 { font-size: 1.5rem; margin-bottom: 0.6em; }
.pillar p { color: var(--gris); font-size: 1rem; }
/* ---------- Timeline ---------- */
.section-ruta { background: var(--crema-osc); }
.timeline { position: relative; padding-left: 48px; display: grid; gap: 56px; }
.timeline-line {
  position: absolute;
  left: 12px; top: 8px; bottom: 8px;
  width: 3px;
  background: rgba(20, 20, 20, 0.12);
  border-radius: 3px;
  overflow: hidden;
}
.timeline-line span {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--naranja);
  transition: height 120ms linear;
}
.milestone { position: relative; }
.milestone-dot {
  position: absolute;
  left: -48px; top: 6px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--crema-osc);
  border: 3px solid rgba(20, 20, 20, 0.2);
  transition: border-color 300ms, background 300ms, transform 300ms cubic-bezier(.34, 1.56, .64, 1);
}
.milestone.active .milestone-dot {
  background: var(--naranja);
  border-color: var(--naranja);
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(255, 102, 0, 0.18);
}
.milestone h3 { font-size: 1.45rem; margin-bottom: 0.4em; }
.milestone h3 span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--naranja-osc);
  margin-bottom: 8px;
}
.milestone p { color: var(--gris); max-width: 56ch; }
/* ---------- Iván ---------- */
.ivan-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) * 1.4);
  background: linear-gradient(160deg, var(--carbon), var(--negro));
  border: 1px solid rgba(255, 102, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gris-claro);
  font-size: 0.9rem;
  font-style: italic;
}
.ivan-copy p { margin-bottom: 1.2em; max-width: 50ch; }
.ivan-copy .btn { margin-top: 0.6em; }
.ivan-more { margin-top: 1.4em; font-size: 0.92rem; }
.ivan-more a { color: var(--naranja-osc); font-weight: 600; text-decoration: none; }
.ivan-more a:hover { text-decoration: underline; }
/* Señales de confianza */
.trust-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 1.6em 0 1.8em;
}
.trust-list li {
  position: relative;
  padding-left: 34px;
  font-size: 0.98rem;
  font-weight: 500;
}
.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--naranja);
  color: var(--negro);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ---------- Oferta ---------- */
.section-oferta { background: var(--crema-osc); }
/* Comparativa: la decisión inteligente */
.offer-card {
  background: #fff;
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 30px 70px rgba(20, 20, 20, 0.12);
  border-top: 6px solid var(--naranja);
}
.offer-card h3 { font-size: 1.7rem; margin-bottom: 1em; }
.offer-card h3 span { color: var(--gris); font-weight: 400; font-style: italic; font-size: 1.1rem; }
.offer-list { list-style: none; display: grid; gap: 14px; margin-bottom: 32px; }
.offer-list li {
  padding-left: 36px;
  position: relative;
  font-weight: 500;
}
.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: -1px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--naranja-suave);
  color: var(--naranja-osc);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.offer-guarantee {
  background: var(--naranja-suave);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.98rem;
  margin-bottom: 32px;
}
.offer-guarantee strong { color: var(--naranja-osc); }
/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--crema-osc);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--naranja); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
  padding: 24px 28px;
  cursor: pointer;
  color: var(--tinta);
}
.faq-icon {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--naranja);
  border-radius: 2px;
  transition: transform 260ms cubic-bezier(.4, 0, .2, 1);
}
.faq-icon::before { left: 0; top: 9px; width: 22px; height: 3px; }
.faq-icon::after { left: 9px; top: 0; width: 3px; height: 22px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg) scaleY(0); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(.4, 0, .2, 1);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 28px 26px; color: var(--gris); }
.faq-a a { color: var(--naranja-osc); font-weight: 600; text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }
/* ---------- CTA final ---------- */
.section-final { overflow: hidden; text-align: center; padding: clamp(110px, 15vw, 190px) 0; }
.final-inner { position: relative; z-index: 1; }
.section-final h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 1em; }
.final-micro { margin-top: 1.6em; color: rgba(250, 246, 240, 0.6); font-size: 0.95rem; }
.final-micro a { color: var(--naranja); text-decoration: none; }
.final-micro a:hover { text-decoration: underline; }
/* Cómo empezamos: 3 pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 3em 0 2.4em;
  text-align: left;
}
.step {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 102, 0, 0.28);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.step:hover { border-color: var(--naranja); transform: translateY(-3px); }
.step span {
  display: flex;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--naranja);
  color: var(--negro);
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--crema);
  margin-bottom: 8px;
}
.step p { font-size: 0.9rem; color: rgba(250, 246, 240, 0.65); }
/* Formulario de contacto */
.contact-form {
  max-width: 580px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(250, 246, 240, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--crema);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(250, 246, 240, 0.4); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--naranja);
  background: rgba(255, 102, 0, 0.08);
}
.contact-form .btn {
  border: none;
  width: 100%;
  font-family: var(--font-body);
}
/* ---------- Consentimientos RGPD y mensajes de formulario ---------- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  cursor: pointer;
  color: rgba(250, 246, 240, 0.65);
}
.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--naranja);
  cursor: pointer;
}
.consent a { color: var(--naranja); text-decoration: underline; }
.form-msg { font-size: 0.9rem; padding: 12px 16px; border-radius: 10px; }
.form-msg-error { background: rgba(214, 63, 0, 0.14); color: #FFB08C; border: 1px solid rgba(255, 102, 0, 0.4); }
.form-msg-ok { background: rgba(46, 125, 50, 0.15); color: #2E7D32; border: 1px solid rgba(46, 125, 50, 0.3); }
.form-success { text-align: center; padding: 30px 10px; }
.form-success-mark {
  display: flex;
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--naranja);
  color: var(--negro);
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
}
.form-success h3 { font-size: 1.5rem; color: var(--crema); margin-bottom: 0.3em; }
.form-success p { color: rgba(250, 246, 240, 0.7); }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}
/* ---------- Footer ---------- */
.footer { background: var(--negro); color: var(--crema); border-top: 1px solid rgba(255, 102, 0, 0.2); padding: 48px 0; }
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(250, 246, 240, 0.1);
}
.footer-cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.3;
}
.footer-cta-text em { font-style: italic; color: var(--naranja); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(250, 246, 240, 0.7); text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--naranja); }
.footer-legal { font-size: 0.8rem; color: rgba(250, 246, 240, 0.4); width: 100%; }
.footer-links-legal { width: 100%; padding-top: 14px; border-top: 1px solid rgba(250, 246, 240, 0.08); }
.footer-links-legal a { font-size: 0.8rem; color: rgba(250, 246, 240, 0.45); }
/* ---------- Páginas legales ---------- */
.legal { padding: 160px 0 90px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.2em; }
.legal p { margin-bottom: 1em; max-width: 75ch; }
.legal p strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25em;
  color: var(--tinta);
  margin-top: 1.8em;
}
.legal h3 {
  font-size: 1.35rem;
  margin: 1.8em 0 0.6em;
}
.legal a { color: var(--naranja-osc); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal ul, .legal ol { margin: 0 0 1em 1.4em; max-width: 72ch; }
.legal li { margin-bottom: 0.4em; }
.legal table { border-collapse: collapse; margin-bottom: 1.4em; width: 100%; }
.legal th, .legal td { border: 1px solid var(--crema-osc); padding: 10px 14px; text-align: left; font-size: 0.92rem; }
.legal th { background: var(--crema-osc); font-weight: 600; }
/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  z-index: 90;
  background: rgba(32, 33, 32, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 102, 0, 0.4);
  border-radius: 999px;
  padding: 10px 12px 10px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  transition: transform 420ms cubic-bezier(.34, 1.3, .64, 1);
  max-width: 92vw;
}
.sticky-cta.visible { transform: translate(-50%, 0); }
.sticky-cta p { color: var(--crema); font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.sticky-cta .btn { padding: 12px 22px; font-size: 0.9rem; white-space: nowrap; }
/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 650ms ease-out, transform 650ms ease-out;
}
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }
/* ---------- Responsive / móvil premium ---------- */
@media (max-width: 860px) {
  /* --- Menú hamburguesa --- */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 13px 11px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--crema);
    border-radius: 2px;
    transition: transform 250ms cubic-bezier(.4, 0, .2, 1), opacity 180ms;
  }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .btn-nav { margin-left: auto; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #202120;
    border-bottom: 1px solid rgba(255, 102, 0, 0.35);
    padding: 6px 4vw calc(14px + env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
  }
  .nav.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }
  .nav-links a {
    padding: 16px 10px;
    font-size: 1.08rem;
    border-bottom: 1px solid rgba(250, 246, 240, 0.08);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav.menu-open { background: #202120; }
  /* --- Objetivos táctiles ≥ 48px --- */
  .btn { padding: 17px 30px; }
  .btn-nav { padding: 13px 22px; }
  .btn-big { padding: 19px 34px; }
  .faq-q { padding: 22px 20px; font-size: 1.12rem; }
  .faq-a p { padding: 0 20px 22px; }
  .footer-links a { display: inline-block; padding: 10px 2px; }
  input[type="range"] { height: 8px; }
  input[type="range"]::-webkit-slider-thumb { width: 34px; height: 34px; }
  input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; }
  /* --- CTAs de héroe a ancho completo --- */
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-cta-main { width: 100%; }
  .hero-ctas .btn { text-align: center; width: 100%; }
  .hero-ctas .btn-ghost { padding-top: 17px; padding-bottom: 17px; }
  /* --- Layout --- */
  .ivan-grid { grid-template-columns: 1fr; }
  .ivan-photo { max-width: 420px; }
  .timeline { padding-left: 40px; }
  .timeline-line { left: 10px; }
  .milestone-dot { left: -40px; width: 24px; height: 24px; }
  /* --- Sticky CTA con safe-area (iPhone) --- */
  .sticky-cta p { display: none; }
  .sticky-cta { padding: 8px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .sticky-cta .btn { padding: 15px 26px; }
  /* --- Rendimiento: efectos caros fuera en móvil --- */
  .nav.scrolled { backdrop-filter: none; background: rgba(32, 33, 32, 0.97); }
  .sticky-cta { backdrop-filter: none; background: rgba(32, 33, 32, 0.97); }
  .hero-glow { animation: none; width: 620px; height: 620px; }
  .btn-shine::after { animation: none; }
}
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title .line-inner { transform: none; animation: none; }
  .hero-title em::after { transform: scaleX(1); animation: none; }
  .btn-shine::after { animation: none; }
  .hero-glow { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
/* ---------- Añadidos 28/10/2026: textos nuevos (portada, servicio, prueba) ---------- */
.texto p { max-width: 60ch; margin-bottom: 1.1em; font-size: 1.08rem; }
.section-black .texto p { color: rgba(250, 246, 240, 0.85); }
.texto p.golpe {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  margin-top: 1.6em;
}
.section-black .texto p.golpe { color: var(--crema); }
.precio { display: grid; gap: 6px; margin-bottom: 14px; }
.precio-principal {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
}
.precio-alt { font-size: 1.15rem; font-weight: 600; }
.precio-alt span, .precio-nota { color: var(--gris); font-weight: 400; }
.precio-nota { font-size: 0.95rem; margin-bottom: 24px; max-width: 58ch; }
.precio-nota a { color: var(--naranja-osc); }
.ivan-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius) * 1.4);
}
.photo-placeholder[hidden] { display: none; }
.aviso-salud { font-size: 0.9rem; color: rgba(250, 246, 240, 0.7); max-width: 56ch; margin: 0 auto 1.4em; }
/* Marca visible de dato pendiente de confirmar en las vistas previas (quitar al cerrar el texto) */
.confirmar { background: var(--naranja-suave); color: var(--naranja-osc); padding: 0 6px; border-radius: 4px; font-weight: 600; }
.firma { margin-top: 1.6em; font-family: var(--font-display); font-size: 1.2rem; }
.ivan-photo img[hidden] { display: none; }
/* ---------- Identidad de la guía de marca (28/10/2026): Montserrat, #FF6600, #202120 ---------- */
body { font-weight: 500; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
h2 em, .hero-title em, .closer em, .footer-cta-text em, .offer-card h3 span { font-style: normal; }
.kicker, .hero-kicker { font-family: var(--font-mono); letter-spacing: 0.12em; }
.nav-logo { font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.15rem; }
.nav-logo span { font-style: normal; }
.footer .nav-logo::after {
  content: "Entrena para la vida";
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(250, 246, 240, 0.55);
}
.btn-primary:hover, .btn-nav:hover { background: #FF7A26; color: var(--negro); }
/* En fondos claros, el naranja de los titulares pasa al tono oscuro para cumplir contraste (#FF6600 sobre crema: 2,7:1) */
.section-cream h2 em { color: var(--naranja-osc); }
/* Párrafos partidos (guía de copy, 30/10/2026): aire entre párrafos seguidos */
.pillar p + p, .faq-a p + p, .milestone p + p { margin-top: 0.7em; }
.final-lead:has(+ .final-lead) { margin-bottom: 0.9em; }
.hero-cta-micro a { color: var(--naranja); text-decoration: underline; text-underline-offset: 2px; }
/* La app por dentro (30/10/2026): sustituye al reproductor de pausa en la portada */
.app-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: clamp(14px, 4vw, 40px); justify-content: center; }
.app-shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 6px solid var(--carbon); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.app-shot figcaption { margin-top: 14px; font-size: 0.95rem; color: rgba(250, 246, 240, 0.78); }
@media (max-width: 480px) {
  .app-shot img { border-width: 4px; border-radius: 16px; }
  .app-shot figcaption { font-size: 0.85rem; }
}
/* ---------- v3 (31/10/2026): portada reorganizada, más sobria ---------- */
/* Entrada con la foto de Iván al lado del titular (en móvil, encima) */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .hero-title { font-size: clamp(2.3rem, 4.6vw, 4rem); max-width: 16ch; }
.hero-title em::after { transform: scaleX(1); animation: none; }
.hero-glow { animation: none; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) * 1.4); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
/* Capturas de la app dentro de «Cómo funciona», sobre fondo claro */
.app-inside { max-width: 760px; margin: clamp(56px, 8vw, 96px) auto 0; }
.app-inside h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.6em; }
.app-inside h3 em { font-style: normal; color: var(--naranja-osc); }
.app-lead { color: var(--gris); max-width: 60ch; margin-bottom: 2em; font-size: 1.05rem; }
.section-cream .app-shot figcaption { color: var(--gris); }
.section-cream .app-shot img { box-shadow: 0 18px 40px rgba(20, 20, 20, 0.18); }
/* Quién soy: fondo crema oscuro para separarla de «Cómo funciona» */
.section-ivan { background: var(--crema-osc); }
/* Aparición más discreta en las demás páginas (la portada ya no la usa) */
.reveal { transform: translateY(12px); transition: opacity 450ms ease-out, transform 450ms ease-out; }
.reveal:nth-child(n) { transition-delay: 0ms; }
@media (max-width: 860px) {
  .hero { min-height: auto; padding: 110px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: -1; max-width: 200px; }
}
/* Versión B de la portada (23/11): frase puente tras el desplegable de dudas */
.texto-tras-faq { margin-top: 2.2em; }
/* Versión B de la portada (23/11): balas de «Lo que se puede recuperar», con punto naranja (no ✓: no son entregables) */
.balas { list-style: none; display: grid; gap: 0.7em; max-width: 60ch; margin: 0.2em 0 1.6em; padding: 0; }
.balas li { position: relative; padding-left: 26px; font-size: 1.08rem; line-height: 1.55; }
.balas li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--naranja); }
.section-black .balas li { color: rgba(250, 246, 240, 0.85); }
/* Versión B de la portada (27/11): frase destacada en naranja dentro de «El cambio de rumbo» (tono oscuro: #FF6600 sobre crema no llega al contraste mínimo) */
.ivan-copy p em { font-style: normal; color: var(--naranja-osc); }
/* «Sobre mí» rehecha (27/11): enlaces dentro de un bloque de texto (registro de NSCA España, enlaces a la portada); sin esto salen en el azul del navegador */
.texto a { color: var(--naranja); font-weight: 600; text-underline-offset: 0.15em; }
.section-cream .texto a { color: var(--naranja-osc); }
