@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2-variations"), url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --tinta: #17202E;
  --papel: #F4F6F1;
  --cobalto: #2B4BE0;
  --cobalto-osc: #1F38B0;
  --sello: #FFC93C;
  --niebla: #DCE1EA;
  --gris: #556073;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Bricolage", system-ui, sans-serif;
  font-variation-settings: "opsz" 14;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--papel);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobalto); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }

h1, h2, h3 {
  font-stretch: 80%;
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(3rem, 8vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 2rem; }
h3 { font-size: 1.45rem; line-height: 1.15; margin-bottom: .4rem; }

/* Cabecera */
.top { padding: 1.1rem 0; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top nav { display: flex; gap: 1.6rem; }
.top nav a { text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--cobalto); }
.brand img { width: 104px; height: auto; }

/* Botones */
.btn {
  display: inline-block;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn-main { background: var(--cobalto); color: #fff; }
.btn-main:hover { background: var(--cobalto-osc); }
.btn-main:active { transform: scale(.98); }
.btn-ghost { box-shadow: inset 0 0 0 2px var(--tinta); }
.btn-ghost:hover { background: var(--tinta); color: var(--papel); }

/* Portada */
.hero { padding: 3rem 0 5rem; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.25rem; max-width: 34ch; margin: 1.6rem 0 2rem; color: #2A3446; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.small { font-size: .95rem; color: var(--gris); margin-top: 1rem; }

/* Móvil con la tarjeta */
.phone-stage { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 300px;
  height: 640px;
  border-radius: 46px;
  background: #0E1420;
  padding: 150px 18px 18px;
  box-shadow: 0 0 0 10px #1F2838, 0 40px 80px -30px rgba(23, 32, 46, .55);
}
.notch { position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 96px; height: 28px; border-radius: 20px; background: #000; }

.pass {
  background: var(--tinta);
  color: var(--papel);
  border-radius: 18px;
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #2B3548;
}
.pass-head { display: flex; align-items: center; gap: .7rem; }
.pass-logo, .notif-logo {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--papel); color: var(--tinta);
  font-weight: 800; font-size: .85rem; flex-shrink: 0;
}
.pass-name { font-weight: 700; font-stretch: 85%; font-size: 1.15rem; }

.stamps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 6px 22px;
}
.stamps i {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed #48546A;
  position: relative;
}
.stamps i::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  background: var(--sello);
  transform: scale(0);
}
.stamps i.gift { border-style: solid; border-color: var(--sello); }
.stamps i.gift::before {
  content: "Gratis";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: var(--sello);
}
/* Cuatro sellos ya puestos, el quinto llega con la animación */
.stamps i:nth-child(-n+4)::after { transform: scale(1); }
.stamps i:nth-child(5)::after { animation: sello .45s cubic-bezier(.3, 1.6, .5, 1) 1.4s forwards; }

.pass-row { display: flex; justify-content: space-between; gap: 1rem; }
.pass-row small { display: block; color: #9AA6BA; font-size: .78rem; }
.pass-row b { font-size: 1.1rem; }
.pass-row .right { text-align: right; }
.count .num { display: inline-grid; }
.count .num span { grid-area: 1 / 1; }
.count .c5 { opacity: 0; animation: mostrar .2s linear 1.7s forwards; }
.count .c4 { animation: ocultar .2s linear 1.7s forwards; }

.qr { margin-top: auto; align-self: center; background: #fff; border-radius: 10px; padding: 12px; }
.qr span {
  display: block; width: 92px; height: 92px;
  background:
    linear-gradient(90deg, var(--tinta) 0 26px, transparent 26px 66px, var(--tinta) 66px) top / 100% 26px no-repeat,
    linear-gradient(90deg, var(--tinta) 0 26px, transparent 26px) bottom / 100% 26px no-repeat,
    repeating-conic-gradient(var(--tinta) 0 25%, #fff 0 50%) center / 16px 16px;
}

.notif {
  position: absolute;
  top: 58px; left: 12px; right: 12px;
  z-index: 2;
  display: flex; gap: .7rem; align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(244, 246, 241, .96);
  color: var(--tinta);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(-24px);
  animation: notif .5s ease-out 2s forwards;
  z-index: 3;
}
.notif strong { display: block; font-size: .9rem; }
.notif span { font-size: .85rem; line-height: 1.3; display: block; }
.notif .notif-logo { display: grid; font-size: .8rem; line-height: 1; }
.notif .notif-logo { background: var(--tinta); color: var(--papel); }

@keyframes sello { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes notif { to { opacity: 1; transform: translateY(0); } }
@keyframes ocultar { to { opacity: 0; } }
@keyframes mostrar { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .stamps i:nth-child(5)::after { animation: none; transform: scale(1); }
  .notif { animation: none; opacity: 1; transform: none; }
  .count .c4 { opacity: 0; animation: none; }
  .count .c5 { opacity: 1; animation: none; }
}

/* Pasos */
.steps { background: var(--tinta); color: var(--papel); padding: 5rem 0; }
.step-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  counter-reset: paso;
}
.step-list li { counter-increment: paso; border-top: 2px solid #34405A; padding-top: 1.2rem; }
.step-list li::before {
  content: counter(paso);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sello); color: var(--tinta);
  font-weight: 800; margin-bottom: 1rem;
}
.step-list p { color: #C3CBD8; margin: 0; max-width: 32ch; }

/* Beneficios */
.gains { padding: 5.5rem 0; }
.gains-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.gains dl { margin: 0; display: grid; gap: 2rem; }
.gains dt { font-weight: 750; font-size: 1.3rem; font-stretch: 85%; }
.gains dd { margin: .35rem 0 0; color: #3A4558; max-width: 52ch; }

/* Precio */
.price { padding: 0 0 5.5rem; }
.price-in {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  background: var(--cobalto); color: #fff;
  border-radius: 32px; padding: 3.5rem;
}
.price-in h2 { margin-bottom: .8rem; }
.price-in p { margin: 0; color: #DCE3FF; font-size: 1.15rem; }
.price-box { background: var(--papel); color: var(--tinta); border-radius: 22px; padding: 2rem; }
.price-box .amount { margin: 0 0 1rem; font-size: 1.1rem; color: var(--gris); }
.price-box .amount b { font-size: 3.2rem; font-stretch: 80%; color: var(--tinta); margin-right: .2rem; }
.price-box ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; }
.price-box li { padding-left: 1.6rem; position: relative; }
.price-box li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: .8rem; height: .8rem; border-radius: 50%; background: var(--sello); box-shadow: 0 0 0 2px var(--tinta) inset;
}

/* Para quién */
.who { padding: 0 0 5.5rem; }
.who h2 { margin-bottom: 1rem; }
.who-list { font-size: 1.3rem; max-width: 46ch; margin: 0; }

/* Pie */
.foot { background: var(--tinta); color: #C3CBD8; padding: 2.5rem 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot p { margin: 0; font-size: .9rem; }

/* Páginas de texto */
.doc { padding: 3rem 0 5rem; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 1.5rem; }
.doc h2 { font-size: 1.6rem; margin: 2.5rem 0 .6rem; }
.doc p, .doc li { color: #2A3446; }
.doc details { border-top: 2px solid var(--niebla); padding: 1rem 0; }
.doc details:last-of-type { border-bottom: 2px solid var(--niebla); }
.doc summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; }
.doc summary:hover { color: var(--cobalto); }
.contact-box { background: var(--tinta); color: var(--papel); border-radius: 22px; padding: 2rem; margin-top: 2.5rem; }
.contact-box h2 { margin-top: 0; color: var(--papel); }
.contact-box p { color: #C3CBD8; }
.contact-box a { color: var(--sello); font-weight: 700; }
.contact-box a.btn-main { color: #fff; margin-top: .4rem; }

@media (max-width: 860px) {
  .hero-in, .gains-in, .price-in { grid-template-columns: 1fr; }
  .hero { padding-top: 1.5rem; }
  .step-list { grid-template-columns: 1fr; gap: 2rem; }
  .price-in { padding: 2rem; }
  .top nav { gap: 1rem; font-size: .95rem; }
  .top nav a:first-child { display: none; }
}
