@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
  --verde:#16a34a;
  --borde:#cbd5e1;
  --texto:#0f172a;
  --bg:#f8fafc;
}

*{ box-sizing:border-box }

body{
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:var(--bg);
  color:var(--texto);
  margin-left:auto;
  margin-right:auto;
  padding:24px;
  max-width: 1000px;
  text-align: center;
}

.titulo{
  color: var(--verde);
  font-weight:700;
  font-family: 'Montserrat', sans-serif;
}

h2{ margin:0 0 8px }
p.sub{ margin:0 0 16px; color:#475569 }

.tarjeta{
  background:#fff;
  border-radius:14px;
  padding:20px;
  box-shadow:0 6px 24px rgba(15,23,42,.08);
  max-width:920px;
  margin-top:20px;
  text-align: left;
}

.grid{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3,1fr);
  margin: 0 auto;
}

label{
  font-weight:600;
  font-size:13px;
  margin-bottom:6px;
  display:block;
}

input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--borde);
  font-size:14px;
  outline:none;
}

input:focus{
  border-color:var(--verde);
  box-shadow:0 0 0 3px rgba(22,163,74,.15);
}

.btn{
  margin-top:14px;
  width:100%;
  padding:12px 14px;
  border:0;
  border-radius:12px;
  background:var(--verde);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  font-size:15px;
}

.btn:disabled{ opacity:.6; cursor:not-allowed }

.res{ display:flex;align-items:center;gap:10px }

.badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-weight:700;
}

.b1{ background:#d1fae5;color:#065f46 }
.b2{ background:#fef3c7;color:#92400e }
.b3{ background:#fee2e2;color:#991b1b }

small{ color:#64748b }

.acciones{ display:flex;gap:10px;margin-top:10px;flex-wrap:wrap }

.mini{
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--borde);
  background:#fff;
  cursor:pointer;
}

footer{ margin-top:16px }

/* Probabilidades */
.probs{
  margin-top:10px;
  display:grid;
  gap:8px;
}

.prob-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.prob-label{
  width:110px;
  font-weight:600;
  font-size:13px;
}

.prob-val{
  width:54px;
  text-align:right;
  font-variant-numeric:tabular-nums;
}

.prob-bar{
  flex:1;
  height:8px;
  background:#e2e8f0;
  border-radius:999px;
  overflow:hidden;
}

.prob-bar > span{
  display:block;
  height:100%;
  background:var(--verde);
  width:0%;
}

