:root{
  --bg:#0a0a0f;
  --bg2:#0f0f18;
  --card:#12121b;
  --card2:#0f0f16;
  --text:#f2f2f7;
  --muted:#b8b8c7;
  --line:rgba(255,255,255,.08);

  --red:#ff1b3a;       /* rojo sangre neón */
  --red2:#b3001c;
  --glow:0 0 18px rgba(255,27,58,.45), 0 0 42px rgba(255,27,58,.25);
  --radius:18px;

  --shadow:0 12px 30px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255,27,58,.12), transparent 60%),
              radial-gradient(900px 500px at 95% 10%, rgba(255,27,58,.10), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  overflow-x:hidden;
}

.bg-glow{
  position:fixed;
  inset:-120px;
  background:
    radial-gradient(600px 250px at 15% 20%, rgba(255,27,58,.16), transparent 60%),
    radial-gradient(520px 220px at 85% 25%, rgba(255,27,58,.13), transparent 60%),
    radial-gradient(700px 300px at 50% 105%, rgba(255,27,58,.10), transparent 65%);
  filter: blur(18px);
  pointer-events:none;
  z-index:-1;
}

.app-header{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px 10px;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10,10,15,.92), rgba(10,10,15,.65));
  border-bottom: 1px solid var(--line);
}

.brand{ display:flex; gap:12px; align-items:center; min-width:0; }
.logos{ display:flex; gap:10px; align-items:center; }
.logo{
  width:44px; height:44px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.04);
}
.brand-text{ min-width:0; }
.brand-text h1{
  margin:0;
  font-size:16px;
  letter-spacing:.5px;
  text-transform:uppercase;
}
.brand-text p{
  margin:2px 0 0;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 52vw;
}

.header-actions{ display:flex; gap:10px; align-items:center; }

.screen{
  min-height: calc(100vh - 64px);
  padding: 22px 14px 120px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

.app{
  padding: 12px 14px 140px;
  max-width: 980px;
  margin: 0 auto;
}

.hidden{ display:none !important; }

.tabs{
  position:sticky;
  top:70px;
  z-index:9;
  display:flex;
  gap:8px;
  padding:10px;
  border-radius: var(--radius);
  background: rgba(18,18,27,.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.tab{
  flex:1;
  padding:10px 10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-weight:700;
  font-size:13px;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tab:hover{ transform: translateY(-1px); border-color: rgba(255,27,58,.35); box-shadow: var(--glow); }
.tab.active{
  border-color: rgba(255,27,58,.55);
  box-shadow: var(--glow);
  background: linear-gradient(180deg, rgba(255,27,58,.18), rgba(255,255,255,.02));
}

.view{ margin-top: 12px; display:grid; gap:12px; }

.card{
  background: linear-gradient(180deg, rgba(18,18,27,.96), rgba(14,14,22,.92));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  animation: pop .25s ease;
}

.card.inner{
  margin-top:12px;
  background: rgba(255,255,255,.03);
}

@keyframes pop{
  from{ transform: translateY(6px); opacity: .0; }
  to{ transform: translateY(0); opacity: 1; }
}

h2{ margin: 0 0 8px; font-size:18px; }
h3{ margin: 10px 0 8px; font-size:15px; }
p{ line-height:1.5; margin: 8px 0; }
.muted{ color: var(--muted); }
code{ background: rgba(255,255,255,.06); padding:2px 6px; border-radius:10px; border:1px solid var(--line); }

.list{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.list li{ margin: 6px 0; }

.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.row.space{ justify-content:space-between; }

.btn{
  border:1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,27,58,.35); box-shadow: var(--glow); }
.btn:active{ transform: translateY(0); }

.btn.primary{
  background: linear-gradient(180deg, rgba(255,27,58,.28), rgba(255,27,58,.12));
  border-color: rgba(255,27,58,.55);
  box-shadow: var(--glow);
}
.btn.primary.big{
  width:100%;
  padding: 14px 14px;
  font-size: 15px;
  border-radius: 18px;
}
.btn.center{ display:inline-flex; justify-content:center; align-items:center; text-decoration:none; }
.btn.ghost{ background: rgba(255,255,255,.03); }
.btn.danger{
  border-color: rgba(255,27,58,.35);
  background: rgba(255,27,58,.10);
}
.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none !important;
  transform:none !important;
}

.chip{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 9px 10px;
  border-radius: 16px;
  font-weight:900;
  cursor:pointer;
}
.chip.danger{ border-color: rgba(255,27,58,.35); background: rgba(255,27,58,.10); }

.field{ display:grid; gap:6px; margin: 10px 0; }
.field span{ color: var(--muted); font-size:13px; font-weight:800; }
input, select{
  width:100%;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline:none;
}
input:focus, select:focus{
  border-color: rgba(255,27,58,.55);
  box-shadow: var(--glow);
}

.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; }

.pick{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 14px 12px;
  text-align:center;
  font-weight: 900;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pick:hover{ transform: translateY(-1px); border-color: rgba(255,27,58,.35); box-shadow: var(--glow); }
.pick.active{
  border-color: rgba(255,27,58,.65);
  background: linear-gradient(180deg, rgba(255,27,58,.22), rgba(255,255,255,.02));
  box-shadow: var(--glow);
}

.wizard-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.progress-wrap{ display:grid; gap:6px; min-width: 140px; }
.progress{
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  overflow:hidden;
}
.progress-bar{
  height:100%;
  background: linear-gradient(90deg, rgba(255,27,58,.9), rgba(255,27,58,.25));
  box-shadow: var(--glow);
  width:0%;
  transition: width .25s ease;
}

.step{ display:none; margin-top: 10px; }
.step.active{ display:block; }

.subform{ margin-top: 8px; }

.pill{
  display:flex;
  gap:8px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.summary{
  margin: 12px 0;
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}

.result-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.tag{
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,27,58,.45);
  background: rgba(255,27,58,.10);
  font-weight:900;
  box-shadow: var(--glow);
}

.kv-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin: 12px 0;
}
.kv{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.kv b{ font-size:15px; }
.kv .val{
  font-weight: 1000;
  letter-spacing:.2px;
  color: var(--text);
  text-shadow: 0 0 14px rgba(255,27,58,.35);
}
.sep{
  border:0;
  border-top:1px solid var(--line);
  margin: 14px 0;
}
.msg{
  margin: 10px 0 0;
  color: var(--muted);
  min-height: 18px;
}

.rec-card .reco{
  display:grid;
  gap:10px;
  margin-top: 10px;
}
.reco .item{
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.reco .item h4{
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing:.2px;
  text-transform: uppercase;
}
.reco .item p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.preset-list{
  display:grid;
  gap:10px;
  margin-top: 12px;
}
.preset{
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.preset .top{
  display:flex; justify-content:space-between; gap:10px; align-items:flex-start;
}
.preset .meta{
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.preset .vals{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.preset .vals span{
  display:flex; justify-content:space-between;
  padding: 10px 10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  color: var(--muted);
}
.preset .vals i{
  font-style:normal;
  color: var(--text);
  font-weight: 1000;
  text-shadow: 0 0 14px rgba(255,27,58,.35);
}
.preset .actions{ margin-top: 10px; display:flex; gap:10px; flex-wrap:wrap; }

.legal-box{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 12px;
}
.legal-box h3{ margin-top: 6px; }

.auth-card{
  width: min(520px, 100%);
}
.mini-legal{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 12.5px;
}

.footer{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(10,10,15,.35), rgba(10,10,15,.92));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align:center;
  backdrop-filter: blur(10px);
}

/* Responsive */
@media (min-width: 680px){
  .kv-grid{ grid-template-columns: 1fr 1fr; }
  .brand-text h1{ font-size:18px; }
  .brand-text p{ max-width: 420px; }
}
@media (max-width: 420px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .tabs{ top: 86px; }
}
