* {
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: url('img/fondo.jpg') no-repeat center top;
  background-size: cover;
  display: flex;
  justify-content: center; /* horizontal centrado */
  align-items: flex-start; /* arriba */
  min-height: 100vh;
  margin: 0;
  padding: 30px;
}

.container {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 640px;  /* ancho más razonable */
  max-width: 90%;
  text-align: center;
  margin-top: 20px;
}

.titulo-imagen {
  text-align: center;
  margin-bottom: 0px;
}

.titulo-imagen img {
  max-width: 80%;  /* tamaño de la imagen */
  height: auto;
  display: block;
  margin: 0 auto 5px auto;
}

.titulo-imagen h1 {
  margin: 0;
  padding: 0;
  font-size: 1.8em;
  color: #004080;
}

h2 {
  margin-bottom: 0px;
  color: #004080;
}

form label {
  display: block;
  text-align: left;
  margin-top: 10px;
  font-weight: bold;
  color: #003366;
}

form input,
form select,
form button {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  background-color: #0077cc;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  border: none;
}

form button:hover {
  background-color: #005fa3;
}

.escenario {
  margin: 20px auto 10px auto;
  padding: 10px;
  background-color: #003366;
  color: white;
  border-radius: 6px;
  width: 100%;
}

.butacas-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 6px;
  justify-items: center;
  margin-top: 10px;
}

.butaca {
  width: 28px;
  height: 28px;
  background-color: #66aaff;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  line-height: 28px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.butaca.separador {
  visibility: hidden;
}

.butaca.seleccionada {
  background-color: #004080;
}

.butaca.ocupada {
  background-color: #cc3333; /* Rojo para butaca ocupada */
  cursor: not-allowed;
}

.hidden {
  display: none;
}

#loading {
  font-weight: bold;
  color: #004080;
  margin-top: 20px;
}

.dots::after {
  content: "";
  display: inline-block;
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0% { content: ""; }
  33% { content: "."; }
  66% { content: ".."; }
  100% { content: "..."; }
}

#mensajeExito a {
  display: block;
  margin-top: 10px;
  color: #0077cc;
  text-decoration: underline;
  cursor: pointer;
}

/* 📱 Ajustes para pantallas chicas */
@media (max-width: 600px) {
  body {
    padding: 15px;
    align-items: flex-start;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    box-shadow: none; /* opcional: simplifica en móvil */
    margin-top: 10px;
  }

  .titulo-imagen img {
    max-width: 100%;
  }

  .titulo-imagen h1 {
    font-size: 1.4em;
  }
  
  .butacas-grid {
    grid-template-columns: repeat(8, 1fr); /* menos columnas en pantallas chicas */
    gap: 4px;
  }

  .butaca {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 10px;
  }
}

.info-eventos {
  background-color: #f7f9fc;
  border-radius: 12px;
  padding: 15px;
  margin-top: 10px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #003366;
  font-family: Arial, sans-serif;
  font-size: 0.9em; /* texto un poco más pequeño */
}

.info-eventos .evento {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dde4ec;
}

.info-eventos .fecha {
  font-weight: bold;
  font-size: 1em;
  margin: 0;
  color: #004080;
}

.info-eventos .lugar {
  margin: 0;  /* sin espacio entre fecha y lugar */
  font-size: 0.9em;
  color: #333;
}

.info-eventos .entradas {
  margin-top: 12px;
}

.info-eventos .entradas h3 {
  margin: 0 0 5px 0;
  font-size: 1em;
  color: #004080;
}

.info-eventos .entradas p {
  margin: 2px 0;
  font-size: 0.9em;
}
/*DEL INDEX NUEVO*/

.inicio-body {
  font-family: Arial, sans-serif;
  background: url('img/fondo.jpg') no-repeat center top;
  background-size: cover;

  display: flex;
  flex-direction: column; /* apilar elementos verticalmente */
  justify-content: flex-start; /* que queden arriba */
  align-items: center; /* centrar horizontalmente */
  min-height: 100vh;
  margin: 0;
  padding: 30px 15px 0 15px; /* espacio arriba */
}

.home-logo {
  max-width: 30%; /* tamaño del logo */
  width: 200%;
  height: auto;
  margin-bottom: 20px; /* separación con el contenedor */
}


.inicio-container {
    
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.titulo-imagen{
    max-width:100%;
    height: auto;
    margin-top: 20px;
}

.inicio-logo {
  max-width: 80%;
  height: auto;
  margin-bottom: 10px;
}

.inicio-container h1 {
  color: #004080;
  margin: 10px 0;
}

.inicio-container p {
  font-size: 1em;
  color: #333;
  margin-bottom: 20px;
}

.btn-ingresar {
  background-color: #0077cc;
  color: white;
  padding: 12px 20px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-ingresar:hover {
  background-color: #005fa3;
}

/* 📱 Mobile */
@media (max-width: 600px) {
  .inicio-container {
    margin: 15px;
    padding: 20px;
  }

  .inicio-logo {
    max-width: 100%;
  }

  .btn-ingresar {
    width: 100%;
  }
}

.formas-pago p {
  margin: 5px 0;
  line-height: 1.4;
}
  .Inicio-afiche{
  max-width: 100%;   /* nunca más ancha que la pantalla */
  height: auto;      /* mantiene proporción */
  display: block;
  margin: 0 auto 20px auto;  /* centrada y con margen inferior */
  border-radius: 12px;       /* opcional, para estética */
}
/* Ajuste mobile para selección de butacas */
@media (max-width: 600px) {
  .butacas-grid {
    display: grid;
    grid-template-columns: repeat(13, minmax(28px, 1fr));
    gap: 4px;
    justify-items: center;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .butacas-grid::-webkit-scrollbar {
    height: 6px;
  }

  .butacas-grid::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.3);
    border-radius: 3px;
  }

  .butaca {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 10px;
  }

}
.info-eventos .evento p {
  text-align: justify;
  line-height: 1.4;
  margin-bottom: 0.5em;
}

@media (max-width: 600px) {
  .info-eventos .evento p {
    font-size: 0.95em;
  }
}

.compracentrado {
  text-align: center;
  margin-top: 1rem;
  font-size: 2rem;
}