/* Layla Rewards — landing page
   Motivo: el sello circular de la tarjeta. Fotos, botones, viñetas y el progreso de la página son sellos. */

:root {
  --red: #C92525;
  --red-deep: #A51C1C;
  --yellow: #FFE94A;
  --sky: #CFE0F4;
  --sky-deep: #A9C6EA;
  --paper: #F1F0EC;
  --white: #FFFFFF;
  --ink: #141414;
  --muted: #4A4A4A;

  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  /* five type steps */
  --t-display: clamp(52px, 7.4vw, 124px);
  --t-h2: clamp(36px, 4.4vw, 68px);
  --t-statement: clamp(24px, 2.4vw, 36px);
  --t-body: 18px;
  --t-small: 15px;

  --margin: clamp(16px, 2.6vw, 40px);
  --gap-section: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 12px; }

/* ---------- shared ---------- */
.h2 {
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2--xl { font-size: clamp(48px, 6.4vw, 104px); }

/* The brochure's highlighter: an italic serif word on a yellow marker stroke */
.hl {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: var(--yellow);
  padding: 0 .12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hl--ink { background: var(--ink); color: var(--yellow); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.3em;
  border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #333; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--yellow); }
.btn--lg { min-height: 58px; padding: 0 1.6em; font-size: 18px; }

.link {
  background: none; border: 0; padding: 0;
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em;
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { color: var(--red); }
.link--lg { font-size: 17px; }

/* the stamp: every photograph is a circle */
.stamp-photo { border-radius: 50%; overflow: hidden; aspect-ratio: 1; background: var(--sky-deep); }
.stamp-photo img { width: 100%; height: 100%; object-fit: cover; }

/* list bullets are stamps */
.dots li { position: relative; padding-left: 1.6em; }
.dots li::before {
  content: ""; position: absolute; left: 0; top: .32em;
  width: .9em; height: .9em; border-radius: 50%; background: var(--red);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--margin);
  transition: background-color .3s ease, transform .35s var(--ease);
}
.nav.is-solid { background: var(--white); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand img { width: 118px; height: auto; }
.nav__card { display: flex; align-items: center; gap: 10px; font-size: var(--t-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.nav__dots { display: grid; grid-template-columns: repeat(5, 9px); gap: 3px; }
.nav__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(20,20,20,.16); transition: background-color .3s ease, transform .4s var(--ease); }
.nav__dots i.on { background: var(--red); transform: scale(1.1); }
.nav__dots.full i { background: var(--red); animation: pop .6s var(--ease) both; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: var(--t-small); font-weight: 500; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--red); transform: scale(.4); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
.nav__links a:hover::after { transform: scale(1); opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 20px; font-size: var(--t-small); }
.nav__actions .btn { min-height: 42px; font-size: 15px; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1.1); } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--sky);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px;
  padding: 0 var(--margin);
}
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero__copy { position: relative; z-index: 3; grid-column: 1 / span 7; padding-top: clamp(120px, 17vh, 170px); }
.hero__title {
  font-size: var(--t-display); font-weight: 500; line-height: .92; letter-spacing: -0.045em;
  max-width: 9.5em; text-wrap: balance;
}
.hero__lede { margin-top: 36px; max-width: 34ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; }
.hero__client { display: none; } /* solo celular: en escritorio "Soy cliente" va en el menú */
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.hero__stage {
  position: absolute; z-index: 2;
  left: 47%; right: 0; top: 40%; bottom: 0;
  background: var(--red);
  /* a stamp-sized bite out of the top-left corner */
  -webkit-mask: radial-gradient(circle at 0 0, transparent 150px, #000 151px); /* taste-skill-ignore: hard-edged stamp bite */
  mask: radial-gradient(circle at 0 0, transparent 150px, #000 151px); /* taste-skill-ignore */
}
.hero__stage .pass { position: absolute; left: clamp(160px, 14vw, 220px); top: 64px; }

.hero__ph { position: absolute; z-index: 1; }
.hero__ph--1 { width: clamp(150px, 15vw, 240px); right: 6%; top: 10%; animation: bob 9s ease-in-out infinite alternate; }
.hero__ph--2 { width: clamp(100px, 9vw, 150px); right: 30%; top: 15%; animation: bob 11s -3s ease-in-out infinite alternate; }
.hero__ph--3 { width: clamp(84px, 7vw, 118px); left: 44%; top: 31%; z-index: 3; animation: bob 8s -2s ease-in-out infinite alternate; }
.hero__ph--4 { width: clamp(120px, 11vw, 180px); left: var(--margin); bottom: 6%; animation: bob 10s -5s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translate3d(0, -14px, 0); } }

/* ---------- wallet pass (product fragment) ---------- */
.pass {
  --pass: #E9DEC6; --pass-ink: #141414;
  width: 22em; font-size: 16px;
  background: var(--pass); color: var(--pass-ink);
  border-radius: 1em; overflow: hidden;
  transition: background-color .45s ease, color .45s ease;
}
.pass small { display: block; font-size: max(11px, .7em); font-weight: 600; letter-spacing: .02em; }
.pass__head { display: flex; align-items: center; gap: .8em; padding: .9em 1.1em .7em; }
.pass__logo { width: 3em; height: auto; }
.pass__name { flex: 1; font-weight: 600; font-size: 1.08em; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass__count { text-align: right; line-height: 1.1; }
.pass__count b { font-size: 1.3em; font-weight: 500; font-variant-numeric: tabular-nums; }
.pass__strip {
  position: relative; aspect-ratio: 2.6 / 1;
  background: var(--strip) center / cover no-repeat;
  display: grid; place-items: center;
}
.pass__stamps { display: grid; grid-template-columns: repeat(5, 2.5em); gap: .45em .7em; }
.pass__stamps i {
  width: 2.5em; height: 2.5em; border-radius: 50%;
  border: .14em solid rgba(255,255,255,.85); background: rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.pass__stamps i.on { background: #141414; border-color: #141414; }
.pass__stamps i.on::after {
  content: ""; width: .95em; height: .5em; margin-top: -.18em;
  border-left: .2em solid #fff; border-bottom: .2em solid #fff; transform: rotate(-45deg);
}
.pass__stamps i.new { animation: stampIn .5s var(--ease) both; }
@keyframes stampIn { 0% { transform: scale(1.8); opacity: 0; } 60% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); } }
.pass__fields { display: flex; gap: 1.4em; padding: .9em 1.1em 0; }
.pass__fields b { display: block; font-size: 1.05em; font-weight: 400; white-space: nowrap; }
.pass__qr { padding: 1.2em 0 1.5em; display: grid; place-items: center; }
.pass__qr svg { width: 8.5em; height: 8.5em; background: #fff; padding: .55em; border-radius: .4em; }
.pass__qr rect { fill: #141414; }

/* ---------- intro ---------- */
.intro { padding: var(--gap-section) var(--margin); background: var(--white); }
.intro__inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 48px; }
.intro .h2 { grid-column: 1 / span 12; }
.statement {
  grid-column: 1 / span 8;
  font-size: var(--t-statement); font-weight: 500; line-height: 1.22; letter-spacing: -0.02em;
}
.thumb {
  display: inline-block; vertical-align: -0.16em;
  width: 1.1em; height: 1.1em; margin: 0 .1em;
  border-radius: 50%; overflow: hidden; background: var(--sky);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.intro__facts { grid-column: 9 / span 4; display: grid; gap: 22px; align-content: start; font-size: 17px; }
.intro__facts li { padding-left: 1.6em; position: relative; }
.intro__facts li::before { content: ""; position: absolute; left: 0; top: .3em; width: .95em; height: .95em; border-radius: 50%; background: var(--ink); }
.intro__facts li::after { content: ""; position: absolute; left: .28em; top: .5em; width: .42em; height: .22em; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.intro__facts b { font-weight: 600; }

/* ---------- studio (live card designer) ---------- */
.studio {
  --field: #F0675A; --field-ink: #141414;
  position: relative; overflow: hidden;
  min-height: 92svh;
  background: var(--field); color: var(--field-ink);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px;
  padding: clamp(80px, 10vw, 140px) var(--margin);
  transition: background-color .5s ease, color .5s ease;
}
.studio__copy { grid-column: 1 / span 5; position: relative; z-index: 2; }
.studio__word { display: inline-block; }
.studio__word.swap { animation: wordIn .45s var(--ease) both; }
@keyframes wordIn { from { opacity: 0; transform: translateY(.3em); } }
.studio__lede { margin-top: 24px; max-width: 40ch; font-size: var(--t-body); }
.studio__controls { margin-top: 44px; display: grid; gap: 26px; }
.ctl legend, .ctl > span { display: block; font-size: var(--t-small); font-weight: 600; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  border: 0; border-radius: 999px; min-height: 42px; padding: 0 16px;
  background: rgba(255,255,255,.5); color: #141414; font-size: 15px; font-weight: 500;
  transition: background-color .2s, transform .2s var(--ease);
}
.chips button:hover { background: rgba(255,255,255,.85); }
.chips button:active { transform: scale(.96); }
.chips button[aria-checked="true"] { background: #141414; color: #fff; }
.swatches { display: flex; gap: 10px; }
.swatches button {
  width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,.9);
  background: var(--c); transition: transform .2s var(--ease);
}
.swatches button:hover { transform: scale(1.1); }
.swatches button[aria-checked="true"] { border-color: #141414; transform: scale(1.12); }
.ctl--name input {
  width: min(100%, 340px); min-height: 48px; padding: 0 18px;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.75); color: #141414; font-size: 17px;
}
.studio__do { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.studio__status { font-size: var(--t-small); font-weight: 500; min-height: 1.5em; }
.studio__stage {
  grid-column: 7 / span 6; position: relative; z-index: 1;
  display: flex; align-items: flex-start; justify-content: flex-start;
}
.pass--big { font-size: clamp(16px, 1.55vw, 25px); margin-top: 10px; transform: rotate(-3deg); transform-origin: 30% 20%; }
.studio .pass--big.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: rotate(-3deg) scale(1.025); } }

/* ---------- offer board ---------- */
.offer { padding: var(--gap-section) 10px 0; }
.board {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, 108px); gap: 8px;
}
.tile { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; }
.tile__cap { position: absolute; left: 22px; bottom: 20px; right: 22px; z-index: 2; max-width: 30ch; }
.tile__cap h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.tile__cap p { font-size: var(--t-small); margin-top: 2px; }
.tile__cap--light { color: #fff; }
.tile__ui { position: absolute; z-index: 1; }

.tile--head { grid-column: 1 / span 6; grid-row: 1 / span 2; background: var(--paper); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.tile--head p { max-width: 38ch; font-size: 17px; }

.tile--pass { grid-column: 7 / span 6; grid-row: 1 / span 4; background: var(--sky); }
.tile--pass .tile__ui { right: -7%; top: 9%; }
.pass--tile { font-size: clamp(17px, 1.75vw, 27px); width: 17em; transform: rotate(6deg); }

.tile--push { grid-column: 1 / span 3; grid-row: 3 / span 4; background: var(--ink); }
.tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--push::after { content: ""; position: absolute; inset: 45% 0 0; background: rgba(0,0,0,.45); }
.tile--push .tile__ui { left: 14px; right: -40%; top: 18px; display: grid; gap: 8px; }
.notif {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(246,243,236,.94); color: #141414;
  border-radius: 18px; padding: 12px 14px; font-size: 15px; line-height: 1.3;
}
.notif img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 9px; padding: 3px; flex: none; }
.notif b { display: block; font-weight: 600; }
.notif time { margin-left: auto; font-size: 13px; opacity: .6; white-space: nowrap; }
.tile--push .notif { font-size: 17px; }

.tile--geo { grid-column: 4 / span 3; grid-row: 3 / span 2; background: var(--yellow); }
.tile--geo .tile__ui { inset: 0; }
.geo { position: absolute; right: 18%; top: 34%; }
.geo__pin { position: absolute; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--red); border: 4px solid #fff; z-index: 2; }
.geo__ring { position: absolute; width: 150px; height: 150px; margin: -75px; border-radius: 50%; background: rgba(201,37,37,.16); animation: ping 3s var(--ease) infinite; }
.geo__ring--2 { animation-delay: 1.5s; }
@keyframes ping { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.notif--small { position: absolute; left: 16px; top: 16px; width: 74%; font-size: 15px; padding: 10px 12px; }
.notif--small img { width: 28px; height: 28px; }

.tile--metrics { grid-column: 4 / span 6; grid-row: 5 / span 2; background: var(--red); color: #fff; }
.tile--metrics .tile__ui { right: 22px; top: 18px; left: 46%; }
.metric { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 18px; }
.metric__label { grid-column: 1 / -1; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.metric__value { font-size: clamp(64px, 6vw, 96px); font-weight: 500; line-height: .85; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.metric__bars { width: 100%; height: 64px; }
.metric__bars rect { fill: rgba(255,255,255,.35); }
.metric__bars rect.on { fill: var(--yellow); }
.metric__side { grid-column: 1 / -1; margin-top: 10px; font-size: var(--t-small); }
.metric__side b { font-size: 22px; font-weight: 600; }

.tile--seg { grid-column: 10 / span 3; grid-row: 5 / span 2; background: var(--paper); }
.tile--seg .tile__ui { left: 22px; right: 22px; top: 20px; }
.seg { display: grid; gap: 7px; font-size: 13px; font-variant-numeric: tabular-nums; }
.seg__row { display: grid; grid-template-columns: 44px 1fr 34px; align-items: center; gap: 8px; }
.seg__row i { font-style: normal; font-weight: 500; }
.seg__row span { height: 12px; border-radius: 99px; background: rgba(20,20,20,.08); position: relative; overflow: hidden; }
.seg__row span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); border-radius: 99px; }
.seg__row:nth-child(2) span::after { background: var(--red); }
.seg__row b { font-weight: 600; text-align: right; }
.tile--seg .tile__cap { bottom: 16px; }

.band {
  margin: 8px 10px 0; border-radius: 22px;
  background: var(--yellow); padding: clamp(48px, 6vw, 88px) var(--margin);
}
.band p { font-size: var(--t-statement); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; max-width: 30em; }

/* ---------- numbers ---------- */
.numbers {
  position: relative; overflow: hidden; margin-top: var(--gap-section);
  min-height: 100svh; padding: clamp(80px, 9vw, 130px) var(--margin) clamp(48px, 6vw, 80px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
  background: var(--sky);
}
.numbers__sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.numbers__top, .numbers__bottom { position: relative; z-index: 2; }
.numbers__top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 28px; }
.numbers .h2 { grid-column: 1 / span 7; font-size: clamp(48px, 6.4vw, 104px); }
.numbers__facts { grid-column: 1 / span 6; display: grid; gap: 10px; font-size: var(--t-statement); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.numbers__facts b { font-weight: 600; }
.calc { grid-column: 1 / span 5; margin-top: 20px; }
.calc label { display: block; font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.calc__row { display: flex; align-items: center; gap: 18px; }
.calc output { min-width: 3.4em; padding: 6px 14px; border-radius: 999px; background: #fff; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; height: 44px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(var(--ink), var(--ink)) 0 / var(--p, 15%) 100% no-repeat, rgba(255,255,255,.8); } /* taste-skill-ignore: flat two-tone slider fill */
input[type="range"]::-moz-range-track { height: 10px; border-radius: 99px; background: rgba(255,255,255,.8); }
input[type="range"]::-moz-range-progress { height: 10px; border-radius: 99px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%; background: var(--red); border: 4px solid #fff; transition: transform .2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--red); border: 4px solid #fff; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.numbers__bottom { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; align-items: end; }
.figure { grid-column: 1 / span 7; display: flex; flex-direction: column; }
.figure span { font-size: clamp(120px, 18vw, 300px); font-weight: 600; line-height: .8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: var(--red); }
.figure small { margin-top: 18px; font-size: var(--t-statement); font-weight: 500; letter-spacing: -0.02em; }
.numbers__how { grid-column: 9 / span 4; font-size: 17px; }

.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bubble {
  position: absolute; display: grid; place-items: center; text-align: center;
  width: 128px; height: 128px; padding: 18px; border-radius: 50%;
  background: #fff; font-size: 15px; font-weight: 500; line-height: 1.2;
  animation: bob 7s ease-in-out infinite alternate;
}
.bubble::after { content: ""; position: absolute; bottom: 4px; left: 20px; width: 22px; height: 22px; background: #fff; border-radius: 0 0 0 50%; transform: rotate(-12deg); z-index: -1; }
.bubble--good { background: var(--yellow); }
.bubble--good::after { background: var(--yellow); }
.b1 { right: 30%; top: 12%; }
.b2 { right: 7%; top: 8%; width: 148px; height: 148px; animation-delay: -2s; }
.b3 { right: 19%; top: 30%; animation-delay: -4s; }
.b4 { right: 33%; top: 42%; animation-delay: -1s; }
.b5 { right: 5%; top: 40%; animation-delay: -3s; }

/* ---------- how it works ---------- */
.how { padding: var(--gap-section) var(--margin) 0; }
.bar { margin-top: 64px; display: flex; gap: 8px; }
.bar li {
  flex: var(--g) 1 0; min-width: 12%;
  display: flex; flex-direction: column; gap: 22px;
}
.bar b {
  display: block; height: 22vh; min-height: 150px; padding: 20px;
  border-radius: 22px; background: var(--bg); color: var(--fg, var(--ink));
  font-size: clamp(20px, 2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
}
.bar p { font-size: 17px; max-width: 24ch; }
.bar strong { font-weight: 600; }

/* ---------- why (letter) ---------- */
.why {
  padding: var(--gap-section) var(--margin) 0;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px;
}
.why__side { grid-column: 1 / span 5; position: relative; }
.why__photo { width: 100%; max-width: 520px; }
.notes {
  position: relative; margin: -110px 0 0 auto; width: min(340px, 82%);
  background: var(--paper); border-radius: 18px; padding: 16px 22px 22px;
}
.notes__bar { color: #7A5A00; font-weight: 600; font-size: var(--t-small); margin-bottom: 12px; }
.notes h3 { display: inline; font-size: 18px; font-weight: 700; background: rgba(255,233,74,.7); padding: 2px 6px; }
.notes ul { margin-top: 14px; display: grid; gap: 8px; font-size: 16px; }
.notes li { position: relative; padding-left: 30px; }
.notes li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #E3B13B; }
.notes li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.letter { grid-column: 7 / span 6; max-width: 38ch; font-size: 18px; line-height: 1.55; }
.letter .h2 { margin-bottom: 40px; }
.letter p + p { margin-top: 20px; }
.letter__open { font-size: clamp(22px, 1.7vw, 26px); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; }
.letter__sign { margin-top: 40px !important; font-weight: 600; font-size: 16px; }
.letter__sign::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--red); margin-right: 10px; vertical-align: -1px; }

/* ---------- pricing ---------- */
.pricing { padding: var(--gap-section) var(--margin) 0; }
.pricing__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.pricing__top p { margin-top: 18px; max-width: 46ch; }
.toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--paper); }
.toggle button { border: 0; border-radius: 999px; min-height: 46px; padding: 0 20px; background: transparent; font-weight: 600; font-size: 16px; transition: background-color .25s, color .25s; }
.toggle button span { font-weight: 500; font-size: 15px; margin-left: 6px; color: var(--red); }
.toggle button[aria-checked="true"] { background: var(--ink); color: #fff; }
.toggle button[aria-checked="true"] span { color: var(--yellow); }
.plans { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; }
.plan {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 28px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.plan h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.plan__price { margin-top: auto; display: flex; align-items: flex-start; font-weight: 500; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.plan__price [data-price] { font-size: clamp(64px, 6.6vw, 112px); }
.plan__price .cur { font-size: clamp(32px, 3.3vw, 56px); margin-top: .08em; }
.plan__price .per { align-self: flex-end; font-size: 18px; letter-spacing: 0; margin: 0 0 .5em .3em; font-weight: 500; }
.plan__note { margin: 14px 0 22px; font-size: var(--t-small); min-height: 1.5em; }
.plan--1 { min-height: 380px; background: var(--sky); }
.plan--2 { min-height: 480px; background: var(--yellow); }
.plan--3 { min-height: 580px; background: var(--red); color: #fff; }
.plan__stamps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.plan__stamps i { width: 20px; height: 20px; border-radius: 50%; background: currentColor; opacity: .9; }
.plan--3 .plan__stamps i { background: var(--yellow); }
.plan.is-swap [data-price] { animation: wordIn .4s var(--ease) both; }
.pricing__all { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; row-gap: 20px; }
.pricing__all h3 { grid-column: 1 / span 4; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.pricing__all .dots { grid-column: 5 / span 8; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.pricing__all > p { grid-column: 5 / span 8; margin-top: 12px; }

/* ---------- faq drawer ---------- */
.faq { padding: var(--gap-section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; }
.faq .h2 { grid-column: 3 / span 8; margin-bottom: 48px; }
.drawer { grid-column: 3 / span 8; display: grid; }
.card { position: relative; margin-top: -26px; }
.card:first-child { margin-top: 0; }
.card__tab {
  width: 100%; border: 0; text-align: left; background: none; padding: 0; display: block;
}
.card__tab span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 22px;
  margin-left: calc(var(--i) * 13%);
  background: var(--c); border-radius: 16px 16px 0 0;
  font-size: var(--t-small); font-weight: 600;
}
.card__tab b {
  display: block; background: var(--c); padding: 18px 26px 40px; border-radius: 0 22px 0 0;
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  transition: padding .3s var(--ease);
}
.card[style*="--i:0"] .card__tab b { border-radius: 0 22px 0 0; }
.card__tab:hover b { padding-left: 34px; }
.card__body { background: var(--c); padding: 0 26px 44px; margin-top: -24px; border-radius: 0 0 22px 22px; }
.card:not(:last-child) .card__body { padding-bottom: 54px; }
.card__body p { max-width: 50ch; font-size: 17px; }
.card.is-open .card__body { animation: openIn .4s var(--ease) both; }
@keyframes openIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- closing sentence ---------- */
.close { padding: var(--gap-section) var(--margin); }
.close .h2 { margin-bottom: 40px; }
.close__line {
  font-size: clamp(36px, 5.4vw, 92px); font-weight: 500; line-height: 1.12; letter-spacing: -0.04em;
  display: flex; flex-wrap: wrap; align-items: center; gap: .1em .26em; max-width: 13em;
}
.close__line input {
  width: 6.6em; height: 1.06em; padding: 0 .34em;
  border: 0; border-radius: 999px; background: var(--sky);
  font-size: 1em; font-weight: 500; letter-spacing: -0.04em;
  transition: background-color .2s;
}
.close__line input::placeholder { color: #5b6f8a; }
.close__line input:focus { background: var(--yellow); outline: none; }
.close__btn {
  height: 1.06em; padding: 0 .4em; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 1em; font-weight: 500; letter-spacing: -0.04em;
  transition: transform .25s var(--ease), background-color .2s;
}
.close__btn:hover { background: var(--red-deep); transform: rotate(-2deg) scale(1.03); }
.close__btn:active { transform: scale(.97); }
.close__note { margin-top: 28px; font-size: 16px; }

/* ---------- footer ---------- */
.foot { background: var(--red); color: #fff; padding: clamp(56px, 7vw, 96px) var(--margin) 28px; }
.foot__mark { width: 100%; max-width: 1400px; height: auto; margin: 0 auto; }
.foot__cols { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot__cols nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 16px; font-weight: 500; }
.foot__cols nav a { text-decoration: none; }
.foot__cols nav a:hover { text-decoration: underline; text-underline-offset: .22em; }
.foot__acct { display: flex; align-items: center; gap: 22px; }
.foot__acct .link:hover { color: var(--yellow); }
.foot__last { margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--t-small); }

/* ---------- entrances ---------- */
.js [data-rise] { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }
.js .hero__stage { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1) .25s; }
.js .hero__stage .pass { transform: scale(1.12) translateY(40px); transition: transform 1.3s var(--ease) .35s; }
.js .hero.ready .hero__stage { clip-path: inset(0 0 0 0); }
.js .hero.ready .hero__stage .pass { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .js .hero__stage, .js .hero__stage .pass { clip-path: none; transform: none; transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .hero__copy { grid-column: 1 / span 10; }
  .hero__stage { left: 38%; top: 52%; }
  .hero__ph--2 { display: none; }
  .hero__ph--3 { left: 30%; top: auto; bottom: 30%; }
  .studio__copy { grid-column: 1 / span 6; }
  .studio__stage { grid-column: 7 / span 6; }
  .board { grid-template-rows: repeat(6, 96px); }
  .tile--push .notif { font-size: 15px; }
  .tile--metrics .tile__ui { left: 40%; }
  .numbers__how { grid-column: 7 / span 6; }
  .figure { grid-column: 1 / span 6; }
}

/* ---------- tablet: board and steps stack ---------- */
@media (max-width: 1100px) {
  .board { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: clamp(96px, 19vw, 150px); }
  .tile--head { grid-column: 1 / -1; grid-row: span 2; }
  .tile--pass { grid-column: 1 / -1; grid-row: span 3; }
  .tile--pass .tile__ui { top: 6%; }
  .tile--push { grid-column: 1 / 2; grid-row: span 3; }
  .tile--push .tile__ui { right: 14px; }
  .tile--geo { grid-column: 2 / 3; grid-row: span 3; }
  .tile--metrics { grid-column: 1 / -1; grid-row: span 2; }
  .tile--metrics .tile__ui { left: auto; width: min(420px, 55%); }
  .tile--seg { grid-column: 1 / -1; grid-row: span 2; }
  .tile--seg .tile__ui { left: auto; width: min(360px, 50%); }

  .bar { flex-direction: column; margin-top: 40px; }
  .bar li { flex: none; min-width: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
  .bar b { height: auto; min-height: calc(56px + var(--g) * 14px); font-size: 22px; padding: 18px 18px 0; border-radius: 22px 22px 0 0; }
  .bar p { background: var(--bg); color: var(--fg, var(--ink)); padding: 0 18px 18px; border-radius: 0 0 22px 22px; max-width: none; font-size: 16px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --gap-section: 104px; }
  .nav { gap: 14px; padding: 10px var(--margin); }
  .nav__brand img { width: 92px; }
  .nav__card .nav__count { display: none; }
  .nav__dots { grid-template-columns: repeat(5, 7px); gap: 2px; }
  .nav__dots i { width: 7px; height: 7px; }
  .nav__actions { gap: 14px; }
  /* Celular: sin el contador de sellos ni "Soy cliente" en el menú (queda en la portada),
     para que quepan "Iniciar sesión" y "Crear cuenta". */
  .nav__card { display: none; }
  .nav__actions .nav__client { display: none; }
  .hero__client { display: inline; }
  .nav__actions .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }

  .hero { display: block; min-height: auto; padding-bottom: 0; }
  .hero__copy { padding-top: 104px; }
  .hero__title { font-size: 13vw; max-width: none; }
  .hero__lede { margin-top: 28px; font-size: 17px; }
  .hero__actions { margin-top: 28px; flex-direction: column; align-items: flex-start; }
  .hero__stage {
    position: relative; left: auto; top: auto; margin: 64px calc(var(--margin) * -1) 0;
    height: 520px;
    -webkit-mask: radial-gradient(circle at 0 0, transparent 72px, #000 73px); /* taste-skill-ignore */
    mask: radial-gradient(circle at 0 0, transparent 72px, #000 73px); /* taste-skill-ignore */
  }
  .hero__stage .pass { left: 50%; top: 48px; margin-left: -10em; width: 20em; font-size: 15px; }
  .hero.ready .hero__stage .pass { transform: none; }
  .hero__ph--1 { width: 112px; right: 4%; top: auto; bottom: 470px; z-index: 3; }
  .hero__ph--3, .hero__ph--4 { display: none; }

  .intro__inner { display: block; }
  .statement { margin-top: 36px; font-size: 24px; }
  .intro__facts { margin-top: 40px; }

  .studio { display: block; min-height: auto; padding-bottom: 0; }
  .studio__lede { font-size: 16px; }
  .studio__controls { margin-top: 32px; }
  .studio__stage { margin: 48px 0 -90px; justify-content: center; }
  .pass--big { font-size: 15px; width: 21em; }
  .studio { padding-bottom: 120px; }

  .offer { padding-left: 6px; padding-right: 6px; }
  .board { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 28vw; gap: 6px; }
  .tile--head { grid-column: 1 / -1; grid-row: span 2; padding: 22px; }
  .tile--head p { font-size: 16px; }
  .tile--pass { grid-column: 1 / -1; grid-row: span 3; }
  .tile--pass .tile__ui { top: 6%; }
  .pass--tile { font-size: 15px; }
  .tile--push { grid-column: 1 / -1; grid-row: span 3; }
  .tile--push .tile__ui { right: 14px; }
  .tile--push .notif { font-size: 15px; }
  .tile--geo { grid-column: 1 / -1; grid-row: span 2; }
  .tile--metrics { grid-column: 1 / -1; grid-row: span 2; }
  .tile--metrics .tile__ui { left: 22px; top: 20px; width: auto; }
  .tile--seg .tile__ui { left: 22px; width: auto; }
  .tile--push, .tile--geo { grid-column: 1 / -1; }
  .tile--seg { grid-column: 1 / -1; grid-row: span 2; }
  .tile__cap h3 { font-size: 18px; }
  .band { margin: 6px 6px 0; }
  .band p { font-size: 24px; }

  .numbers { min-height: auto; gap: 48px; }
  .numbers .h2 { font-size: 11vw; }
  .numbers__top, .numbers__bottom { display: block; }
  .numbers__facts { font-size: 22px; margin-top: 24px; }
  .calc { margin-top: 36px; }
  .calc label { font-size: 18px; }
  .bubbles { display: none; }
  .bubble { width: 104px; height: 104px; font-size: 13px; padding: 12px; }
  .b1 { left: 4%; right: auto; top: 0; }
  .b2 { left: 34%; right: auto; top: 30px; width: 120px; height: 120px; }
  .b3, .b5 { display: none; }
  .b4 { right: 4%; left: auto; top: 6px; }
  .numbers__top { order: 1; }
  .numbers__bottom { order: 3; }
  .figure span { font-size: 34vw; }
  .figure small { font-size: 20px; }
  .numbers__how { margin-top: 20px; font-size: 15px; }

  .bar { flex-direction: column; margin-top: 40px; }
  .bar li { flex: none; min-width: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
  .bar b { height: auto; min-height: calc(56px + var(--g) * 14px); font-size: 22px; padding: 18px 18px 0; border-radius: 22px 22px 0 0; }
  .bar p { background: var(--bg); color: var(--fg, var(--ink)); padding: 0 18px 18px; border-radius: 0 0 22px 22px; max-width: none; font-size: 16px; }

  .why { display: flex; flex-direction: column-reverse; gap: 56px; }
  .letter { font-size: 17px; }
  .letter__open { font-size: 23px; }
  .why__photo { max-width: 86%; }

  .plans { grid-template-columns: 1fr; }
  .plan--1, .plan--2, .plan--3 { min-height: 0; }
  .plan__price { margin-top: 28px; }
  .plan__price [data-price] { font-size: 22vw; }
  .pricing__all { display: block; }
  .pricing__all .dots { grid-template-columns: 1fr; margin-top: 18px; }
  .pricing__all > p { margin-top: 24px; }

  .faq { display: block; }
  .faq .h2 { margin-bottom: 36px; }
  .card__tab span { margin-left: calc(var(--i) * 8%); padding: 0 16px; }
  .card__tab b { font-size: 18px; padding: 16px 20px 40px; }
  .card__body { padding: 0 20px 40px; }
  .card__body p { font-size: 16px; }

  .close__line { font-size: 24px; letter-spacing: -0.02em; gap: 10px 8px; }
  .close__line input, .close__btn { height: 52px; letter-spacing: -0.02em; }
  .close__btn { padding: 0 22px; }
  .close__line input { width: 8.6em; }
  .close { padding-bottom: 56px; }
  .foot { padding-top: 44px; }
  .close__note { font-size: 15px; }

  .foot__cols, .foot__acct { flex-direction: column; align-items: flex-start; }
  .foot__cols nav { display: grid; grid-template-columns: 1fr 1fr; }
}
.nowrap { white-space: nowrap; }
