:root {
  color-scheme: light dark;
  --teal: #0f766e;
  --coral: #f97349;
  --mint: #64bab0;
  --bg: light-dark(#f4faf8, #0f1513);
  --surface: light-dark(#ffffff, #19211f);
  --soft: light-dark(#e3f2ee, #16312d);
  --ink: light-dark(#12201d, #e8f0ee);
  --ink-2: light-dark(#3b4846, #c3cfcc);
  --line: light-dark(#d5e3df, #2b3734);
  --brand: light-dark(#0b6b5f, #5fcdb9);
  --on-brand: light-dark(#ffffff, #052a25);
  --font:
    ui-rounded, 'SF Pro Rounded', 'Segoe UI Variable Display', 'Segoe UI',
    system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

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

.wrap {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

a,
label,
button,
.btn {
  touch-action: manipulation;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

/* Cabecera */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 2.1rem;
  height: 2.1rem;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--small {
  min-height: 2.4rem;
  padding: 0 1.1rem;
  font-size: 0.95rem;
}

.link-arrow {
  font-weight: 700;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 3rem;
  padding-block: 3rem 4rem;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: var(--ink-2);
  font-size: 1.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* Datos rápidos bajo los botones */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.facts li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 900;
}

/* Capturas reales de la app */
.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 3rem -1.5rem
    light-dark(rgb(11 107 95 / 35%), rgb(0 0 0 / 60%));
}

.hero .shot {
  width: min(100%, 19rem);
  margin-inline: auto;
}

/* Cómo empezar: 3 pasos */
.howto {
  padding-block: 1.75rem;
  background: var(--brand);
  color: var(--on-brand);
}

.howto__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: howto;
}

.howto__list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  align-items: center;
  counter-increment: howto;
}

.howto__list li::before {
  content: counter(howto);
  grid-row: span 2;
  display: grid;
  place-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--coral);
  color: #1c0b05;
  font-weight: 850;
}

.howto__list strong {
  font-size: 1.1rem;
  line-height: 1.2;
}

.howto__list span {
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.35;
}

.howto__list a {
  color: inherit;
  font-weight: 600;
}

/* Secciones */
.section {
  padding-block: 4.5rem;
  border-top: 1px solid var(--line);
}

.section--soft {
  background: var(--soft);
  border-top: 0;
}

.section h2 {
  max-width: 20ch;
  margin: 0 0 2.5rem;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section .lead + * {
  margin-top: 0;
}

/* Funciones: tarjetas escaneables */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
}

.feature__icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  margin-bottom: 1rem;
  border-radius: 0.9rem;
  background: var(--soft);
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}

/* Galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery li {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.gallery h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.gallery p {
  margin: 0;
  color: var(--ink-2);
}

/* Instalar */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.tabs[hidden] {
  display: none;
}

.tabs button {
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tabs button[aria-selected='true'] {
  background: var(--brand);
  color: var(--on-brand);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.is-tabbed .platforms {
  grid-template-columns: minmax(0, 36rem);
}

.platform {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--surface);
}

.platform[hidden] {
  display: none;
}

.platform h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.platform > p {
  margin: 0 0 1rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.badge {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  gap: 0.75rem;
  align-items: center;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--coral);
  color: #1c0b05;
  font-size: 0.9rem;
  font-weight: 800;
}

.notify {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  max-width: 44rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--coral);
  border-radius: 0 1.25rem 1.25rem 0;
  background: var(--surface);
}

.notify__icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  border-radius: 0.9rem;
  background: var(--soft);
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notify h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.notify p {
  margin: 0;
  color: var(--ink-2);
}

.notify .notify__ios {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta h2 {
  margin: 0;
}

/* Pie */
.foot {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot p {
  margin: 0;
}

@media (max-width: 64rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: 2rem 3rem;
  }

  .top nav a:not(.btn, .lang) {
    display: none;
  }

  .howto__list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section {
    padding-block: 3rem;
  }

  .section h2 {
    margin-bottom: 1.75rem;
  }

  .gallery {
    display: flex;
    gap: 1.25rem;
    margin-inline: -1rem;
    padding: 0 1rem 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .gallery li {
    flex: 0 0 min(78%, 17rem);
    scroll-snap-align: center;
  }

  .hero .shot {
    width: min(100%, 15rem);
  }

  .tabs {
    display: flex;
    flex-wrap: nowrap;
  }

  .tabs button {
    flex: 1 1 auto;
    padding: 0 0.6rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }
}

@media (max-width: 34rem) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
