.imagen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background-image:
    linear-gradient(to bottom, rgba(19, 38, 202, 0.884), rgba(218, 25, 89, 0.5)),
    url("../img/fondo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.5;
  z-index: -1;
}

/*Contenedor centrado*/
.contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: #701010;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}
.logo {
  width: 100px;
  margin-bottom: 0.5px;
}
/*Títulos*/
h2 {
  margin: 5px 0;
  color: #000000;
  font-size: 22px;
}
p {
  margin: 5px 0 15px;
  color: #000000;
}
.botones {
  display: flex;
  background: #f1f1f1;
  border-radius: 50px;
  padding: 5px;
  margin-bottom: 20px;
  font-size: 22px;
}
.botones button {
  border: none;
  background: transparent;
  padding: 10px 30px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  color: #000000;
  transition: all 0.3s ease;
}
.botones .activo {
  background: white;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.card {
  background: rgba(255, 255, 255, 0.9);
  padding: 25px 40px;
  border-radius: 10px;
  border: 1px solid #000000;
  width: 320px;
  text-align: left;
  font-size: 18px;
}
.card h3 {
  margin-bottom: 5px;
  color: #000000;
}
.card p {
  font-size: 14px;
  color: #000000;
  margin-bottom: 15px;

}
/*Campos*/
.card input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 6px;
  background: #D9D9D9;
}

.olvide {
  font-size: 13px;
  color: #2323be;
  text-decoration: none;
  
}

.login {
  width: 100%;
  background: black;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.3s;
}

/*ALERTA PERSONALIZADA*/
.alerta {
  position: fixed;
  top: 250px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px 25px;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s ease forwards;
}

.alerta-contenido {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alerta.exito {
  background: linear-gradient(90deg, #6adbc5, #466d59);
}

.alerta.error {
  background: linear-gradient(90deg, #e79caa, #991c1c);
}

.alerta.info {
  background: linear-gradient(90deg, #98a2d6, #74b9ff);
}

@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

