body {
font-family: 'Segoe UI', Tahoma, sans-serif;
background-color: #f4f6f8;
color: #333;
margin: 0;
padding: 0;
text-align: center;
}

.banner-container {
width: 100%;
background-color: #eef2f6;
border-bottom: 2px solid #ccc;
}
.banner-img {
width: 200px;
margin: 20px auto;
display: block;
}

.intro-section {
margin: 20px auto;
padding: 10px;
max-width: 600px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.login-section {
margin: 25px auto;
max-width: 400px;
padding: 20px;
background-color: #fff;
border-radius: 12px;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.login-section h2 {
color: #2a5d9f;
margin-bottom: 15px;
}

.input-group {
position: relative;
margin: 15px 0;
}

input[type="text"],
input[type="password"],
input[type="email"] {
width: 85%;
padding: 10px 35px 10px 10px;
font-size: 1em;
border: 1px solid #ccc;
border-radius: 8px;
outline: none;
transition: border 0.2s;
}

input:focus {
border-color: #2a5d9f;
}

.toggle-password {
position: absolute;
right: 40px;
top: 7px;
background: none;
border: none;
cursor: pointer;
color: #666;
font-size: 1.1em;
}

.password-wrapper button.toggle-password {
  position: absolute;
  right: 10px;
  top: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}
.button-group button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #4285f4;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
.button-group button:hover {
  background: #3367d6;
}

.hint {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

footer {
margin-top: 30px;
background-color: #e9eef3;
padding: 10px;
font-size: 0.9em;
border-top: 1px solid #ccc;
}

/* Popup */
.popup {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 30, 30, 0.95); /* Fondo oscuro casi opaco */
  color: #f1f1f1; /* Texto claro para contraste */
  padding: 25px 30px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  text-align: center;
  z-index: 999;
  min-width: 320px;
  backdrop-filter: blur(6px); /* efecto vidrio suave */
}

/* Ocultar */
.popup.hidden {
  display: none;
}

/* Botón */
.popup button {
  margin-top: 15px;
  background: #007bff; /* Azul fuerte */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.popup button:hover {
  background: #0056b3; /* Azul más oscuro al pasar */
  transform: scale(1.05);
}

.login-container {
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  padding: 20px;
}

.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}
.tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  font-weight: bold;
  transition: background 0.3s;
}
.tab.active {
  background: #4285f4;
  color: white;
}
.card {
  background: white;
  border-radius: 0 0 12px 12px;
  padding: 20px;
}

/* ====== MANTENIMIENTO ====== */

.mantenimiento-card {
  text-align: center;
  background: #f9fbff;
  border: 1px solid #d3e3f4;
  box-shadow: 0 4px 10px rgba(0, 60, 130, 0.1);
}

.mantenimiento-card h2 {
  color: #2a5d9f;
  margin-bottom: 0.5em;
}

.mantenimiento-card p {
  color: #444;
  font-size: 1rem;
  line-height: 1.5;
}

.mantenimiento-card .aviso {
  color: #666;
  font-style: italic;
}

.mantenimiento-btn {
  background-color: #2a5d9f;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  margin: 5px;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.mantenimiento-btn:hover {
  background-color: #204b83;
}

.mantenimiento-btn.secundario {
  background-color: transparent;
  border: 1px solid #2a5d9f;
  color: #2a5d9f;
}

.mantenimiento-btn.secundario:hover {
  background-color: #e8f0ff;
}

/* ==== Loader genérico para botones ==== */
.btn-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;         /* color del borde */
  border-top: 2px solid transparent; /* hace el efecto circular */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* Animación de giro */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}