/* Oculta el modal por defecto */
.modal {
  font-family: "Kalnia", serif;
  display: none;
  position: fixed;
  z-index: 9999; /* Encima de todo */
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
  background-color: rgba(0, 0, 0, 0.4);
}

/* Muestra el modal solo cuando activas display: flex */
.modal-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: white;
  padding: 2.5rem 3.5rem 0 3.5rem;
  border-radius: 1px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  align-items: center;
  position: relative;
}

.modal-content input {
  width: 95%;
  margin: 1rem 0;
  padding: 0.5rem 0;
  border: 1px solid rgb(187, 187, 187);
}

.modal-content p {
  font-size: 1.5rem;
}

.closeBtn {
  background: transparent;
  border: none;
  position: absolute;
  top: 16px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

.login-btn {
  width: 95%;
  padding: 0.8rem;
  margin-top: 1rem;
  background: linear-gradient(to right, #1c1c1c, #4d4d4d);
  color: white;
  border: none;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.divider {
  padding: 1.5rem 0;
}

.social-login {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.social-login a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
  white-space: nowrap; /* evita que se corte */
}

.vertical-line {
  width: 1px;
  height: 45px;
  background-color: #818181;
  opacity: 0.6;
}

.providers {
  display: flex;
  gap: 1rem;
}

.providers img {
  object-fit: contain;
  cursor: pointer;
}

.brand {
  padding: 1.5rem;
}

.logoMagnoModal {
  width: 20%;
}

/* Button Google */
.button_google {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* CSS para la vista de Información del Usuario */
.modal-info-user {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: white;
  padding: 2.5rem 3.5rem 0 3.5rem;
  border-radius: 1px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  align-items: center;
  position: relative;
}

.modal-info-user input {
  width: 95%;
  margin: 0.5rem;
  padding: 0.5rem;
  border: 1px solid rgb(187, 187, 187);
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* Button Logout */
.logout {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Pantallas medianas: tablets (≤1024px) */
@media (max-width: 1024px) {
  .modal-content {
    max-width: 55%;
  }
  .modal-info-user {
    max-width: 70%;
  }
}

/* Pantallas pequeñas: móviles (≤768px) */
@media (max-width: 768px) {
  .modal-content {
    max-width: 80%;
    padding: 2.5rem 1.5rem 0rem 1.5rem;
  }
  .modal-info-user {
    max-width: 90%;
  }
}
