/* Viatto — sitio informativo. Tokens tomados de los prototipos de la app. */
:root {
  --ink: #062a1c;
  --green: #0a8f4e;
  --green-deep: #0a7a43;
  --lime: #3fe08f;
  --mint: #ddf7e9;
  --slate: #455073;
  --gray: #6b7186;
  --card: #f1f2f4;
  --bg: #f7faf8;
  --white: #ffffff;
  --line: rgba(6, 42, 28, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2 {
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
}
h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
}
h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  max-width: 18ch;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}
.wrap--narrow {
  max-width: 860px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 18px;
}
.eyebrow--light {
  color: var(--lime);
}
.accent {
  color: var(--lime);
  display: block;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--sm {
  padding: 11px 20px;
  font-size: 0.95rem;
}
.btn--primary {
  background: var(--lime);
  color: var(--ink);
}
.btn--primary:hover {
  background: #62eaa5;
}
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--white);
}
.btn--dark {
  background: var(--ink);
  color: var(--white);
}
.btn--dark:hover {
  background: #0b3d29;
}

/* Navegación */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(6, 42, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
}
.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__logo img {
  height: 40px;
  width: auto;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__menu a:not(.btn) {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  opacity: 0.9;
}
.nav__menu a:not(.btn):hover {
  opacity: 1;
  color: var(--lime);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 12px 8px;
  cursor: pointer;
}
.nav__toggle span:not(.sr) {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding-block: 124px 40px;
  overflow: hidden;
}
.tour {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.tour video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 42, 28, 0.94) 0%, rgba(6, 42, 28, 0.7) 44%, rgba(6, 42, 28, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 42, 28, 0.85) 0%, rgba(6, 42, 28, 0) 30%);
}
.hero__in {
  position: relative;
  display: grid;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: calc(100svh - 124px - 40px);
}
.hero__copy {
  margin-block: auto;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.4rem);
}
.hero__sub {
  font-size: 1.2rem;
  max-width: 34em;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.88);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
}
.hero__pay .eyebrow {
  margin: 0 8px 0 0;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-light);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Paradas del recorrido */
.stops {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
}
.stops__now .eyebrow {
  margin-bottom: 6px;
}
.stops__place {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.35rem;
  min-width: 11em;
}
.stops__place span {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--lime);
}
.stops__place b {
  font-weight: 600;
  transition: opacity 0.35s ease;
}
.stops__place b.is-out,
.stops__exp.is-out {
  opacity: 0;
}
.stops__exp {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 15em;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(4, 22, 15, 0.5);
  border: 1px solid var(--line-light);
  text-decoration: none;
  color: var(--white);
  transition: opacity 0.35s ease, border-color 0.15s ease;
}
.stops__exp:hover {
  border-color: var(--lime);
}
.stops__exp small {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
}
.stops__exp b {
  font-weight: 600;
  font-size: 0.98rem;
}
.mini {
  transition: opacity 0.35s ease;
}
.stops__dots {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}
.stops__dots button {
  flex: 1;
  height: 28px;
  padding: 12px 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.stops__dots i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.24) linear-gradient(var(--lime), var(--lime)) left / calc(var(--p, 0) * 100%) 100%
    no-repeat;
}
.stops__pause {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(4, 22, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}
.stops__pause:hover {
  border-color: var(--white);
}

/* Teléfono */
.phone {
  justify-self: center;
  width: min(100%, 340px);
  padding: 12px;
  border-radius: 44px;
  background: rgba(4, 22, 15, 0.86);
  border: 1px solid var(--line-light);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}
.phone__screen {
  background: var(--bg);
  color: var(--ink);
  border-radius: 34px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone__top img {
  height: 27px;
  width: auto;
}
.phone__hello {
  font-weight: 600;
  font-size: 1.1rem;
}
.phone__note {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 0 6px;
}
.tag {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
}
.tag--light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}
.goal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.goal__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--gray);
}
.goal__head span:first-child {
  font-weight: 600;
  color: var(--ink);
}
.goal__amount {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.goal__amount small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0;
}
.bar {
  height: 8px;
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 8px;
}
.goal__split {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--slate);
}
.goal__split b {
  color: var(--green-deep);
}
.goal__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.goal__btns span {
  text-align: center;
  padding: 9px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--card);
}
.goal__btns span:first-child {
  background: var(--green);
  color: var(--white);
}
.mini {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}
.mini img,
.qr {
  width: 54px;
  height: 54px;
  border-radius: 11px;
  object-fit: cover;
}
.mini b {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
}
.mini small {
  font-size: 0.72rem;
  color: var(--gray);
}
.qr {
  background:
    linear-gradient(var(--ink) 0 0) 6px 6px / 14px 14px no-repeat,
    linear-gradient(var(--ink) 0 0) calc(100% - 6px) 6px / 14px 14px no-repeat,
    linear-gradient(var(--ink) 0 0) 6px calc(100% - 6px) / 14px 14px no-repeat,
    repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%) 50% 50% / 9px 9px,
    var(--mint);
}

/* Secciones */
.section {
  padding-block: clamp(72px, 9vw, 128px);
}
.section--dark {
  background: var(--ink);
  color: var(--white);
}
.section--mint {
  background: var(--mint);
}
.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.head__aside {
  color: var(--slate);
  max-width: 26em;
}

/* Pasos */
.steps {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.steps li {
  padding: 26px 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.steps li + li {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.steps__n {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--green-deep);
}
.steps p {
  font-size: 0.95rem;
  color: var(--slate);
}

/* Bento */
.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}
.card--wide {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-start;
}
.card--wide h3 {
  font-size: 1.7rem;
}
.card--accent {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}
.card--accent p {
  color: var(--ink);
}
.card__demo {
  margin-top: auto;
  padding-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.stat small {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
}
.stat b {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.card__foot {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Experiencias */
.exp {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 18px;
}
.exp__card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.exp__card--tall {
  grid-row: span 2;
}
.exp__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.exp__card:hover img {
  transform: scale(1.05);
}
.exp__card > div {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 22px 22px;
  background: linear-gradient(180deg, rgba(6, 42, 28, 0) 0%, rgba(6, 42, 28, 0.9) 78%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Aliados */
.duo {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.panel h3 {
  font-size: 1.5rem;
}
.panel p {
  color: var(--slate);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 4px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.97rem;
}
.ticks li {
  padding-left: 30px;
  position: relative;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Preguntas */
.faq {
  margin-top: 40px;
  border-top: 2px solid var(--ink);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--green-deep);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq details p {
  padding: 0 44px 26px 0;
  color: var(--slate);
  max-width: 62ch;
}

/* Únete */
.cta__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.cta__sub {
  margin-top: 20px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
}
.form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}
.form input,
.form select {
  font: inherit;
  font-weight: 400;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--green);
}
.form input.is-bad {
  border-color: #c0392b;
}
.form__msg {
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--green-deep);
}
.form__msg.is-bad {
  color: #c0392b;
}

/* Pie */
.footer {
  background: #041a12;
  color: rgba(255, 255, 255, 0.78);
  padding-block: 64px 28px;
  font-size: 0.95rem;
}
.footer__in {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 14px;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer a {
  display: block;
  text-decoration: none;
  padding: 4px 0;
}
.footer a:hover {
  color: var(--white);
}
.footer__legal {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Cangrejo guía */
.crab {
  --size: 176px;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 40;
  width: var(--size);
  transform: translate3d(var(--x, -110%), calc(var(--lift, 0px) * -1), 0);
  transition: transform 1.5s cubic-bezier(0.45, 0.05, 0.3, 1);
  pointer-events: none;
}
.crab > * {
  pointer-events: auto;
}
.crab__body {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  transform-origin: 50% 90%;
}
/* Animación cuadro a cuadro: hoja de 8 × 7 fotogramas; script.js mueve background-position */
.crab__sprite {
  display: block;
  aspect-ratio: 398 / 290;
  background: url("assets/cangrejo-bucle.webp?v=2") 0 0 / 800% 700% no-repeat;
  filter: drop-shadow(0 6px 10px rgba(4, 22, 15, 0.3));
}
.crab.is-walking .crab__body {
  animation: crab-walk 0.32s linear infinite;
}
@keyframes crab-walk {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-6px) rotate(3deg);
  }
}
.crab__bubble {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 10px;
  width: min(196px, calc(100vw - 32px));
  background: rgba(4, 22, 15, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
  border-radius: 14px 14px 14px 4px;
  padding: 8px 26px 8px 11px;
  font-size: 0.72rem;
  line-height: 1.35;
  box-shadow: 0 12px 30px rgba(4, 22, 15, 0.35);
  border: 1px solid var(--line-light);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: 15% 100%;
  transition: opacity 0.25s ease, transform 0.25s ease;
  visibility: hidden;
}
.crab.is-talking .crab__bubble {
  opacity: 1;
  transform: none;
  visibility: visible;
}
.crab__close {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 50%;
}
.crab__close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}
.crab__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-top: 8px;
}
.crab__links[hidden] {
  display: none;
}
.crab__links a,
.crab__links button {
  font: inherit;
  font-weight: 600;
  font-size: 0.76rem;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 0;
  cursor: pointer;
}
.crab__links a:hover {
  background: var(--lime);
  color: var(--ink);
}
.crab__links button {
  background: none;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  padding-left: 0;
  text-decoration: underline;
}
@media (max-width: 640px) {
  .crab {
    --size: 124px;
  }
}

/* Aparición al hacer scroll (solo si hay JS y el usuario acepta movimiento) */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .tour__shade {
    background: linear-gradient(180deg, rgba(6, 42, 28, 0.9) 0%, rgba(6, 42, 28, 0.74) 55%, rgba(6, 42, 28, 0.9) 100%);
  }
  .cta__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 8px;
  }
  .steps li,
  .steps li + li {
    padding: 22px 16px 14px 0;
    border-left: 0;
  }
  .bento,
  .exp {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav__toggle {
    display: flex;
  }
  .nav__menu {
    position: absolute;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-light);
    display: none;
  }
  .nav__menu.is-open {
    display: flex;
  }
  .nav__menu a:not(.btn) {
    padding: 12px 0;
  }
  .nav__menu .btn {
    margin-top: 8px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding-block: 120px 64px;
  }
  .steps,
  .bento,
  .exp,
  .duo,
  .footer__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .card--wide {
    grid-column: auto;
    grid-row: auto;
  }
  .exp {
    grid-auto-rows: 240px;
  }
  .exp__card--tall {
    grid-row: auto;
  }
  .panel,
  .form {
    padding: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .exp__card img {
    transition: none;
  }
  .crab {
    transition: none;
  }
  .crab.is-walking .crab__body {
    animation: none;
  }
}

/* Pantallas bajas: compactar la portada para que el recorrido quepa sin hacer scroll */
@media (min-width: 981px) and (max-height: 780px) {
  .hero {
    padding-block: 104px 28px;
  }
  .hero__in {
    gap: 28px;
    min-height: calc(100svh - 104px - 28px);
  }
  .hero h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  }
  .hero__sub {
    margin-top: 18px;
    font-size: 1.08rem;
  }
  .hero__cta {
    margin-top: 24px;
  }
  .hero__pay {
    margin-top: 24px;
  }
  .stops {
    padding-top: 16px;
  }
}

/* Campaña "precios claros": titular de portada, problema, propuesta de valor y bloques de frase grande */
@media (min-height: 781px), (max-width: 980px) {
  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 0.96;
  }
}
.hero__note {
  margin-top: 26px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}
.problem__text {
  margin-top: 24px;
  max-width: 40em;
  font-size: 1.2rem;
  color: var(--slate);
}
.problem__close {
  margin-top: 36px;
  max-width: 26em;
  padding-left: 22px;
  border-left: 4px solid var(--lime);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
}
.grid4 {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
@media (min-width: 641px) {
  .grid4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 981px) {
  .grid4,
  .steps--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.card__icon {
  width: 40px;
  height: 40px;
  color: var(--lime);
}
.punch {
  text-align: center;
}
.punch h2 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  max-width: 14em;
  margin-inline: auto;
}
.punch .accent {
  display: inline;
  color: var(--green);
}
.punch p {
  margin: 22px auto 34px;
  max-width: 30em;
  font-size: 1.2rem;
}
.h2--sm {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}
.footer__in span {
  display: block;
  padding: 4px 0;
}

/* Mojarra: asoma desde la esquina inferior izquierda en las secciones que le tocan.
   Va volteada: el reel la corta por una aleta y así ese corte queda contra el borde de la pantalla. */
.fish {
  --size: 168px;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 40;
  width: var(--size);
  transform: translateY(108%);
  transition: transform 0.7s cubic-bezier(0.3, 1.3, 0.5, 1);
  pointer-events: none;
}
.fish > * {
  pointer-events: auto;
}
.fish.is-up {
  transform: none;
}
.fish__body {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
/* Hoja de 8 × 6 fotogramas; script.js mueve background-position */
.fish__sprite {
  display: block;
  aspect-ratio: 300 / 341;
  background: url("assets/mojarra-anim.webp?v=1") 0 0 / 800% 600% no-repeat;
  transform: scaleX(-1);
  filter: drop-shadow(0 6px 10px rgba(4, 22, 15, 0.3));
}
.fish .crab__bubble {
  bottom: calc(100% + 2px);
}
.fish.is-talking .crab__bubble {
  opacity: 1;
  transform: none;
  visibility: visible;
}
@media (max-width: 640px) {
  .fish {
    --size: 104px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fish {
    transition: none;
  }
}
.hero__cta .btn {
  box-shadow: 0 10px 30px rgba(63, 224, 143, 0.4);
}

/* Sección del problema: texto a la izquierda y mockup de la app a la derecha */
.problem {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.problem__phone {
  width: min(280px, 72vw);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 24px 40px rgba(6, 42, 28, 0.22));
}
@media (min-width: 981px) {
  .problem {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 64px;
  }
  .problem__phone {
    width: min(300px, 100%);
  }
}

/* Stickers tirados sobre la sección del problema: tamaños dispares y bien girados, siempre dentro de la sección.
   Van por detrás del texto y del teléfono. */
.stickers {
  position: relative;
  overflow: hidden;
}
.stickers > .wrap {
  position: relative;
  z-index: 1;
}
.stickers__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sticker {
  position: absolute;
  width: var(--w);
  height: auto;
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 10px 16px rgba(6, 42, 28, 0.2));
  animation: sticker-wobble var(--t, 6s) ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
/* Celular: cuatro pequeños en las esquinas, todos dentro de la sección */
.sticker--cuenta {
  --w: 64px;
  left: 10px;
  top: 6px;
  --r: -14deg;
}
.sticker--500mil {
  --w: 66px;
  right: 10px;
  top: 6px;
  --r: 15deg;
  --d: -2.4s;
  --t: 7s;
}
.sticker--pina {
  --w: 76px;
  right: 10px;
  bottom: 92px;
  --r: 16deg;
  --d: -3.1s;
}
.sticker--lancha {
  --w: 92px;
  right: 8px;
  bottom: 12px;
  --r: -10deg;
  --d: -0.6s;
  --t: 5s;
}
.sticker--torre,
.sticker--coco {
  display: none;
}
@media (min-width: 981px) {
  .sticker--torre,
  .sticker--coco {
    display: block;
  }
  .sticker--cuenta {
    --w: clamp(130px, 12vw, 190px);
    left: auto;
    right: 2%;
    top: 39%;
    --r: 13deg;
  }
  .sticker--torre {
    --w: clamp(100px, 8.6vw, 144px);
    left: 41%;
    top: 4%;
    --r: 12deg;
    --d: -1.2s;
    --t: 7s;
  }
  .sticker--500mil {
    --w: clamp(130px, 12.2vw, 196px);
    right: 1.8%;
    top: 6%;
    --r: 14deg;
  }
  .sticker--coco {
    --w: clamp(88px, 7.6vw, 126px);
    left: 55.5%;
    top: 38%;
    --r: -21deg;
    --d: -1.9s;
    --t: 5s;
  }
  .sticker--pina {
    --w: clamp(116px, 10.6vw, 172px);
    right: 2.2%;
    bottom: 5%;
    --r: 17deg;
  }
  .sticker--lancha {
    --w: clamp(130px, 12.5vw, 200px);
    left: 50%;
    right: auto;
    bottom: 4%;
    --r: -10deg;
  }
}
/* Flotan: suben, bajan, se desplazan y se mecen; --a es cuánto se mueven (menos en celular, donde van pegados al borde) */
@keyframes sticker-wobble {
  0% {
    translate: 0 0;
    rotate: var(--r, 0deg);
  }
  35% {
    translate: calc(var(--a, 6px) * 0.6) calc(var(--a, 6px) * -1);
    rotate: calc(var(--r, 0deg) + 6deg);
  }
  70% {
    translate: calc(var(--a, 6px) * -0.5) calc(var(--a, 6px) * -0.3);
    rotate: calc(var(--r, 0deg) - 4deg);
  }
  100% {
    translate: calc(var(--a, 6px) * 0.3) calc(var(--a, 6px) * 0.7);
    rotate: calc(var(--r, 0deg) + 3deg);
  }
}
@media (min-width: 981px) {
  .sticker {
    --a: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sticker {
    animation: none;
  }
}
