* {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Esto evita scroll si no lo necesitas */
  background: url(images/ImagenFondoInicioSesion.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


.contenido {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-size: cover;
  padding-top: 0px; /* Para que el header no se monte encima */
}



/* Contenedor del header */
.header {
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  left: 0;
  z-index: 100;
  background: transparent;
  height: 100px; /* Puedes ajustar según el alto del logo */
  position: relative;
  z-index: 10;
}

/* Logo */
.logo img {
  height: 68px; /* Ajusta según lo necesario */
  object-fit: contain;
  display: block;

}

.logo {
  display: flex;
  align-items: center;
}

/* Menú */
.navegacion {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navegacion a,
.navegacion .btn {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

/* Subrayado animado */
.navegacion a {
  position: relative;
}

.navegacion a::after {
  content: "";
  position: absolute;
  width: 100%;
  bottom: -6px;
  left: 0;
  height: 2px;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s;
}

.navegacion a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Botón */
.navegacion .btn {
  width: 130px;
  height: 45px;
  background: transparent;
  border: 2px solid #fff;
  cursor: pointer;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  margin-left: 40px;
  transition: 0.3s ease;
}

.navegacion .btn:hover {
  background-color: #fff;
  color: #090f1d;
}


/* Toggle Button */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

/* Responsive */
@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .navegacion {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgb(0, 0, 0);
    width: 60%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    display: none;
  }

  .navegacion.active {
    display: flex;
  }

  .navegacion a,
  .navegacion .btn {
    width: 90%;
    text-align: center;
  }

  .navegacion .btn {
    margin-left: 0;
  }

  .fondo {
    width: 90%;

  }
}

@media (max-width: 450px) {
  .navegacion {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgb(0, 0, 0);
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    display: none;
  }


    
}




.fondo {
    position: fixed;
    margin-top: -180px;
    transform: scale(0);
    width: 400px;
    height: 450px;
    max-width: 100%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform .5s ease height .2 ease;
}

.fondo.active-btn {
    transform: scale(1);
}

.fondo.active {
    height: 480px;
}


.fondo .contenedor-form {
    width: 100%;
    padding: 40px;
}

.fondo .contenedor-form.login {
    transition: .17s ease; 
    transform: translateX(0);
}

.fondo.active .contenedor-form.login {
    transition: none;
    transform: translateX(-400px);
}

.fondo.active .contenedor-form.registrar {
    transition: transform .17s ease;
    transform: translateX(0);
    margin-top: 15px;
}

.fondo .contenedor-form.registrar {
    position: absolute;
    transition: none;
    transform: translateY(500px);
    margin-top: 100px;


}

.icono-candado {
    cursor: pointer;
    z-index: 1000;
}

.fondo .icono-cerrar {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background-color: #090f1d;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 20px;
    cursor: pointer;
    z-index: 1;
    font-size: 1.8em;
    color: #F1EFEF;
}

.contenedor-form h2 {
    font-size: 2em;
    color: #F1EFEF;
    text-align: center;
}


.contenedor-input {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid #F1EFEF;
    margin: 30px 0;
}

.contenedor-input label {
    position: absolute;
    top: 50%; /* Posición inicial del label en el centro */
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    font-weight: 600;
    pointer-events: none;
    transition: .4s;
    color: #F1EFEF;
}

.contenedor-input input:focus ~ label,
.contenedor-input input:not(:placeholder-shown) ~ label {
    top: -6px; /* Eleva el label cuando el input tiene texto o está en foco */
    color: #F1EFEF; /* Cambia el color del label si es necesario */
}

.contenedor-input input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;

    font-family: "Roboto", sans-serif;
    font-weight: 400;
    color: #F1EFEF;
    padding: 0 35px 0 5px;
}

.contenedor-input .icono {
    position: absolute;
    right: 8px;
    font-size: 1.4em;
    color: #F1EFEF;
    line-height: 57px;
}

.recordar {
    font-size: .9em;
    margin: -15px 0 15px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.recordar label input {
    accent-color: #090f1d;
    margin-right: 3px;
}

.recordar label {
    color: #F1EFEF;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

.recordar a {
    color: #F1EFEF;

    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

.recordar a:hover {
    text-decoration: underline;
    color: aqua;
}

.btn {
    width: 100%;
    height: 45px;
    border: none;
    outline: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    background-color: #090f1d;
    color: #F1EFEF;
}

.google-btn {
    background-color: #000000; /* Color de fondo de Google */
    color: white; /* Color del texto */
    border: none; /* Sin borde */
    padding: 10px; /* Espaciado interno */
    width: 100%; /* Ancho completo */
    cursor: pointer; /* Cambia el cursor al pasar sobre el botón */
    font-size: 1em; /* Tamaño de la fuente */
    border-radius: 5px; /* Bordes redondeados */
    margin-top: 10px; /* Espaciado arriba */
    display: flex; /* Flexbox para alinear el icono y el texto */
    align-items: center; /* Alinea verticalmente */
    justify-content: center; /* Centra el contenido */
    transition: background-color 0.3s; /* Transición suave al pasar el mouse */
}

.google-btn:hover {
    background-color: #357AE8; /* Color de fondo al pasar el mouse */
}

.google-icon {
    width: 20px; /* Ancho del icono */
    height: 20px; /* Alto del icono */
    margin-right: 10px; /* Espaciado a la derecha del icono */
}



.registrar {
    font-size: 1em;
    color: #F1EFEF;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    text-align: center;
    margin: 25px 0 10px;
}

.registrar p a {
    color: #F1EFEF;
    text-decoration: none;
}

.registrar p a:hover {
    text-decoration: underline;
}



/* Estilos del mensaje */
.mensaje {
    position: fixed;
    top: 0;
    left: 50%;

    background-color: #f0f0f0;
    color: #333;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    display: none; /* Inicialmente oculto */
    z-index: 1000;
    opacity: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, top 0.3s ease;
}



/* Animación para hacer visible el mensaje */
.mensaje.show {
    display: block; /* Muestra el mensaje */
    opacity: 1;     /* Hace el mensaje visible */
    top: 20px;      /* Lo coloca ligeramente en la parte superior */
}


#mensaje {
  position: fixed;
  transform: translateX(-50%);
  top: 0;
  left: 50%;
  z-index: 1000;
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, top 0.3s ease;
  max-width: 500px;
}

#mensajeTexto {
  margin: 0;
  display: inline-block;
}

#mensajeIcono {
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 10px;
  vertical-align: middle;
}


.alerta {
  margin-top: 10px;
  background-color: rgba(255, 80, 0, 0.9);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}


.modal-recuperar {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.modal-contenido h2{
    padding-bottom: 30px;
}

.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.cerrar-modal:hover {
  font-size: 28px;
  color: #1de9b6;
}

#formRecuperar input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid gainsboro;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #000;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}

#formRecuperar input[type="email"]::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

#formRecuperar input[type="email"]:focus {
  box-shadow: 0 0 0 2px #00bcd4 inset;
}

#formRecuperar button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00bcd4, #1de9b6);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.2s ease;
}

#formRecuperar button:hover {
  background: linear-gradient(135deg, #1de9b6, #00bcd4);
  transform: scale(1.02);
}
