@font-face {
  font-family: "roma";
  src: url(roman.ttf);
}

body {
  background: #f2e8d5 url('../../assets/img/bingus.png') center/cover;
  font-family: 'roma';
  text-align: center;
  padding: 20px;
  color: #4b2e0e;
}

h1 {
  font-family:'roma', serif;
  font-size: 4rem;
  color: #8b0000;
  text-shadow: 2px 2px #d4af37;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.8);
  padding: 10px 20px;
  border-radius: 12px;
  display: inline-flex;        /* ✅ para alinear texto e íconos horizontalmente */
  align-items: center;         /* centra verticalmente íconos y texto */
  gap: 15px;                   /* espacio entre ícono y texto */
}

.icono-svg {
  width: 40px;                 /* ajusta tamaño según te guste */
  height: 40px;
}

.bingo-container {
  display: flex;
  flex-direction: column;   /* todo en columna */
  align-items: center;      /* centrado horizontal */
  justify-content: center;  /* centrado vertical */
  gap: 20px;                /* separación entre elementos */
  min-height: 70vh;         /* ocupa 70% de la pantalla vertical */
  margin-top: 50px;         /* puedes ajustar este margen si lo quieres más abajo */
  text-align: center;
}



.bingo-card {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* más ancho, menos alto */
  gap: 10px;
  max-width: 900px;
  margin: 0 auto 10px;
}

/* Celdas que se irán añadiendo */
.cell {
  background: rgba(255,255,255,0.9);
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 15px;
  font-size: 1.4em;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cell.show {
  opacity: 1;
  transform: scale(1);
}

button {
  background: #8b0000;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1.2em;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px #5c0000;
  transition: 0.2s;
  margin-top: 10px; }

.bingo-btn {
  background: #06b31d;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1.2em;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px #000000;
  transition: 0.2s;
  margin-top: 10px;
  font-weight: bold;
}

button:hover {
  background: #a00000;
}
.bingo-btn:hover {
  background: #a00000;
  color: #c57701;
}

#called-number {
  font-size: 1.6em;
  margin-top: 15px;
  font-weight: bold;
  color: #020202;
  background: rgba(255,255,255,0.8);
  padding: 10px 20px;
  border-radius: 12px;
   display: inline-block;
}

/* ---- Bola ---- */
#ball-container {
  position: relative;
  height: 220px;
  margin: 30px auto 20px;
}

.ball {
  width: 140px;
  height: 140px;
  margin: auto;
  background: radial-gradient(circle at 30% 30%, #ffffff, #cecdcd);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgb(126, 27, 27);
  font-size: 2.5em;
  font-weight: bold;
  box-shadow: 0 0 30px rgba(0,0,0,0.6), 0 0 40px #d4af37 inset;
  opacity: 0;
  transform: scale(0.2) rotate(0deg);
  transition: opacity 0.4s ease;
}

/* bola visible */
.ball.show {
  opacity: 1;
  animation: popBounce 0.9s ease forwards,
             flashGlow 1.2s ease infinite alternate;
}
#bingo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7); /* oscurece el fondo */
  display: none; /* oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#bingo-content {
  text-align: center;
  color: #fff;
  position: relative;
}

#bingo-content h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  text-shadow: 2px 2px 10px #000;
}

.descarga-cupones {
  font-family: 'Comic Neue', cursive;
  display: inline-block; /* El fondo se ajusta al contenido */
  text-align: center;
  margin: 2rem auto;
  font-size: 1.2rem;
  color: #ffffff;
  background-color: #a00000;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.descarga-cupones p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Espacio entre texto e icono */
  flex-wrap: wrap;
}

.icono-descarga {
  color: #ffcc00;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.icono-descarga:hover {
  color: #ffd84d;
  transform: scale(1.2);
}



.btn-descarga {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #ffcc00;
  color: #4b2e0e;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-descarga:hover {
  background-color: #ffb300;
  transform: scale(1.05);
}


.btn-descargar {
  display: inline-block;
  background-color: #c9c2b9; /* tono dorado/romano */
  color: black;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.2s;
}
.btn-descargar2 {
  display: inline-block;
  background-color: #f2efeb; /* tono dorado/romano */
  color: black;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.2s;
}

.btn-descargar:hover {
  background-color: #b2834f;
  transform: scale(1.05);
}

/* ---- Animaciones ---- */
@keyframes popBounce {
  0%   { transform: scale(0.2) rotate(0deg); }
  40%  { transform: scale(1.4) rotate(180deg); }
  70%  { transform: scale(0.8) rotate(270deg); }
  100% { transform: scale(1) rotate(360deg); }
}

@keyframes flashGlow {
  from { box-shadow: 0 0 20px #ffffff, 0 0 40px #bbbbbb inset; }
  to   { box-shadow: 0 0 60px #f0f0f0, 0 0 80px #c4c3c3 inset; }
}
