:root{
  color-scheme:dark;
  --bg:#05070b;
  --surface:#0b1017;
  --surface-2:#101722;
  --text:#f5f7fb;
  --muted:#a7b0bd;
  --line:rgba(255,255,255,.11);
  --red:#ed1f36;
  --red-bright:#ff3048;
  --max:560px;
}

*{box-sizing:border-box}

html,body{height:100%}

body{
  margin:0;
  min-height:100%;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%,rgba(237,31,54,.16),transparent 60%),
    var(--bg);
  color:var(--text);
  line-height:1.5;
  display:flex;
  flex-direction:column;
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
button,input{font:inherit}

.site-header{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(4,7,11,.94);
  border-bottom:1px solid rgba(237,31,54,.34);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}

.header-inner{
  width:min(var(--max),calc(100% - 40px));
  min-height:72px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand img{height:30px;width:auto}

.header-tag{
  font-size:12px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}

.wrap{
  flex:1 1 auto;
  width:min(var(--max),calc(100% - 40px));
  margin:0 auto;
  padding:48px 0 32px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:32px 28px;
  background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
  box-shadow:0 24px 60px rgba(0,0,0,.45);
}

.eyebrow{
  margin:0 0 6px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--red-bright);
}

.card h1{
  margin:0 0 10px;
  font-size:26px;
  line-height:1.2;
}

.subtitle{
  margin:0 0 22px;
  color:var(--muted);
  font-size:15px;
}

.ultima{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 20px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(237,31,54,.06);
}

.ultima-label{
  font-size:13px;
  color:var(--muted);
}

.field-label{
  display:block;
  margin:0 0 8px;
  font-size:13px;
  font-weight:600;
  color:var(--muted);
}

.field{
  width:100%;
  padding:13px 15px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(3,6,10,.55);
  color:var(--text);
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}

.field:focus{
  border-color:var(--red-bright);
  box-shadow:0 0 0 3px rgba(237,31,54,.22);
}

.field::placeholder{color:rgba(167,176,189,.7)}

.ayuda{
  margin:8px 2px 0;
  font-size:12px;
  color:var(--muted);
}

.lista{
  list-style:none;
  margin:18px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:320px;
  overflow-y:auto;
}

.lista .item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
  padding:14px 16px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
  transition:transform .14s ease,border-color .14s ease,background .14s ease;
}

.lista .item:hover,
.lista .item:focus-visible{
  border-color:var(--red-bright);
  background:rgba(237,31,54,.1);
  transform:translateY(-1px);
  outline:none;
}

.item .nombre{font-weight:600}
.item .codigo{
  font-size:12px;
  color:var(--muted);
  letter-spacing:.04em;
}
.item .arrow{color:var(--red-bright);font-size:18px;line-height:1}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 16px;
  border-radius:10px;
  border:1px solid transparent;
  font-weight:600;
  cursor:pointer;
  transition:transform .16s ease,filter .16s ease,background .16s ease;
}

.btn-ghost{
  background:rgba(255,255,255,.06);
  border-color:var(--line);
  color:var(--text);
}
.btn-ghost:hover{background:rgba(255,255,255,.11)}

.btn-primary{
  margin-top:16px;
  width:100%;
  justify-content:center;
  padding:13px 16px;
  font-size:15px;
  color:#fff;
  background:linear-gradient(180deg,var(--red-bright),var(--red));
  border-color:var(--red);
}
.btn-primary:hover{filter:brightness(1.07)}
.btn-primary:active{transform:translateY(1px)}
.btn-primary:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(237,31,54,.35);
}

.estado{
  margin:16px 0 0;
  padding:12px 14px;
  border-radius:10px;
  font-size:14px;
  border:1px solid rgba(237,31,54,.4);
  background:rgba(237,31,54,.1);
  color:#ffd9df;
}
.estado-ok{
  border-color:rgba(46,204,113,.4);
  background:rgba(46,204,113,.1);
  color:#d4fce6;
}

.foot{
  margin:22px 0 0;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

@media (max-width:520px){
  .card{padding:26px 20px}
  .card h1{font-size:22px}
}
