/* Portada de Vueltito: tipografía grande, mucho aire, la app como protagonista */

.home {
  overflow-x: clip;
}

.home .topbar {
  background: rgba(242, 245, 243, 0.8);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pill:hover {
  background: var(--emerald-deep);
  color: var(--white);
}

/* ── Portada ──────────────────────────────────────────────────── */

.stage-hero {
  padding: 88px 0 0;
  text-align: center;
}

.stage-hero h1 {
  margin: 0 auto;
  max-width: 11ch;
  font-family: var(--display);
  font-variation-settings: "opsz" 96;
  font-weight: 800;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.stage-hero .sub {
  margin: 28px auto 0;
  max-width: 30ch;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  color: var(--muted);
}

.stage-hero .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px;
}

.btn-round {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 750;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-round:hover {
  background: #fbbf24;
  color: var(--ink);
}

.btn-round:active {
  transform: scale(0.98);
}

.link-more {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

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

/* El mostrador: el teléfono al centro y la vitrina alrededor */
.counter {
  position: relative;
  height: 640px;
  margin-top: 72px;
}

.device {
  position: absolute;
  left: 50%;
  top: 0;
  width: 300px;
  padding: 10px;
  transform: translateX(-50%);
  background: #101814;
  border-radius: 46px;
  box-shadow: 0 50px 80px -30px rgba(6, 78, 59, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.device img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  border-radius: 37px;
  background: var(--paper);
}

.item {
  position: absolute;
  width: 168px;
  padding: 10px 10px 14px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 18px 40px -18px rgba(14, 26, 20, 0.35);
}

.item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.item .tag {
  position: absolute;
  right: -10px;
  top: 132px;
  padding: 4px 12px;
  background: var(--price-tag);
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  transform: rotate(-7deg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}

.item .name {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.item:nth-of-type(1) { left: calc(50% - 470px); top: 40px; transform: rotate(-6deg); }
.item:nth-of-type(2) { left: calc(50% - 400px); top: 330px; transform: rotate(4deg); }
.item:nth-of-type(3) { left: calc(50% - 640px); top: 220px; transform: rotate(-2deg); }
.item:nth-of-type(4) { left: calc(50% + 300px); top: 30px; transform: rotate(5deg); }
.item:nth-of-type(5) { left: calc(50% + 240px); top: 330px; transform: rotate(-4deg); }
.item:nth-of-type(6) { left: calc(50% + 470px); top: 200px; transform: rotate(3deg); }

/* Una sola entrada orquestada: la vitrina se acomoda alrededor del teléfono */
@media (prefers-reduced-motion: no-preference) {
  .item {
    animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .item:nth-of-type(2) { animation-delay: 0.08s; }
  .item:nth-of-type(3) { animation-delay: 0.16s; }
  .item:nth-of-type(4) { animation-delay: 0.04s; }
  .item:nth-of-type(5) { animation-delay: 0.12s; }
  .item:nth-of-type(6) { animation-delay: 0.2s; }

  @keyframes settle {
    from {
      opacity: 0;
      translate: 0 24px;
    }
  }
}

/* ── Mosaico ──────────────────────────────────────────────────── */

.bento-wrap {
  padding: 120px 0 40px;
}

.bento-wrap > .wrap > h2,
.closing h2 {
  margin: 0 auto 56px;
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tile {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  padding: 36px;
  border-radius: 32px;
  background: var(--white);
}

.tile.wide {
  grid-column: span 4;
}

.tile.full {
  grid-column: span 6;
}

.tile h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.tile p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 17px;
}

.tile.tint {
  background: var(--tint);
}

.tile.deep {
  background: var(--emerald-deep);
  color: var(--white);
}

.tile.deep p {
  color: rgba(255, 255, 255, 0.75);
}

/* Vitrina dentro del mosaico */
.mini-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.mini-shelf figure {
  position: relative;
  margin: 0;
}

.mini-shelf img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
}

.mini-shelf figcaption {
  position: absolute;
  right: -6px;
  bottom: -8px;
  padding: 3px 10px;
  background: var(--price-tag);
  border-radius: 9px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  transform: rotate(-6deg);
}

.big-word {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--emerald);
}

.big-word small {
  display: block;
  margin-top: 8px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.tile .ledger {
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 14px;
  font-weight: 700;
}

.glyph {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  color: var(--emerald);
}

/* Tablet como caja */
.tablet-tile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-content: start;
  padding: 40px;
}

.tablet {
  padding: 12px;
  background: #101814;
  border-radius: 30px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.6);
}

.tablet img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 20px;
  background: var(--paper);
}

/* ── Precio y cierre ──────────────────────────────────────────── */

.closing {
  padding: 120px 0;
  text-align: center;
}

.closing .sub {
  margin: -28px auto 40px;
  max-width: 44ch;
  font-size: 20px;
  color: var(--muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  text-align: left;
}

.plans > div {
  padding: 32px;
  border-radius: 28px;
  background: var(--white);
}

.plans h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
}

.plans .price {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--emerald);
}

.plans p {
  margin: 0;
  color: var(--muted);
}

.closing .support {
  margin: 28px auto 0;
  max-width: 46ch;
  font-size: 16px;
  color: var(--muted);
}

/* ── Pantallas medianas y chicas ──────────────────────────────── */

@media (max-width: 1100px) {
  .item:nth-of-type(3),
  .item:nth-of-type(6) {
    display: none;
  }

  .item:nth-of-type(1) { left: calc(50% - 360px); }
  .item:nth-of-type(2) { left: calc(50% - 330px); }
  .item:nth-of-type(4) { left: calc(50% + 190px); }
  .item:nth-of-type(5) { left: calc(50% + 170px); }
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile,
  .tile.wide,
  .tile.full {
    grid-column: span 2;
  }

  .tablet-tile {
    grid-template-columns: 1fr;
    padding: 36px;
  }
}

@media (max-width: 720px) {
  .stage-hero {
    padding-top: 56px;
  }

  .counter {
    height: auto;
    margin-top: 48px;
  }

  .device {
    position: relative;
    left: auto;
    transform: none;
    width: min(280px, 78vw);
    margin: 0 auto;
  }

  /* En el teléfono la vitrina va en fila debajo, como un estante */
  .counter .shelf-row {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    padding: 8px 16px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .item .tag {
    top: 112px;
  }

  .item,
  .item:nth-of-type(n) {
    position: relative;
    display: block;
    left: auto;
    top: auto;
    flex: 0 0 148px;
    transform: none;
    scroll-snap-align: start;
  }

  .tile {
    padding: 28px;
    border-radius: 26px;
  }

  .mini-shelf {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans {
    grid-template-columns: 1fr;
  }
}
