:root {
  --bg: #F5F5F5;        
  --text: #222222;      
  --accent: #D82828;    
  --muted: #CCCCCC;     
  --blue-main: #1C50A4; 
  --blue-dark: #0F3A79; 
  --red-light: #F05050; 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

header {
  width: 100%;
  background: var(--blue-main);
  border-bottom: 1px solid var(--blue-dark);
  position: fixed;
  top: 0;
  z-index: 100;
  padding: 0.8rem 0;
}

nav {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}

.menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.menu li a:hover {
  color: var(--red-light);
}

body {
background: #0051ff;
  background: linear-gradient(90deg, rgba(0, 81, 255, 0.52) 0%, rgba(255, 0, 0, 0.51) 100%);  color: var(--text);
  margin: 0;
}

main {
  padding: 2rem 1rem;
  text-align: center;
}

.boletos-container {
  overflow-x: auto;
  margin: 1rem auto;
}

.boletos-table {
  margin: 0 auto;
  border-collapse: collapse;
  text-align: center;
}

.boletos-table td {
  width: 60px;
  height: 60px;
  border: 1px solid var(--muted);
  cursor: pointer;
  transition: 0.2s;
}

.boletos-table td.disponible:hover {
  background: var(--red-light);
  color: #fff;
}

.boletos-table td.disponible {
  background: #0a0; 
  color: #fff;
}

.boletos-table td.ocupado {
  background: var(--accent);
  cursor: not-allowed;
  color: #fff;
}

#buscador-container {
  margin: 2rem 0;
}

#buscador-container input {
  padding: 0.5rem;
  width: 200px;
  border-radius: 5px;
  border: 1px solid var(--muted);
  background: #fff;
  color: var(--text);
}

#buscador-container button {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: none;
  background: var(--blue-main);
  color: #fff;
  cursor: pointer;
}

#buscador-container button:hover {
  background: var(--red-light);
}

.paginacion {
  margin: 2rem 0;
}

.paginacion .btn {
  color: #fff;
  background: var(--blue-dark);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  margin: 0 0.5rem;
  text-decoration: none;
}

.paginacion .btn:hover {
  background: var(--red-light);
  color: #fff;
  cursor: pointer;
}

footer {
  width: 100%;
  margin-top: auto;
  padding: 1.5rem 0;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  background: var(--blue-dark);
}

.modal {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
  
.modal-content input,
.modal-content select,
.modal-content button {
  width: 90%;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--muted);
  background: #fff;
  color: var(--text);
  display: block;
}

.modal-content button {
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  margin-top: 1rem;
  cursor: pointer;
}

.modal-content button:hover {
  background: var(--red-light);
}

.modal-content nav {
  margin: 1rem 0;
}

.modal-content .menu {
  justify-content: center;
  display: flex;
  gap: 1rem;
}

.modal-content .menu li a {
  color: var(--muted);
  text-decoration: none;
}

.modal-content .menu li a:hover {
  color: var(--text);
}

@media(max-width:768px){
  .boletos-table td { width:50px; height:50px; }
  #buscador-container input { width: 120px; }
}

@media(max-width:480px){
  .boletos-table td { width:40px; height:40px; font-size:0.8rem; }
}
