:root{
  --violet:#47069f;
  --yellow:#d7c204;
  --black:#0E0E0E;
  --white:#fff;
  --muted:rgba(255,255,255,.75);
  --card:rgba(0,0,0,.55);
  --line:rgba(255,255,255,.12);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: Arial, sans-serif;
  background: radial-gradient(1200px 600px at 30% 10%, rgba(71,6,159,.35), transparent 60%),
              radial-gradient(900px 500px at 80% 30%, rgba(215,194,4,.18), transparent 55%),
              linear-gradient(rgba(10,10,18,.9), rgba(8,8,14,.95)),
              url("/fondo.jpg") center/cover no-repeat;
  color:var(--white);
}

.wrap{max-width:980px; margin:0 auto; padding:28px 16px 40px}
.top{ text-align:center; margin-bottom:18px}
.logo{width:120px; height:auto; display:block; margin:0 auto 10px}
h1{margin:8px 0 6px; font-size:32px}
p{margin:0; color:var(--muted)}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  margin:14px 0;
  backdrop-filter: blur(6px);
}

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 520px){
  .grid{grid-template-columns:1fr}
}

label{display:block; font-weight:700; margin-bottom:6px}
input, select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  color:var(--white);
  outline:none;
}
small{display:block; margin-top:6px; color:var(--muted); line-height:1.2}

.btn{
  margin-top:14px;
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:0;
  font-weight:900;
  background: var(--yellow);
  color:#000;
  cursor:pointer;
  transition: .15s transform;
}
.btn:hover{transform:scale(1.01)}

.sims{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:10px;
}
@media (max-width: 900px){
  .sims{grid-template-columns: repeat(3, 1fr)}
}
@media (max-width: 520px){
  .sims{grid-template-columns: repeat(2, 1fr)}
}

.sim{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  text-align:center;
  background: rgba(0,0,0,.35);
}
.sim.ok{outline:2px solid rgba(80,255,120,.45)}
.sim.no{opacity:.45}
.sim h3{margin:0 0 6px}
.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  background: rgba(255,255,255,.1);
  border:1px solid var(--line);
}
.badge.ok{background: rgba(80,255,120,.14)}
.badge.no{background: rgba(255,80,80,.14)}

.summary{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
  color:var(--muted);
}
.foot{opacity:.7; text-align:center; margin-top:10px}

.sim{cursor:pointer; user-select:none}
.sim.no{cursor:not-allowed}

.sim.selected{
  outline: 3px solid rgba(215,194,4,.75);
  box-shadow: 0 0 0 2px rgba(0,0,0,.35) inset;
}

.sim.disabled{
  opacity:.35;
  cursor:not-allowed;
}

.payrow{margin-top:12px}


/* Botón de pago: rojo cuando está deshabilitado, verde cuando está listo */
#goPay.btn{
  background: #b30000;      /* rojo */
  color: #fff;
  cursor: not-allowed;
  opacity: .85;
  transition: background-color .25s ease, opacity .25s ease, transform .15s;
}

/* cuando se habilita */
#goPay.btn.enabled{
  background: #1e9e4a;      /* verde */
  color: #fff;
  cursor: pointer;
  opacity: 1;
}

/* hover solo si está habilitado */
#goPay.btn.enabled:hover{
  transform: scale(1.01);
}



