:root {
  --paper: #EDF2F7;
  --paper-2: #E2E9F2;
  --ink: #14213D;
  --ink-2: #4A5A78;
  --cobalt: #2340D3;
  --cobalt-dark: #1A30A6;
  --sun: #FFD23F;
  --line: #C6D2E1;
  --ok: #1E8A5C;
  --bad: #B42318;

  --display: "Lato", "Helvetica Neue", Arial, sans-serif;
  --text: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 72px; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
button { -webkit-tap-highlight-color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--text { width: min(680px, 100% - 32px); }

.demo-bar { background: var(--sun); font-size: .88rem; font-weight: 600; padding: 6px 0; }

/* ---------- Header ---------- */
.top {
  border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
/* Arriba del todo: transparente. Al bajar: color de fondo y una sombra suave (clases puestas por core.js) */
.top.is-top { background-color: transparent; border-bottom-color: transparent; }
.top.is-scrolled { box-shadow: 0 8px 24px -16px rgba(20, 33, 61, .45); }
/* En páginas con banner azul la cabecera flota encima de él, con texto blanco mientras es transparente */
body.has-hero .top { position: fixed; left: 0; right: 0; }
body.has-hero .hero { padding-top: calc(clamp(36px, 5vw, 64px) + 64px); }
body.has-hero .top.is-top .brand,
body.has-hero .top.is-top .top__nav a { color: #fff; }
body.has-hero .top.is-top .top__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.top .brand, .top__nav a { transition: color .25s ease, opacity .15s; }
.top__inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 900 1.85rem/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.brand__icon { display: block; width: 44px; height: 44px; flex: none; object-fit: contain; }
.brand b { font-weight: 900; color: var(--cobalt); }
.top__nav { display: flex; gap: 28px; margin-left: auto; font-weight: 400; font-size: 1rem; }
.top__nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; transition: opacity .15s, color .15s; }
.top__nav a:hover { color: var(--ink); }

.wallet {
  display: flex; align-items: stretch; flex: none;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden;
}
.wallet__main { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; text-decoration: none; color: var(--ink); }
.wallet__main:hover { background: var(--paper); }
.wallet__label { font-size: .85rem; color: var(--ink-2); }
.wallet__amount { font: 900 1.1rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wallet__coin { display: block; width: 24px; height: 24px; flex: none; margin-right: -3px; filter: drop-shadow(0 1px 1px rgba(120, 80, 0, .25)); }
/* "Recargar" de la cabecera: mismo acabado 3D, sin canto porque va dentro de la cápsula del saldo */
.wallet__add {
  position: relative; isolation: isolate;
  font: 800 .9rem var(--text); color: #fff; border: 0; padding: 10px 18px; cursor: pointer;
  border-radius: 11px; margin: 3px;
  background: linear-gradient(180deg, #5B8CFF 0%, #2F55E4 55%, #2340D3 100%);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(10,30,120,.25);
  text-shadow: 0 1px 1px rgba(10,30,120,.35);
  transition: filter .15s, transform .12s;
}
.wallet__add::before {
  content: ""; position: absolute; z-index: -1; left: 5px; right: 5px; top: 2px; height: 45%;
  border-radius: 8px 8px 6px 6px; background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
}
.wallet__add:hover { filter: brightness(1.06) saturate(1.05); }
.wallet__add:active { transform: translateY(1px); filter: brightness(.96); }

/* =========================================================
   BOTONES — un solo sistema para todo el sitio
   Estilo 3D tipo animación (como las ilustraciones del sitio):
   cara con degradado de luz, brillo en la parte de arriba y un
   "canto" inferior más oscuro que se hunde al pulsar.
   · .btn--buy   principal: azul, texto blanco (Comprar, Recargar, Entrar…)
   · .btn--light principal sobre fondo azul: blanco con texto azul
   · .btn--plain secundario: blanco suave (Cancelar, Ver más, Salir…)
   · .btn--small en tablas y cabecera · .btn--wide ocupa todo el ancho
   Cada variante solo define sus colores en variables --b-*.
   ========================================================= */
.btn {
  --b-top: #5B8CFF; --b-bot: #2340D3; --b-edge: #172C9C; --b-glow: rgba(35,64,211,.5); --b-ink: #fff;
  --b-depth: 5px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .3em;
  font: 800 1rem/1.2 var(--text); letter-spacing: .01em; cursor: pointer; text-decoration: none;
  padding: 15px 28px; border-radius: 14px; border: 0;
  color: var(--b-ink);
  background: linear-gradient(180deg, var(--b-top) 0%, var(--b-bot) 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.6),
    inset 0 -2px 0 rgba(0,0,0,.08),
    0 var(--b-depth) 0 var(--b-edge),
    0 calc(var(--b-depth) + 8px) 18px -8px var(--b-glow);
  transform: translateY(0);
  transition: transform .14s cubic-bezier(.3,.7,.4,1), box-shadow .14s cubic-bezier(.3,.7,.4,1), filter .15s;
}
/* Brillo de plástico en la mitad de arriba */
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 6px; right: 6px; top: 3px; height: 44%;
  border-radius: 10px 10px 8px 8px; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0));
  pointer-events: none;
}
.btn:hover:not(:disabled) {
  transform: translateY(-2px); filter: brightness(1.04) saturate(1.05);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.6),
    inset 0 -2px 0 rgba(0,0,0,.08),
    0 calc(var(--b-depth) + 2px) 0 var(--b-edge),
    0 calc(var(--b-depth) + 12px) 22px -8px var(--b-glow);
}
/* Al pulsar se hunde hasta tocar el canto */
.btn:active:not(:disabled) {
  transform: translateY(var(--b-depth)); filter: brightness(.97);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.45),
    inset 0 -1px 0 rgba(0,0,0,.08),
    0 0 0 var(--b-edge),
    0 4px 10px -6px var(--b-glow);
}
.btn:disabled { cursor: not-allowed; opacity: .5; filter: saturate(.6); }
.btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.btn--buy { text-shadow: 0 1px 1px rgba(10,30,120,.35); }
/* Los azules van sin el reflejo de arriba */
.btn--buy::before, .wallet__add::before { display: none; }
.btn--plain {
  --b-top: #FFFFFF; --b-bot: #EAF0F8; --b-edge: #C3D0E2; --b-glow: rgba(20,33,61,.22); --b-ink: var(--ink);
  --b-depth: 4px;
}
.btn--danger {
  --b-top: #F04438; --b-bot: #D92D20; --b-edge: #912018; --b-glow: rgba(217,45,32,.38); --b-ink: #fff;
  text-shadow: 0 1px 1px rgba(100,10,10,.35);
}
.btn--danger::before { display: none; }
.btn--small { padding: 9px 18px; font-size: .92rem; --b-depth: 4px; border-radius: 12px; }
.btn--small::before { border-radius: 8px 8px 6px 6px; left: 5px; right: 5px; }
.btn--plain.btn--small { --b-depth: 3px; }
/* Principal sobre fondo azul (banner): blanco con texto azul */
.btn--light {
  --b-top: #FFFFFF; --b-bot: #E1EBFF; --b-edge: #8FAEEA; --b-glow: rgba(0,40,120,.4); --b-ink: var(--cobalt);
}
.btn--wide { width: 100%; }
.link { font: inherit; font-weight: 600; color: var(--cobalt); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #03a9f4;
  background-image: url("hero-bg.png?v=2");
  background-position: 0 0;
  background-size: 350px;
  color: #fff;
  padding: clamp(36px, 5vw, 64px) 0 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 36px;
  align-items: center;
  min-height: 490px;
}

.hero__copy {
  padding-bottom: clamp(44px, 6vw, 76px);
  z-index: 2;
}

.hero__title {
  font: 700 clamp(2.25rem, 4.3vw, 3.35rem)/1.18 var(--display);
  color: #fff;
  max-width: 15.5em;
  letter-spacing: -.01em;
}

.hero__lead {
  margin-top: 22px;
  font: 300 clamp(1.18rem, 1.85vw, 1.48rem)/1.42 var(--text);
  color: rgba(255, 255, 255, 0.96);
  max-width: 28em;
}

/* Imagen del teléfono a la derecha */
.hero__stage {
  display: flex;
  justify-content: flex-end;
  align-self: end;
}

.hero__phone {
  display: block;
  width: min(490px, 100%);
  height: auto;
  margin-bottom: 16px;
  pointer-events: none;
  user-select: none;
}

/* ---------- Activaciones ---------- */
.active { padding: 8px 0 40px; }
.active__title { font: 800 1.9rem/1 var(--display); margin-bottom: 16px; }
.act-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.act {
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px;
  display: grid; gap: 10px;
}
.act--received { border-color: var(--ink); }
.act--canceled, .act--expired, .act--done { background: transparent; }
.act--canceled .act__num, .act--expired .act__num, .act--done .act__num { color: var(--ink-2); }
.act__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .92rem; }
.act__svc { font-weight: 700; }
.act__country { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.act__time {
  margin-left: auto; font: 800 1.25rem/1 var(--display); font-variant-numeric: tabular-nums;
  padding: 4px 8px; border-radius: 6px; background: var(--paper);
}
.act__num { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.act__num span { font: 900 clamp(1.8rem, 6vw, 2.6rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.copy {
  font: 600 .88rem var(--text); color: var(--cobalt); background: var(--paper);
  border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.copy:hover { background: var(--paper-2); }
.copy--dark { background: var(--ink); color: #fff; }
.copy--dark:hover { background: var(--cobalt); }
.act__wait { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.pulse { width: 22px; height: 22px; flex: none; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.85); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.act__code {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  background: var(--sun); border-radius: 10px; padding: 12px 16px;
  animation: codeIn .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes codeIn { from { opacity: 0; transform: scale(.97); } }
.act__code-label { font-weight: 600; font-size: .9rem; }
.act__code strong { font: 900 clamp(2.2rem, 7vw, 3rem)/1 var(--display); letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.act__code .copy { margin-left: auto; }
.act--done .act__code, .act--canceled .act__code { background: var(--paper-2); animation: none; }
.act__end { font-size: .92rem; color: var(--ink-2); }
.act__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.act-list__clear { text-align: right; font-size: .92rem; }

/* ---------- Compra ---------- */
.buy { padding: 48px 0 clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.buy__grid { display: grid; grid-template-columns: minmax(260px, 1fr) 1.6fr; gap: 48px; align-items: start; }
.buy__step { font: 800 1.7rem/1.1 var(--display); display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.buy__step span { color: var(--cobalt); }

.find input, .sort select {
  width: 100%; font: 500 1rem var(--text); color: var(--ink);
  padding: 11px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; outline: 0;
}
.find input:focus, .sort select:focus { border-color: var(--cobalt); }

.services {
  list-style: none; margin: 12px 0 0; padding: 0;
  max-height: 560px; overflow: auto; border-top: 1px solid var(--line);
}
.svc {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 10px; font: inherit; color: inherit; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.svc:hover { background: #fff; }
.svc[aria-selected="true"] { background: var(--ink); color: #fff; }
.svc__name { font-weight: 600; }
.svc__from { font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.svc[aria-selected="true"] .svc__from { color: #B9C4DA; }

.countries__tools { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.sort select { width: auto; cursor: pointer; }
.countries__wrap { margin-top: 12px; max-height: 620px; overflow: auto; }
.countries { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.countries thead th { position: sticky; top: 0; background: var(--paper); z-index: 1; }
.flag--none { display: inline-block; vertical-align: -3px; margin-right: 10px; background: var(--paper-2); }
.countries th, .countries td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.countries thead th { font-weight: 600; font-size: .85rem; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.countries tbody th { font-weight: 600; }
.countries tbody th img { vertical-align: -3px; margin-right: 10px; }
.countries__stock { color: var(--ink-2); font-size: .95rem; }
.countries__price { font: 700 1.35rem/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.countries td:last-child { text-align: right; width: 1%; }
.countries tr.is-out th, .countries tr.is-out td { color: var(--ink-2); }
.countries tr.is-out .countries__price { text-decoration: line-through; opacity: .6; }
.countries tbody tr:hover:not(.is-out) { background: #fff; }
.empty { padding: 20px 0; color: var(--ink-2); }

.flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(20, 33, 61, .12); }

/* ---------- Bloques ---------- */
.block { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.block h2 { font: 800 clamp(2rem, 4vw, 2.9rem)/1.05 var(--display); }

.block--ink { background: var(--ink); color: var(--paper); border-top: 0; }
.how { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: #B9C4DA; max-width: 32em; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; font: 800 2rem/1 var(--display); color: var(--sun); }
.steps strong { color: #fff; font-weight: 600; }
.rules { margin: 0; display: grid; gap: 24px; padding-top: 8px; }
.rules div { border-left: 3px solid var(--sun); padding-left: 18px; }
.rules dt { font-weight: 700; color: #fff; }
.rules dd { margin: 4px 0 0; color: #B9C4DA; }
/* "Cómo funciona" sobre el fondo claro de la página (debajo del banner) */
.block--how { border-top: 0; }
.block--how .steps li { color: var(--ink-2); }
.block--how .steps li::before { color: var(--cobalt); }
.block--how .steps strong { color: var(--ink); }
.block--how .rules div { border-left-color: var(--cobalt); }
.block--how .rules dt { color: var(--ink); }
.block--how .rules dd { color: var(--ink-2); }

/* Dos columnas a todo el ancho; cada fila mantiene la misma altura para que las líneas cuadren */
.faq { margin-top: 28px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 44em; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 32px; align-items: center; }
.foot p { color: var(--ink-2); font-size: .95rem; }
.foot nav { display: flex; gap: 20px; font-size: .95rem; }
.foot nav a { color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.foot small { grid-column: 1 / -1; color: var(--ink-2); }

/* ---------- Diálogos ---------- */
.sheet {
  width: min(440px, 100% - 24px); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 28px 24px 24px; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink);
}
.sheet::backdrop { background: rgba(20, 33, 61, .6); }
.sheet[open] { animation: sheetIn .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(16px); } }
.sheet__x {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--ink-2); cursor: pointer; border-radius: 8px;
}
.sheet__x:hover { background: var(--paper-2); color: var(--ink); }
.sheet h3 { font: 800 1.9rem/1 var(--display); margin-bottom: 18px; padding-right: 40px; }
.sheet__facts { margin: 0 0 16px; border-top: 2px solid var(--ink); }
.sheet__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sheet__facts dt { color: var(--ink-2); }
.sheet__facts dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
#buyPrice { font: 800 1.6rem/1 var(--display); }
.sheet__note { color: var(--ink-2); font-size: .95rem; margin-bottom: 16px; }
.sheet__p { margin: 0 0 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
/* ---------- Pestañas y selectores: misma familia que los botones 3D ----------
   Una "bandeja" hundida de color azul grisáceo y, dentro, la opción elegida
   como una pastilla azul en relieve (mismos colores que .btn--buy). */
.seg, .filter, .auth__tabs, .admin__tabs {
  --tab-track: #E2E9F5;
  background: var(--tab-track); border: 0; border-radius: 16px; padding: 5px; gap: 4px;
  box-shadow: inset 0 2px 4px rgba(20, 33, 61, .10), inset 0 -1px 0 rgba(255, 255, 255, .7);
}
.seg span, .filter button, .auth__tabs button, .admin__tabs a {
  border-radius: 12px; color: var(--ink-2); background: transparent;
  transition: background-color .15s, color .15s, box-shadow .2s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .seg label:hover span, .filter button:hover, .auth__tabs button:hover, .admin__tabs a:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
}
.seg input:checked + span,
.filter button[aria-pressed="true"],
.auth__tabs button[aria-selected="true"],
.admin__tabs a[aria-current="page"] {
  color: #fff; background: linear-gradient(180deg, #5B8CFF, #2340D3);
  text-shadow: 0 1px 1px rgba(10, 30, 120, .35);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), 0 3px 0 #172C9C, 0 6px 12px -4px rgba(35, 64, 211, .55);
  transform: translateY(-1px);
}
.seg label:active span, .filter button:active, .auth__tabs button:active, .admin__tabs a:active { transform: translateY(1px); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg--4 { grid-template-columns: repeat(4, 1fr); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 10px 6px; text-align: center; font-weight: 700; font-size: .9rem; line-height: 1.3; }
.seg small { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-2); }
.seg input:checked + span small { color: #DCE6FF; }
.seg__amount { display: flex !important; align-items: center; justify-content: center; gap: 5px; font-variant-numeric: tabular-nums; }
.seg__coin { width: 18px; height: 18px; flex: none; filter: drop-shadow(0 1px 1px rgba(20, 33, 61, .25)); }
.seg input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.form-error { color: var(--bad); font-size: .95rem; margin-bottom: 14px; }
.sheet__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 2px solid var(--ink); }
.sheet__total strong { font: 800 2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.code { font: 800 1.5rem/1 var(--display); letter-spacing: .04em; background: var(--sun); padding: 0 .2em; }
.howto { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; font-size: .95rem; }
.howto ol { margin: 8px 0 0; padding-left: 20px; }
.howto li + li { margin-top: 6px; }
#topupDone .btn + .btn { margin-top: 10px; }

/* Aviso: entra por la derecha justo debajo de la cabecera y sale otra vez hacia la derecha */
.toast {
  position: fixed; top: 78px; right: 16px; max-width: min(380px, calc(100% - 32px));
  transform: translateX(calc(100% + 32px)); visibility: hidden; pointer-events: none;
  background: linear-gradient(180deg, #5B8CFF, #2340D3); color: #fff;
  padding: 14px 20px; border-radius: 14px; font-weight: 700; line-height: 1.35;
  box-shadow: 0 3px 0 #172C9C, 0 14px 30px rgba(23, 44, 156, .28);
  transition: transform .35s cubic-bezier(.55, 0, .75, .2), visibility 0s .35s; z-index: 100;
}
.toast.show {
  transform: translateX(0); visibility: visible; pointer-events: auto;
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.15), visibility 0s;
}
@media (prefers-reduced-motion: reduce) { .toast, .toast.show { transition: visibility 0s; } }

/* ---------- Mi cuenta ---------- */
.top__nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.act-list__clear { display: flex; justify-content: flex-end; gap: 20px; }
.act-list__clear a { color: var(--cobalt); font-weight: 600; }

.account { padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.account__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
.account h1 { font: 800 clamp(2rem, 4vw, 2.9rem)/1 var(--display); }
.account__label { margin-top: 28px; color: var(--ink-2); font-weight: 600; }
.account__amount {
  font: 900 clamp(4rem, 11vw, 7.5rem)/.9 var(--display); font-variant-numeric: tabular-nums;
  display: inline-block; margin-top: 4px; padding: 0 .05em;
  background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%);
}
.account__amount small { font-size: .32em; font-weight: 800; }
.account__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.account__note { margin-top: 18px; max-width: 34em; color: var(--ink-2); font-size: .95rem; }
.account__note a { color: var(--cobalt); font-weight: 600; }

.ledger { margin: 0; border-top: 2px solid var(--ink); }
.ledger div { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger dt { font-weight: 600; }
.ledger dd { margin: 0; text-align: right; }
.ledger strong { display: block; font: 800 1.7rem/1.05 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .01em; white-space: nowrap; }
.ledger span { display: block; font-size: .85rem; color: var(--ink-2); }
.ledger span:first-letter { text-transform: uppercase; }

.block--tight { padding: clamp(40px, 6vw, 64px) 0; }

/* ---------- Invita y gana (Mi cuenta) ---------- */
.refer {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px 40px; align-items: center;
  padding: clamp(22px, 4vw, 36px); border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #5B8CFF 0%, #2340D3 55%, #172C9C 100%);
  box-shadow: 0 5px 0 #13248A, 0 24px 48px -18px rgba(23, 44, 156, .55);
}
.refer h2 { font: 900 clamp(1.7rem, 3.4vw, 2.4rem)/1.05 var(--display); margin-bottom: 10px; }
.refer p { color: rgba(255, 255, 255, .9); max-width: 36em; }
.refer strong { color: #FFD43B; }
.refer__link { display: flex; gap: 8px; margin: 18px 0 12px; padding: 6px; background: #fff; border-radius: 14px; }
.refer__link input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 10px; font: 700 .98rem/1 var(--display); color: var(--ink); }
.refer__link input:focus { outline: none; }
.refer__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.refer__share .muted { color: rgba(255, 255, 255, .8); font-size: .9rem; margin-left: 4px; }
.refer__share .muted strong { color: #fff; letter-spacing: .08em; }
.refer__stats { margin: 0; display: grid; gap: 12px; }
.refer__stats div { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 14px 18px; }
.refer__stats dt { font-size: .9rem; color: rgba(255, 255, 255, .85); }
.refer__stats dd { margin: 4px 0 0; font: 900 2rem/1 var(--display); font-variant-numeric: tabular-nums; }
#rTable { margin-top: 20px; }
.refer__note { margin-top: 14px; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) {
  .refer { grid-template-columns: 1fr; }
  .refer__stats { grid-template-columns: 1fr 1fr; }
  .refer__stats dd { font-size: 1.4rem; white-space: nowrap; }
  .refer__stats div { padding: 12px 14px; }
}
.hist__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 16px; }
.hist__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hist__tools .find { width: 260px; }

.filter { display: inline-flex; }
.filter button { font: 700 .9rem var(--text); border: 0; padding: 9px 14px; cursor: pointer; }
.filter button:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }

.hist { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hist th, .hist td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hist thead th { font-weight: 600; font-size: .85rem; color: var(--ink-2); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.hist .num { text-align: right; white-space: nowrap; }
.hist td small { display: block; color: var(--ink-2); font-size: .82rem; margin-top: 2px; }
.hist td small .flag { vertical-align: -2px; margin-right: 4px; }
.hist__mono { font: 700 1.15rem/1.3 var(--display); letter-spacing: .02em; white-space: nowrap; }
.hist mark { background: var(--sun); color: inherit; padding: 0 .15em; }
.hist b { font-weight: 700; }
.hist s { color: var(--ink-2); }
.hist td a { color: var(--cobalt); font-weight: 600; font-size: .88rem; }
.hist tr.is-refunded td { color: var(--ink-2); }
.muted { color: var(--ink-2); }
.status { display: inline-block; font-size: .85rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.status--paid { background: #DDF1E6; color: var(--ok); }
.status--refunded { background: var(--paper-2); color: var(--ink-2); }
.status--live { background: #FFF1BF; color: #7A5A00; }
.hist__more { margin-top: 16px; }
.empty a { color: var(--cobalt); font-weight: 600; }

/* ---------- Sesión, entrar y crear cuenta ---------- */
.top__login { margin-left: auto; }
@media (min-width: 1025px) { .top__nav + .top__login { margin-left: 0; } }
.brand__tag { font: 700 .75rem/1 var(--text); color: var(--ink-2); vertical-align: middle; margin-left: 4px; }
.account__who { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font: 400 1rem var(--text); color: var(--ink);
  padding: 12px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; outline: 0;
}
.field input:focus { border-color: var(--cobalt); }
.field small { font-weight: 400; color: var(--ink-2); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field--inline { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.field--inline span { margin: 0; white-space: nowrap; font-weight: 400; color: var(--ink-2); }
.field--inline input { max-width: 160px; }

/* Imagen a la izquierda y formulario a la derecha, centrados */
.auth {
  min-height: calc(100dvh - 65px); display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 420px);
  justify-content: center; align-items: center; gap: 72px; padding: clamp(32px, 6vw, 64px) 16px;
}
.auth__art img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.auth__card { width: min(420px, 100%); }
@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 420px); align-items: start; }
  .auth__art { display: none; }
}
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
.auth__tabs button { font: 800 1rem var(--text); border: 0; padding: 12px; cursor: pointer; }
.auth__tabs button:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.auth__form h1 { font: 900 1.9rem/1.1 var(--display); margin-bottom: 20px; }
.auth__form h1 + .auth__lead { margin-top: -8px; }
.auth__lead { color: var(--ink-2); line-height: 1.55; margin-bottom: 18px; }
.auth__lead strong { color: var(--ink); word-break: break-all; }
.auth__forgot { display: block; margin: -6px 0 16px auto; width: max-content; font-size: .92rem; }
.auth__alt { margin-top: 18px; text-align: center; color: var(--ink-2); font-size: .95rem; }
.pass { display: flex; position: relative; }
.pass input { padding-right: 76px; }
.pass__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: 700 .85rem var(--text); color: var(--cobalt); background: none; border: 0; padding: 8px 10px; cursor: pointer;
}

.notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 24px; font-weight: 700; background: var(--paper-2); }
.notice--ok { background: #DDF1E6; color: #14532D; }
.notice--error { background: #FDE2DF; color: #7A1A10; }
.notice .link { margin-left: 6px; }

/* ---------- Inicio: botón del banner y sección de SMS ---------- */
.hero__cta { margin-top: 30px; padding: 16px 32px; font-size: 1.05rem; }
/* Mismo fondo azul con dibujo que el primer banner */
.promo-sms {
  padding: clamp(48px, 7vw, 84px) 0; overflow: hidden; color: #fff;
  background-color: #03a9f4; background-image: url("hero-bg.png?v=2");
  background-position: 0 0; background-size: 350px;
}
.promo-sms__grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 36px 56px; align-items: center; }
.promo-sms__visual { display: flex; justify-content: center; }
.promo-sms__phone { display: block; width: min(470px, 100%); height: auto; pointer-events: none; user-select: none; }
.promo-sms h2 { font: 900 clamp(2rem, 4vw, 2.9rem)/1.08 var(--display); max-width: 14em; color: #fff; }
.promo-sms__copy > p { margin-top: 16px; color: rgba(255, 255, 255, .96); font-size: 1.12rem; max-width: 32em; }
.promo-sms__facts { list-style: none; margin: 24px 0 30px; padding: 0; display: grid; gap: 10px; }
.promo-sms__facts li { padding-left: 28px; position: relative; }
.promo-sms__facts li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg);
}
.promo-sms__cta { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Página de compra ---------- */
.shop-head { padding: clamp(32px, 5vw, 56px) 0 8px; }
.shop-head h1 { font: 900 clamp(2rem, 4vw, 2.8rem)/1.08 var(--display); max-width: 18em; }
.shop-head p { margin-top: 12px; color: var(--ink-2); font-size: 1.08rem; max-width: 40em; }
.shop-head + .active { padding-top: 24px; }

@media (max-width: 860px) {
  .promo-sms__grid { grid-template-columns: 1fr; }
}

/* ---------- Enviar SMS a Cuba ---------- */
.smsp { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 56px; padding: clamp(32px, 6vw, 64px) 0; align-items: start; }
.smsp h1 { font: 900 clamp(2rem, 4vw, 2.8rem)/1.08 var(--display); }
.smsp h2 { font: 900 1.6rem/1.1 var(--display); margin-bottom: 14px; }
.smsp__lead { color: var(--ink-2); margin: 10px 0 24px; max-width: 32em; }
.smsp__history { padding-top: 8px; }
/* Historial de SMS en la columna derecha */
.smslog { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 620px; overflow: auto; }
.smslog__item { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.smslog__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.smslog__price { font-weight: 700; white-space: nowrap; }
.smslog__price s { color: var(--ink-2); font-weight: 400; }
.smslog__text { margin: 6px 0 8px; color: var(--ink-2); font-size: .95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.smslog__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .85rem; color: var(--ink-2); }
.smsp__count { font-size: .88rem; color: var(--ink-2); margin: -6px 0 14px; text-align: right; }
.field textarea {
  width: 100%; font: 400 1rem/1.5 var(--text); color: var(--ink); resize: vertical; min-height: 110px;
  padding: 12px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; outline: 0;
}
.field textarea:focus { border-color: var(--cobalt); }
.field textarea[aria-invalid="true"] { border-color: var(--bad); }
.field > .phone-in { display: flex; align-items: stretch; margin: 0; font-weight: 400; font-size: 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.phone-in:focus-within { border-color: var(--cobalt); }
.phone-in__cc { display: grid; place-items: center; padding: 0 12px; font-weight: 900; background: var(--paper-2); }
.phone-in input { border: 0 !important; border-radius: 0 !important; }
@media (max-width: 860px) {
  .smsp { grid-template-columns: 1fr; }
  .smslog { max-height: none; }
}

/* ---------- Pago con QR / EnZona ---------- */
.qr { display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.qr img { width: min(240px, 100%); height: auto; image-rendering: pixelated; }
.pay-wait { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font-size: .95rem; color: var(--ink-2); }
#topupLink { margin-bottom: 6px; }
.act__hint { font-size: .88rem; color: var(--ink-2); align-self: center; }

/* ---------- Panel de admin ---------- */
.admin { padding: 24px 0 64px; }
/* El panel aprovecha más ancho que el resto de la web (cabecera incluida) */
.admin-page .wrap { width: min(1440px, 100% - 48px); }
.admin h2 { font: 900 1.7rem/1.1 var(--display); }
.admin__tabs { display: flex; flex-wrap: wrap; width: max-content; max-width: 100%; margin-bottom: 28px; }
.admin__tabs a { padding: 10px 16px; text-decoration: none; font-weight: 800; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.admin__tabs a[aria-current="page"] .badge { background: #fff; color: var(--bad); }
.badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--bad); color: #fff; font-size: .75rem; text-align: center; }
.admin__help { color: var(--ink-2); font-size: .92rem; max-width: 60em; margin: -4px 0 16px; }
.mode { padding: 14px 16px; border-radius: 10px; background: #FFF1BF; margin-bottom: 24px; }
.mode--live { background: #DDF1E6; }
.mode a { color: var(--cobalt); font-weight: 700; }
.kpis { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.kpis div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.kpis dt { font-weight: 700; color: var(--ink-2); font-size: .9rem; }
.kpis dd { margin: 4px 0 0; }
.kpis strong { display: block; font: 900 1.7rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.kpis span { font-size: .85rem; color: var(--ink-2); }
.row-actions { display: inline-flex; gap: 6px; }
.row-link { cursor: pointer; }
.row-link:hover, .row-link:focus-visible { background: #fff; }
.select { font: 600 .95rem var(--text); color: var(--ink); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
/* Ajustes en dos columnas en pantallas anchas */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 0 56px; align-items: start; }
.settings > .form-error, .settings > button { grid-column: 1 / -1; justify-self: start; }
.settings fieldset { border-top: 2px solid var(--ink); padding-top: 16px; margin-bottom: 28px; }
.settings legend { font: 900 1.2rem var(--display); padding: 0 8px 0 0; }
.settings__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.rate { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.rate__side { font: 900 1.5rem var(--display); }
.rate input {
  width: 160px; font: 900 1.5rem var(--display); text-align: right; color: var(--ink);
  padding: 10px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; outline: 0;
}
.rate input:focus { border-color: var(--cobalt); }
.rate__table { width: 100%; margin-top: 8px; }
.kpis a { color: var(--cobalt); font-weight: 700; }
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 16px; cursor: pointer; }
.switch input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cobalt); flex: none; }
.switch small { display: block; color: var(--ink-2); font-size: .88rem; margin-top: 2px; }

/* Aceptar términos al crear la cuenta */
.terms-ok {
  display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  font-size: .92rem; line-height: 1.45; color: var(--ink-2);
}
.terms-ok input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--cobalt); flex: none; cursor: pointer; }
.terms-ok a { color: var(--cobalt); font-weight: 700; }
.terms-ok:has(input:checked) { border-color: var(--cobalt); }
.terms-ok.is-missing { border-color: var(--bad); }
.sheet--wide { width: min(760px, 100% - 24px); }
.sheet h4 { font: 900 1.1rem var(--display); margin: 20px 0 10px; }
.adjust { border-top: 1px solid var(--line); }
.adjust__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hist--compact th, .hist--compact td { padding: 8px 6px; font-size: .9rem; }

/* ---------- Términos y privacidad ---------- */
.legal { max-width: 780px; padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal__head { padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.legal__head h1 { font: 900 clamp(2rem, 4.2vw, 2.9rem)/1.08 var(--display); }
.legal__head p { margin-top: 12px; color: var(--ink-2); font-size: 1.08rem; }
.legal__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.legal__nav a {
  display: inline-block; padding: 8px 18px; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--line); font-weight: 700; font-size: .92rem; text-decoration: none;
}
.legal__nav a:hover { border-color: var(--cobalt); color: var(--cobalt); }
.legal__sec { padding-top: 40px; }
.legal__sec + .legal__sec { margin-top: 40px; border-top: 1px solid var(--line); }
.legal__sec h2 { font: 900 clamp(1.55rem, 3vw, 2.1rem)/1.15 var(--display); margin-bottom: 20px; }
.legal__sec h3 { font: 800 1.15rem/1.3 var(--display); margin: 24px 0 8px; }
.legal__sec p { color: var(--ink-2); margin-bottom: 12px; }
.legal__sec p strong, .legal__sec li strong { color: var(--ink); }
.legal__sec ul { margin: 8px 0 14px; padding-left: 22px; color: var(--ink-2); display: grid; gap: 8px; }

/* ---------- Aviso: falta confirmar el correo ---------- */
.verify-bar {
  position: fixed; z-index: 25; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(620px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px;
  padding: 12px 12px 12px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 30px -8px rgba(20, 33, 61, .3); font-size: .95rem; color: var(--ink-2);
}
.verify-bar strong { color: var(--ink); }
.verify-bar span { flex: 1; }
.verify-bar .btn { flex: none; }
body.has-verify-bar { padding-bottom: 96px; }

/* ---------- Confirmar el correo (verificar.html) ---------- */
.otp, .field input.otp {
  width: 100%; font: 900 2rem/1 var(--display); letter-spacing: .45em; text-align: center; text-indent: .45em;
  padding: 16px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--cobalt);
  font-variant-numeric: tabular-nums;
}
.field input.otp:focus { outline: 3px solid var(--cobalt); outline-offset: 2px; border-color: transparent; }
.otp::placeholder { color: #C6D2E1; }
.verify__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 18px; font-size: .95rem; }
.verify__actions .link:disabled { color: var(--ink-2); text-decoration: none; cursor: default; }
.verify__ok { text-align: center; }
.verify__ok .check {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #4ADE80, #16A34A); color: #fff; font-size: 2rem; font-weight: 900;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), 0 4px 0 #15803D;
}

/* ---------- Soporte: botón flotante y formulario ---------- */
.help-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 26;
  display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 22px 0 16px;
  border: 0; border-radius: 999px; cursor: pointer; color: #fff;
  font: 800 1rem/1 var(--display); letter-spacing: .01em;
  background: linear-gradient(180deg, #5B8CFF, #2340D3);
  border: 3px solid #fff;   /* aro blanco: se distingue también sobre el banner azul */
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .35), 0 4px 0 #172C9C, 0 14px 30px rgba(23, 44, 156, .3);
  transition: transform .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.help-fab:hover { transform: translateY(-2px); }
.help-fab:active { transform: translateY(3px); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .35), 0 1px 0 #172C9C, 0 6px 16px rgba(23, 44, 156, .3); }
.help-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.help-fab img { flex: none; width: 32px; height: 32px; filter: drop-shadow(0 2px 3px rgba(20, 33, 61, .25)); }
.help-fab { padding-left: 10px; }

/* Página de soporte (soporte.html) */
.smsp--single { grid-template-columns: 1fr; }
.help-page { width: min(680px, 100%); }
.help-page h1 { margin-bottom: 8px; }
.help-page .help__threads { max-height: none; overflow: visible; }
.help-page .help__lead { font-size: 1.05rem; color: var(--ink-2); }
.help-page #helpForm { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.help-fab__badge {
  position: absolute; top: -6px; right: -4px; min-width: 24px; height: 24px; padding: 0 7px;
  display: grid; place-items: center; border-radius: 999px; border: 2.5px solid #fff;
  background: #EF4444; color: #fff; font: 900 .8rem/1 var(--display); font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(239, 68, 68, .45); animation: badgePop .35s cubic-bezier(.2, .9, .3, 1.4);
}
.help-fab__badge[hidden] { display: none; }
@keyframes badgePop { from { transform: scale(0); } }
body.has-verify-bar .help-fab { bottom: 96px; }

.help { width: min(480px, 100% - 24px); }
.help__replying { background: var(--paper-2); border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin-bottom: 12px; }
.help__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.help__threads { max-height: 38vh; overflow: auto; margin: 0 -4px 18px; padding: 0 4px; }
.help__threads h4 { font-size: .92rem; margin-bottom: 8px; }
.help__thread { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.help__thread.is-new { border-color: var(--cobalt); box-shadow: 0 0 0 2px rgba(35, 64, 211, .12); }
.help__thread header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.help__thread .link { font-size: .9rem; margin-top: 4px; }
.help__msg { margin: 6px 0; padding: 8px 12px; border-radius: 12px; background: var(--paper-2); white-space: pre-wrap; word-break: break-word; font-size: .95rem; }
.help__msg small { display: block; color: var(--ink-2); font-size: .78rem; margin-bottom: 2px; white-space: normal; }
.help__msg--admin { background: rgba(35, 64, 211, .08); border-left: 3px solid var(--cobalt); }
.help__msg.is-new b { color: var(--cobalt); }

/* ---------- Barra de menú inferior (móviles y tablets) ---------- */
.tabbar { display: none; }
@media (max-width: 1024px) {
  .top__nav { display: none; }
  .wallet, .top__login { margin-left: auto; }

  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(20, 33, 61, .08);
  }
  .tabbar[hidden], .tabbar__item[hidden] { display: none !important; }
  .tabbar__item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-height: 58px; padding: 2px 4px 2px; border-radius: 14px;
    color: var(--ink-2); text-decoration: none; font-size: .74rem; font-weight: 700; letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent; user-select: none;
    transition: color .15s;
  }
  .tabbar__icon {
    display: grid; place-items: center; width: 60px; height: 38px; border-radius: 999px;
    transition: background-color .2s ease, transform .15s ease;
  }
  .tabbar__icon img, .tabbar__icon svg { width: 34px; height: 34px; display: block; }
  .tabbar__icon img { filter: drop-shadow(0 2px 3px rgba(20, 33, 61, .18)); transition: transform .2s ease; }
  .tabbar__item:active .tabbar__icon { transform: scale(.92); }
  .tabbar__item[aria-current="page"] { color: var(--cobalt); }
  .tabbar__item[aria-current="page"] .tabbar__icon { background: rgba(35, 64, 211, .12); }
  .tabbar__item[aria-current="page"] .tabbar__icon img { transform: translateY(-1px) scale(1.06); }
  @media (hover: hover) { .tabbar__item:hover { color: var(--ink); } }

  /* Que el contenido y los avisos no queden debajo de la barra */
  body.has-tabbar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .foot__inner { grid-template-columns: 1fr; gap: 14px; }
  .foot p { max-width: 46em; }
  body.has-tabbar .verify-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.has-tabbar.has-verify-bar { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
  .verify-bar { font-size: .88rem; padding: 10px 10px 10px 14px; gap: 10px; }
  /* En móvil y tablet el soporte va en la barra de abajo, no flotando */
  .help-fab { display: none; }
  .tabbar__icon { position: relative; }
  .tabbar__badge {
    position: absolute; top: -4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px;
    display: grid; place-items: center; border-radius: 999px; border: 2px solid #fff;
    background: #EF4444; color: #fff; font: 900 .72rem/1 var(--display); font-variant-numeric: tabular-nums;
    animation: badgePop .35s cubic-bezier(.2, .9, .3, 1.4);
  }
  .tabbar__badge[hidden] { display: none; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .tabbar { justify-content: center; grid-auto-columns: minmax(110px, 160px); }
  .tabbar__item { font-size: .8rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__copy { padding-bottom: 8px; }
  .hero__stage { justify-content: center; }
  .hero__phone { width: min(420px, 100%); }
}
@media (max-width: 860px) {
  .top__nav { display: none; }
  .wallet { margin-left: auto; }
  .buy__grid, .how { grid-template-columns: 1fr; }
  .services { max-height: 300px; }
  .how { gap: 40px; }
  .account__grid { grid-template-columns: 1fr; gap: 32px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .top__login { margin-left: auto; }

  /* Historial en filas apiladas */
  .hist thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hist, .hist tbody, .hist tr, .hist td { display: block; width: 100%; }
  .hist tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hist td { border: 0; padding: 0; }
  .hist td.num { text-align: right; }
  #numTable td[data-label="Fecha"] { grid-column: 1 / -1; order: -2; font-size: .85rem; color: var(--ink-2); }
  #numTable td[data-label="Fecha"] small { display: inline; margin-left: 6px; }
  #numTable td[data-label="App y país"] { order: -1; }
  #numTable td[data-label="Importe"] { order: -1; }
  #numTable td[data-label="Número"] { grid-column: 1 / -1; }
  #numTable td[data-label="Código"] { grid-column: 1; }
  #numTable td[data-label="Código"]:has(.muted) { display: none; }
  #numTable td[data-label="Estado"] { grid-column: 1 / -1; margin-top: 4px; }
  .hist--topups td[data-label="Fecha"] { grid-column: 1 / -1; font-size: .85rem; color: var(--ink-2); }
  .hist--topups td[data-label="Fecha"] small { display: inline; margin-left: 6px; }
  .hist--topups td[data-label="Pagaste"] { display: none; }
  .hist--topups td[data-label="Estado"] { grid-column: 1 / -1; margin-top: 4px; }
}
@media (max-width: 560px) {
  .wallet__label { display: none; }
  .top__inner { gap: 12px; }
  .wallet__main { padding: 0 10px; }
  .wallet__add { padding: 9px 10px; }
  .countries__tools { grid-template-columns: 1fr; }
  .sort select { width: 100%; }
  .countries thead th:nth-child(2), .countries__stock { display: none; }
  .countries th, .countries td { padding: 10px 4px; }
  .countries tbody th { font-size: .95rem; }
  .act__time { margin-left: 0; }
  .act__code .copy { margin-left: 0; }
  .hist__tools, .hist__tools .find { width: 100%; }
  .filter { width: 100%; }
  .filter button { flex: 1; padding: 10px 6px; }
  .ledger strong { font-size: 1.45rem; }
  .foot__inner { grid-template-columns: 1fr; }
  .foot nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
