/* ============================================================
   🧱 style_gui.css — GUI vertical 480x800 (Nextion)
   Versión 1.1 — demolocker.pro
   ------------------------------------------------------------
   • Diseño vertical sobrio y táctil
   • Colores por flujo: Amarillo (depósito) / Azul (retiro)
   • Tipografía limpia / espaciado ergonómico
   ============================================================ */

/* --- BASE GLOBAL --- */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1b0f2f 0%, #100820 100%);
  color: #fff;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  overflow: hidden;
}

/* --- CONTENEDOR PRINCIPAL --- */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

/* --- SUBTEXTO DISCRETO --- */
.subtext {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 140px; /* Separación con los botones */
  user-select: none;
}

/* --- BOTONERA --- */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 60px; /* Espacio táctil amplio */
  width: 100%;
  max-width: 320px;
}

/* --- BOTONES BASE --- */
button {
  width: 100%;
  padding: 26px;
  border: none;
  border-radius: 18px;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:active {
  transform: translateY(3px);
  box-shadow: none;
}

/* --- VARIANTES DE COLOR --- */
.btn-yellow {
  background: linear-gradient(180deg, #ffd84d 0%, #ffb300 100%);
  color: #222;
  box-shadow: 0 8px 0 #b37b00;
}

.btn-blue {
  background: linear-gradient(180deg, #0098ff 0%, #0059ff 100%);
  color: #fff;
  box-shadow: 0 8px 0 #003fb3;
}

/* --- EFECTO DE ENTRADA --- */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   🧮 Keypad — Layout vertical (800x480)
   ============================================================ */

.code-display {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px 40px;
  font-size: 2rem;
  letter-spacing: 12px;
  margin-bottom: 40px;
  user-select: none;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 40px;
}

.key {
  padding: 20px;
  font-size: 1.5rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd84d 0%, #ffb300 100%);
  color: #222;
  box-shadow: 0 5px 0 #b37b00;
}

.key:active {
  transform: translateY(2px);
  box-shadow: none;
}

.key.special {
  background: linear-gradient(180deg, #00c6a7 0%, #009e8b 100%);
  color: #fff;
  box-shadow: 0 5px 0 #006b5e;
}

.key.ok {
  background: linear-gradient(180deg, #0098ff 0%, #0059ff 100%);
  color: #fff;
  box-shadow: 0 5px 0 #003fb3;
}

.mensaje {
  color: #fff;
  opacity: 0.7;
  margin-top: 10px;
  font-size: 1rem;
  min-height: 24px;
}
/* Ajuste de posición superior */
.code-display {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 18px 40px;
  font-size: 2.2rem;
  letter-spacing: 10px;
  margin-bottom: 25px; /* antes 40px */
  user-select: none;
}
/* ============================================================
   🎯 Ajustes visuales finales — keypad_dep.html
   ============================================================ */

.btn-back {
  position: absolute;
  top: 28px;
  left: 28px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 50%;
  font-size: 1.6rem;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* Flecha centrada visualmente */
.arrow-back {
  font-weight: 300;
  font-size: 1.8rem;
  position: relative;
  left: -2px;
  top: -1px;
}

.titulo-flujo {
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffd84d;
  margin-top: 95px;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(255, 220, 100, 0.3);
}

.subtext.small {
  font-size: 1rem; /* más discreto */
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

/* ============================================================
   🔵 Ajustes visuales — flujo RETIRAR
   ============================================================ */

.titulo-flujo.azul {
  color: #00a8ff;
  text-shadow: 0 0 8px rgba(0, 168, 255, 0.4);
}

.btn-blue {
  background: linear-gradient(180deg, #00a8ff 0%, #0059ff 100%);
  color: #fff;
  box-shadow: 0 8px 0 #003fb3;
}

/* ============================================================
   🚪 DOOR OPEN — flujo Depositar
   ============================================================ */

.icon-area {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 180px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.icon-door {
  font-size: 6rem;
  animation: door-open 1.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(255, 210, 50, 0.6));
}

@keyframes door-open {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(-25deg); }
}

.mensaje-principal {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.5em;
}
/* ============================================================
   🟡 DOOR OPEN — flujo DEPOSITAR (versión final minimal)
   ============================================================ */

.estado {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
}

.taquilla-numero {
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffd84d;
  margin: 15px 0 40px;
  text-shadow: 0 0 10px rgba(255, 220, 80, 0.4);
}

.mensaje-advertencia {
  color: #ffcc00;
  font-weight: 600;
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 60px;
}

/* 🔘 Botón de simulación ultra discreto */
.btn-simular {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.btn-simular:hover {
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.8;
}

/* ============================================================
   🔵 DOOR OPEN — flujo RETIRAR
   ============================================================ */

.azul {
  color: #00a8ff;
}

.azul-text {
  color: #00a8ff;
}

.azul-text::before {
  content: "⚠️ ";
}
