body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  background: url('../img/fondo-soldado.png') no-repeat center top;
  background-size: cover;
  background-attachment: fixed;  /* Asegura que el fondo se quede fijo */
  background-color: #0d0d0d;
  color: #f5d479;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

header, footer {
  z-index: 1;
}
button.btn-cuota {
  background-color: #f5d479;
  color: #0d0d0d;
  border: none;
  padding: 12px 24px;
  margin: 5px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.btn-cuota:hover {
  background-color: #e3c37d;
}

button.btn-cuota:active {
  background-color: #c9a76f;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column !important;
    gap: 4px;
    padding: 6px 10px !important;
    align-items: center;
  }

  nav a {
    font-size: 14px !important;
    padding: 6px 10px;
  }

  header, footer {
    font-size: 14px !important;
    padding: 10px !important;
    text-align: center;
  }

  .partido {
    padding: 8px !important;
    margin: 8px auto !important;
    font-size: 14px !important;
    width: 95% !important;
  }

  button.btn-cuota {
    padding: 6px 10px !important;
    font-size: 13px !important;
    margin: 4px !important;
  }

  .balance-box, .betslip, .botones, .menu {
    font-size: 13px !important;
    padding: 6px !important;
  }

  .betslip {
    max-height: 250px !important;
    overflow-y: auto !important;
    font-size: 13px !important;
  }

  .modal, .formulario {
    width: 95% !important;
    font-size: 13px !important;
    padding: 12px !important;
  }

  h1, h2, h3 {
    font-size: 16px !important;
  }

  body {
    font-size: 14px !important;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  .betslip {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.9);
    border-top: 2px solid #f5d479;
    z-index: 999;
    padding: 10px;
    max-height: 35vh;
    overflow-y: auto;
    font-size: 13px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.8);
  }

  .betslip h3 {
    margin-top: 0;
    font-size: 14px;
  }

  .betslip button {
    font-size: 12px;
    padding: 6px 10px;
  }
}


/* Ajuste de tamaño para botones de cuota */

.cuota, .cuota-btn {
  padding: 4px 10px !important;
  font-size: 14px !important;
  line-height: 1.1;
  min-height: 32px;
  max-height: 36px;
  border: 2px solid gold;
  background-color: #1a1a1a;
  color: gold;
  border-radius: 5px;
  margin: 4px 0;
  width: 100%;
  text-align: center;
  display: inline-block;
  box-sizing: border-box;
}



/* Corrección visual para íconos de cierre (X) */
span.close {
  font-size: 22px !important;
  color: white !important;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 14px;
  background: none !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  line-height: 1;
  display: inline-block;
}



/* Corrección específica para botones de cierre tipo "X" */
.close {
  background: none !important;
  border: none !important;
  font-size: 20px !important;
  color: white !important;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 14px;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  line-height: 1 !important;
}


/* === BETSLIP ESTÉTICA MEJORADA === */

/* Betslip mejorado estilo TerrorWin */
#betslip {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 320px;
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid #ffcc00;
  border-radius: 12px;
  box-shadow: 0 0 10px #ffcc00;
  z-index: 9999;
  padding: 16px;
  color: #ffcc00;
  font-family: 'Orbitron', sans-serif;
}

#betslip h3 {
  font-size: 20px;
  margin-bottom: 12px;
  text-align: center;
  color: #ffcc00;
  text-shadow: 0 0 5px #ffcc00;
}

.betslip-item {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.betslip-item span {
  display: block;
  font-size: 14px;
  margin: 2px 0;
}

#betslip .total {
  border-top: 1px solid #ffcc00;
  margin-top: 10px;
  padding-top: 10px;
  font-weight: bold;
  text-align: center;
}

#betslip .confirmar-btn {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  background-color: #ffcc00;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

#betslip .confirmar-btn:hover {
  box-shadow: 0 0 10px #ffcc00;
}

#betslip .close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #ffcc00;
  font-size: 18px;
  cursor: pointer;
}
