:root {
  --bg: #f0f9ff;
  --surface: #fff;
  --text: #0c1626;
  --muted: #64748b;
  --line: #bae6fd;
  --primary: #0891b2;
  --primary-light: #e0f9ff;
  --primary-strong: #0e7490;
  --accent: #06b6d4;
  --shadow: 0 8px 32px rgba(8,145,178,.10);
  --shadow-sm: 0 2px 8px rgba(12,22,38,.07);
  --danger: #dc2626;
  --success: #0e7490;
}

*{box-sizing:border-box;margin:0;padding:0}

body{
  font-family:'Inter','Segoe UI',Tahoma,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

/* ── TOPBAR ─────────────────────────────── */
.topbar{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
  height:66px;
  transition:background .25s,border-color .25s,backdrop-filter .25s;
}

.topbar.topbar--glass{
  background:transparent;
  border-bottom-color:transparent;
  backdrop-filter:none;
}

.topbar.topbar--solid{
  background:rgba(255,255,255,.97);
  border-bottom-color:var(--line);
  backdrop-filter:blur(12px);
}

.topbar-inner{
  max-width:1120px;margin:0 auto;
  height:100%;padding:0 24px 0 12px;
  display:flex;align-items:center;justify-content:space-between;
}

.brand{
  display:flex;align-items:center;gap:10px;
  font-weight:800;font-size:20px;
  color:var(--text);text-decoration:none;
}

.brand-logo{
  height:36px;width:auto;
  display:block;
}

.brand-icon{
  width:36px;height:36px;border-radius:10px;
  background:linear-gradient(135deg,var(--primary),#22d3ee);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:18px;line-height:1;
}

.brand .accent{color:var(--primary);}

nav{display:flex;align-items:center;gap:6px;}

.nav-link{
  padding:8px 14px;border-radius:8px;
  color:var(--muted);text-decoration:none;
  font-size:14px;font-weight:500;
  transition:color .15s,background .15s;
  display:inline-flex;align-items:center;gap:6px;
}

.nav-link:hover,.nav-link.active{
  color:var(--primary);background:var(--primary-light);
}

/* SVG global alignment */
svg[aria-hidden="true"]{vertical-align:middle;flex-shrink:0;}
.svg-heading{vertical-align:middle;margin-right:6px;}

/* ── LANDING ────────────────────────────── */
.landing-wrap{min-height:calc(100vh - 66px);}

/* HERO */
.hero-section{
  background:linear-gradient(135deg,#ecfeff 0%,#f0f9ff 55%,#e0f5ff 100%);
  padding:72px 36px 60px;
  position:relative;overflow:hidden;
}

.hero-section::before{
  content:'';position:absolute;
  width:500px;height:500px;border-radius:50%;
  background:radial-gradient(circle,rgba(8,145,178,.12),transparent 65%);
  top:-160px;right:-100px;pointer-events:none;
}

.hero-inner{
  max-width:1120px;margin:0 auto;
  display:grid;grid-template-columns:1fr 400px;
  gap:52px;align-items:center;position:relative;z-index:1;
}

.hero-badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 14px;border-radius:999px;
  background:rgba(8,145,178,.09);border:1px solid rgba(8,145,178,.22);
  color:var(--primary);font-size:12px;font-weight:700;
  letter-spacing:.4px;margin-bottom:20px;
}

.hero-title{
  font-size:clamp(34px,5vw,58px);
  font-weight:800;line-height:1.07;
  letter-spacing:-.6px;margin-bottom:18px;
}

.hero-title .hi{
  background:linear-gradient(90deg,var(--primary),#22d3ee);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;
}

.hero-sub{
  color:var(--muted);font-size:17px;
  max-width:500px;margin-bottom:30px;
}

.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:38px;}

.hero-kpis{display:flex;gap:32px;flex-wrap:wrap;list-style:none;}
.hero-kpis div{display:flex;flex-direction:column;}
.hero-kpis dt{font-size:28px;font-weight:800;color:var(--primary);}
.hero-kpis dd{font-size:12px;color:var(--muted);font-weight:500;}

/* Hero phone visual */
.hero-visual{position:relative;height:380px;}

.hv-phone{
  position:absolute;bottom:0;left:50%;transform:translateX(-50%);
  width:175px;height:315px;
  background:#07131f;border-radius:28px;
  border:3px solid #0d1e2e;
  box-shadow:0 24px 60px rgba(8,145,178,.35),0 0 0 1px rgba(255,255,255,.06);
  overflow:hidden;display:flex;flex-direction:column;
}

.hv-phone-bar{
  height:22px;background:#0d1e2e;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}

.hv-phone-dot{width:44px;height:6px;border-radius:4px;background:#1a3a5c;}

.hv-phone-content{
  flex:1;padding:10px;
  display:flex;flex-direction:column;gap:8px;overflow:hidden;
}

.hv-notif{
  background:#0b1c2e;border-radius:10px;padding:9px;
  border-left:3px solid;
}

.hv-notif.yape{border-color:#e91e8c;}
.hv-notif.plin{border-color:#00bcd4;}
.hv-notif.bbva{border-color:#0054a0;}

.hv-notif-title{font-size:9px;font-weight:700;color:#fff;letter-spacing:.3px;}
.hv-notif-body{font-size:8px;color:#67e8f9;margin-top:2px;}
.hv-notif-amount{font-size:14px;font-weight:800;color:#22d3ee;margin-top:5px;}

.hv-card{
  position:absolute;background:#fff;
  border-radius:12px;padding:10px 14px;
  box-shadow:0 8px 24px rgba(8,145,178,.18);
  font-size:12px;font-weight:600;white-space:nowrap;
}

.hv-card-green{top:24px;right:-10px;display:flex;align-items:center;gap:7px;}
.hv-card-green .dot{
  width:9px;height:9px;border-radius:50%;
  background:#06b6d4;
  box-shadow:0 0 0 3px rgba(6,182,212,.2);
}

.hv-card-stat{top:94px;left:-10px;text-align:center;}
.hv-card-stat strong{display:block;font-size:19px;color:var(--primary);}
.hv-card-stat span{font-size:10px;color:var(--muted);}

/* ── SECTIONS ───────────────────────────── */
.lp-section{padding:68px 36px;}
.lp-section-inner{max-width:1120px;margin:0 auto;}

.section-pill{
  display:inline-flex;padding:5px 14px;
  border-radius:999px;
  background:var(--primary-light);color:var(--primary);
  font-size:12px;font-weight:700;letter-spacing:.4px;
  margin-bottom:14px;
}

.section-title{
  font-size:clamp(28px,4vw,44px);
  font-weight:800;letter-spacing:-.4px;
  margin-bottom:12px;
}

.section-sub{
  color:var(--muted);font-size:16px;
  max-width:680px;margin-bottom:44px;
}

/* Canales */
.canales-section{background:#fff;}

.channels-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(158px,1fr));
  gap:14px;
}

.channel-card{
  border:none;border-radius:14px;
  padding:20px 14px;text-align:center;background:transparent;
  transition:box-shadow .15s,transform .15s;cursor:default;
}

.channel-card:hover{
  box-shadow:0 6px 24px rgba(8,145,178,.12);
  transform:translateY(-2px);
}

.channel-icon{
  width:50px;height:50px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 10px;font-size:24px;
}

.channel-img{
  width:48px;height:48px;object-fit:contain;display:block;
}

.channel-name{font-weight:700;font-size:14px;}
.channel-desc{font-size:11px;color:var(--muted);margin-top:3px;}

/* Features */
.features-section{background:var(--bg);}

.features-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:16px;
}

.feature-card{
  background:#fff;border:1px solid var(--line);
  border-radius:16px;padding:24px;
  transition:box-shadow .15s,transform .15s;
}

.feature-card:hover{
  box-shadow:0 8px 28px rgba(8,145,178,.10);
  transform:translateY(-2px);
}

.feature-icon{
  width:46px;height:46px;border-radius:12px;
  background:var(--primary-light);
  display:flex;align-items:center;justify-content:center;
  font-size:22px;margin-bottom:14px;
}

.feature-card h3{font-size:16px;font-weight:700;margin-bottom:8px;}
.feature-card p{font-size:14px;color:var(--muted);line-height:1.6;}

/* Steps */
.steps-section{background:#fff;}

.steps-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:0;position:relative;margin-top:8px;
}

.steps-grid::before{
  content:'';
  position:absolute;top:29px;
  left:calc(100%/6);width:calc(100% - 100%/3);
  height:2px;
  background:linear-gradient(90deg,rgba(8,145,178,.2),rgba(8,145,178,.6),rgba(8,145,178,.2));
}

.step-card{padding:0 28px;text-align:center;position:relative;z-index:1;}

.step-num{
  width:60px;height:60px;border-radius:50%;
  background:linear-gradient(135deg,var(--primary),#22d3ee);
  color:#fff;font-size:24px;font-weight:800;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 18px;
  box-shadow:0 4px 16px rgba(8,145,178,.3);
}

.step-card h3{font-size:17px;font-weight:700;margin-bottom:8px;}
.step-card p{font-size:14px;color:var(--muted);line-height:1.6;}

/* CTA dark */
.cta-section{
  background:linear-gradient(135deg,#07152a 0%,#0c2d4a 50%,#071a36 100%);
  padding:72px 36px;position:relative;overflow:hidden;
}

.cta-section::before{
  content:'';position:absolute;
  width:440px;height:440px;border-radius:50%;
  background:radial-gradient(circle,rgba(8,145,178,.3),transparent 65%);
  top:-120px;right:-80px;pointer-events:none;
}

.cta-inner{
  max-width:1120px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  gap:32px;flex-wrap:wrap;position:relative;z-index:1;
}

.cta-text h2{
  font-size:clamp(28px,4vw,46px);
  font-weight:800;color:#fff;margin-bottom:10px;
}

.cta-text p{color:rgba(255,255,255,.7);font-size:16px;max-width:580px;}

/* Footer */
.site-footer{
  background:#fff;border-top:1px solid var(--line);
  padding:22px 36px;
  font-size:13px;color:var(--muted);
}

.site-footer-inner{
  max-width:1120px;
  width:100%;
  margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:10px;
}

/* ── BUTTONS ────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:7px;padding:11px 22px;border-radius:10px;
  font-weight:600;font-size:14px;cursor:pointer;
  border:none;text-decoration:none;
  transition:all .15s;
  background:var(--primary);color:#fff;
}

.btn:hover{background:var(--primary-strong);transform:translateY(-1px);}

.btn-primary{
  background:var(--primary);color:#fff;
  box-shadow:0 4px 14px rgba(5,150,105,.30);
}
.btn-primary:hover{background:var(--primary-strong);}

.btn-outline{
  background:transparent;color:var(--primary);
  border:1.5px solid #6ee7b7;
  box-shadow:none;
}
.btn-outline:hover{background:var(--primary-light);transform:none;}

.btn-white{
  background:#fff;color:var(--primary);
  box-shadow:0 2px 12px rgba(0,0,0,.12);
}
.btn-white:hover{background:#f3f4f6;transform:translateY(-1px);}

.btn-sm{padding:8px 16px;font-size:13px;}
.btn-small{padding:8px 14px;font-size:13px;}
.btn-ghost{background:#fff;color:var(--primary);border:1.5px solid #6ee7b7;}

.section-card {
  padding: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.rail-list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rail-list span {
  border: 1px solid #d0ddf0;
  color: #1e3a8a;
  background: #f5f8ff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.feature-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.feature-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fcfcfd;
}

.feature-item h3 {
  margin: 0;
  font-size: 17px;
}

.feature-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.steps-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.steps-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.steps-grid strong {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e6f7f4;
  color: var(--primary);
  font-size: 14px;
}

.steps-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta-banner {
  background: linear-gradient(135deg, #0f766e, #0b3a73);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  margin: 0;
  font-size: 34px;
}

.cta-banner p {
  margin: 10px 0 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
}

.cta-banner .btn {
  background: #fff;
  color: #0f766e;
}

.cta-banner .btn:hover {
  background: #f3f4f6;
}

/* AUTH */
.auth-wrap{
  min-height:calc(100vh - 66px);
  display:flex;align-items:center;justify-content:center;
  padding:32px;
}

.auth-card{
  background:#fff;border:1px solid var(--line);
  border-radius:18px;padding:34px;
  width:min(440px,100%);
  box-shadow:0 8px 40px rgba(5,150,105,.12);
}

.auth-card h2{font-size:28px;font-weight:800;}

.auth-card label{
  display:block;font-size:13px;font-weight:600;
  margin:14px 0 6px;color:var(--text);
}

.auth-card input{
  width:100%;border:1.5px solid var(--line);
  border-radius:10px;padding:11px 14px;font-size:14px;
  outline:none;transition:border-color .15s;
  font-family:inherit;
}

.auth-card input:focus{border-color:var(--primary);}

.auth-links{
  display:flex;justify-content:space-between;
  flex-wrap:wrap;gap:8px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}

.auth-links a{
  font-size:13px;color:var(--primary);
  text-decoration:none;font-weight:500;
}

.auth-links a:hover{text-decoration:underline;}

label{display:block;font-size:13px;font-weight:600;margin:12px 0 6px;}

input[type="text"],
input[type="password"]{
  width:100%;border:1.5px solid var(--line);
  border-radius:10px;padding:11px 14px;
  font-size:14px;outline:none;
}

input:focus{border-color:var(--primary);}

.muted{color:var(--muted);font-size:13px;margin-top:8px;}

.alert{border-radius:10px;padding:11px 14px;font-size:14px;margin-bottom:12px;}
.alert.error{background:#fef2f2;color:#dc2626;}
.alert.success{background:#f0fdf4;color:#15803d;}

/* PANEL */
.panel-wrap{
  max-width:1120px;margin:0 auto;
  padding:24px 18px;
  min-height:calc(100vh - 66px);
}

.content{display:grid;gap:16px;align-content:start;}

.metrics{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:12px;
}

.metric-card{
  background:#fff;border:1px solid var(--line);
  border-radius:14px;padding:20px;
}

.metric-card h4{
  margin:0 0 10px;color:var(--muted);
  font-size:11px;text-transform:uppercase;letter-spacing:.6px;
}

.metric-card p{margin:0;font-size:32px;font-weight:800;color:var(--primary);}

.card{
  background:#fff;border:1px solid var(--line);
  border-radius:14px;padding:20px;
}

.card h3{font-size:16px;font-weight:700;margin:0 0 16px;}

.table-wrap{overflow:auto;}

table{width:100%;border-collapse:collapse;min-width:640px;}

th,td{
  border-bottom:1px solid var(--line);
  text-align:left;padding:11px;font-size:13px;
}

th{
  font-size:10px;text-transform:uppercase;
  letter-spacing:.5px;color:var(--muted);font-weight:600;
}

.channel-badge{
  display:inline-block;
  padding:3px 10px;border-radius:999px;
  font-size:11px;font-weight:700;letter-spacing:.2px;
  background:var(--primary-light);color:var(--primary);
}
.channel-badge--yape{background:#fce7f3;color:#9d174d;}
.channel-badge--plin{background:#e0f9ff;color:#0e7490;}
.channel-badge--bbva{background:#dbeafe;color:#1d4ed8;}
.channel-badge--interbank{background:#dcfce7;color:#15803d;}
.channel-badge--scotiabank{background:#fee2e2;color:#991b1b;}

.block-code{
  display:block;background:#07152a;color:#67e8f9;
  border-radius:10px;padding:12px;margin-bottom:14px;
  font-family:monospace;overflow:auto;font-size:13px;
}

.check{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:14px;}

@media(max-width:1024px){
  .hero-inner{grid-template-columns:1fr;}
  .hero-visual{display:none;}
  .cta-inner{flex-direction:column;text-align:center;}
  .cta-inner .btn-white{align-self:center;}
}

@media(max-width:768px){
  .topbar{padding:0 16px;}
  .nav-link{display:none;}
  .lp-section,.hero-section,.cta-section{padding:44px 16px;}
  .steps-grid{grid-template-columns:1fr;}
  .steps-grid::before{display:none;}
  .step-card{padding:0;}
  .panel-wrap{padding:16px 12px;}
  .sidebar{position:static;}
  .site-footer{flex-direction:column;text-align:center;}
}

.token-row{\n  display:flex;align-items:center;gap:10px;margin-top:6px;\n}\n\n.token-box{\n  flex:1;display:block;background:#022c22;color:#6ee7b7;\n  border-radius:10px;padding:11px 14px;\n  font-family:monospace;font-size:13px;\n  overflow:auto;white-space:nowrap;\n  border:1px solid var(--line);\n}\n\n.token-secret{\n  letter-spacing:.08em;\n}\n\n.info-box{\n  background:var(--primary-light);border:1px solid #6ee7b7;\n  border-radius:12px;padding:14px;font-size:13px;\n  line-height:1.7;margin-top:16px;\n  color:#064e3b;\n}
.section-card{padding:20px;}
.section-head h2{margin:0;font-size:26px;}
.section-head p{margin:8px 0 0;color:var(--muted);}
.rail-list{margin-top:16px;display:flex;flex-wrap:wrap;gap:10px;}
.rail-list span{border:1px solid #d0ddf0;color:#1e3a8a;background:#f5f8ff;padding:8px 12px;border-radius:999px;font-size:13px;font-weight:700;}
.feature-grid{margin-top:16px;display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px;}
.feature-item{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fcfcfd;}
.feature-item h3{margin:0;font-size:17px;}
.feature-item p{margin:8px 0 0;color:var(--muted);font-size:14px;}
.cta-banner{background:linear-gradient(135deg,#0f0a1e,#0b3a73);color:#fff;border-radius:16px;padding:28px;}
.cta-banner h2{margin:0;font-size:34px;}
.cta-banner p{margin:10px 0 18px;color:rgba(255,255,255,.9);}
