/* ============================================================
   Yape Demo · estilos
   Recreación visual con fines educativos. No afiliada a Yape/BCP.
   ============================================================ */

:root {
  --purple: #6c0f7b;
  --purple-deep: #530a60;
  --purple-soft: #8a2a9b;
  --purple-ink: #6b0f7a;
  --teal: #12b7a9;
  --teal-dark: #0e9c90;
  --teal-light: #2ee0cf;
  --yellow: #ffd21e;
  --ink: #1c1c1e;
  --muted: #8a8a8f;
  --line: #ededf0;
  --gray-soft: #f5f5f7;
  --sb-h: 34px;
  --nav-h: 44px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(1100px 700px at 50% -10%, #4b1357 0%, #26082d 55%, #140416 100%);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

button, input { font-family: inherit; }
button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 2px; }
[hidden] { display: none !important; }

.ic { display: block; width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- escenario / teléfono ---------- */

.stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
}

.device {
  position: relative;
  width: 392px;
  height: min(844px, calc(100dvh - 52px));
  min-height: 640px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 7px solid #101014;
  border-radius: 46px;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(255, 255, 255, .07) inset;
}

.stage__note {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: .1px;
  color: rgba(255, 255, 255, .42);
  text-align: center;
  line-height: 1.5;
}
.stage__note b { color: rgba(255, 255, 255, .72); font-weight: 600; }

.statusbar {
  flex: 0 0 var(--sb-h);
  height: var(--sb-h);
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 10.5px;
  letter-spacing: .1px;
  z-index: 5;
}
.statusbar__left { display: flex; align-items: center; gap: 9px; }
.statusbar__left b { font-weight: 600; }
.statusbar__right { display: flex; align-items: center; gap: 5px; }
.sb { height: 9px; width: auto; }
.sb--battery { height: 10px; width: 36px; overflow: visible; }

.app {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #fff;
  overflow: hidden;
}

.androidbar {
  flex: 0 0 var(--nav-h);
  height: var(--nav-h);
  background: #f7f6f8;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 46px;
  z-index: 5;
}
.ab { display: block; }
.ab--square { width: 11px; height: 11px; border: 2px solid #7e7e84; border-radius: 3px; }
.ab--circle { width: 14px; height: 14px; border: 2px solid #7e7e84; border-radius: 50%; }
.ab--triangle {
  width: 0; height: 0;
  border-left: 11px solid #7e7e84;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.device.is-success-screen .statusbar { background: #670087; }
.device.is-success-screen .androidbar { background: #47066a; }
.device.is-success-screen .ab--square,
.device.is-success-screen .ab--circle { border-color: rgba(255, 255, 255, .5); }
.device.is-success-screen .ab--triangle { border-left-color: rgba(255, 255, 255, .5); }

.device.is-home-screen .androidbar { background: var(--purple); }
.device.is-home-screen .ab--square,
.device.is-home-screen .ab--circle { border-color: rgba(255, 255, 255, .58); }
.device.is-home-screen .ab--triangle { border-left-color: rgba(255, 255, 255, .58); }

/* ---------- pantallas ---------- */

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: screenIn .3s cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes screenIn {
  from { opacity: .35; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, background .15s ease, opacity .15s;
}
.btn:active { transform: scale(.985); }
.btn:disabled { cursor: default; }
.btn .ic { width: 18px; height: 18px; }

.btn--solid {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 183, 169, .2);
}
.btn--solid:active { background: #0fa99c; }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal-dark);
}

.btn--ghost { background: var(--gray-soft); color: #4d4d53; }

.btn--block { width: 100%; margin-top: 10px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #2c2c30;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.icon-btn .ic { width: 22px; height: 22px; }
.icon-btn--light { color: #fff; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.pill--ghost {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 13px;
  padding: 8px 13px;
}
.pill--ghost .ic { width: 16px; height: 16px; }
.pill--yellow {
  background: var(--yellow);
  color: #3d2b00;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 7px;
}

/* ---------- bloqueo ---------- */

.screen--lock { background: var(--purple); color: #fff; }

.lock__top {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 0;
}

.lock__qr {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 6px 0;
}

.qr-card {
  width: 170px;
  height: 170px;
  padding: 9px;
  background: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px rgba(25, 0, 30, .3);
}
.qr-card img { width: 100%; height: 100%; display: block; border-radius: 5px; object-fit: contain; }

.lock__sheet {
  flex: 0 0 auto;
  background: #fff;
  color: var(--ink);
  border-radius: 24px 24px 0 0;
  padding: 16px 18px 6px;
  box-shadow: 0 -12px 34px rgba(35, 0, 45, .18);
}

.lock__title {
  margin: 2px 0 11px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .1px;
  color: var(--purple-ink);
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  height: 10px;
  margin-bottom: 9px;
}
.pin-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9d9dd;
  transition: transform .12s ease, background .12s ease;
}
.pin-dot.is-filled { background: var(--purple); transform: scale(1.18); }
.pin-dots.is-error { animation: shake .4s both; }
.pin-dots.is-error .pin-dot { background: #c94848; }

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  max-width: 342px;
  margin: 0 auto;
}
.key {
  height: 54px;
  border: 0;
  border-radius: 9px;
  background: #ebebed;
  color: #1b1b1e;
  font: inherit;
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s ease, transform .1s ease;
}
.key:active { background: #dededf; transform: scale(.985); }
.key--ghost { background: transparent; color: #6d6d73; display: grid; place-items: center; }
.key--ghost:active { background: #f3f3f5; }
.key--ghost .ic { width: 26px; height: 26px; }

.forgot {
  display: block;
  margin: 12px auto 2px;
  padding: 4px 6px;
  border: 0;
  background: none;
  color: var(--teal-dark);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .55px;
  cursor: pointer;
}

.demo-hint {
  margin: 0 0 4px;
  text-align: center;
  font-size: 9.5px;
  color: #b9b9bf;
}

/* ---------- inicio ---------- */

.screen--home { background: var(--purple); color: #fff; }

.home__scroll {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.home__header, .services, .promos, .promo-dots { flex: 0 0 auto; }
.home__scroll::-webkit-scrollbar { display: none; }

.home__header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 8px;
}
.avatar-btn {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.avatar-btn .ic { width: 27px; height: 27px; stroke-width: 1.5; }

.hello { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
.hello__text {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.1px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.hello__text:active { opacity: .75; }
.hello__form {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  animation: fadeIn .15s ease;
}
.hello__input {
  flex: 1;
  min-width: 0;
  height: 29px;
  padding: 0 2px 1px;
  border: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, .55);
  outline: none;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.1px;
}
.hello__input::placeholder { color: rgba(255, 255, 255, .55); }
.hello__input:focus { border-color: var(--yellow); }
.hello__btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}
.hello__btn .ic { width: 14px; height: 14px; }
.hello__save { background: var(--teal); }
.hello__save:active { background: var(--teal-dark); }
.hello__cancel { background: rgba(255, 255, 255, .16); }

.home__tools { display: flex; align-items: center; gap: 0; flex: 0 0 auto; }
.tool {
  position: relative;
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.tool .ic { width: 23px; height: 23px; stroke-width: 1.6; }
.tool.has-dot i {
  position: absolute;
  top: 5px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20e0c8;
  box-shadow: 0 0 0 2px var(--purple);
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 2px;
  padding: 4px 14px 20px;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.service__icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  transition: transform .15s ease;
}
.service:active .service__icon { transform: scale(.94); }
.service__icon img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 5px rgba(32, 0, 40, .14));
}
.service__label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  letter-spacing: .05px;
}
.service[data-service="bus"] .service__label { white-space: nowrap; }

/* promos */
.promos {
  display: flex;
  gap: 47px;
  overflow-x: auto;
  padding: 2px 16px 0 32px;
  scroll-padding-left: 32px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.promos::-webkit-scrollbar { display: none; }

.promo {
  position: relative;
  flex: 0 0 256px;
  height: 122px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #e9d3f6;
  color: #2b0f31;
  text-align: left;
  font: inherit;
  scroll-snap-align: start;
  cursor: pointer;
}
.promo--lenovo { padding: 0; background: transparent; }
.promo--lenovo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.promo--dolares { background: #fff; border: 1px solid #f1e7f6; }
.promo--dolares .promo__tag { background: #7b2a91; }
.promo--dolares .promo__sub { max-width: 58%; color: #6d5872; }
.promo__tag {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: #8a2a9b;
  color: #fff;
  font-size: 9.5px;
  font-weight: 500;
}
.promo__title {
  position: relative;
  z-index: 2;
  margin: 8px 0 4px;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.2px;
}
.promo__sub {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 57%;
  font-size: 9.5px;
  font-weight: 500;
  color: #4a2a50;
  line-height: 1.3;
}
.promo__art { position: absolute; inset: 0 0 0 auto; width: 50%; pointer-events: none; }
.promo__orb {
  position: absolute;
  right: 6%;
  top: 6%;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #ffd8f5 0 12%, #f48fd8 13% 38%, #a642c9 39% 68%, #4d1a7d 69%);
  filter: saturate(1.05);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .22);
}
.promo__spark {
  position: absolute;
  top: 12%;
  right: 12%;
  color: #fff;
  font-size: 15px;
  text-shadow: 0 0 12px #fff;
}
.promo__badge {
  position: absolute;
  right: 7%;
  bottom: 10%;
  padding: 3px 5px;
  border-radius: 3px;
  background: #17161c;
  color: #fff;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1.15;
  text-align: center;
}
.promo__phone {
  position: absolute;
  right: 16%;
  top: 11%;
  width: 36%;
  height: 74%;
  border-radius: 11px;
  background: linear-gradient(160deg, #7a3be0, #f25b9a 60%, #ffd25c);
  border: 2.5px solid #2a1030;
  transform: rotate(10deg);
  box-shadow: 8px 12px 24px rgba(55, 15, 60, .25);
}
.promo__phone::after {
  content: '';
  position: absolute;
  inset: 7px 5px 15px;
  border-radius: 8px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%);
}
.promo--tienda { background: #ffe1cf; }
.promo--tienda .promo__tag { background: #d5672c; }
.promo--cyber { background: #dcd2ff; }
.promo--cyber .promo__tag { background: #5b2ea8; }
.promo__coupon {
  position: absolute;
  right: 10%;
  top: 34%;
  width: 76%;
  aspect-ratio: 1.85;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px dashed #6a35c8;
  border-radius: 8px;
  color: #5b2ea8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  transform: rotate(-7deg);
  box-shadow: 0 10px 20px rgba(60, 20, 100, .18);
}
.promo__coin {
  position: absolute;
  right: 13%;
  top: 20%;
  display: grid;
  place-items: center;
  width: 61%;
  aspect-ratio: 1;
  border: 2px solid #0b7a53;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7bf0bd, #1ab17d 55%, #0b7a53);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(8, 100, 70, .22);
}
.promo__coin::after {
  content: 'US$';
  position: absolute;
  bottom: -12%;
  padding: 2px 5px;
  border-radius: 999px;
  background: #0b7a53;
  color: #fff;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: .4px;
}

.promo-dots { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 0 11px; }
.promo-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  transition: width .2s ease, background .2s ease;
}
.promo-dots i.is-active { width: 20px; border-radius: 999px; background: #fff; }

/* hoja blanca del inicio */
.home__sheet {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 92px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: var(--ink);
}

.row-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(44, 10, 58, .1);
  border: 1px solid rgba(70, 25, 85, .025);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: #2b2b2f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.row__icon { display: grid; place-items: center; color: var(--purple); flex: 0 0 auto; }
.row__icon .ic { width: 21px; height: 21px; }
.row__label { flex: 1; font-size: 16px; font-weight: 500; }
.row__chev { display: grid; place-items: center; color: #7c7c82; transition: transform .25s ease; }
.row__chev .ic { width: 18px; height: 18px; }
.row[aria-expanded="true"] .row__chev { transform: rotate(180deg); }

.balance-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px 14px 46px;
  animation: fadeIn .2s ease both;
}
.balance-panel__label {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.balance-value {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 3px 0 2px;
  margin: -3px 0 -2px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--purple-ink);
  font: inherit;
  cursor: pointer;
}
.balance-value strong { font-size: 21px; font-weight: 600; line-height: 1.15; }
.balance-value:active { opacity: .65; }
.balance-form {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin: 0;
  animation: fadeIn .15s ease;
}
.balance-form__currency { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--purple-ink); }
.balance-input {
  flex: 1;
  min-width: 50px;
  max-width: 150px;
  height: 30px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1.5px solid #c9a3d4;
  outline: none;
  background: none;
  color: var(--purple-ink);
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  text-align: right;
}
.balance-input:focus { border-color: var(--purple); }
.balance-form__btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.balance-form__btn .ic { width: 14px; height: 14px; }
.balance-form__save { background: var(--teal); color: #fff; }
.balance-form__save:active { background: var(--teal-dark); }
.balance-form__cancel { background: #f4edf6; color: #8b7594; }

.movs { display: none; padding: 2px 6px 4px; border-top: 1px solid var(--line); }
.movs.is-open { display: block; animation: fadeIn .22s ease both; }

/* lista compacta del inicio */
.movs--home { padding: 0 16px 4px; }
.home-mov {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.home-mov + .home-mov { border-top: 1px solid #f1eff3; }
.home-mov:active { opacity: .72; }
.home-mov__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.home-mov__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  color: #2b2b2f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-mov__date {
  font-size: 11.5px;
  line-height: 1.25;
  color: #9d9da3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-mov__amt { flex: 0 0 auto; padding-top: 1px; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.home-mov__amt.is-out { color: #d21e57; }
.home-mov__amt.is-in { color: #0e9c90; }

.mov {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mov:active { background: #faf6fc; }
.mov__ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.mov__ico .ic { width: 15px; height: 15px; }
.mov__ico.is-in { background: #e3f8f3; color: #0e9c90; }
.mov__ico.is-out { background: #f2e7f7; color: #7b2a91; }
.mov__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mov__body b {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mov__body small {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mov__amt { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mov__amt.is-in { color: #0e9c90; }
.mov__amt.is-out { color: #3b3b40; }

.link-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--purple);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.link-all .ic { width: 13px; height: 13px; }

.home__legal {
  margin: 2px 0 0;
  text-align: center;
  font-size: 9px;
  line-height: 1.5;
  color: #ababb1;
}

.home__actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 12px 16px 18px;
  background: #fff;
  box-shadow: none;
}
.home__actions .btn { flex: 1; height: 44px; font-size: 12.5px; font-weight: 600; letter-spacing: .45px; text-transform: uppercase; }
.home__actions .btn--outline { color: var(--teal-dark); border-color: var(--teal); background: #fff; }
.home__actions .btn--solid { color: #fff; }
.home__actions .btn .ic { width: 17px; height: 17px; }

/* ---------- yapear a ---------- */

.screen--contacts { background: #fff; color: var(--ink); }

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
}
.topbar h1 {
  flex: 1;
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .1px;
  text-align: left;
}
.topbar__spacer { width: 40px; flex: 0 0 40px; }
.topbar--back { padding-bottom: 0; }
.topbar--back .icon-btn { color: var(--purple-ink); }

.tabs { flex: 0 0 auto; display: flex; border-bottom: 1px solid #ededf0; }
.tab {
  flex: 1;
  padding: 12px 8px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: #77777d;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.tab.is-active { color: var(--purple); border-bottom-color: var(--purple); font-weight: 500; }

.contacts__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 16px 18px;
}
.contacts__heading {
  flex: 0 0 auto;
  margin: 12px 0 20px;
  color: var(--purple-ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .1px;
}
.search {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: #f5f0f7;
  color: #7f6b87;
}
.search .ic { width: 17px; height: 17px; }
.search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #222;
  font: inherit;
  font-size: 14px;
}
.search__input::placeholder { color: #a2a2a8; }
.search__clear {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: -5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #77777d;
  cursor: pointer;
}
.search__clear .ic { width: 13px; height: 13px; }

.new-number { margin-top: 10px; animation: fadeIn .2s ease; }
.new-number__btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 8px 2px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.new-number__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--purple);
  border-radius: 50%;
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
}
.new-number__body { display: flex; flex-direction: column; gap: 1px; }
.new-number__body b { font-size: 14.5px; font-weight: 500; }
.new-number__body small { font-size: 13px; color: var(--muted); }
.new-number__hint { margin: 7px 0 0 45px; font-size: 10.5px; color: #9b9ba1; }

.contact-list { display: flex; flex-direction: column; margin-top: 4px; }
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px solid #f0f0f2;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.contact-row:active { background: #fcf8fd; }
.contact-row__name { font-size: 15px; font-weight: 500; color: #252529; }
.contact-row__phone { font-size: 12.5px; color: #98989e; }

.empty-search {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 34px 0;
  text-align: center;
  color: #9a9aa0;
}
.empty-search .ic { width: 26px; height: 26px; margin-bottom: 6px; }
.empty-search p { margin: 0; font-size: 14px; font-weight: 500; color: #6f6f75; }
.empty-search small { font-size: 11.5px; }

.contacts__note {
  margin: auto 0 0;
  padding-top: 18px;
  text-align: center;
  font-size: 10px;
  color: #adadb2;
}

.pending {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 32px 54px;
  text-align: center;
}
.pending__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #f3e9f7;
  color: var(--purple);
  display: grid;
  place-items: center;
}
.pending__icon .ic { width: 28px; height: 28px; }
.pending h2 { margin: 0; font-size: 17px; font-weight: 600; }
.pending p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pending .btn { height: 42px; padding: 0 18px; font-size: 12.5px; }

/* ---------- monto ---------- */

.screen--amount { background: #fff; color: var(--ink); }
.amount__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 20px 14px;
}

.recipient {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 58px;
  padding-top: 12px;
}
.rec-skeleton {
  display: none;
  width: 206px;
  height: 14px;
  margin: 9px 0;
  border-radius: 7px;
  background: linear-gradient(90deg, #f1eaf3 0%, #e7dcea 50%, #f1eaf3 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.1s linear infinite;
}
.rec-name-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 5px 2px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--purple-ink);
  font: inherit;
  cursor: pointer;
}
.rec-name-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.rec-name {
  min-width: 0;
  overflow: hidden;
  color: var(--purple-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 300px;
  margin-top: 1px;
  animation: fadeIn .15s ease;
}
.rec-name-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 3px 2px;
  border: 0;
  border-bottom: 1.5px solid #c9a3d4;
  outline: none;
  background: none;
  color: var(--purple-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}
.rec-name-input:focus { border-color: var(--purple); }
.rec-form__btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.rec-form__btn .ic { width: 16px; height: 16px; }
.rec-form__save { background: var(--teal); color: #fff; }
.rec-form__save:active { background: var(--teal-dark); }
.rec-form__cancel { background: #f4edf6; color: #8b7594; }

.screen--amount.is-loading .rec-skeleton { display: block; }
.screen--amount.is-loading .rec-name-btn { display: none; }
.screen--amount:not(.is-loading) .rec-name-btn { animation: fadeIn .18s ease; }
@keyframes skeletonShimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.amount-display {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-height: 82px;
  margin-top: clamp(64px, 12vh, 108px);
}
.amount-currency {
  color: #a06bb0;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -1px;
  transform: translateY(-4px);
}
.amount-input {
  width: 1.1ch;
  max-width: 282px;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--purple-ink);
  font: inherit;
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1.2px;
  caret-color: var(--purple);
}
.amount-input::placeholder { color: #cbbbd1; opacity: 1; }

.amount-hint {
  flex: 0 0 auto;
  align-self: center;
  max-width: 100%;
  margin: 5px 0 0;
  color: #b09bb9;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}
.amount-hint__invalid { display: none; }
.amount-hint__limit { display: inline; }
.screen--amount.is-loading .amount-hint__invalid { display: inline; }
.screen--amount.is-loading .amount-hint__limit { display: none; }

.amount__spacer { flex: 1; min-height: 26px; }

.message-wrap { flex: 0 0 auto; padding: 0 2px; }
.message-placeholder {
  display: block;
  margin: 0 auto;
  padding: 8px;
  border: 0;
  background: none;
  color: #a0a0a6;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.message-input {
  width: 100%;
  margin-bottom: 2px;
  padding: 9px 4px;
  border: 0;
  border-bottom: 1.5px solid #dedee3;
  outline: none;
  background: none;
  color: #3c3c42;
  font: inherit;
  font-size: 13.5px;
  text-align: center;
}
.message-input:focus { border-color: var(--teal); }

.amount__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #efeff2;
}
.amount__actions .btn { flex: 1; height: 49px; font-size: 14px; }
.amount__actions .btn:disabled { pointer-events: none; box-shadow: none; }
.amount__actions .btn--solid:disabled { background: #e9e0ee; color: #b7a6c1; }
.amount__actions .btn--outline:disabled { border-color: #e6dce9; color: #c4b5ca; }

/* ---------- éxito / comprobante ---------- */

.screen--success {
  display: block;
  padding: 0 18px calc(14px + env(safe-area-inset-bottom));
  background: #670087;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  animation: successIn .2s ease both;
}
.screen--success::-webkit-scrollbar { width: 0; }
.screen--success.is-closing { animation: successOut .2s ease forwards; pointer-events: none; }
@keyframes successIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes successOut { to { opacity: 0; transform: scale(.985); } }

.success__close {
  position: absolute;
  top: 7px;
  right: 10px;
  z-index: 10;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: pointer;
  transition: transform .15s ease;
}
.success__close:hover { background: transparent; }
.success__close:active { transform: scale(.94); }
.success__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.success__banner {
  position: relative;
  margin: 0 -18px;
  background: #670087;
  font-size: 0;
  animation: bannerIn .3s cubic-bezier(.18, .85, .25, 1) both;
}
.success__banner img { display: block; width: 100%; height: auto; }

/* Animación final: check, destellos y logo de Yape (WebP + fotograma final). */
.success__badge {
  position: absolute;
  left: 17.74%;
  top: 50.42%;
  width: 35.48%;
  aspect-ratio: 1;
  z-index: 2;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.success__badge img { display: block; width: 100%; height: 100%; }
.success__badge-anim,
.success__badge-still {
  position: absolute;
  inset: 0;
}
.success__badge-anim { z-index: 1; }
.success__badge-still {
  z-index: 2;
  opacity: 0;
  /* El WebP dura 3.125 s y termina con un tramo vacío; el fotograma final
     lo cubre en cada vuelta para que el logo no parpadee. */
  animation: successBadgeStillLoop 3.125s step-end infinite;
}
@keyframes bannerIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}
@keyframes successBadgeStillLoop {
  0%, 80% { opacity: 0; }
  80.1%, 100% { opacity: 1; }
}

.success__card {
  position: relative;
  z-index: 3;
  margin-top: 2px;
  padding: 20px 22px 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(30, 0, 40, .22);
  animation: cardIn .34s cubic-bezier(.16, .9, .3, 1.08) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.success__headline { display: flex; align-items: center; justify-content: space-between; gap: 10px; animation: contentIn .24s ease .02s both; }
.success__headline h1 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.35px; color: var(--purple-ink); }
.success__share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  color: var(--teal-dark);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 2px;
}
.success__share .ic { width: 14px; height: 14px; }
.success__amount {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  font-size: 45px;
  line-height: 1;
  font-weight: 600;
  color: #242428;
  animation: contentIn .24s ease .04s both;
}
.success__currency {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: .5em;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.04em;
}
.success__number {
  font-size: 1em;
  line-height: .96;
  font-weight: 600;
  letter-spacing: -.043em;
}
.success__to {
  margin: 8px 0 0;
  overflow: hidden;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: #46464c;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: contentIn .24s ease .06s both;
}
.success__date {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 18px;
  font-size: 14px;
  color: #9a9aa0;
  animation: contentIn .24s ease .08s both;
}
.success__date .ic { width: 15px; height: 15px; color: #b2b2b8; }
.success__sep { color: #d0d0d4; }
.success__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #f0eff2;
  border-bottom: 1px solid #f0eff2;
  font-size: 9.5px;
  letter-spacing: .55px;
  text-transform: uppercase;
  color: #9a9aa0;
  animation: contentIn .24s ease .1s both;
}
.success__code > span { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.success__info {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}
.success__info .ic { width: 9px; height: 9px; stroke-width: 2.2; }
.success__code b { display: flex; flex: 0 0 auto; gap: 5px; }
.success__code b i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: #f2f2f4;
  color: #3b3b40;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}
.success__data-label {
  margin: 15px 0 2px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: #a4a4aa;
  animation: contentIn .24s ease .12s both;
}
.success__rows { animation: contentIn .24s ease .14s both; }
.success__rows div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 12.5px; }
.success__rows span { color: #98989e; }
.success__rows b { max-width: 58%; overflow: hidden; font-weight: 500; color: #3b3b40; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.success__promo {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: #670087;
  animation: contentIn .3s ease .18s both;
}
.success__promo img { display: block; width: 100%; height: auto; }
@keyframes contentIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

/* Capa transparente del video: no bloquea botones ni desplaza contenido. */
.confetti {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
}
.confetti__animation {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

@media (prefers-reduced-motion: reduce) {
  .screen--success, .success__banner, .success__card,
  .success__headline, .success__amount, .success__to, .success__date,
  .success__code, .success__data-label, .success__rows, .success__promo {
    animation: none;
  }
  .success__badge-anim { display: none; }
  .success__badge-still { animation: none; opacity: 1; }
  .confetti { display: none; }
  .rec-skeleton, .rec-form { animation: none; }
  .screen--amount:not(.is-loading) .rec-name-btn { animation: none; }
}

/* ---------- overlay / modales ---------- */

.overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--sb-h);
  bottom: var(--nav-h);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }
.overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 0, 16, .56);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}

.busy-card {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  width: min(80%, 296px);
  padding: 24px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.busy-card p { margin: 0; font-size: 15px; font-weight: 500; color: #26262b; }
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid transparent;
  border-top-color: var(--teal);
  border-right-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88%;
  padding: 0 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: var(--ink);
  overflow-y: auto;
  transform: translateY(103%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .28);
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.overlay.is-shown .sheet { transform: translateY(0); }

.sheet--full {
  top: 0;
  height: 100%;
  max-height: none;
  padding: 0;
  border-radius: 0;
  background: #0e0e10;
  color: #fff;
}

.sheet__handle {
  width: 38px;
  height: 4px;
  margin: 9px auto 4px;
  border-radius: 2px;
  background: #dedee2;
}
.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0 10px;
}
.sheet__head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: .1px; }
.sheet__lead { margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.sheet__pad { padding: 14px 0 4px; }
.sheet__foot {
  margin: 14px 0 2px;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  color: #a3a3a8;
}

/* perfil / listas */
.profile { padding: 4px 0 8px; text-align: center; }
.profile__avatar {
  width: 72px;
  height: 72px;
  margin: 4px auto 10px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(108, 15, 123, .26);
}
.profile h2 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.profile p { margin: 0; font-size: 11.5px; color: var(--muted); }

.list { display: flex; flex-direction: column; margin: 6px 0; }
.list__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid #f0f0f2;
  background: none;
  color: #2c2c31;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.list__row > .ic:first-child { width: 20px; height: 20px; color: var(--purple); }
.list__row span { flex: 1; }
.list__row > .ic:last-child { width: 16px; height: 16px; color: #b6b6bc; }
.list__row--danger, .list__row--danger > .ic:first-child { color: #c23b3b; }

/* notificaciones / ayuda */
.notifs { display: flex; flex-direction: column; gap: 14px; padding: 8px 0 2px; }
.notif { display: flex; align-items: flex-start; gap: 11px; }
.notif__ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3e9f7;
  color: var(--purple);
  display: grid;
  place-items: center;
}
.notif__ico.is-in { background: #e3f8f3; color: #0e9c90; }
.notif__ico.is-promo { background: #fff5d1; color: #b58900; }
.notif__ico .ic { width: 17px; height: 17px; }
.notif b { display: block; font-size: 13px; font-weight: 600; }
.notif p { margin: 2px 0; font-size: 11.5px; line-height: 1.4; color: #7d7d83; }
.notif small { font-size: 10px; color: #adadb3; }

.help-card {
  display: flex;
  gap: 12px;
  margin: 4px 0 6px;
  padding: 12px;
  border: 1px solid #f0e4f5;
  border-radius: 12px;
  background: #faf6fc;
}
.help-card__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  display: grid;
  place-items: center;
}
.help-card__icon .ic { width: 18px; height: 18px; }
.help-card b { font-size: 13px; }
.help-card p { margin: 3px 0 0; font-size: 11px; line-height: 1.4; color: #8a8a90; }

/* servicios / promos / bancos */
.service-sheet { padding: 8px 2px 2px; text-align: center; }
.service-sheet__icon {
  width: 64px;
  height: 64px;
  margin: 2px auto 12px;
  display: grid;
  place-items: center;
}
.service-sheet__icon img { width: 62px; height: 62px; display: block; }
.service-sheet h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.service-sheet p { margin: 0 0 16px; font-size: 12.5px; line-height: 1.5; color: #7d7d83; }

.promo-sheet__art {
  height: 148px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #9b4dca, #e05ca8);
  color: #fff;
  display: flex;
  align-items: flex-end;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.3px;
  line-height: 1.05;
}
.promo-sheet__art--tienda { background: linear-gradient(135deg, #f6b73c, #e05c5c); }
.promo-sheet__art--cyber { background: linear-gradient(135deg, #6d28d9, #12b7a9); }
.promo-sheet__art--lenovo { background: linear-gradient(135deg, #d8b0ee, #f3e7fb); color: #3c1346; }
.promo-sheet__art--dolares { background: linear-gradient(135deg, #0f9d75, #79e0ae); }
.promo-sheet__body h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.promo-sheet__body p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.banks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bank {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ededf0;
  border-radius: 10px;
  background: #fafafa;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.bank__logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

/* clave olvidada */
.forgot-sheet { padding: 4px 8px; text-align: center; }
.forgot-sheet__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #f3e9f7;
  color: var(--purple);
  display: grid;
  place-items: center;
}
.forgot-sheet__icon .ic { width: 24px; height: 24px; }
.forgot-sheet p { margin: 0 0 8px; font-size: 13px; line-height: 1.55; color: #66666c; }

/* movimientos */
.tx-sheet { max-height: 56vh; overflow-y: auto; padding-bottom: 4px; }
.tx-group {
  margin: 14px 4px 4px;
  color: #9a9aa0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.tx-sheet .tx-group:first-child { margin-top: 2px; }

.mov-detail { padding: 6px 2px 2px; text-align: center; }
.mov-detail__ico {
  width: 52px;
  height: 52px;
  margin: 6px auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.mov-detail__ico .ic { width: 22px; height: 22px; }
.mov-detail__ico.is-in { background: #e3f8f3; color: #0e9c90; }
.mov-detail__ico.is-out { background: #f2e7f7; color: #7b2a91; }
.mov-detail h2 { margin: 0 0 4px; font-size: 30px; font-weight: 600; color: #242428; }
.mov-detail > p { margin: 0 0 14px; font-size: 12.5px; color: #7a7a80; }
.mov-detail__card {
  margin-bottom: 12px;
  padding: 2px 14px;
  border: 1px solid #efeff2;
  border-radius: 12px;
  text-align: left;
}
.mov-detail__card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f3f5;
  font-size: 12px;
}
.mov-detail__card div:last-child { border-bottom: 0; }
.mov-detail__card span { color: #999; }
.mov-detail__card b { font-weight: 500; color: #333; text-align: right; }

/* ---------- escáner ---------- */

.sheet--full .scanner {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 42%, #2d2d33 0%, #101012 68%);
}
.scanner__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}
.scanner__view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 32px;
}
.scanner__hint { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .82); }
.scan-frame {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}
.scan-frame i {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 0 solid var(--teal-light);
}
.scan-frame .c1 { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-radius: 8px 0 0 0; }
.scan-frame .c2 { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 8px 0 0; }
.scan-frame .c3 { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 8px; }
.scan-frame .c4 { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 8px 0; }
.scan-line {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
  box-shadow: 0 0 14px var(--teal-light);
  animation: scan 2.4s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { top: 14%; opacity: .4; }
  50% { top: 84%; opacity: 1; }
}
.scanner__note { margin: 0; font-size: 10px; color: rgba(255, 255, 255, .45); }
.scanner__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
}
.btn--light.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; }
.scanner__bottom .btn--solid { box-shadow: none; }

/* ---------- toast ---------- */

.toast {
  position: absolute;
  left: 50%;
  bottom: 62px;
  z-index: 70;
  max-width: 86%;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(24, 24, 27, .95);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .22s ease, transform .22s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- animaciones ---------- */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* ---------- responsive ---------- */

@media (min-width: 601px) {
  .screen--success { padding-bottom: 10px; }
}

@media (max-width: 600px) {
  html, body { background: var(--purple); }
  .stage {
    min-height: 100dvh;
    padding: 0;
    gap: 0;
    background: var(--purple);
  }
  .device {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .statusbar, .androidbar { display: none; }
  .stage__note { display: none; }
  .app { height: 100dvh; }
  .overlay { inset: 0; }
  .toast { bottom: calc(28px + env(safe-area-inset-bottom)); }
  .sheet { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

  .home__header {
    gap: clamp(9px, 2vw, 13px);
    padding: clamp(10px, 3.2vw, 20px) clamp(16px, 5.5vw, 32px) clamp(8px, 2.4vw, 15px);
  }
  .avatar-btn { width: clamp(32px, 7.3vw, 42px); height: clamp(32px, 7.3vw, 42px); }
  .avatar-btn .ic { width: clamp(28px, 7.3vw, 42px); height: clamp(28px, 7.3vw, 42px); }
  .hello { gap: clamp(7px, 1.4vw, 10px); }
  .hello__text { font-size: clamp(16px, calc(5vw - 4px), 25px); }
  .hello__form { gap: clamp(4px, .9vw, 6px); }
  .hello__input { height: clamp(29px, 5.8vw, 38px); font-size: clamp(16px, calc(5vw - 4px), 25px); }
  .hello__btn { width: clamp(24px, 5.2vw, 32px); height: clamp(24px, 5.2vw, 32px); }
  .hello__btn .ic { width: clamp(13px, 2.7vw, 17px); height: clamp(13px, 2.7vw, 17px); }
  .pill--yellow {
    font-size: clamp(11.5px, 2.3vw, 13px);
    padding: clamp(4px, .8vw, 5px) clamp(9px, 1.7vw, 10px);
  }
  .home__tools { gap: clamp(1px, .5vw, 3px); }
  .tool { width: clamp(32px, 5.8vw, 38px); height: clamp(32px, 5.8vw, 38px); }
  .tool .ic { width: clamp(23px, 4.2vw, 27px); height: clamp(23px, 4.2vw, 27px); }

  .services {
    gap: clamp(10px, 2.7vw, 18px) clamp(2px, .5vw, 4px);
    padding: clamp(4px, 1vw, 7px) 4vw clamp(22px, 8.2vw, 46px);
  }
  .service { gap: clamp(7px, 1.4vw, 10px); }
  .service__icon { width: clamp(50px, 12.9vw, 74px); height: clamp(50px, 12.9vw, 74px); }
  .service__label { font-size: clamp(14px, 3.8vw, 22px); }

  .promos {
    gap: clamp(47px, 12.6vw, 72px);
    padding: clamp(2px, .5vw, 4px) 16px 0 clamp(32px, 8.5vw, 49px);
    scroll-padding-left: clamp(32px, 8.5vw, 49px);
  }
  .promo {
    flex-basis: clamp(256px, 68vw, 390px);
    height: clamp(122px, 32vw, 184px);
    border-radius: clamp(16px, 3vw, 20px);
  }
  .promo__tag { font-size: clamp(9.5px, 1.8vw, 11px); padding: clamp(3px, .55vw, 4px) clamp(8px, 1.4vw, 10px); }
  .promo__title { margin-top: clamp(8px, 1.5vw, 11px); font-size: clamp(16px, 3.2vw, 19px); }
  .promo__sub { font-size: clamp(9.5px, 1.9vw, 11px); }
  .promo-dots { gap: clamp(5px, 1.7vw, 10px); padding: clamp(14px, 3.2vw, 20px) 0 clamp(16px, 3.6vw, 22px); }
  .promo-dots i { width: clamp(5px, 1.7vw, 10px); height: clamp(5px, 1.7vw, 10px); }
  .promo-dots i.is-active { width: clamp(20px, 6vw, 34px); }

  .home__sheet {
    gap: clamp(14px, 3vw, 18px);
    padding: clamp(16px, 3.5vw, 28px) clamp(16px, 4.8vw, 28px) calc(clamp(92px, 22vw, 128px) + env(safe-area-inset-bottom));
    border-radius: clamp(24px, 4.5vw, 28px) clamp(24px, 4.5vw, 28px) 0 0;
  }
  .row-card { border-radius: clamp(10px, 2.4vw, 14px); }
  .row {
    gap: clamp(12px, 2.2vw, 16px);
    min-height: clamp(64px, 17vw, 98px);
    padding: clamp(12px, 2.5vw, 20px) clamp(16px, 2.8vw, 22px);
  }
  .row__icon .ic { width: clamp(21px, 4.8vw, 28px); height: clamp(21px, 4.8vw, 28px); }
  .row__label { font-size: clamp(16px, 4.2vw, 24px); }
  .row__chev .ic { width: clamp(18px, 4vw, 24px); height: clamp(18px, 4vw, 24px); }

  .movs--home { padding: 0 clamp(16px, 4vw, 23px) clamp(4px, 1vw, 8px); }
  .home-mov { gap: clamp(10px, 2vw, 14px); padding: clamp(12px, 2.6vw, 20px) 0; }
  .home-mov__body { gap: clamp(3px, .8vw, 5px); }
  .home-mov__name { font-size: clamp(14px, 3.4vw, 19px); }
  .home-mov__date { font-size: clamp(11.5px, 2.7vw, 15px); }
  .home-mov__amt { font-size: clamp(14px, 3.4vw, 19px); }

  .home__actions {
    gap: clamp(10px, 2.4vw, 14px);
    padding: clamp(12px, 2.5vw, 18px) clamp(16px, 4vw, 23px) calc(clamp(18px, 3.2vw, 26px) + env(safe-area-inset-bottom));
  }
  .home__actions .btn { height: clamp(44px, 11.3vw, 65px); font-size: clamp(12.5px, 3.5vw, 20px); }
  .home__actions .btn .ic { width: clamp(17px, 3.4vw, 22px); height: clamp(17px, 3.4vw, 22px); }

  .screen--success { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .success__card { padding: 24px 24px 26px; }
  .success__headline h1 { font-size: 22px; font-weight: 500; }
  .success__amount { margin-top: 12px; font-size: 47px; }
  .success__to { margin-top: 11px; font-size: 20px; }
  .success__date { margin: 8px 0 24px; font-size: 15px; }
  .success__code { padding: 18px 0; }
  .success__code b i { width: 27px; height: 27px; font-size: 14px; }
  .success__data-label { margin: 20px 0 2px; }
  .success__rows div { padding: 10.5px 0; font-size: 13px; }
  .success__promo { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
