body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.login-container {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block;
  margin: 0 auto;
}

button:hover {
  background-color: #0056b3;
}

.error {
  color: red;
  text-align: center;
  margin-bottom: 15px;
  min-height: 20px;
}




#banner-financiero {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  padding: 12px 0;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}
.ticker-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  display: flex;
  justify-content: center;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  padding: 0 10px;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  background: rgba(230, 244, 234, 0.2);
  color: white;
  padding: 4px 10px;
  margin: 0 6px;
  border-radius: 8px;
  font-size: 12px;
  min-width: 100px;
  border-left: 3px solid limegreen;
}
.ticker-item.down {
  background: rgba(252, 235, 234, 0.2);
  border-left-color: red;
}
.ticker-symbol {
  font-weight: bold;
  margin-right: 6px;
}
.ticker-change {
  margin-left: auto;
  font-weight: bold;
  font-size: 11px;
}
.ticker-change.up { color: lightgreen; }
.ticker-change.down { color: red; }
.updated {
  font-size: 11px;
  text-align: center;
  color: #aaa;
  margin-top: 2px;
  line-height: 1.4em;
}
.mensaje-mercado {
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  color: #ff6666;
  margin-top: 4px;
}


/* --- Banner financiero en la parte superior --- */
#banner-financiero {
  position: fixed;         /* 🔹 Fijo arriba */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  padding: 10px 0;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

/* --- Contenedor del login --- */
.login-container {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 320px;
  text-align: center;
  margin: 0 auto;
  margin-top: 140px;   /* 🔹 Deja espacio para el banner */
}

/* --- Ajuste responsivo --- */
@media (max-width: 600px) {
  .login-container {
    margin-top: 160px;
    width: 90%;
  }
}
