/* ========================
   GLOBAL
======================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f0f4f8;
  color: #111;
  min-height: 100vh;
}

/* ========================
   CONTENEDOR PRINCIPAL
======================== */
.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 20px;
  text-align: center;
}

/* ========================
   LOGO DEL CLUB
======================== */
.logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
  background: white;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

/* ========================
   NOMBRE DEL CLUB
======================== */
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a2540;
  margin-bottom: 4px;
}

/* ========================
   NÚMERO DE CANCHA
======================== */
#NumeroCancha {
  font-size: 1rem;
  color: #555;
  margin-top: 4px;
}

/* ========================
   ESTADO DE LA CANCHA
======================== */
.status {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #e0f7ea;
  color: #1a7a3f;
  letter-spacing: 0.3px;
}

.status.fuera-de-servicio {
  background: #fdecea;
  color: #c0392b;
}

/* ========================
   CARD DE SELECCIÓN
======================== */
.card {
  margin-top: 24px;
  background: white;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0a2540;
  margin-bottom: 16px;
}

/* ========================
   BOTONES DE TIEMPO
======================== */
.btn-tiempo {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  border: 2px solid #e0e6ef;
  border-radius: 14px;
  background: #f7f9fc;
  color: #0a2540;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tiempo:hover:not(:disabled) {
  border-color: #0a7cff;
  background: #eaf3ff;
  color: #0a7cff;
}

.btn-tiempo.seleccionado {
  border-color: #0a7cff;
  background: #0a7cff;
  color: white;
}

.btn-tiempo:disabled {
  background: #f0f0f0;
  color: #aaa;
  border-color: #e0e0e0;
  cursor: not-allowed;
}

/* ========================
   PRECIO SELECCIONADO
======================== */
#PrecioSeleccionado {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a7cff;
  margin-top: 18px;
  min-height: 28px;
}

/* ========================
   BOTÓN CONFIRMAR Y PAGAR
======================== */
#continueBtn {
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  border: none;
  border-radius: 14px;
  background: #0a7cff;
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  letter-spacing: 0.3px;
}

#continueBtn:hover:not(:disabled) {
  background: #005ecc;
}

#continueBtn:disabled {
  background: #b0c4de;
  cursor: not-allowed;
}
/* ========================
   MODAL PERSONALIZADO
======================== */

.modal-oculto {
  display: none;
}

.modal-visible {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-contenido {
  width: 100%;
  max-width: 340px;
  background: white;
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  font-family: 'Segoe UI', sans-serif;
  animation: aparecerModal 0.2s ease-out;
}

.modal-contenido h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #002b55;
}

.modal-contenido h3 {
  margin: 0 0 22px;
  font-size: 20px;
  color: #002b55;
}

.modal-contenido p {
  margin: 10px 0;
  font-size: 17px;
  color: #111827;
}

#cerrarModal {
  width: 100%;
  margin-top: 24px;
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  background-color: #1683f7;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

#cerrarModal:hover {
  background-color: #0f72dc;
}

#cerrarModal:active {
  transform: scale(0.98);
}

@keyframes aparecerModal {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}