/* styles.css - versión responsive */

/* Reset y Box-Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body y contenedor principal */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, #4c5a60, #f2f3f4);
  min-height: 100vh;
  line-height: 1.4;
}

#app {
  width: 90%;           /* ocupa 90% del ancho en móvil */
  /*max-width: 600px;     /* ancho máximo en pantallas grandes */
  margin: 20px auto;    /* centra y separa del top/bottom */
  padding: 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#app:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Imagen de inicio */
.inicio-imagen {
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}
.inicio-imagen:hover {
  transform: scale(1.05);
}

/* Encabezados y textos */
.header {
  font-size: 2em;
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}
label, select, h2 {
  font-size: 1.1em;
  color: #555;
}

/* Selects y filtros */
select {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #f0f2f5;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  appearance: none;
}
select:hover {
  background: #e0e4e8;
}
.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 20px;
}
.filter-button {
  background-color: #555;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}
.filter-button:hover {
  background-color: #2575fc;
}

/* Checkbox label */
.checkbox-label {
  display: flex;
  align-items: center;
}
.checkbox-label input[type='checkbox'] {
  margin-right: 8px;
}

/* Contenedor de Picks y navegación */
#picksContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.nav-buttons button {
  flex: 1;
  padding: 10px;
  background-color: #555;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.nav-buttons button:hover {
  background-color: #2575fc;
}

/* Detalles del billete */
#detallesContainer {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.billete-imagen {
  width: 100%;
  height: auto;
  max-width: 250px;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.valores-entry {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Vista pantalla completa */
.fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Teclado numérico */
#authContainer {
  text-align: center;
  max-width: 400px;
  margin: auto;
}

#passwordDisplay {
  font-size: 2em;
  margin: 20px 0;
  letter-spacing: 10px;
  color: #555;
  text-align: center;
}

#numPad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-content: center;
  max-width: 300px;
  margin: auto;
}

.numKey {
  width: 70px;
  height: 70px;
  border: none;
  border-radius: 50%;
  background-color: #555;
  color: #fff;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.numKey span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.numKey:hover { transform: scale(1.1); }
.numKey:active { transform: scale(0.9); }

/* Adaptación para pantallas pequeñas */

@media (min-width: 481px)  {
  .header { font-size: 1.5em; }
  select, label, button { font-size: 0.9em; }
  #app { padding: 10px; }
}

#prevPick, #nextPick {
  background-color: #555;
  color: #fff;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  display: inline-block;
}

#prevPick {
text-align: center;
margin-left: 0; /* Alineado con el inicio del select */
}

#nextPick {
text-align: center;
margin-right: 0; /* Alineado con el final del select */
}

#prevPick:hover, #nextPick:hover {
background-color: #2575fc; /* Efecto de hover */
}