:root{
  --bg:#fff7f8;
  --card:#ffffff;
  --text:#231f20;
  --muted:#6d5f63;
  --brand:#c2185b;
  --brand2:#7b1fa2;
  --line:#ead7dd;
  --ok:#167a3a;
  --warn:#a15c00;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:linear-gradient(180deg,#fff7f8,#f7f1ff);
  color:var(--text);
}

.wrap{
  width:min(860px,100%);
  margin:0 auto;
  padding:22px;
}

.hero{
  padding:22px 0 14px;
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#ffe3ee;
  color:#8e1748;
  font-weight:700;
  font-size:13px;
}

h1{
  margin:12px 0 8px;
  font-size:32px;
  line-height:1.05;
}

p{
  color:var(--muted);
  line-height:1.45;
}

.panel,.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 12px 34px rgba(94,44,80,.10);
}

.panel{
  padding:18px;
}

label{
  display:block;
  font-weight:800;
  color:#3a2d31;
  margin-bottom:12px;
}

input,select{
  width:100%;
  margin-top:7px;
  padding:14px 13px;
  border:1px solid #ddc7cf;
  border-radius:15px;
  font-size:16px;
  background:white;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

button{
  width:100%;
  border:0;
  border-radius:16px;
  padding:15px 16px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:white;
  font-size:17px;
  font-weight:900;
  cursor:pointer;
}

.note{
  margin:12px 0 0;
  font-size:13px;
}

.status{
  margin:16px 0;
  font-weight:800;
}

.results{
  display:grid;
  gap:14px;
}

.card{
  padding:17px;
}

.card h2{
  margin:0 0 8px;
  font-size:21px;
}

.meta{
  color:var(--muted);
  font-weight:700;
  font-size:14px;
  margin-bottom:14px;
}

.money-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:14px 0;
}

.money{
  background:#fff4f8;
  border:1px solid #f0cedb;
  border-radius:16px;
  padding:12px;
}

.money span{
  display:block;
  color:#6f5660;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.money strong{
  display:block;
  margin-top:3px;
  font-size:20px;
}

.details{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  margin-top:12px;
}

.chip{
  background:#faf6ff;
  border:1px solid #eadcff;
  border-radius:999px;
  padding:8px 10px;
  font-weight:800;
  font-size:13px;
}

.ok{color:var(--ok)}
.warn{color:var(--warn)}

@media(max-width:640px){
  .wrap{padding:16px}
  h1{font-size:27px}
  .grid,.money-grid,.details{grid-template-columns:1fr}
}

/* Zero friction results */
.mini-valid{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:18px 0 14px;
  padding:14px 18px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:rgba(255,255,255,.045);
  color:rgba(255,255,255,.78);
}

.mini-valid strong{
  color:#fff;
  background:linear-gradient(90deg,#b01462,#74148e);
  padding:8px 14px;
  border-radius:999px;
  font-size:.92rem;
}

.card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}

.level-pill{
  flex:0 0 auto;
  background:rgba(176,20,98,.22);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  border-radius:999px;
  padding:8px 13px;
  font-weight:800;
  font-size:.82rem;
}

.hero-money{
  margin-top:8px;
}

.money.gain{
  background:linear-gradient(135deg,rgba(176,20,98,.72),rgba(116,20,142,.64));
}

.details.compact{
  margin-top:16px;
}

.shipping-note{
  margin-top:10px;
  opacity:.72;
  font-size:.92rem;
}

.no-auth-card{
  border-color:rgba(255,180,80,.35);
}

@media (max-width: 760px){
  .card-top{
    flex-direction:column;
  }

  .mini-valid{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* Imagen remota de producto. No se descarga ni se almacena en el servidor. */
.product-image-wrap{
  margin: 14px 0 16px;
  width: 100%;
  display: flex;
  justify-content: center;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  overflow: hidden;
}

.product-image{
  display: block;
  max-width: 100%;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  padding: 14px;
  background: #fff;
}
