/* ===============================
   CSS FINAL
=============================== */

*,
*::before,
*::after{
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
}

/* ===============================
   BANNER
=============================== */
.banner-oficial{
  max-width: 900px;
  margin: 20px auto;
  padding: 25px;
  border-radius: 14px;
  background: linear-gradient(90deg, #0b4aa6, #003b8e);
  color: #fff;
  text-align: center;
}

.banner-top{
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.badge{
  background: #ffd400;
  color: #003b8e;
  padding: 4px 10px;
  border-radius: 14px;
  font-weight: bold;
  font-size: 13px;
}

.banner-monto{
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.banner-monto .monto{
  font-size: clamp(36px, 7vw, 64px);
  font-weight: bold;
  line-height: 1;
}

.banner-monto .millones{
  font-size: clamp(18px, 3.6vw, 32px);
  margin-left: 6px;
  line-height: 1.1;
}

.banner-descripcion{
  margin: 10px 0 0;
  opacity: 0.95;
}

/* ===============================
   BUSCADOR (centrado real)
=============================== */
.buscador{
  max-width: 900px;
  margin: 0 auto;
  padding: 15px 0;
  display: flex;
  justify-content: center;   /* ✅ centra el conjunto */
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.buscador select,
.buscador button{
  height: 42px;              /* ✅ misma altura */
  padding: 0 14px;           /* ✅ mismo padding */
  font-size: 14px;
  border-radius: 10px;
}

.buscador select{
  min-width: 180px;
  border: 1px solid #cfd6df;
  background: #fff;
}

.buscador button{
  border: 0;
  background: #ffd400;
  color: #003b8e;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.buscador button:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}

/* En pantallas chicas, que ocupen todo el ancho bonito */
@media (max-width: 520px){
  .buscador select,
  .buscador button{
    width: min(320px, 95vw);
  }
}

/* ===============================
   EMBED
=============================== */
.embed{
  max-width: 900px;
  margin: 10px auto 18px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.embed-title{
  margin: 0 0 8px;
  color: #223;
}

.embed textarea{
  width: 100%;
  min-height: 110px;
  border-radius: 10px;
  border: 1px solid #cfd6df;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  resize: vertical;
}

.embed-actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

#copyEmbed{
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  background: #003b8e;
  color: #fff;
  cursor: pointer;
}

/* ===============================
   HINT
=============================== */
.hint{
  text-align: center;
  color: #556;
  margin: 8px auto 18px;
  max-width: 900px;
}

/* ===============================
   RESULTADOS
=============================== */
.card{
  background: #ffffff;
  max-width: 750px;
  margin: 20px auto;         /* ✅ centra la card */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

h2{
  margin: 0;
}

small{
  display: inline-block;
  margin-top: 6px;
  color: #556;
}

h3{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

/* ===============================
   LOGOS
=============================== */
h3 img{
  height: 28px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
}

/* ===============================
   BOLAS
=============================== */
.bolas{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.bola{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffd400;
  color: #003b8e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid #003b8e;
}

/* ===============================
   JUGADAS
=============================== */
.jugadas{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.sin-datos{
  margin-top: 12px;
  font-size: 16px;
  color: #333;
}

/* ===============================
   FOOTER
=============================== */
footer{
  text-align: center;
  font-size: 12px;
  color: #666;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

