*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: radial-gradient(circle at top, #1a1a1a, #0e0e0e);
  color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.hidden {
  display: none !important;
}

/* =========================
   CONTENEDOR
========================= */
section {
  width: 90%;
  max-width: 420px;
  margin: 16px;
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.7);
  text-align: center;
}

/* =========================
   TITULOS
========================= */
h2 {
  margin-bottom: 20px;
  color: #6feaff;
  letter-spacing: 0.5px;
}

.estado-sistema {
  margin: 6px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(111, 234, 255, 0.35);
  background: rgba(111, 234, 255, 0.08);
  color: #bff7ff;
  font-size: 14px;
}

/* =========================
   INPUT
========================= */
input[type="text"] {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid rgba(111, 234, 255, 0.35);
  background: rgba(20, 20, 20, 0.6);
  color: #f0f0f0;
  font-size: 15px;
  outline: none;
}

input[type="text"]:focus {
  border-color: #6feaff;
  box-shadow: 0 0 10px rgba(111, 234, 255, 0.6);
}

/* =========================
   BOTONES VIDRIO
========================= */
button {
  width: 100%;
  padding: 14px 20px;
  margin-top: 12px;
  border-radius: 999px; /* forma ficha */
  border: 1px solid rgba(111, 234, 255, 0.8);
  background: linear-gradient(
    145deg,
    rgba(111, 234, 255, 0.25),
    rgba(0, 188, 212, 0.15)
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #e9feff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow:
    0 0 12px rgba(111, 234, 255, 0.45),
    0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Hover */
button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 18px rgba(111, 234, 255, 0.9),
    0 12px 28px rgba(0, 0, 0, 0.8);
}

/* Active (click) */
button:active {
  transform: scale(0.97);
  box-shadow:
    0 0 8px rgba(111, 234, 255, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.7);
}

/* =========================
   BOTONES ENTRADA / SALIDA
========================= */
.btn-entrada {
  border-color: #4caf50;
  background: linear-gradient(
    145deg,
    rgba(76, 175, 80, 0.35),
    rgba(76, 175, 80, 0.15)
  );
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
}

.btn-salida {
  border-color: #ff5252;
  background: linear-gradient(
    145deg,
    rgba(255, 82, 82, 0.35),
    rgba(255, 82, 82, 0.15)
  );
  box-shadow: 0 0 12px rgba(255, 82, 82, 0.6);
}

/* =========================
   TEXTO / DEBUG
========================= */
pre {
  margin-top: 15px;
  font-size: 13px;
  color: #9befff;
  white-space: pre-wrap;
}
@media (max-width: 480px) {
  section {
    padding: 22px 18px;
    border-radius: 14px;
  }

  h2 {
    font-size: 1.2rem;
  }

  button {
    padding: 13px 16px;
    font-size: 14px;
  }
}
