:root{
  --brand:#0b4bb2;
  --brand2:#0a3887;
  --bg:radial-gradient(1400px 700px at 50% -15%, rgba(11,75,178,.18), transparent 60%),
       linear-gradient(#eef2f7,#e2e8f0);
  --card:#fff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#dbe2ea;
  --soft:#f8fafc;
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,sans-serif;
  background:var(--bg);
  color:var(--text);
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  width:100%;
  background:linear-gradient(90deg,var(--brand),var(--brand2));
  color:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.35);
}
.topbar__inner{
  max-width:980px;
  margin:0 auto;
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}
.logo{
  width:52px;height:52px;
  border-radius:16px;
  background:#fff;
  border:2px solid rgba(255,255,255,.35);
  display:grid;
  place-items:center;
  overflow:hidden;
  box-shadow:0 0 0 1px rgba(15,23,42,.15);
}
.logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  transform:scale(1.15);
}
.title{
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
  font-size:16px;
}

.wrap{
  max-width:980px;
  margin:0 auto;
  padding:18px 14px 28px;
}

.banner{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 14px;
  box-shadow:0 12px 30px rgba(15,23,42,.08);
}
.banner i{
  color:var(--brand);
  font-size:18px;
}
.banner b{color:var(--text)}
.banner-alert{
  margin-top:8px;
  font-size:13px;
  color:#b91c1c;
}

.card{
  margin-top:14px;
  background:var(--card);
  border-radius:18px;
  border:1px solid var(--border);
  padding:14px 14px 16px;
  box-shadow:0 14px 34px rgba(15,23,42,.08);
}

.hero{
  position:relative;
  overflow:hidden;
}

.hero .lightbar{
  position:absolute;
  top:10px;
  left:14px;
  right:14px;
  height:10px;
  border-radius:999px;
  background:rgba(15,23,42,.18);
  overflow:hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.35),
    0 10px 22px rgba(15,23,42,.16);
}
[data-theme="dark"] .hero .lightbar{
  background:rgba(255,255,255,.06);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 10px 22px rgba(0,0,0,.55);
}

.hero .lightbar::before,
.hero .lightbar::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width:50%;
  filter:saturate(1.1);
}
.hero .lightbar::before{
  left:0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.55), rgba(255,255,255,0) 42%),
    linear-gradient(90deg, rgba(255,40,40,.95), rgba(190,0,0,.95));
  box-shadow:0 0 18px rgba(255,35,35,.85);
  animation:plFlashRed 1.35s infinite;
}
.hero .lightbar::after{
  right:0;
  background:
    radial-gradient(circle at 80% 50%, rgba(255,255,255,.55), rgba(255,255,255,0) 42%),
    linear-gradient(90deg, rgba(10,120,255,.95), rgba(0,45,180,.95));
  box-shadow:0 0 18px rgba(25,120,255,.85);
  animation:plFlashBlue 1.35s infinite;
}

@keyframes plFlashRed{
  0%, 6%   { opacity:1; transform:translateX(0); }
  12%      { opacity:.35; }
  18%      { opacity:1; }
  25%      { opacity:.20; }
  40%      { opacity:.25; }
  55%      { opacity:.15; }
  70%      { opacity:.10; }
  100%     { opacity:.12; }
}
@keyframes plFlashBlue{
  0%, 28%  { opacity:.10; }
  34%      { opacity:1; }
  40%      { opacity:.35; }
  46%      { opacity:1; }
  55%      { opacity:.20; }
  70%      { opacity:.22; }
  100%     { opacity:.12; }
}

.hero h1{
  margin:22px 0 6px;
  font-size:22px;
  letter-spacing:-.02em;
}
.sub{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.35;
}

.grid-main{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:14px;
  align-items:start;
}
@media (max-width:900px){
  .grid-main{grid-template-columns:1fr}
}

.features{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:12px;
}
.ft{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 12px 10px;
  background:#ffffff;
}
.ft h3{
  margin:0 0 6px;
  font-size:14px;
  display:flex;
  align-items:center;
  gap:8px;
}
.ft ul{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  font-size:13px;
}
.ft li{margin:4px 0}

.benefits{
  margin-top:12px;
  display:grid;
  gap:10px;
}
.bn{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid var(--border);
  border-radius:16px;
  padding:10px 12px;
  background:#fff;
}
.bn i{
  color:var(--brand);
  margin-top:3px;
}
.bn b{color:var(--text)}
.bn div{
  color:var(--muted);
  font-size:13px;
  line-height:1.25;
}

.big-ft{
  margin-top:12px;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px 12px 10px;
  background:#fff;
}
.big-ft h3{
  margin:0 0 6px;
  font-size:14px;
  display:flex;
  align-items:center;
  gap:8px;
}
.big-ft p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.ctas{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:12px;
}
.btn{
  border:none;
  border-radius:999px;
  padding:11px 14px;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:0 12px 28px rgba(15,23,42,.28);
  text-decoration:none;
}
.btn-primary{
  background:linear-gradient(180deg,var(--brand),var(--brand2));
  color:#fff;
}
.btn-secondary{
  background:#fff;
  color:var(--brand);
  border:1px solid rgba(11,75,178,.18);
  box-shadow:0 10px 24px rgba(15,23,42,.12);
}
.btn.is-ready{
  animation:installPulse 1.85s ease-in-out infinite;
}
@keyframes installPulse{
  0%,100%{ transform:translateY(0); box-shadow:0 12px 28px rgba(15,23,42,.28); }
  50%{ transform:translateY(-1px); box-shadow:0 16px 34px rgba(15,23,42,.34); }
}

.install-state{
  margin-top:12px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid var(--border);
  border-radius:16px;
  padding:11px 12px;
  background:#fff;
}
.install-state__icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(11,75,178,.10);
  color:var(--brand);
}
.install-state__title{
  font-size:13px;
  font-weight:900;
  color:var(--text);
}
.install-state__text{
  margin-top:2px;
  font-size:13px;
  color:var(--muted);
  line-height:1.3;
}
.install-state[data-kind="ready"]{
  border-color:rgba(14,116,144,.22);
  background:linear-gradient(180deg, rgba(240,253,250,.98), #fff);
}
.install-state[data-kind="ready"] .install-state__icon{
  background:rgba(14,116,144,.12);
  color:#0f766e;
}
.install-state[data-kind="warn"]{
  border-color:rgba(217,119,6,.24);
  background:linear-gradient(180deg, rgba(255,251,235,.98), #fff);
}
.install-state[data-kind="warn"] .install-state__icon{
  background:rgba(245,158,11,.14);
  color:#b45309;
}

.install-badges{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.install-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:32px;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(11,75,178,.12);
  background:rgba(255,255,255,.92);
  color:var(--text);
  font-size:12px;
  font-weight:800;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}
.install-badge i{ color:var(--brand); }

.install-steps{
  margin-top:10px;
  display:grid;
  gap:8px;
}
.install-step{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
  background:rgba(255,255,255,.84);
}
.install-step__num{
  width:24px;
  height:24px;
  flex:0 0 24px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  color:#fff;
  background:linear-gradient(180deg,var(--brand),var(--brand2));
  box-shadow:0 6px 14px rgba(15,23,42,.18);
}
.install-step__text{
  font-size:13px;
  color:var(--muted);
  line-height:1.28;
}

.install-help{
  margin-top:10px;
  border:1px dashed var(--border);
  border-radius:16px;
  padding:10px 12px;
  background:rgba(255,255,255,.75);
  color:var(--muted);
  font-size:13px;
}

.platform-mini-guide{
  margin-top:10px;
  display:grid;
  gap:10px;
}
.platform-mini-guide.hidden{ display:none!important; }

.ios-visual-guide{
  border:1px solid var(--border);
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  padding:12px;
  box-shadow:0 10px 22px rgba(15,23,42,.05);
}
.ios-visual-head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:10px;
}
.ios-visual-head__icon{
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(11,75,178,.10);
  color:var(--brand);
}
.ios-visual-head__title{
  font-size:13px;
  font-weight:900;
  color:var(--text);
}
.ios-visual-head__text{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  line-height:1.3;
}

.ios-mini-flow{
  display:grid;
  gap:8px;
}
.ios-mini-card{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px;
  background:#fff;
}
.ios-mini-step{
  width:26px;
  height:26px;
  flex:0 0 26px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg,var(--brand),var(--brand2));
  color:#fff;
  font-size:12px;
  font-weight:900;
}
.ios-mini-body{
  min-width:0;
  flex:1;
}
.ios-mini-title{
  font-size:13px;
  font-weight:900;
  color:var(--text);
}
.ios-mini-text{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  line-height:1.28;
}

.ios-toolbar{
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.ios-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:7px 10px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid var(--border);
  font-size:12px;
  font-weight:800;
  color:var(--text);
}
.ios-pill i{
  color:var(--brand);
}
.ios-arrow{
  color:#94a3b8;
  font-size:12px;
}

.ios-option-card{
  margin-top:8px;
  border:1px dashed rgba(11,75,178,.22);
  border-radius:14px;
  background:rgba(11,75,178,.04);
  padding:10px;
}
.ios-option-card__row{
  display:flex;
  align-items:center;
  gap:10px;
}
.ios-option-card__icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid rgba(11,75,178,.14);
  color:var(--brand);
}
.ios-option-card__title{
  font-size:13px;
  font-weight:900;
  color:var(--text);
}
.ios-option-card__text{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  line-height:1.28;
}

.mini-note{
  border:1px dashed var(--border);
  border-radius:14px;
  background:var(--soft);
  padding:10px 12px;
  font-size:12px;
  line-height:1.3;
  color:var(--muted);
}

.panel{
  border:1px solid var(--border);
  border-radius:18px;
  padding:12px;
  background:#fff;
}
.panel h3{
  margin:0 0 10px;
  font-size:14px;
  display:flex;
  align-items:center;
  gap:8px;
}
.qrbox{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:10px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#f8fafc;
}

footer{
  margin-top:18px;
  text-align:center;
  color:var(--muted);
  font-size:11px;
}

.hidden{display:none!important}
.muted{color:var(--muted)}

.desktop-qr-copy{margin-top:10px}
.desktop-qr-help{margin-top:8px}
.beta-pc-state{margin-top:14px}
.beta-pc-cta{width:100%;margin-top:10px}
.landing-banner{margin-top:14px}
.landing-banner__icon{margin-top:2px}
.landing-copy-helper{
  position:fixed;
  opacity:0;
  pointer-events:none;
}

.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:80;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.55);
}
.modal-backdrop.is-open{display:flex}
.modal{
  width:92%;
  max-width:390px;
  background:#fff;
  border-radius:18px;
  border:1px solid var(--border);
  box-shadow:0 18px 40px rgba(15,23,42,.8);
  padding:14px 14px 16px;
}
.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.modal-head span{
  font-weight:900;
  font-size:14px;
}
.modal-body{
  font-size:13px;
  color:var(--muted);
  white-space:pre-line;
  line-height:1.25;
}
.modal-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:12px;
}
.guide-sheet{
  display:grid;
  gap:10px;
}
.guide-sheet__lead{
  font-size:13px;
  color:var(--muted);
  line-height:1.35;
}
.guide-note{
  border:1px dashed var(--border);
  border-radius:14px;
  padding:10px 12px;
  background:#f8fafc;
  color:var(--muted);
  font-size:12px;
  line-height:1.32;
}
.guide-steps{
  display:grid;
  gap:8px;
}
.guide-step{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid var(--border);
  border-radius:14px;
  padding:11px 12px;
  background:#fff;
}
.guide-step__icon{
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(11,75,178,.10);
  color:var(--brand);
}
.guide-step__title{
  font-size:13px;
  font-weight:900;
  color:var(--text);
}
.guide-step__text{
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  line-height:1.3;
}
.modal-btn{
  border-radius:999px;
  padding:10px 14px;
  border:1px solid #dbe2ea;
  background:#fff;
  font-weight:800;
  cursor:pointer;
}
.modal-btn.primary{
  border-color:transparent;
  background:linear-gradient(180deg,var(--brand),var(--brand2));
  color:#fff;
}

@media (max-width:640px){
  .modal-backdrop{
    align-items:flex-end;
  }
  .modal{
    width:100%;
    max-width:none;
    border-radius:20px 20px 0 0;
    padding-bottom:calc(18px + env(safe-area-inset-bottom, 0px));
    box-shadow:0 -10px 34px rgba(15,23,42,.38);
    animation:sheetUp .18s ease-out;
  }
  @keyframes sheetUp{
    from{ transform:translateY(14px); opacity:.6; }
    to{ transform:translateY(0); opacity:1; }
  }
}

/* Solo oscurecemos el splash PWA, no la landing completa */
[data-theme="dark"] .pwa-boot{
  background:
    radial-gradient(1400px 700px at 50% -15%, rgba(15,23,42,.85), transparent 60%),
    linear-gradient(#020617,#020617);
}

.pwa-boot{
  position:fixed; inset:0;
  display:flex; align-items:center; justify-content:center;
  z-index:99999;
  background:transparent;
  padding:24px;
}
.pwa-boot.hidden{ display:none; }
.pwa-boot-card{
  width:100%; max-width:340px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.14);
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 40px rgba(15,23,42,.25);
  padding:18px 18px 16px;
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
[data-theme="dark"] .pwa-boot-card{
  background:rgba(2,6,23,.70);
  border-color:rgba(255,255,255,.10);
  box-shadow:0 18px 40px rgba(0,0,0,.65);
}
.pwa-boot-logo{
  width:72px; height:72px;
  border-radius:20px;
  display:grid; place-items:center;
  background:#fff;
  border:2px solid rgba(15,23,42,.18);
  overflow:hidden;
  box-shadow:0 0 0 2px rgba(255,255,255,.25), 0 2px 10px rgba(0,0,0,.25);
}
.pwa-boot-logo img{
  width:100%; height:100%; object-fit:contain;
  transform:scale(1.18); transform-origin:center;
}
.pwa-boot-title{
  font-weight:900; letter-spacing:.08em;
  text-transform:uppercase;
  font-size:14px;
  color:#0f172a;
}
[data-theme="dark"] .pwa-boot-title{ color:#e5e7eb; }
.pwa-boot-sub{
  font-size:12px;
  color:#64748b;
}
[data-theme="dark"] .pwa-boot-sub{ color:#9ca3af; }
.pwa-boot-spinner{
  width:30px; height:30px;
  border-radius:999px;
  border:3px solid rgba(100,116,139,.35);
  border-top-color:rgba(11,75,178,.95);
  animation:plspin 1s linear infinite;
}
[data-theme="dark"] .pwa-boot-spinner{
  border-color:rgba(156,163,175,.28);
  border-top-color:rgba(96,165,250,.95);
}
@keyframes plspin{
  from{ transform:rotate(0deg);}
  to{ transform:rotate(360deg);}
}
