/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f8f9fa;
  color: #333;
  text-align: center;
  padding: 20px;
}

/* Banner del peaje */
header .banner {
  width: 100%;   /* antes 180% */
  max-height: 160px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}


/* Sección de vehículos */
.vehiculos {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin: 50px 0;
}

.vehiculo {
  text-align: center;
}

.vehiculo img {
  width: 200px;
  cursor: pointer;
  transition: transform 0.2s;
}

.vehiculo img:hover {
  transform: scale(1.1);
}

.vehiculo p {
  margin-top: 5px;
  font-weight: bold;
}

/* Panel de estadísticas */
.panel {
  background: #fff;
  max-width: 350px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: left;
}

.panel h2 {
  text-align: center;
  background: #4304e2;
  color: rgb(255, 255, 255);
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 18px;
}

.panel label {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 15px;
}

.panel {
  background: #fff;
  max-width: 500px; 
  margin: 20px auto; 
  padding: 30px;     
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: left;
}


/* Botones */
.botones {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}

.botones button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

#abrir {
  background: #28a745;
  color: white;
}

#abrir:disabled {
  background: #94d3a2;
  cursor: not-allowed;
}

#cerrar {
  background: #dc3545;
  color: white;
}

#cerrar:disabled {
  background: #e79a9a;
  cursor: not-allowed;
}

.botones button:hover:not(:disabled) {
  opacity: 0.9;
}

/* Reloj */
footer {
  margin-top: 20px;
}

#reloj {
  font-size: 28px;
  font-weight: bold;
  color: #333;
}