/* MotorRH — página pública. Estilo «Pulso». Sin recursos de terceros. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1B1640;
  --violet: #5B3FD9;
  --violet-dark: #4A30C4;
  --lime: #C8F169;
  --bg: #F3F1FA;
  --surface: #FFFFFF;
  --border: #E6E2F4;
  --text: #1B1640;
  --muted: #4E4870;
  --on-dark: #FFFFFF;
  --on-dark-muted: #D6D1F2;
  --radius-card: 20px;
  --radius-panel: 16px;
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --shadow: 0 1px 2px rgba(27, 22, 64, .06), 0 12px 32px -12px rgba(27, 22, 64, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.25rem, 7vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-dark); }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

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

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: .6rem 1rem; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }

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

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #D6F68A; color: var(--ink); }
.btn--violet { background: var(--violet); color: #fff; }
.btn--violet:hover { background: var(--violet-dark); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn--small { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }

/* Barra superior */
.topbar { background: var(--ink); color: var(--on-dark); position: sticky; top: 0; z-index: 50; }
.topbar__inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; margin-right: auto; }
.brand:hover { color: #fff; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.brand__rh { color: var(--lime); }
.nav { display: none; gap: .25rem; }
.nav a {
  color: var(--on-dark-muted); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .45rem .9rem; border-radius: 999px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* Portada */
.hero { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; padding: 2.5rem 0 3.5rem; }
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: var(--violet); opacity: .55; right: -220px; top: -240px;
}
.hero::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: var(--lime); left: -70px; bottom: -90px; opacity: .9;
  display: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; }
.hero h1 { color: #fff; }
.lead { font-size: 1.125rem; color: var(--on-dark-muted); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__actions .btn { flex: 1 1 220px; }
.hero__shot { margin: 0; }
.hero__shot figcaption { margin-top: .9rem; color: var(--on-dark-muted); font-size: .95rem; }
.hero__shot figcaption strong { color: var(--lime); }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  padding: .35rem .85rem; border-radius: 999px; font-size: .875rem; font-weight: 600; margin-bottom: 1.25rem;
}
.badge--dark { background: var(--ink); border-color: var(--ink); }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--lime); display: inline-block; }

/* Capturas */
.frame {
  background: var(--surface); border-radius: var(--radius-panel); padding: 6px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.frame img { border-radius: 11px; width: 100%; }
.hero .frame { border-color: rgba(255, 255, 255, .15); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55); }
.frame--phone { border-radius: 28px; padding: 8px; background: var(--ink); border-color: var(--ink); }
.frame--phone img { border-radius: 20px; }

/* Secciones */
.section { padding: 3.5rem 0; }
.section--tint { background: #ECE8F8; }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2 { color: #fff; }
.section--dark .section__intro { color: var(--on-dark-muted); }
.section__intro { color: var(--muted); font-size: 1.075rem; max-width: 42rem; margin-bottom: 2rem; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet); margin-bottom: .6rem;
}
.eyebrow--lime { color: var(--lime); }

/* Formas de uso */
.modes { display: grid; gap: 1rem; margin-top: 1.75rem; }
.mode {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 1.5rem; position: relative;
}
.mode::before {
  content: ""; display: block; width: 40px; height: 6px; border-radius: 999px; background: var(--lime); margin-bottom: 1rem;
}
.mode:nth-child(even)::before { background: var(--violet); }
.mode p { color: var(--muted); }
.mode p:last-child { margin-bottom: 0; }
.mode strong { color: var(--text); }
.promise {
  margin: 2rem 0 0; padding: 1.25rem 1.5rem; border-radius: var(--radius-card);
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.5rem); line-height: 1.3;
  border-left: 8px solid var(--lime);
}

/* Módulos */
.feature {
  display: grid; gap: 1.5rem; align-items: center;
  padding: 2rem 0; border-top: 1px solid #D9D3EF;
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature__text p { color: var(--muted); font-size: 1.05rem; }
.feature__text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.feature__text li { position: relative; padding-left: 1.6rem; }
.feature__text li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem;
  border-radius: 50%; background: var(--violet); box-shadow: inset 0 0 0 3px #CFC5F6;
}
.feature__pair { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: end; }
.feature__pair .frame--phone { max-width: 220px; justify-self: center; }
.note { margin: 1.5rem 0 0; color: var(--muted); font-size: .9rem; font-style: italic; text-align: center; }

/* Videos */
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.videos a {
  display: block; height: 100%; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-panel); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.videos a:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--violet); }
.videos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.videos span:not(.sr) { display: block; padding: .7rem .85rem .85rem; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.videos__more { margin: 2rem 0 0; text-align: center; }

/* Seguridad */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checks li {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-panel); padding: 1.1rem 1.25rem 1.1rem 3.25rem; position: relative; color: var(--on-dark-muted);
}
.checks li::before {
  content: ""; position: absolute; left: 1.15rem; top: 1.3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--lime);
}
.checks li::after {
  content: ""; position: absolute; left: 1.47rem; top: 1.5rem; width: .32rem; height: .55rem;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checks strong { color: #fff; display: block; font-family: var(--font-head); font-size: 1.05rem; }

/* Próximamente */
.soon { display: grid; gap: 1rem; }
.soon__item {
  background: var(--surface); border: 2px dashed #C9BFF0; border-radius: var(--radius-card); padding: 1.5rem;
}
.soon__item p { color: var(--muted); margin: 0; }
.tag {
  display: inline-block; background: var(--lime); color: var(--ink); font-size: .8rem; font-weight: 700;
  padding: .2rem .7rem; border-radius: 999px; margin-bottom: .8rem;
}

/* Llamado al piloto */
.section--cta { background: var(--lime); }
.cta { text-align: center; max-width: 760px; }
.cta p { font-size: 1.1rem; color: var(--ink); }
.cta h2 { color: var(--ink); }
.cta .badge--dark { color: #fff; font-size: .875rem; }

/* Pie */
.footer { background: var(--ink); color: var(--on-dark-muted); padding: 2.5rem 0; font-size: .95rem; }
.footer__inner { display: grid; gap: .75rem; }
.footer p { margin: 0; }
.footer a { color: var(--lime); }
.footer a:hover { color: #E2FAAE; }
.footer__brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; }
.footer__privacy { font-size: .875rem; }

/* Tableta */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .soon { grid-template-columns: repeat(2, 1fr); }
  .feature__pair { grid-template-columns: 1fr 180px; }
  .feature__pair .frame--phone { max-width: none; }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* Escritorio */
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .nav { display: flex; }
  .hero { padding: 4.5rem 0 5rem; }
  .hero::before { width: 760px; height: 760px; right: -260px; top: -340px; }
  .hero::after { display: block; }
  .hero__grid { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 3.5rem; }
  .section { padding: 5rem 0; }
  .modes { grid-template-columns: repeat(4, 1fr); }
  .feature { grid-template-columns: 1fr 1.6fr; gap: 3rem; padding: 3rem 0; }
  .feature:nth-of-type(even) { grid-template-columns: 1.6fr 1fr; }
  .feature:nth-of-type(even) .feature__text { order: 2; }
  .feature--wide { grid-template-columns: 1fr 2fr; }
  .feature__pair { grid-template-columns: 1fr 190px; }
  .videos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: auto auto; justify-content: space-between; }
  .footer__privacy { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .videos a:hover { transform: none; }
}
