/* ============================================================
   FishBot Pro — identidad visual (índigo claro, tarjetas suaves).
   Adaptado del diseño del propietario a un stack endurecido:
   sin JavaScript, sin estilos inline, imágenes servidas desde /static
   (CSP intacta). Tema claro, comprometido.
   ============================================================ */

:root {
  color-scheme: light;
  --primary: #6d5efc;
  --primary-600: #5a4bec;
  --primary-700: #4a3dd6;
  --primary-soft: #eef0ff;
  --ink: #0f1222;
  --ink-2: #3a3f56;
  --muted: #767c94;
  --line: #e8eaf2;
  --line-2: #eef0f6;
  --bg: #f5f6fb;
  --card: #ffffff;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --danger: #e5484d;
  --danger-soft: #fdecec;
  --shadow-sm: 0 1px 2px rgba(20,22,45,.05), 0 4px 14px rgba(20,22,45,.05);
  --shadow-md: 0 8px 30px rgba(20,22,45,.08);
  --shadow-lg: 0 20px 50px rgba(20,22,45,.14);
  /* Luz LED (underglow) índigo bajo las tarjetas */
  --glow: 0 22px 46px -22px rgba(109,94,252,.55);
  --glow-strong: 0 28px 58px -20px rgba(109,94,252,.68);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(239,234,255,.55) 0%, transparent 55%),
    radial-gradient(1000px 500px at -10% 0%, rgba(230,246,255,.55) 0%, transparent 45%),
    linear-gradient(rgba(245,246,251,.72), rgba(245,246,251,.78)),
    url('/static/fondo.jpg') center center / cover no-repeat fixed,
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

/* ── Cabecera / topbar (barra azul) ────────────────────────── */
header { background: linear-gradient(135deg, #1a1440 0%, #4a3dd6 55%, #6d5efc 100%); box-shadow: 0 2px 14px rgba(20,22,45,.15); }
nav {
  max-width: 1120px; margin: 0 auto; width: 100%;
  padding: 16px 22px; display: flex; align-items: center; justify-content: space-between;
}
nav .brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: #fff; text-decoration: none;
}
nav .brand img { height: 40px; width: auto; border-radius: 11px; box-shadow: 0 4px 12px rgba(0,0,0,.3); display: block; }
nav .links { display: inline-flex; align-items: center; gap: 14px; }
nav .links a {
  color: rgba(255,255,255,.92); font-size: 14px; font-weight: 600; text-decoration: none;
}
nav .links a:hover { color: #fff; }
.wallet {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 7px 14px; font-size: 13.5px;
  color: #fff; font-weight: 600; backdrop-filter: blur(4px);
}
.wallet:hover { background: rgba(255,255,255,.24); color: #fff; }
.wallet .wallet-ic { font-size: 15px; }
.wallet strong { color: #fff; margin-left: 3px; }
@media (max-width: 600px) { .wallet .wallet-txt { display: none; } }
.account-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--primary); border: 1px solid rgba(255,255,255,.5);
  transition: .2s var(--ease);
}
.account-btn:hover { background: var(--primary-soft); color: var(--primary-700); text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.account-dot {
  position: absolute; bottom: 0; right: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ok); border: 2px solid #fff;
}
.admin-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 7px 14px;
}

main { max-width: 1120px; width: 100%; margin: 0 auto; padding: 20px 22px 60px; flex: 1; }
main.narrow { max-width: 560px; }

/* ── Tipografía ────────────────────────────────────────────── */
h1, h2, h3 { margin: 0 0 .5rem; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2rem); font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 800; }
p { margin: 0 0 .9rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--primary); }
.center { text-align: center; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .86rem; }
.ok { color: var(--ok); font-weight: 700; }
.err { color: var(--danger); font-weight: 700; }

/* ── Tarjetas ──────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm), var(--glow); padding: 26px; margin-bottom: 22px;
  transition: box-shadow .3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md), var(--glow-strong); }
.card.focus { box-shadow: var(--shadow-md), 0 0 0 2px rgba(109,94,252,.18); }
section { margin-bottom: 26px; }

/* ── Secure pill ───────────────────────────────────────────── */
.secure-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); padding: 8px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

/* ── Utilidades ────────────────────────────────────────────── */
.mt-16 { margin-top: 16px; }
.topline { display: flex; justify-content: flex-end; margin-bottom: 14px; }

/* ── Beneficios (rejilla de iconos) ────────────────────────── */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 4px; }
.benefit { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--primary-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.benefit span { font-size: 18px; flex: none; }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }

/* ── Lista con checks ──────────────────────────────────────── */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check-list li::before { content: "✓"; color: var(--ok); font-weight: 800; flex: none; }

/* ── Catálogo (escaparate de productos) ────────────────────── */
.catalog-intro { text-align: center; max-width: 640px; margin: 8px auto 26px; }
.catalog-intro .eyebrow { display: block; margin-bottom: 6px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.catalog-note { margin-top: 24px; }
.product-tile {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm), var(--glow);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product-tile:hover { box-shadow: var(--shadow-md), var(--glow-strong); transform: translateY(-3px); }
.tile-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-badge {
  position: absolute; top: 12px; left: 12px; background: var(--ok-soft); color: var(--ok);
  font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.tile-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tile-body h3 { font-size: 1.15rem; margin-bottom: 2px; }
.tile-tagline { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.tile-desc { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; }
.tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile-price-hint { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tile-stock {
  position: absolute; top: 12px; right: 12px; padding: 5px 11px; border-radius: 999px;
  font-weight: 700; font-size: 12px; background: var(--ok-soft); color: var(--ok); box-shadow: var(--shadow-sm);
}
.tile-stock.out { background: var(--danger-soft); color: var(--danger); }
.stock-line { font-weight: 700; font-size: 14px; margin: 12px 0 2px; }
.stock-line.ok { color: var(--ok); }
.stock-line.out { color: var(--danger); }

/* ── Wizard de 4 pasos (cabecera del checkout) ─────────────── */
.wizard {
  list-style: none; display: flex; align-items: flex-start; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 34px; margin: 0 auto 26px; box-shadow: var(--shadow-sm); max-width: 900px;
}
.wizard li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; text-align: center; }
.wizard li::before { content: ""; position: absolute; top: 23px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.wizard li:first-child::before { display: none; }
.wizard li.done::before { background: var(--ok); }
.wizard .dot {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
  border: 2px solid var(--line); color: var(--muted); background: #fff; transition: all .3s var(--ease);
}
.wizard li.current .dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 6px rgba(109,94,252,.14); }
.wizard li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.wizard .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.wizard li.current .label { color: var(--ink); font-weight: 700; }
.wizard li.done .label { color: var(--ink-2); }
.wizard li a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; }
.wizard li a:hover .dot { border-color: var(--primary); color: var(--primary); }
.wizard li a:hover .label { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.wizard li.done a:hover .dot { border-color: var(--ok); color: #fff; }

/* ── Hero de producto (imagen dentro de la tarjeta, logo centrado) ── */
.product-card { padding-top: 16px; }
.hero-product {
  position: relative; min-height: 300px; border-radius: var(--radius-sm); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 20px; text-align: center;
  background-image:
    linear-gradient(180deg, rgba(8,6,26,.10) 0%, rgba(8,6,26,.10) 55%, rgba(8,6,26,.72) 100%),
    linear-gradient(120deg, rgba(74,61,214,.22), rgba(0,0,0,.06)),
    url('/static/pesca.png');
  background-size: cover; background-position: center;
}
.hero-isla {
  background-image:
    linear-gradient(180deg, rgba(8,6,26,.10) 0%, rgba(8,6,26,.10) 45%, rgba(8,6,26,.78) 100%),
    linear-gradient(120deg, rgba(74,61,214,.18), rgba(0,0,0,.06)),
    url('/static/isla.jpg');
}
.hero-mamut {
  background-image:
    linear-gradient(180deg, rgba(8,6,26,.10) 0%, rgba(8,6,26,.10) 45%, rgba(8,6,26,.78) 100%),
    linear-gradient(120deg, rgba(74,61,214,.18), rgba(0,0,0,.06)),
    url('/static/mamut.jpg');
}
.soon-pill {
  display: inline-block; margin: 16px auto 0; padding: 7px 15px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-700); font-weight: 700; font-size: 13.5px;
}

/* ── Entrega (info del producto de venta única) ────────────── */
.deliver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 2px; }
.deliver-item {
  display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 700; color: var(--ink-2);
  background: var(--primary-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px;
}
.deliver-item span { font-size: 20px; }
.deliver-item small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.deliver-steps { list-style: none; counter-reset: paso; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 12px; }
.deliver-steps li { position: relative; padding-left: 40px; font-size: 14px; color: var(--ink-2); line-height: 1.5; min-height: 28px; display: flex; align-items: center; }
.deliver-steps li::before { counter-increment: paso; content: counter(paso); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-700); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
@media (max-width: 560px) { .deliver-grid { grid-template-columns: 1fr; } }

/* ── Métodos de pago aceptados + sellos de seguridad ───────── */
.pay-trust {
  max-width: 1120px; margin: 8px auto 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm), var(--glow); padding: 22px 26px; text-align: center;
}
.pm-label { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.pm-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pm {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; color: var(--ink-2);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 15px; box-shadow: var(--shadow-sm);
}
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pay-badges span { display: inline-flex; align-items: center; }
.hero-logo {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero-product .art { position: relative; z-index: 2; color: #fff; padding-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero-product .art h3 { font-size: 24px; font-weight: 800; margin: 0 0 2px; color: #fff; }
.hero-product .art span { font-size: 12.5px; opacity: .92; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }

/* ── Selector de cantidad (− N +) ──────────────────────────── */
.qty-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 2px 0 8px; }
.qty { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; }
.qty-btn { width: 54px; display: grid; place-items: center; font-size: 24px; font-weight: 700; line-height: 1; color: var(--primary); background: #fff; text-decoration: none; user-select: none; transition: background .15s; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.qty-btn:hover { background: var(--primary-soft); text-decoration: none; }
.qty-btn.disabled, .qty-btn:disabled { color: var(--line); pointer-events: none; cursor: default; }
.qty-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); }
.qty-num { font-size: 20px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.qty-unit { font-size: 12px; color: var(--muted); }
.qty-select {
  width: 100%; padding: 12px 14px; font-size: 15px; font-weight: 700; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fcfcfe;
  margin-bottom: 18px; cursor: pointer; font-family: inherit;
}
.qty-select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(109,94,252,.13); }
.line.discount .v { color: var(--ok); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; background: var(--ok-soft); color: var(--ok);
  font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.prod-name { font-size: 23px; font-weight: 800; margin-bottom: 6px; }
.prod-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.rich p { color: var(--ink-2); font-size: 14.4px; margin: 0 0 12px; line-height: 1.65; }
.divider { height: 1px; background: var(--line-2); margin: 22px 0; }

/* ── Landing: dos columnas (producto + resumen) ────────────── */
.grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: 20px; }
#resumen { scroll-margin-top: 24px; }  /* al recalcular ± la página vuelve aquí, no arriba del todo */
.sum-head { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.price-lead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.price-lead .big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.price-lead .per { color: var(--muted); font-size: 13.5px; }
.lines { display: flex; flex-direction: column; gap: 11px; margin-bottom: 8px; }
.line { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.line .k { color: var(--muted); }
.line .v { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.total-line .k { font-weight: 800; font-size: 15px; }
.total-line .v { font-weight: 800; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.reassure { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 12.5px; margin-top: 14px; }

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 20px; border-radius: var(--radius-sm); transition: .22s var(--ease); text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff;
  box-shadow: 0 10px 24px rgba(109,94,252,.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(109,94,252,.45); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(109,94,252,.4); outline-offset: 2px; }
.btn.big { font-size: 16px; padding: 15px 22px; }
.btn.full, .btn.block { width: 100%; }
.btn.secondary { background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: none; }
.btn.secondary:hover { border-color: var(--primary); color: var(--primary); transform: none; box-shadow: none; }
.btn.small { padding: .4rem .85rem; font-size: .84rem; box-shadow: none; }
.btn.danger { background: #fff; border: 1px solid var(--danger); color: var(--danger); box-shadow: none; }
.btn.danger:hover { background: var(--danger-soft); transform: none; box-shadow: none; }

/* ── Stepper (horizontal, con conectores) ──────────────────── */
.stepper {
  list-style: none; display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 0 auto 24px; box-shadow: var(--shadow-sm); max-width: 720px;
}
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; min-width: 92px; text-align: center; }
.stepper li::before {
  content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 2px; background: var(--line);
}
.stepper li:first-child::before { display: none; }
.stepper li.done::before { background: var(--ok); }
.stepper .dot {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  border: 2px solid var(--line); color: var(--muted); background: #fff; transition: all .35s var(--ease);
}
.stepper .label { position: relative; z-index: 1; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.stepper li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.done .label { color: var(--ink-2); }
.stepper li.current .dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px rgba(109,94,252,.14); transform: scale(1.05); }
.stepper li.current .label { color: var(--ink); font-weight: 700; }
.stepper li a { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stepper li a:hover .dot { border-color: var(--primary); }
.stepper li a:hover .label { color: var(--primary); }
.stepper li.viewing .label { text-decoration: underline; text-underline-offset: 4px; }

/* ── Planes (tarjetas de precio) ───────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px 0 6px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.plan .tier { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: .85rem; margin-bottom: .7rem; }
.plan h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.plan .tagline { color: var(--muted); font-size: .86rem; margin-bottom: .8rem; }
.plan .price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan .price small { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .save { display: inline-block; margin-top: .5rem; padding: .12rem .6rem; background: var(--primary-soft); color: var(--primary-700); border-radius: 999px; font-size: .76rem; font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 1.1rem 0 1.3rem; display: flex; flex-direction: column; gap: .55rem; }
.plan li { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; flex: none; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow-md), 0 0 0 2px rgba(109,94,252,.14); }
@media (min-width: 761px) { .plan.featured { transform: translateY(-8px); } }
.plan.featured .tier { border-color: var(--primary); color: var(--primary); }
.plan .ribbon { position: absolute; top: 0; right: 0; background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .28rem .8rem; border-radius: 0 var(--radius) 0 10px; }

/* ── Paso Registro/Login: tarjeta partida (aside + formulario) ── */
.auth-wrap { max-width: 880px; margin: 0 auto; }
.auth-card { display: grid; grid-template-columns: 340px 1fr; overflow: hidden; padding: 0; }
.auth-aside {
  position: relative; color: #fff; padding: 34px 30px; display: flex; flex-direction: column; gap: 22px;
  background: linear-gradient(160deg, #1a1440 0%, #4a3dd6 60%, #6d5efc 100%);
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background:
    radial-gradient(300px 180px at 90% 8%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(280px 200px at 5% 100%, rgba(0,229,255,.22), transparent 60%);
}
.auth-aside > * { position: relative; z-index: 1; }
.aa-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; margin-bottom: 18px; }
.aa-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; border: 1px solid rgba(255,255,255,.3); }
.aa-title { font-size: 23px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 10px; color: #fff; }
.aa-sub { font-size: 13.5px; opacity: .82; line-height: 1.6; margin: 0; }
.aa-recap { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 15px 16px; }
.aa-recap-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0; opacity: .9; }
.aa-recap-row.aa-total { font-weight: 800; font-size: 16px; opacity: 1; margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.16); }
.aa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.aa-list li { display: flex; align-items: center; gap: 10px; font-size: 13.3px; opacity: .92; }
.aa-list li::before { content: "✓"; color: #8effc4; font-weight: 800; flex: none; }
.aa-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .8; font-weight: 600; }
.auth-main { padding: 36px 38px; }
.auth-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.auth-ic { width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 22px; }
.auth-head .h-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.auth-head .h-sub { font-size: .9rem; color: var(--muted); }
.auth-link { color: var(--primary); font-weight: 700; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin: 0 0 7px; }
.input-ic { position: relative; }
.input-ic .fi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #aeb3c6; pointer-events: none; }
.input-ic:focus-within .fi { color: var(--primary); }
input.has-ic { padding-left: 42px; }
@media (max-width: 640px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-main { padding: 28px 24px; }
}

/* ── Checkout propio (estilo marketplace) ──────────────────── */
.checkout-title { text-align: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 20px; }
.field-label { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.input-lg {
  width: 100%; padding: 14px 16px; font-size: 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fcfcfe; color: var(--ink); outline: none; transition: .2s;
}
.input-lg::placeholder { color: #aeb3c6; }
.input-lg:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(109,94,252,.13); }
.pay-list { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; }
.pay-opt {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); background: #fff;
}
.pay-opt .pay-ic { font-size: 20px; }
.pay-opt .pm-mini { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.discord-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; border-color: #c7ccf5; }
.discord-ic { font-size: 24px; flex: none; width: 46px; height: 46px; border-radius: 12px; background: #eef0ff; color: #5865f2; display: grid; place-items: center; }
.discord-box strong { display: block; margin-bottom: 4px; color: var(--ink); }
.discord-box .hint { margin-bottom: 0; }
.discord-box .btn.secondary { margin-top: 12px; }

/* ── Formularios ───────────────────────────────────────────── */
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin: .9rem 0 .4rem; }
input {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fcfcfe; transition: .2s; outline: none;
}
input::placeholder { color: #aeb3c6; }
input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(109,94,252,.13); }
input[type="number"] { max-width: 120px; font-variant-numeric: tabular-nums; }
form.inline { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
form.inline label { margin: 0; }
form.inline input { width: auto; }
.pay-form { margin-top: 1rem; }
.custom-qty { margin-top: .8rem; }

/* ── OTP: verificación de código (6 casillas) ──────────────── */
.otp-card {
  max-width: 460px; margin: 0 auto 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md), var(--glow); padding: 32px 30px;
}
.otp-card .eyebrow { display: block; margin-bottom: 6px; }
/* Campo único: se escribe de izquierda a derecha y se rellena solo (sin JS,
   sin tener que pulsar casilla por casilla). Estilizado grande y espaciado. */
.otp-input {
  display: block; width: 100%; max-width: 300px; margin: 22px auto 8px;
  text-align: center; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 38px; font-weight: 800; line-height: 1;
  letter-spacing: 16px; text-indent: 16px; /* compensa el espaciado del último dígito */
  padding: 16px 12px; border: 1.5px solid var(--line); border-radius: 16px;
  background: #fcfcfe; color: var(--ink); font-variant-numeric: tabular-nums; outline: none;
  transition: .18s;
}
.otp-input::placeholder { color: #cdd2e2; }
.otp-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(109,94,252,.15); }
.otp-expire { margin: 6px 0 18px; }
.otp-help { margin-top: 16px; }
@media (max-width: 480px) {
  .otp { gap: 7px; }
  .otp-box { width: 44px; height: 54px; font-size: 22px; border-radius: 11px; }
  .otp-card { padding: 26px 20px; }
}

/* ── Entrada de código (6 dígitos) ─────────────────────────── */
.code-entry { display: flex; gap: .6rem; align-items: center; margin: 1rem 0; flex-wrap: wrap; }
.code-entry input[name="code"] { width: 8ch; font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.code-box { background: var(--primary-soft); border: 1px dashed var(--primary); border-radius: var(--radius-sm); padding: .75rem .95rem; margin: .6rem 0; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 1.02em; color: var(--primary-700); word-break: break-all; }

/* ── Tablas ────────────────────────────────────────────────── */
table { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
th, td { padding: .6rem .85rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th, tr:first-child th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
tbody tr:last-child td, tr:last-child td { border-bottom: 0; }
td form { margin: 0; }

/* ── Panel admin ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.table-wrap table { margin: 0; }
.table-wrap th, .table-wrap td { white-space: nowrap; }
.actions { display: flex; gap: .4rem; }
.actions form { margin: 0; }
.row-off { opacity: .55; }
.pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--line-2); color: var(--muted); }
.pill.on { background: var(--ok-soft); color: var(--ok); }
.pill.warn, .pill.off { background: var(--danger-soft); color: var(--danger); }
.saldo-cell { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.saldo-cell form { display: flex; gap: 6px; align-items: center; margin: 0; }
.saldo-cell input[type="number"] { width: 84px; padding: 6px 8px; font-size: 13px; }

/* ── Varios ────────────────────────────────────────────────── */
details { margin-top: .6rem; }
summary { cursor: pointer; }
.summary-block { margin-top: 1.4rem; }
.summary-block > summary { color: var(--muted); font-size: .9rem; padding: .5rem 0; font-weight: 600; }
.logout { margin-top: 2rem; }
.rule { width: 72px; height: 2px; margin: 1.1rem auto 0; border: 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); }
.cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* ── Chat (entrega/soporte, sin tiempo real) ───────────────── */
.chat-wrap { max-width: 680px; margin: 0 auto; }
.chat {
  display: flex; flex-direction: column; gap: 12px; margin: 18px 0;
  max-height: 55vh; overflow-y: auto; padding: 4px;
}
.chat-empty { color: var(--muted); text-align: center; padding: 24px 0; }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; align-items: flex-start; }
.msg-bubble {
  padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word;
}
.msg.mine .msg-bubble { background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff; border-bottom-right-radius: 5px; }
.msg.them .msg-bubble { background: var(--primary-soft); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; padding: 0 4px; }
.chat-compose { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.chat-compose input { flex: 1; }

/* ── Pie ───────────────────────────────────────────────────── */
footer { margin-top: auto; background: linear-gradient(135deg, #1a1440 0%, #4a3dd6 55%, #6d5efc 100%); }
footer p { max-width: 1120px; margin: 0 auto; padding: 1.5rem 22px; color: rgba(255,255,255,.9); font-size: 13px; font-weight: 500; }
footer a { color: #fff; text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
  .stepper li { min-width: 60px; }
  .stepper .label { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
