body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #000;
  color: #ffffff;
  overflow: hidden;
  height: 100vh;
}

/* Fondo */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.7;
  z-index: -1;
  filter: brightness(0.8);
}

/* Contenedor */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Elementos */
.logo {
  width: 200px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.triangle {
  width: 100px;
  margin-bottom: .5rem;
  opacity: 0.9;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

input {
  width: 100%;
  max-width: 300px;
  padding: 1rem 1.5rem;
  margin: 0.8rem 0;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Botones */
button {
  background: none;
  border: none;
  cursor: pointer;
  margin: 1.5rem 0;
  padding: 0;
  font-size: 150px; /* tamaño de imagen */
  transition: transform 0.3s ease;
}

button img {
  width: 50px;
  height: auto;
  transition: all 0.3s ease;
}

/* Efectos hover/focus */
button:hover, button:focus {
  transform: scale(1.05);
}

/* Navegación con control */
.focusable {
  transition: all 0.3s ease;
}

.focusable.focused {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

input.focused {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

button.focused {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
  transform: scale(1.1);
}

/* Botón QR / Suscripción */
.qr-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  margin: 0.5rem 0;
  margin-right: 0px;
  width: auto;
  max-width: 500px;
}

.btnText { font-size: 30px; }

.btnText2 { font-size: 20px; }

.qr-login-btn img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.qr-login-btn span {
  color: white;
  font-size: 1rem;
}

.qr-login-btn.focused {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Spinner */
.spinner, .spinner-small {
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 0.8s linear infinite;
}
.spinner-small { width: 22px; height: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Popup de Salida (Exit) ===== */
.exit-overlay {
  position: fixed;
  inset: 0;
  display: none;             /* visible = flex */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.7);
  z-index: 99999;
}

.exit-dialog {
  background: rgba(20,20,20,.95);
  border: 2px solid #fff;
  border-radius: 16px;
  padding: 24px 28px;
  width: 70%;
  max-width: 720px;
  text-align: center;
}

.exit-title {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.exit-actions {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.exit-btn {
  background: rgba(255,255,255,0.1);
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 1.4rem;
  color: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}

.exit-btn.focused {
  transform: scale(1.08);
  outline: 4px solid #FFD700;
  box-shadow: 0 0 15px #FFD700;
}

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 1.5rem; }
  .logo { width: 180px; margin-bottom: 1.5rem; }
  .triangle { width: 90px; }
  h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
  input { padding: 0.8rem 1.2rem; max-width: 350px; }
  button img { width: 180px; }
}

@media (max-width: 480px) {
  .background { background-attachment: scroll; }
  .container { padding: 1rem; }
  .logo { width: 150px; }
  input { max-width: 300px; font-size: 0.9rem; }
  button img { width: 100px; }
}

/* === Borde amarillo para el botón de Login === */
#loginBtn {
  border: 3px solid #FFD700;     /* borde amarillo siempre visible */
  border-radius: 16px;
  padding: 8px;                   /* espacio para que se vea el borde alrededor de la imagen */
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Redondeo visual consistente con el borde */
#loginBtn img {
  display: block;
  border-radius: 12px;
}

/* Realce al enfocarse (teclado/remote) o hover */
#loginBtn:hover,
#loginBtn:focus,
#loginBtn.focused {               /* tu JS aplica .focused al navegar con flechas */
  outline: none;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.9);
  transform: scale(1.1);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

