body,
html {
  background-color: #829db3;
  margin: 0;
  height: 0;
  scroll-behavior: initial;
}

/*Header*/

.header {
  position: relative;
  height: 100px;
  overflow: hidden;
  width: 100%;
  border-bottom: solid 2px #404040;
  background-color: rgba(11, 48, 76, 0.6);

}

.header video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
}

.logo,
nav {
  position: relative;
  z-index: 1;
}

.logo {
  position: absolute;
  top: 1px;
  left: 20px;
  z-index: 1;
}

.log img {
  width: 100px;
  transition: transform 0.3s ease;
}


:root {
  background: rgb(15, 23, 42)
}



/*  Navagacion  */
nav {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  transition: transform 0.2s ease;
}

.nav-links li:hover {
  transform: scale(1.1);
}

.nav-links a {
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #aad8ff;
  /* Azul claro al pasar el mouse */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  background: linear-gradient(to bottom, var(--blue-light), #caf0f8);
  color: var(--blue-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

.footer {
    background: rgba(11, 48, 76, 0.7);
    color: #ffffff84;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.main-autores { /* Contenedor principal */
  padding: 120px 40px 80px;
  background-color: #203855;
  min-height: 100vh;
}

.indice { /* Estilos para el índice de autores */
  background-color: #d2e5f5;
  padding: 20px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px #ccc;
}

.indice h2 {
  margin-bottom: 10px;
  color: #0b304c;
}

.indice ul {
  list-style: none;
  padding-left: 0;
}

.indice li {
  margin: 10px 0;
}

.indice a {
  text-decoration: none;
  color: #0b304c;
  font-weight: bold;
  transition: color 0.3s ease;
}

.indice a:hover {
  color: #47a6e3;
}

.autor:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px 5px rgba(74, 144, 226, 0.7);
  background-color: #ffffffdd;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  z-index: 10;
  position: relative;
}

/* Autores */
.autor {
  margin-bottom: 60px;
  padding: 20px;
  background-color: #ffffff85;
  border-left: 5px solid #0b304c;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.indice.opaco {
  opacity: 0.4;
  transition: opacity 0.3s ease;
  }

.autor h3 {
  color: #0b304c;
  margin-bottom: 10px;
  font-size: 40px;
}

.autor img {
  width: 300px;
  height: 300px;
  float: right;
  margin-left: 20px;
  margin-top: -100px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.autor p,
.autor ul {
  font-size: 20px;
  line-height: 1.6;
}

.autor ul {
  list-style: disc;
  padding-left: 20px;
}

/* Pagina Responsive */
@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 15px;
  }

  .main-autores {
    padding: 120px 20px 80px;
  }

  .autor img {
    float: none;
    display: block;
    margin: 20px auto;
    width: 300px;
    height: 500px;
  }
}


.autor {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.autor.visible {
  opacity: 1;
  transform: translateY(0);
}

