/* Mundo Retros & Parts — landing estática vanilla (sin runtime de React/Babel) */

:root {
  /* refuerza el <meta name="color-scheme"> del HTML: le dice al navegador
     que este sitio ya es oscuro a propósito, para que Samsung Internet /
     WebView de Android no le apliquen su "modo oscuro forzado" (que
     recolorea botones y aplasta gradientes/texturas a negro). */
  color-scheme: dark;
  --bg: #0b0a09;
  --panel: #131110;
  --ink: #f4f0ea;
  --muted: #a9a29a;
  --muted-dim: rgba(169, 162, 154, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.06);

  /* CTA — fijo en toda la página, no varía por sección */
  --orange: #f26f21;
  --orange-2: #ff8c4d;
  --on-orange: #0b0a09;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}

* {
  box-sizing: border-box;
}

/* scroll-behavior: smooth NO va a nivel global — rompe cualquier scroll
   programático (herramientas de screenshot full-page, scrollTo de terceros)
   capturando a mitad de la animación. El smooth scroll de los links de ancla
   se maneja puntualmente en main.js con scrollIntoView(). */

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
}

a {
  color: var(--orange-2);
  text-decoration: none;
}
a:hover {
  color: var(--orange);
}

button {
  font-family: inherit;
}

/* ---------- skip-link (accesibilidad teclado) ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 999;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- foco visible (accesibilidad) ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- highlight de palabra clave, sistemático en H1/H2 ---------- */
.hl {
  color: var(--orange);
}

/* ---------- link con flecha (secundario, nunca compite con el botón CTA) ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.2s ease, gap 0.2s ease;
}
.link-arrow:hover {
  color: var(--ink);
  gap: 10px;
}

/* ---------- botón CTA sólido — único, siempre naranja ---------- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 700;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 15px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
  will-change: transform;
}
.btn-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 40px rgba(242, 111, 33, 0.45);
}
.btn-cta.small {
  padding: 9px 18px;
  font-size: 13.5px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover {
  border-color: rgba(242, 111, 33, 0.5);
  background: rgba(242, 111, 33, 0.08);
  color: var(--ink);
}

/* ---------- fondo blueprint por sección: 2 imágenes fuente, 7 variantes
   (flip/rotate/posición) para que ninguna sección se vea igual a otra.
   Swap directo: cuando haya más texturas, basta con cambiar background-image
   en cada .bg-tex--xxx sin tocar el HTML. ---------- */
.bg-tex {
  position: absolute;
  inset: -8% -4%;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-repeat: no-repeat;
}
.bg-tex--dark-a {
  background-image: url("uploads/bg-texture-dark.jpg");
  background-position: 30% 20%;
  opacity: 0.6;
}
.bg-tex--dark-b {
  background-image: url("uploads/bg-texture-dark.jpg");
  background-position: 80% 70%;
  transform: scaleX(-1);
  opacity: 0.42;
}
.bg-tex--dark-c {
  background-image: url("uploads/bg-texture-dark.jpg");
  background-position: 50% 90%;
  transform: rotate(180deg);
  opacity: 0.4;
}
.bg-tex--dark-d {
  background-image: url("uploads/bg-texture-dark.jpg");
  background-position: 15% 55%;
  transform: scaleY(-1);
  opacity: 0.48;
}
.bg-tex--orange-a {
  background-image: url("uploads/bg-texture-orange.jpg");
  background-position: 65% 15%;
  opacity: 0.6;
}
.bg-tex--orange-b {
  background-image: url("uploads/bg-texture-orange.jpg");
  background-position: 25% 80%;
  transform: scaleX(-1);
  opacity: 0.32;
}
.bg-tex--orange-c {
  background-image: url("uploads/bg-texture-orange.jpg");
  background-position: 85% 45%;
  transform: rotate(180deg);
  opacity: 0.7;
}

/* ---------- reveal de secciones (opacity+transform, GPU) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- reveal de texto por palabra (headings) ---------- */
.reveal-words .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.reveal-words.in-view .w {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-words .w {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- keyframes ---------- */
@keyframes mrp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 111, 33, 0.45);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(242, 111, 33, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 111, 33, 0);
  }
}
@keyframes mrp-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}
@keyframes mrp-dust {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.12;
  }
  85% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-90px) translateX(24px);
    opacity: 0;
  }
}
@keyframes mrp-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- scroll progress ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  z-index: 90;
  box-shadow: 0 0 8px rgba(242, 111, 33, 0.8);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(11, 10, 9, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease;
}
.nav.scrolled {
  background: rgba(11, 10, 9, 0.8);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.nav-logo img {
  height: 90px;
  width: auto;
  display: block;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links {
  display: flex;
  gap: 18px;
  font: 600 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a {
  color: var(--muted);
  padding: 8px 0;
}
.nav-links a:hover {
  color: var(--ink);
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .nav-logo img {
    height: 64px;
  }
}

/* ---------- HERO: en desktop, secuencia de 51 frames dibujada en canvas
   y sincronizada al scroll (hardware de sobra, sin límite de datos). En
   mobile, foto fija del local — nada de animación, nada que decodificar
   más que una imagen. ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
}
@media (min-width: 769px) {
  .hero {
    height: 340vh;
  }
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-canvas,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-fallback {
  z-index: 0;
}
.hero-canvas {
  z-index: 1;
}
@media (max-width: 768px) {
  .hero-canvas {
    display: none;
  }
  /* el usuario pidió explícitamente sin zoom: foto tal cual, sólo el
     recorte natural de object-fit:cover (centrado, sin transform extra) */
}
.hero-bg .grad {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(11, 10, 9, 0.2) 0%,
    rgba(11, 10, 9, 0.35) 45%,
    rgba(11, 10, 9, 0.85) 82%,
    rgba(11, 10, 9, 0.98) 100%
  );
}
.hero-bg .grad-side {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(11, 10, 9, 0.55) 0%, transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px 100px;
}
@media (max-width: 720px) {
  .hero-inner {
    padding: 0 20px 120px;
  }
}

.hero-cap {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 100px;
}
.hero-cap.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
}
.hero-eyebrow {
  font: 600 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}
.hero-cap h1,
.hero-cap h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-cap p {
  margin: 0;
  max-width: 480px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-secondary-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 16px 28px;
  border-radius: 6px;
  transition: border-color 0.25s ease, background 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-secondary-link:hover {
  border-color: rgba(242, 111, 33, 0.6);
  background: rgba(242, 111, 33, 0.08);
}

/* ---------- hero-dots: sólo existen visualmente en mobile, indican que
   los textos del hero se cambian deslizando el dedo hacia el lado ---------- */
.hero-dots {
  display: none;
}
@media (max-width: 768px) {
  .hero-cap {
    transform: translateX(18px);
  }
  .hero-cap.active {
    transform: translateX(0);
  }
  .hero-dots {
    /* en flujo normal, justo debajo de la leyenda activa — así nunca se
       superpone con el texto sin importar cuánto ocupe cada leyenda
       (una de las 3 trae botón CTA y las otras no). Centrados en el
       ancho completo, independiente de que el texto arriba sea
       left-aligned. */
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 3;
    margin-top: 18px;
  }
  .hero-dot {
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.25s ease, width 0.25s ease;
  }
  .hero-dot.active {
    background: var(--orange);
    width: 32px;
  }
}

.scroll-cue {
  position: absolute;
  left: 20px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 10px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(169, 162, 154, 0.8);
}
.scroll-cue::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--orange);
}
@media (max-width: 768px) {
  /* en mobile el gesto del hero ya no es "scrollear hacia abajo" (eso
     ahora sólo pasa a la siguiente sección) sino deslizar al lado para
     cambiar de leyenda — este cue de flecha hacia abajo confundía con
     los hero-dots, que ya cumplen ese rol de indicar que hay más */
  .scroll-cue {
    display: none;
  }
}
.scroll-cue .oval {
  width: 26px;
  height: 40px;
  border: 1.5px solid rgba(255, 140, 77, 0.5);
  border-radius: 999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}
.scroll-cue .oval svg {
  animation: mrp-bounce 1.8s ease-in-out infinite;
}

/* ---------- eyebrow + heading genérico de sección ---------- */
.eyebrow {
  font: 600 11.5px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.24em;
  color: var(--orange);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}
.section-head h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
  line-height: 1.6;
}

section {
  position: relative;
  padding: 90px 20px;
}
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
}
.wrap-narrow {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- pain strip ---------- */
.pain-strip {
  border-top: 2px solid var(--orange);
  border-bottom: 1px solid var(--border);
  padding: 56px 20px;
  overflow: hidden;
}
.pain-strip p {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.65;
  color: var(--ink);
}

/* ---------- parts grid ---------- */
.parts-section {
  overflow: hidden;
}
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.part-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  contain: layout paint style;
}
.part-card:hover {
  border-color: rgba(242, 111, 33, 0.5);
  box-shadow: 0 0 44px rgba(242, 111, 33, 0.14);
}
.part-card .shot {
  position: relative;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  background: #0d0c0a;
  border-bottom: 1px solid rgba(242, 111, 33, 0.25);
}
.part-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.4s var(--ease);
}
.part-card .shot.in-view img {
  opacity: 1;
}
.part-card:hover .shot img {
  transform: scale(1.04);
}
.part-card .body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.part-card h3 {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.part-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  flex: 1;
}
.part-card .row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.btn-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  font: 600 10.5px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-toggle:hover {
  border-color: rgba(242, 111, 33, 0.6);
  background: rgba(242, 111, 33, 0.08);
}

.part-drawer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(11, 10, 9, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.part-card.open .part-drawer {
  opacity: 1;
  visibility: visible;
}
.part-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.part-drawer-head span {
  font: 700 11px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.part-drawer-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.part-drawer-close:hover {
  color: var(--ink);
}
.piece-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.piece {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--orange);
  padding-left: 10px;
}
.piece span:first-child {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.piece span:last-child {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- más sistemas: grid fija en desktop (5 tarjetas entran sin
   necesidad de scroll lateral, que ahí sobraba); en mobile sigue siendo
   un carrusel horizontal con snap táctil, donde sí tiene sentido. ---------- */
.systems-section {
  overflow: hidden;
  padding-top: 70px;
}
.sys-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 4px 4px 16px;
}
.sys-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sys-card:hover {
  border-color: rgba(242, 111, 33, 0.45);
  box-shadow: 0 0 34px rgba(242, 111, 33, 0.12);
}
.sys-card-shot {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0d0c0a;
}
.sys-card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.sys-card:hover .sys-card-shot img {
  transform: scale(1.05);
}
.sys-card h3 {
  margin: 14px 16px 0;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sys-card p {
  margin: 0 16px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
/* en mobile, carrusel horizontal con scroll táctil nativo (mismo
   comportamiento que desktop) — el usuario prefirió esto al apilado
   vertical, que ocupaba mucho largo de página. */
@media (max-width: 720px) {
  .sys-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(242, 111, 33, 0.4) transparent;
  }
  .sys-card {
    flex: none;
    scroll-snap-align: start;
    width: min(60vw, 210px);
  }
  .sys-card h3 {
    margin: 10px 12px 0;
    font-size: 12px;
  }
  .sys-card p {
    margin: 0 12px 12px;
    font-size: 12px;
    line-height: 1.5;
  }
}
.systems-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  margin-top: 26px;
}
.systems-foot p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

/* ---------- steps ---------- */
.steps-section {
  overflow: hidden;
}
.steps-grad {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11, 10, 9, 0.6), rgba(11, 10, 9, 0.85));
}
.steps-line {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  margin: 0 4px 40px;
}
.steps-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  box-shadow: 0 0 12px rgba(242, 111, 33, 0.6);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
.step-node {
  position: absolute;
  top: -4px;
  left: var(--pos);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #26221e;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.step-node.lit {
  background: var(--orange);
  border-color: var(--orange-2);
  box-shadow: 0 0 14px rgba(242, 111, 33, 0.8);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}
/* en mobile los 3 pasos se apilan en una columna — la línea horizontal
   de desktop se adapta a vertical, corriendo al costado de los 3 pasos
   en vez de arriba de todos */
@media (max-width: 720px) {
  .steps-body {
    position: relative;
    padding-left: 26px;
  }
  .steps-grid {
    gap: 36px;
  }
  .steps-line {
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    height: auto;
    width: 2px;
    margin: 0;
  }
  .steps-fill {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform-origin: top;
  }
  .step-node {
    left: -4px;
    top: var(--pos);
  }
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step .num {
  font-weight: 700;
  font-size: clamp(56px, 7vw, 88px);
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.step.lit .num {
  color: rgba(242, 111, 33, 0.5);
  text-shadow: 0 0 30px rgba(242, 111, 33, 0.4);
}
.step h3 {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- VSL ---------- */
.vsl-section {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.vsl-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}
.vsl-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background: #0d0c0a;
}
.vsl-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vsl-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 10, 9, 0.3);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vsl-play .btn-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 44px rgba(242, 111, 33, 0.55);
  transition: transform 0.25s var(--ease);
}
.vsl-play:hover .btn-circle {
  transform: scale(1.06);
}
.vsl-frame.playing .vsl-play {
  display: none;
}

/* ---------- stats ---------- */
.stats-section {
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  border-left: 1px solid var(--border-soft);
}
.stat-card:first-child {
  border-left: none;
}
@media (max-width: 720px) {
  .stat-card {
    border-left: none;
    border-top: 1px solid var(--border-soft);
    padding: 16px 6px;
  }
  .stat-card:first-child {
    border-top: none;
  }
}
.stat-card .ico {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: rgba(242, 111, 33, 0.08);
  border: 1px solid rgba(242, 111, 33, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-card .num {
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--orange);
  line-height: 1;
  display: block;
}
.stat-card .label {
  font: 600 10.5px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-top: 3px;
}

/* ---------- marcas: marquee infinito ---------- */
.brands-section .section-head {
  margin-bottom: 40px;
}
.marquee {
  position: relative;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 30px 0;
  width: 100%;
  min-width: 0;
  max-width: 100vw;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: mrp-marquee 30s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  flex: none;
  margin: 0 12px;
  padding: 18px 40px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}
.marquee-item img {
  height: 44px;
  width: auto;
  display: block;
  filter: grayscale(1) brightness(0) invert(0.72);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.marquee-item:hover img {
  filter: brightness(0) saturate(100%) invert(52%) sepia(60%) saturate(2400%) hue-rotate(357deg) brightness(99%) contrast(93%);
  opacity: 1;
}
@media (max-width: 720px) {
  .marquee-track {
    animation-duration: 16s;
  }
}

/* ---------- testimonios ---------- */
.testi-section {
  padding-top: 20px;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 32px;
  align-items: center;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.rating-num {
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
}
.stars {
  display: flex;
  gap: 6px;
}
.stars svg {
  transform: scale(0);
  transition: transform 0.45s var(--ease);
}
.stars.in-view svg {
  transform: scale(1);
}
.google-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}
.quotes {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.quote-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-left: 2px solid var(--orange);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(242, 111, 33, 0.14);
}
.quote-mark {
  font-weight: 700;
  font-size: 46px;
  line-height: 0.55;
  color: var(--orange);
}
blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.quote-by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: var(--on-orange);
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.map-box iframe {
  border: 0;
  border-radius: 9px;
  display: block;
  filter: invert(92%) hue-rotate(180deg) contrast(90%);
}
.map-fallback {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted-dim);
}
.map-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 0 6px 6px;
}

/* ---------- FAQ (acordeón, mismo lenguaje visual que part-drawer) ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item.open {
  border-color: rgba(242, 111, 33, 0.4);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.5;
  padding: 18px 20px;
  cursor: pointer;
}
.faq-icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  transition: transform 0.3s var(--ease), border-color 0.25s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  border-color: rgba(242, 111, 33, 0.6);
}
/* max-height en vez del truco de grid-template-rows:0fr — ese truco
   depende de que el hijo del grid pueda encogerse por debajo de su
   min-content, y en la práctica se quedaba mostrando una porción del
   texto siempre visible en vez de colapsar del todo. max-height con un
   tope generoso es menos elegante pero 100% confiable. */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.faq-item.open .faq-a {
  max-height: 200px;
}

/* ---------- CTA final ---------- */
.final-cta {
  padding: 120px 20px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.final-cta-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(70% 90% at 50% 110%, rgba(242, 111, 33, 0.22), transparent 70%);
  pointer-events: none;
}
.final-cta .dust {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: #f4f0ea;
  opacity: 0;
  animation: mrp-dust 11s linear infinite;
}
.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.final-cta-content h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.04;
  text-transform: uppercase;
}
.final-cta-content p {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 540px;
}
.tagline {
  margin: 4px 0 0;
  font-style: italic;
  color: rgba(169, 162, 154, 0.75);
  font-size: 14.5px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: #0d0c0a;
  padding: 64px 20px 120px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 44px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col img {
  height: 44px;
  width: auto;
  align-self: flex-start;
}
.footer-col p {
  margin: 0;
  color: rgba(169, 162, 154, 0.85);
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 260px;
}
.footer-label {
  font: 700 10.5px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(169, 162, 154, 0.5);
}
.footer-col a,
.footer-col span.line {
  color: rgba(244, 240, 234, 0.9);
  font-size: 13.5px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
  border-color: rgba(242, 111, 33, 0.5);
  color: var(--ink);
}
.footer-bottom {
  max-width: 1100px;
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: rgba(169, 162, 154, 0.5);
  font-size: 12px;
}
.footer-bottom span.links {
  display: flex;
  gap: 14px;
}

/* ---------- barra móvil + FAB ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 94;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 10, 9, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: none;
}
.mobile-bar .btn-cta {
  display: flex;
  justify-content: center;
  width: 100%;
}
@media (max-width: 720px) {
  .mobile-bar {
    display: block;
  }
}

.fab-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse;
}
@media (max-width: 720px) {
  .fab-wrap {
    bottom: 92px;
  }
}
.fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mrp-pulse 2.8s ease-out infinite;
  transition: transform 0.25s var(--ease);
}
.fab:hover {
  transform: scale(1.06);
}
.fab-tip {
  background: rgba(19, 17, 16, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.fab-tip.show {
  opacity: 1;
  transform: translateX(0);
}

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

/* ---------- mobile: márgenes y overflow ---------- */
@media (max-width: 720px) {
  section {
    padding: 64px 18px;
  }
  .pain-strip {
    padding: 44px 18px;
  }
  .final-cta {
    padding: 80px 18px 110px;
  }
  .footer {
    padding: 48px 18px 130px;
  }
}

/* ---------- mobile: fuera backdrop-filter en elementos fijos/scrolleables.
   blur() detrás de algo fijo obliga a recomponer el blur en cada frame de
   scroll — en gama media/baja de Android eso es la causa #1 de scroll con
   tirones. Se compensa con fondos más opacos (casi sólidos) en su lugar. ---------- */
@media (max-width: 720px) {
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(11, 10, 9, 0.86);
  }
  .nav.scrolled {
    background: rgba(11, 10, 9, 0.96);
  }
  .mobile-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(11, 10, 9, 0.97);
  }
  .fab-tip {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(19, 17, 16, 0.97);
  }
  .sys-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.06);
  }
  .part-drawer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
