/* === PRODUCTOS EN TARJETAS (para la página principal) === */
/* Sección de productos sin límites de ancho */
.products-section {
  width: 100%;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

.products-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

/* === RESETEO BÁSICO === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === BARRA SUPERIOR === */
.top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.6rem;
  font-weight: bold;
  color: #007bff;
  gap: 10px;
}

.top-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.top-buttons .btn {
  background: #007bff;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.3s ease;
}

.top-buttons .btn:hover {
  background: #0056b3;
  transform: scale(1.05);
}

/* === SECCIÓN HERO === */
.hero {
  margin-top: 70px;
  /* Espacio por barra fija */
  position: relative;
  text-align: center;
  color: white;
}

.hero-img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  filter: brightness(60%);
  position: relative;
  /* importante para z-index */
  z-index: 1;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  text-align: center;
  z-index: 2;
  /* crucial para recibir hover */
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
}

.hero-text h1 span {
  color: #ffdd00;
}

.hero-text p {
  margin: 20px 0;
  font-size: 1.3rem;
}

.btn-hero {
  background: #ff4500;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-hero:hover {
  background: #e94509;
  transform: scale(1.05);
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: white;
  margin-top: 20px;
}

.top-buttons {
  display: flex;
  gap: 10px;
}

.top-buttons .btn {
  background: #007bff;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.3s ease;
}

.top-buttons .btn:hover {
  background: #0056b3;
  transform: scale(1.05);
}

/* Ajustar el contenido por la barra fija */
.container {
  margin-top: 80px;
}

/* === ESTILOS GENERALES === */
/* Asegurar que body ocupe todo el ancho */
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  box-sizing: border-box;
}

.admin-panel {
  width: 90%;
  /* Ajusta el ancho */
  margin: auto;
  /* Centrado horizontal */
  display: flex;
  /* Flexbox para centrar */
  flex-direction: column;
  /* Alinea contenido vertical */
  justify-content: center;
  /* Centrado vertical */
  align-items: center;
  /* Centrado horizontal interno */
  background: #f4f4f4;
  /* Fondo opcional */
  border-radius: 10px;
  /* Bordes opcionales */
  padding: 80px;
  /* Para añadir espacio entre el elemento y su borde */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* Sombra opcional */
}

#productForm {
  width: 100%;
  margin: 0 auto;
  /* Centrarlo horizontalmente */
  padding: 20px;

}

h1,
h2 {
  text-align: center;
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: #007bff;
  transition: color 0.3s ease;
}

button {
  background: #e63946;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

button:hover {
  transform: scale(1.05);
  background: #d62828;
}

/* === PRODUCT GRID FLEXIBLE === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* Flexible */
  gap: 20px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}


/* Tarjetas de producto */
.product-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease;
  padding: 15px;
}

.product-card:hover {
  transform: scale(1.02);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.product-card h3 {
  font-size: 1.3rem;
  margin: 10px 0;
}

.product-card p {
  margin: 5px 0;
  font-size: 0.95rem;
}


/* === CONTENEDORES === */
.container,
.main-container {
  width: 95%;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-container {
  text-align: center;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-btn {
  display: block;
  padding: 15px;
  background: #457b9d;
  color: white;
  border-radius: 8px;
  font-size: 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.main-btn:hover {
  transform: scale(1.05);
  background: #1d3557;
}

/* === FORMULARIOS === */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"],
input[type="number"],
input[type="password"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #457b9d;
  box-shadow: 0 0 5px rgba(69, 123, 157, 0.5);
}

.back-btn {
  display: inline-block;
  margin-top: 10px;
  color: #555;
  font-size: 14px;
}

/* === LISTAS === */
ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

li {
  background: #f8f8f8;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card .description {
  font-size: 0.9rem;
  font-weight: 400;
  color: #0a0808;
  margin-bottom: 8px;
}

/* === MODAL DE COMPRA === */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 5px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
}

.close:hover {
  color: #e63946;
}

#ticketNumbersContainer input {
  margin-bottom: 5px;
  margin-right: 5px;
  padding: 7px;
  width: 20%;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {

  .container,
  .main-container,
  .modal-content {
    width: 95%;
    padding: 15px;
  }
}