@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Estilos generales */
body {
  margin: 0;
}

.navbar {
  display: flex;
  justify-content: left;
  align-items: left;
  background-color: #ed1919;
  position: fixed;
  top: 0;
  width: 100%;
  font-size: 17px;
  padding: 7px;
  z-index: 1000;
}

.nav-right ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-right ul li a {
  text-decoration: none;
  color: white;
  padding: 10px 15px;
  transition: background-color 0.3s ease;
  border-radius: 5px;
}

.nav-right ul li a:hover {
  background-color: #ffffff;
  color: #ed1919;
  border-radius: 5px;
}

/* Botón de menú hamburguesa */
.menu-toggle {
  margin-left: 10px;
  font-size: 25px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
  padding-right: 20px;
}

/* Diseño responsive para pantallas pequeñas */
@media (max-width: 750px) {
  .nav-right ul {
      flex-direction: column;
      width: 100%;
      display: none; /* Oculto por defecto */
  }

  .nav-right ul li {
      margin: 5px 10px;
      text-align: left;
      font-size: 15px;
      border: 1px solid #ccc;
      border-radius: 10px;
      margin-right: 30px;
      padding-right: 0px;
      padding-left: 0;
      width: 100%;
  }

  .nav-right ul li a{
    padding: 5px;
  }

  .menu-toggle {
      display: block; /* Mostrar el botón en pantallas pequeñas */
  }

  /* Mostrar el menú cuando está activo */
  .nav-right.active ul {
      display: flex;
  }
}

h1{
  font-size: 70px;
  color: white;
  margin-top: 100px;
}

h2{
font-size: 2em;
color: rgb(0, 0, 0);
padding: 20px;
text-align: center;
}

.section-1 p{
  font-size: 20px;
  color: white;
  margin-top: 30px;
}

.section-2 {
text-align: center;
}

.gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}

.image-holder {
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
transition: transform 0.3s ease;
}

.image-holder img {
width: 250px;
height: 300px;
object-fit: contain;
}

.image-holder:hover {
transform: scale(1.05);
border-color: #000;
}

form{
text-align: left;
}

li {
  display: inline;
  float: left;
  padding-left: 20px;
}

li a {
  display: block;
  padding: 8px;
  text-decoration: none;
  color:white;
}

li ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
}

li a:hover {
  background-color: rgb(255, 255, 255);
  border-radius: 5px;
  color: #ed1919;
}

.active {
  background-color: #ed1919;
}

/* main */

header .header{
  background-color: #fff;
  height: 45px;
}

header a img{
  width: 134px;
  margin-top: 4px;
}

.login-page {
  width: 360px;
  padding: 8% 0 0;
  margin: auto;
}

.login-page .form .login{
  margin-top: -31px;
  margin-bottom: 26px;
  font-family: 'Montserrat', sans-serif;
}


.form {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  max-width: 360px;
  margin: 0 auto 100px;
  padding: 45px;
  text-align: center;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
  border-radius: 20px;
}
.form input {
  font-family: "Roboto", sans-serif;
  outline: 0;
  background: #f2f2f2;
  width: 100%;
  border: 0;
  margin: 0 0 15px;
  padding: 15px;
  box-sizing: border-box;
  font-size: 14px;
  border-radius: 100px;
}
.form button {
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  outline: 0;
  background-color: #ed1919;
  width: 100%;
  border: 0;
  padding: 15px;
  color: #ffffff;
  font-size: 14px;
  -webkit-transition: all 0.3 ease;
  transition: all 0.3 ease;
  cursor: pointer;
  border-radius: 100px;
}
.form .message {
  margin: 15px 0 0;
  color: #b3b3b3;
  font-size: 12px;
  text-align: center;
}
.form .message a {
  color: #ed1919;
  text-decoration: none;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 0 auto;
}

.fondo {
  background-image: url('photo-fondo-biblioteca.jpg');
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;  
  height: 100%;
  background-size: cover; /* La imagen cubre toda la pantalla */
  background-repeat: no-repeat; /* Evita que la imagen se repita */
}

h3{
  color: #ffffff;
}