* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  padding-top: 60px !important;
}

.navbar-nav .nav-link.active {
  font-weight: 900 !important;
  font-size: 1.3rem !important;
  color: #005d51 !important;
}

h2 {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #0c1325;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0c1325;
}

body {
  padding-top: 80px;
}

.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background-color: rgba(249, 249, 249, 0.56) !important;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #e1e1e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0.3rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  width: 100%;
}

.navbar-brand img {
  width: 180px;
  object-fit: contain;
}

.navbar-nav .nav-link {
  color: #505050;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.3rem 0.8rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #005d51;
  text-decoration: none;
}

.dropdown-menu {
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: rgba(249, 249, 249, 0.678) !important;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #ddd;
}

.dropdown-item {
  color: #0c1325;
  padding: 0.5rem 1.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #005d51;
  color: white;
  text-decoration: none;
}

.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-nav {
  margin-left: 0 !important;
}

.idioma-dropdown {
  margin-left: auto;
}

.idioma-dropdown button {
  padding: 0;
  width: 50px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idioma-dropdown .dropdown-menu {
  min-width: 50px !important;
  width: 40px;
  padding: 0;
  text-align: center;
}

.idioma-dropdown .dropdown-item {
  padding: 4px;
  display: flex;
  justify-content: center;
}

.idioma-dropdown .dropdown-menu {
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


@media (max-width: 991px) {
  .idioma-dropdown {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 1rem;
    margin-top: 0.5rem;
  }

  .idioma-dropdown .dropdown-menu {
    text-align: right;
  }
}


.footerindex {
  color: white;
  padding: 10px 0;
  text-align: center;
  position: absolute;
  bottom: 0;
  width: 100%;
}

footer {
  background-color: #005d51;
  color: white;
  padding: 10px 0;
  text-align: center;
  width: 100%;
  z-index: 10;
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

footer .footer-content p {
  margin-bottom: 10px;
  font-size: 1rem;
}

footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

footer .social-icons a {
  text-decoration: none;
}

footer .social-icons img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

footer .social-icons img:hover {
  transform: scale(1.1);
}

.fila-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-texto {
  margin: 0;
  font-size: 0.9rem;
}


#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

#visor-pdf {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 80vh;
  background-color: #fff;
  border-radius: 12px;
  border: 3px solid #ccc;
  z-index: 9999;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

#iframe-pdf {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
}

#cerrar-visor {
  padding: 10px 20px;
  width: auto;
  margin: 16px auto 0 auto;
  border: none;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

#cerrar-visor:hover {
  background-color: #0056b3;
}

@media (max-width: 1024px) {
  #visor-pdf {
    width: 95vw;
    height: 85vh;
    padding: 12px;
    border-radius: 10px;
  }
}

@media (max-width: 600px) {
  #visor-pdf {
    width: 98vw;
    height: 90vh;
    padding: 10px;
    border-radius: 8px;
  }

  #cerrar-visor {
    font-size: 14px;
    padding: 8px 16px;
  }
}


/* ANIMACIONES */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-40px); }
  100% { opacity: 1; transform: translateY(0); }
}
