/* Pasillo landing: brand from mpv.md §4.1 (light theme, Zafiro #234E8C, Figtree) */
:root {
  --accent: #234e8c;
  --accent-soft: #e5edf8;
  --accent-text: #1b3c6e;
  --ink: #1d2530;
  --ink-2: #33404d;
  --muted: #5d6b7a;
  --line: #e3e7ec;
  --line-accent: #c9d6e8;
  --page: #ffffff;
  --font: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --wide: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-text);
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 10px;
  text-align: center;
}
.btn:hover {
  background: var(--accent-text);
  color: #fff;
}
.btn-lg {
  font-size: 17px;
  padding: 16px 24px;
  border-radius: 12px;
}
.btn-ghost {
  background: #fff;
  color: var(--accent-text);
  border: 1px solid var(--line-accent);
  padding: 15px 22px;
}
.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* ---- Header ---- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 18px var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 21px;
}
.brand:hover {
  color: var(--ink);
}
.logo {
  width: 32px;
  height: 32px;
}
.menu {
  display: flex;
  align-items: center;
  gap: 16px 40px;
}
.nav {
  display: flex;
  gap: 4px 22px;
  font-size: 15px;
  font-weight: 600;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 10px 0;
}
.nav a:hover {
  color: var(--accent);
}
.top-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.link-strong {
  color: var(--accent-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 12px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---- Hero ---- */
.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.lead {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-shot {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0 var(--gutter);
}
.browser {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 30, 50, 0.12);
  background: #fff;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f7;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5dae1;
}
.browser-bar em {
  font-style: normal;
  margin-left: 12px;
  background: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ---- Sections ---- */
.block {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 112px var(--gutter) 0;
  scroll-margin-top: 8px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.intro,
.copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.intro {
  max-width: 640px;
}
.intro p,
.copy p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}
.copy p {
  max-width: 40ch;
}

/* Cómo funciona: the walking capture with the pulsing circle on top */
#como {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.near {
  position: relative;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(20, 30, 50, 0.1);
}
.near img {
  width: 100%;
}
.near svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-family: var(--font);
}
@keyframes pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
.pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pulse {
    animation: none;
    opacity: 0;
  }
}
.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.rules div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rules strong {
  font-size: 17px;
}
.rules span {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

/* Funciones: carousel with scroll-snap (swipe on phones), arrows and dots from carousel.js */
.features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.carousel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.track {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 24px;
}
.track::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  overflow: hidden; /* shadows stay out of the neighbouring slide */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 48px;
  padding: 4px 0 16px;
}
.slide .copy {
  flex: 1 1 320px;
  min-width: 0;
  gap: 14px;
}
.slide h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.soon {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--line-accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  vertical-align: 1px;
}
.media {
  flex: 1.6 1 520px;
  min-width: 0;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--accent-soft);
  border-radius: 20px;
}
.media .shot {
  width: auto;
  max-height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(20, 30, 50, 0.12);
}
.phone {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 30, 50, 0.14);
}
.phone img {
  height: 100%;
  width: auto;
  border-radius: 22px;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.carousel-controls[hidden] {
  display: none;
}
.arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-accent);
  border-radius: 50%;
  background: #fff;
  color: var(--accent-text);
  cursor: pointer;
  padding: 0;
}
.arrow:hover:not(:disabled) {
  background: var(--accent-soft);
}
.arrow:disabled {
  opacity: 0.4;
  cursor: default;
}
.arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dots {
  display: flex;
  gap: 4px;
}
.dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-accent);
  transition: width 0.2s;
}
.dot[aria-current="true"]::after {
  width: 24px;
  border-radius: 5px;
  background: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .dot::after {
    transition: none;
  }
}

/* Precio */
.price {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.price .intro {
  align-items: center;
}
.price h2 {
  max-width: 20ch;
}
.plan {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  box-shadow: 0 18px 44px rgba(20, 30, 50, 0.08);
}
.amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.figure {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-text);
}
.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.plan li svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan .btn {
  font-size: 16px;
  padding: 14px 18px;
  border-radius: 12px;
}

/* CTA final */
.final {
  background: var(--accent-soft);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 64px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.final h2 {
  color: var(--accent-text);
  max-width: 18ch;
}
.final p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}

/* ---- Footer ---- */
.foot {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}
.brand-sm {
  font-size: 16px;
  gap: 8px;
}
.brand-sm .logo {
  width: 22px;
  height: 22px;
}
.foot-nav {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  align-items: center;
}
.foot-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
}
.foot-nav a:hover {
  color: var(--accent);
}
.foot-nav small {
  font-size: 12px;
}

/* ---- Credits (dialog on the landing, own page at creditos.html) ---- */
.credits-dialog {
  width: min(440px, calc(100% - 2 * var(--gutter)));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(20, 30, 50, 0.16);
}
.credits-dialog::backdrop {
  background: rgba(20, 30, 50, 0.4);
}
.credits-dialog h1,
.credits-page h1 {
  margin: 0 0 12px;
  font-size: 24px;
}
.credits-dialog p,
.credits-page p {
  margin: 0 0 20px;
  color: var(--ink-2);
  line-height: 1.5;
}
.credits-dialog a,
.credits-page a {
  color: var(--accent);
}
.credits-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px var(--gutter);
}

/* ---- Phone ---- */
@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }
  .top {
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }
  .menu.open {
    display: flex;
  }
  .nav {
    flex-direction: column;
    gap: 0;
  }
  .nav a {
    padding: 12px 0;
    font-size: 17px;
  }
  .top-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .link-strong {
    padding: 12px 0;
    font-size: 17px;
  }
  .hero {
    padding-top: 24px;
  }
  .block {
    padding-top: 80px;
  }
  .slide .copy,
  .media {
    flex-basis: 100%;
  }
  .slide {
    gap: 24px;
  }
  .media {
    height: 360px;
    padding: 16px;
  }
  .plan {
    padding: 22px;
  }
}
