
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  color: #051829;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #dbd7d7;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}


.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 14vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-logo img { height: 80px; }
.header-timer { justify-self: end; text-align: right; }
.header-timer h2 { font-size: 18px; }
.header-timer p { font-size: 12px; }


.info-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #dbca6a !important;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 700;
  color: #000000 !important;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-icon { font-weight: 900; color: #000; }


.container {
  width: 95%;
  max-width: 1100px;
  margin-top: 16vh;
  padding: 24px;
  text-align: center;
}

#contenedor-boletos {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  width: 100%;
  padding-bottom: 40px;
}


.boleto {
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  user-select: none;
  border-radius: 4px;
}

.disponible { background: #dbca6a; }
.ocupado { background: #646e7c; color: #fff; opacity: 0.6; cursor: not-allowed; }
.reservado { background: orange; color: #fff; cursor: not-allowed; }

.boleto-seleccionado {
  background-color: #007bff !important;
  color: #ffffff !important;
  outline: 2px solid #00d4ff !important;
  outline-offset: -2px;
  transform: scale(1.1);
  font-weight: bold;
  z-index: 10;
  position: relative;
}

.modal, #modal, #infoModal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.modal-contenido, .modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 420px;
  padding: 35px 25px;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  text-align: center;
}

.modal-contenido h2 {
  color: #051829;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.modal input {
  width: 100%;
  margin: 10px 0;
  padding: 16px !important; 
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  background: #f9f9f9;
  transition: all 0.3s;
}

.modal input:focus {
  border-color: #dbca6a;
  outline: none;
  background: #fff;
}

.modal-btn-pagar, #btn-proceder-pago {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px auto 10px auto !important;
  background: #dbca6a !important;
  color: #000000 !important;
  padding: 16px 20px !important; 
  border: none !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.acordeon-btn {
  width: 100%;
  background: #f8f9fa;
  color: #333;
  padding: 12px 15px;
  border: 1px solid #eee;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acordeon-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
}

.acordeon-contenido div {
  padding: 15px;
  font-size: 13px;
  line-height: 1.5;
  color: #444;
  border: 1px solid #eee;
  border-top: none;
  text-align: left;
}

.nota-pago {
  font-size: 11px !important;
  color: #888 !important;
  margin-top: 15px;
  text-align: center;
  opacity: 0.8;
}

#barra-flotante {
  display: none;
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 24, 41, 0.98);
  color: white;
  padding: 12px 25px;
  border-radius: 15px;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #dbca6a;
  z-index: 2000;
}

#btn-vaciar {
  background: transparent;
  color: #ff4d4d;
  border: 1px solid #ff4d4d;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
}

#btn-pre-comprar {
  background: #dbca6a;
  color: #051829;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
}

.btn-cargar, #btnCargarMas {
  background: #dbca6a !important;
  color: #000000 !important;
  border: none;
  padding: 12px 25px;
  font-weight: 400;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  margin: 20px auto 120px;
  display: block;
}

@media (max-width: 768px) {
  .header { height: 10vh; padding: 0 12px; }
  .header-logo img { height: 50px; }
  .container { margin-top: 12vh; }
  #contenedor-boletos { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  
  #barra-flotante {
    bottom: 0;
    width: 100%;
    border-radius: 15px 15px 0 0;
    left: 0;
    transform: none;
    padding: 15px;
  }
}

.modal button {
  width: 100%;
  padding: 14px !important; 
  margin-top: 20px;
  border: none;
  background: #dbca6a !important; 
  color: #051829 !important;      
  cursor: pointer;
  font-weight: 400;               
  font-size: 14px;                
  border-radius: 10px;            
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08); 
  display: block;
  text-transform: none;          
  letter-spacing: 0.5px;
}

.modal button:hover {
  background: #f1df83 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.modal-contenido, .modal-content, .info-modal {
  max-height: 85vh; 
  overflow-y: auto; 
  padding: 30px 25px;
  scrollbar-width: thin; 
  scrollbar-color: #dbca6a transparent;
}

.modal-contenido {
  text-align: left;
}

.modal button:active {
  transform: translateY(0);
}