/* ============================================================
   CarAI — scroll-driven frame animation site
   ============================================================ */

:root {
  --bg-0:       #05070e;   /* deepest */
  --bg-1:       #0a0f1e;
  --bg-2:       #111a30;
  --ink:        #eef2ff;
  --ink-soft:   #aab4cf;
  --ink-faint:  #6b7793;
  --line:       rgba(255, 255, 255, 0.10);
  --accent:     #4ee0c0;   /* mint/cyan */
  --accent-2:   #5b8cff;   /* electric blue */
  --accent-3:   #a78bfa;   /* violet */
  --radius:     16px;
  --maxw:       1180px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  /* iOS-native: SF Pro on Apple devices (matches the app), Inter as the
     closest cross-platform fallback for Windows/Android. -apple-system MUST
     come first or Apple users would get Inter instead of SF Pro. */
  --font-sans:  -apple-system, BlinkMacSystemFont, "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The clean gradient backdrop that sits behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(91, 140, 255, 0.28), transparent 60%),
    radial-gradient(1000px 800px at 8% 12%, rgba(78, 224, 192, 0.16), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, rgba(167, 139, 250, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 55%, #02030a 100%);
}
/* subtle grain so the gradient never bands */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

h1, h2, h3, .nav__brand, .loader__mark, .btn {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------------------------- Loader ----------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  gap: 22px;
  background: var(--bg-0);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark {
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}
.loader__bar {
  width: min(260px, 60vw);
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s linear;
}
.loader__pct {
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.18em;
}

/* ------------------------------ Nav ------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(18px, 5vw, 54px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(5, 7, 14, 0.55), transparent);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 19px;
}
.nav__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 15px;
  color: var(--ink-soft);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--ink) !important;
  transition: border-color 0.3s, background 0.3s;
}
.nav__cta:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.25); }

/* ------------------------------ Hero ------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(20px, 6vw, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__inner { max-width: 760px; }
.hero__appicon {
  display: block;
  width: clamp(72px, 9vw, 92px);
  height: clamp(72px, 9vw, 92px);
  object-fit: cover;
  border-radius: 23%;
  margin-bottom: 26px;
  box-shadow:
    0 20px 50px -14px rgba(78, 224, 192, 0.5),
    0 10px 30px -10px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--line);
}
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  margin-bottom: 26px;
  background: rgba(78, 224, 192, 0.06);
}
.hero__title {
  font-size: clamp(46px, 9vw, 104px);
  line-height: 0.98;
  font-weight: 700;
}
.hero__sub {
  margin-top: 26px;
  max-width: 540px;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero__actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.3s, background 0.3s;
  border: 1px solid transparent;
}
.btn--primary {
  color: #03110d;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px -10px rgba(78, 224, 192, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(91, 140, 255, 0.7); }
.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

.hero__cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__cue-line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(40px); opacity: 0; }
}

/* --------------------- Scroll animation stage --------------- */
.stage {
  position: relative;
  /* Tall track: drives the 192-frame scrub. ~520vh ≈ comfortable scrub speed */
  height: 520vh;
}
.stage__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.stage__canvas {
  position: absolute;
  inset: 0;
}
.stage__canvas canvas { display: block; width: 100% !important; height: 100% !important; }

/* vignette + top/bottom fade so the animation melts into the gradient */
.stage__pin::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(5, 7, 14, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 7, 14, 0.85) 0%, transparent 18%, transparent 80%, rgba(5, 7, 14, 0.95) 100%);
}

.stage__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.cap {
  position: absolute;
  left: clamp(20px, 6vw, 80px);
  bottom: clamp(70px, 14vh, 150px);
  max-width: 560px;
  opacity: 0;
  transform: translateY(26px);
  will-change: opacity, transform;
}
.cap h2 {
  font-size: clamp(30px, 5.4vw, 60px);
  line-height: 1.02;
  font-weight: 700;
}
.cap p {
  margin-top: 14px;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 440px;
}

.stage__progress {
  position: absolute;
  left: clamp(20px, 6vw, 80px);
  right: clamp(20px, 6vw, 80px);
  bottom: 34px;
  height: 2px;
  z-index: 3;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.stage__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

/* ---------------------------- Features ---------------------- */
.features {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) clamp(20px, 6vw, 80px);
  display: grid;
  gap: clamp(80px, 14vh, 150px);
}
.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
}
.feature--reverse .feature__text { order: 2; }
.feature__kicker {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature__text h3 {
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.05;
  font-weight: 700;
}
.feature__text p:last-child {
  margin-top: 18px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 460px;
}
.feature__media {
  position: relative;
  display: flex;
  justify-content: center;
}
.feature__media::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, rgba(91, 140, 255, 0.35), transparent 70%);
  filter: blur(20px);
}
.feature__media .screen { max-width: 300px; }

/* Real app screenshots, presented as a phone screen */
.screen {
  display: block;
  width: 100%;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}

/* --------------------- CarAI Vision (paso a paso) --------------------- */
.vision {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 11vh, 130px) clamp(20px, 6vw, 80px);
}
.vision__head { max-width: 720px; margin: 0 auto clamp(40px, 7vh, 70px); text-align: center; }
.vision__head h2 { font-size: clamp(30px, 5vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin-top: 8px; }
.vision__head p { margin-top: 16px; color: var(--ink-soft); font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }
.vsteps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 48px) clamp(24px, 3vw, 40px);
}
.vstep { text-align: center; }
.vstep__media {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 244px;
  margin-bottom: 22px;
}
.vstep__media::before {
  content: "";
  position: absolute;
  inset: 4% 12% 2%;
  z-index: -1;
  background: radial-gradient(58% 55% at 50% 45%, rgba(78, 224, 192, 0.26), transparent 70%);
  filter: blur(24px);
}
.vstep__n {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 40px; height: 40px;
  display: grid; place-content: center;
  border-radius: 13px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 15px;
  color: #03110d;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px -8px rgba(78, 224, 192, 0.75);
}
.vstep h3 { font-size: 21px; font-weight: 700; }
.vstep p { margin: 8px auto 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; max-width: 300px; }

/* --------------------- Garage Card + Dossier --------------------- */
.showcase {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(10px, 2vh, 30px) clamp(20px, 6vw, 80px) clamp(60px, 10vh, 110px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
}
.showcase__item { display: flex; align-items: center; gap: clamp(20px, 3vw, 34px); }
.showcase__media { flex: 0 0 auto; position: relative; display: flex; }
.showcase__media::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 45%, rgba(91, 140, 255, 0.3), transparent 70%);
  filter: blur(22px);
}
.showcase__media .screen { max-width: 178px; }
.showcase__media .doc {
  display: block;
  width: 100%;
  max-width: 200px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.85);
}
.showcase__text h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-top: 6px; line-height: 1.1; }
.showcase__text p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.showcase__text .btn { margin-top: 20px; }

/* ------------------------------ CTA ------------------------- */
.cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(90px, 16vh, 180px) clamp(20px, 6vw, 80px);
  max-width: 760px;
  margin: 0 auto;
}
.cta h2 {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.04;
  font-weight: 700;
}
.cta > p {
  margin-top: 18px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--ink-soft);
}
.cta__form {
  margin: 34px auto 0;
  display: flex;
  gap: 10px;
  max-width: 460px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta__form input {
  flex: 1 1 220px;
  padding: 14px 18px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
}
.cta__form input::placeholder { color: var(--ink-faint); }
.cta__form input:focus { outline: none; border-color: var(--accent); }
.cta__fine { margin-top: 16px; font-size: 13px; color: var(--ink-faint); }

/* ----------------------------- Footer ----------------------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-faint);
}
.foot__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.foot__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 0.01em; color: var(--ink-soft); }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot__links a { color: var(--ink-soft); }
.foot__links a:hover { color: var(--ink); }
.foot__links a[aria-current="page"] { color: var(--accent); }

/* --------------------------- Responsive --------------------- */
@media (max-width: 860px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .feature, .feature--reverse .feature__text { grid-template-columns: 1fr; order: 0; }
  .feature__media { order: -1; }
  .stage { height: 460vh; }
}

/* ---- Mobile: canvas superior + panel de texto inferior ---- */
@media (max-width: 768px) {
  /* Pista de scroll más corta: cómoda en teléfono */
  .stage { height: 340vh; }

  /* Canvas ocupa solo el ~58% superior del viewport sticky */
  .stage__canvas { bottom: 42svh; }

  /* Degradado que funde la animación en el panel oscuro inferior */
  .stage__pin::after {
    background:
      radial-gradient(120% 70% at 50% 28%, transparent 40%, rgba(5,7,14,0.5) 100%),
      linear-gradient(180deg,
        rgba(5,7,14,0.8) 0%,
        transparent 13%,
        transparent 42%,
        rgba(5,7,14,0.96) 56%,
        rgba(5,7,14,1)    65%,
        rgba(5,7,14,1)    100%
      );
  }

  /* Captions: centradas en el panel oscuro inferior */
  .cap {
    left: 24px;
    right: 24px;
    bottom: auto;
    top: 62svh;
    max-width: 100%;
    text-align: center;
  }
  .cap h2 { font-size: clamp(26px, 7vw, 36px); }
  .cap p  { max-width: 100%; font-size: 15px; margin-top: 10px; }

  /* Barra de progreso pegada al borde inferior */
  .stage__progress { bottom: 20px; left: 24px; right: 24px; }

  /* ---- Precios: carrusel horizontal para comparar planes ---- */
  /* Quitar padding lateral de la sección para que las tarjetas sangren */
  .pricing { padding-left: 0; padding-right: 0; }
  .pricing__head { padding: 0 20px; }

  /* Convertir el grid en scroll horizontal con snap */
  .plans {
    display: flex;
    max-width: unset;
    margin: 0;
    padding: 8px 20px 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
  }
  .plans::-webkit-scrollbar { display: none; }

  /* Cada tarjeta: ~78vw — se ve la siguiente asomando */
  .plan {
    flex: 0 0 78vw;
    max-width: 300px;
    scroll-snap-align: start;
    padding: 20px 18px;
  }
  .plan__name          { font-size: 16px; margin-bottom: 8px; }
  .plan__price strong  { font-size: 28px; }
  .plan__desc          { font-size: 13px; margin-bottom: 14px; min-height: unset; }
  .plan__save          { margin: 2px 0 12px; }
  .plan__cta           { margin-bottom: 16px; }
  .plan__list          { gap: 8px; }
  .plan__list li       { font-size: 13px; padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__cue-line { animation: none; }
  .card, .store, .plan, .btn { transition: none; }
}

/* ============================================================
   Accessibility helpers
   ============================================================ */
.skip-link {
  position: fixed;
  top: -60px; left: 12px;
  z-index: 1000;
  background: var(--accent);
  color: #03110d;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   Logo (app-icon tile)
   ============================================================ */
.nav__logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.loader__logo {
  width: 76px; height: 76px;
  border-radius: 20px;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  box-shadow: 0 14px 36px -12px rgba(0,0,0,0.7), 0 0 0 1px var(--line);
}

/* ============================================================
   Download badges
   ============================================================ */
.stores { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 34px; }
.stores--center { justify-content: center; margin-top: 30px; }
/* Official store badges (real PNGs in /assets) */
.store-badge {
  display: inline-flex;
  border-radius: 12px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.store-badge img { height: 54px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-2px); opacity: 0.88; }
.hero__note { margin-top: 18px; font-size: 13px; color: var(--ink-faint); }

/* ============================================================
   Feature grid
   ============================================================ */
.grid-feats {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 6vw, 80px);
}
.grid-feats__head { max-width: 640px; margin-bottom: 46px; }
.grid-feats__head h2 { font-size: clamp(28px, 4.6vw, 48px); font-weight: 700; line-height: 1.05; }
.grid-feats__head p { margin-top: 14px; color: var(--ink-soft); font-size: clamp(16px, 2vw, 19px); }
.cards {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.card {
  position: relative;
  flex: 1 1 300px;
  max-width: 366px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.card--vision {
  border-color: rgba(78, 224, 192, 0.45);
  background: linear-gradient(180deg, rgba(78, 224, 192, 0.09), rgba(91, 140, 255, 0.04));
}
.card__tag {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #03110d;
}
.card__ic {
  display: inline-grid;
  place-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(78, 224, 192, 0.1);
  margin-bottom: 16px;
}
.card__ic svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; font-weight: 600; font-family: var(--font-sans); }
.card p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

/* ============================================================
   Screenshot gallery (placeholders)
   ============================================================ */
.shots {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 6vw, 80px);
}
.shots__head { text-align: center; margin-bottom: 44px; }
.shots__head h2 { font-size: clamp(26px, 4.4vw, 44px); font-weight: 700; margin-top: 8px; }
.shots__row { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.phone { margin: 0; width: 232px; max-width: 70vw; }
.phone__scr {
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(91,140,255,0.12), rgba(5,7,14,0.6));
  display: grid;
  place-content: center;
  text-align: center;
  padding: 16px;
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
}
/* Para una captura real: reemplaza el texto interno por
   <img src="assets/tu-captura.png" alt="…"> y quita la clase phone--ph */
.phone--ph .phone__scr { border-style: dashed; }
.phone figcaption { text-align: center; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   Pricing
   ============================================================ */
.pricing {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 11vh, 130px) clamp(20px, 6vw, 80px);
}
.pricing__head { text-align: center; max-width: 700px; margin: 0 auto 46px; }
.pricing__head h2 { font-size: clamp(28px, 4.6vw, 48px); font-weight: 700; line-height: 1.08; margin-top: 8px; }
.billing {
  display: inline-flex;
  gap: 4px;
  margin-top: 26px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255,255,255,0.03);
}
.billing__btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s, color 0.3s;
}
.billing__btn.is-active { background: var(--ink); color: #05070e; }
.billing__save { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(78,224,192,0.16); color: var(--accent); }
.billing__btn.is-active .billing__save { background: rgba(5,7,14,0.12); color: #0a7c63; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan {
  position: relative;
  padding: 30px 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
}
.plan--featured {
  border-color: rgba(78,224,192,0.5);
  background: linear-gradient(180deg, rgba(78,224,192,0.08), rgba(91,140,255,0.05));
  box-shadow: 0 30px 70px -36px rgba(78,224,192,0.5);
}
.plan__badge {
  position: absolute;
  top: -12px; left: 26px;
  font-size: 12px; font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #03110d;
}
.plan__badge--soft { background: rgba(255,255,255,0.08); color: var(--ink-soft); border: 1px solid var(--line); }
.plan__name { font-family: var(--font-sans); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.plan__price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.plan__price strong { font-size: 38px; font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.02em; }
.plan__per { color: var(--ink-faint); font-size: 14px; }
.plan__desc { color: var(--ink-soft); font-size: 14px; min-height: 20px; margin-bottom: 18px; }
.plan__save { color: var(--accent); font-size: 13px; font-weight: 600; margin: 2px 0 16px; }
.plan__cta { display: flex; width: 100%; justify-content: center; margin-bottom: 22px; }
.plan__list { list-style: none; display: grid; gap: 12px; }
.plan__list li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
.plan__list li strong { color: var(--ink); font-weight: 600; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(78,224,192,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ee0c0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.compare { margin-top: 42px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.compare__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare__table th, .compare__table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare__table thead th { background: rgba(255,255,255,0.03); font-family: var(--font-sans); font-weight: 600; color: var(--ink); }
.compare__table tbody th { font-weight: 500; color: var(--ink); }
.compare__table td { color: var(--ink-soft); }
.compare__table th:last-child, .compare__table td:last-child { color: var(--ink); }
.compare__table tr:last-child th, .compare__table tr:last-child td { border-bottom: none; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 6vw, 80px);
  text-align: center;
}
.testimonials h2 { font-size: clamp(26px, 4.4vw, 44px); font-weight: 700; margin-bottom: 40px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.quote { margin: 0; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
.quote figcaption { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.quote__av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; }
.quote figcaption span { display: flex; flex-direction: column; }
.quote figcaption small { color: var(--ink-faint); font-size: 13px; }

/* ============================================================
   Responsive — new sections
   ============================================================ */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .quotes { grid-template-columns: 1fr; }
  .vsteps { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .compare { overflow-x: auto; }
  .nav__links { gap: 14px; }
  .store-badge img { height: 48px; }
  .vsteps { grid-template-columns: 1fr; }
  .vstep__media { max-width: 230px; }
  .showcase__item { flex-direction: column; text-align: center; gap: 18px; }
  .showcase__media::before { inset: 0; }
}

/* ============================================================
   Legal pages (terminos.html / privacidad.html)
   ============================================================ */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(110px, 16vh, 160px) clamp(20px, 6vw, 40px) clamp(70px, 12vh, 120px);
}
.legal__header { margin-bottom: 28px; }
.legal__header h1 { font-size: clamp(32px, 6vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin-top: 6px; }
.legal__updated { margin-top: 12px; color: var(--ink-faint); font-size: 14px; }

.legal__notice {
  border: 1px solid rgba(78, 224, 192, 0.35);
  background: rgba(78, 224, 192, 0.06);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 38px;
}
.legal__notice strong { color: var(--ink); }
.legal__notice code, .legal__body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 6px;
  border-radius: 6px;
}

.legal__toc {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 46px;
}
.legal__toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); margin-bottom: 14px; font-weight: 600; }
.legal__toc ol { margin: 0; padding-left: 22px; display: grid; gap: 9px; }
.legal__toc a { color: var(--ink-soft); }
.legal__toc a:hover { color: var(--accent); }

.legal__body { color: var(--ink-soft); }
.legal__body h2 {
  color: var(--ink);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  scroll-margin-top: 100px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { line-height: 1.7; margin-bottom: 14px; font-size: 16px; }
.legal__body ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 9px; }
.legal__body li { line-height: 1.6; font-size: 16px; }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__body a, .legal__back a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal__body a:hover, .legal__back a:hover { color: var(--ink); }

.legal__back { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
