@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f7f9fc;
  color: #333;
}

/* HEADER */
#head {
  background-color: #1e1e1e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

/* LOGO / ENLACE PRINCIPAL */
#index {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}


/* BOTÓN DE MENÚ (MÓVIL) */
#menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  transition: transform 0.3s ease;
}

#menu-toggle:hover {
  transform: scale(1.1);
}

/* MENÚ PRINCIPAL */
#menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

/* ENLACES DEL MENÚ */
#menu li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}

#menu li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #00bcd4;
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
}

#menu li a:hover::after {
  width: 100%;
}

#menu li a:hover {
  color: #00bcd4;
}

/* SUBMENÚ */
.submenu {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #ffffff;
  display: none;
  flex-direction: column;
  list-style: none;
  padding: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  animation: fadeIn 0.3s ease-in-out;
}

.submenu:hover .dropdown {
  display: flex;
}

.dropdown li a {
  padding: 0.75rem 1.25rem;
  display: block;
  color: #333;
  white-space: nowrap;
  font-weight: 500;
  transition: background-color 0.3s;
}

.dropdown li a:hover {
  background-color:  white;
  border-radius: 8px;
}

/* ANIMACIÓN DE ENTRADA */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  #menu {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }

  #menu.show {
    display: flex;
  }

  #menu li a {
    color: #333;
    padding: 1rem;
  }

  .submenu .dropdown {
    position: static;
    box-shadow: none;
    background-color: #f9f9f9;
  }

  .submenu.active .dropdown {
    display: flex;
  }

  .submenu:hover .dropdown {
    display: none;
  }
}


body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
}

main {
  max-width: 1400px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 40px;
}

h2 {
  margin-top: 40px;
  color: #444;
  font-size: 1.2rem;
}

.pdf-container iframe {
  width: 100%;
  height: 500px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}


nav {
  position: fixed;
  top: 10%;
  background-color: #333;
  z-index: 0;
  padding: 10px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

nav li {
  margin: 5px 10px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #555;
}

main {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  margin-bottom: 40px;
  color: #222;
}

h2 {
  margin-top: 50px;
  color: #333;
}

.pdf-container iframe {
  width: 100%;
  height: 500px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 30px;
}

