/* Variables Globales */
:root {
  --primary-color: #002d72;
  --secondary-color: #f39c12;
  --background-light: #ffffff;
  --background-dark: #001E62;
  --text-color-light: #ffffff;
  --text-color-dark: #2a3350;
  --transition-speed: 0.3s;
  --font-family: 'Montserrat', sans-serif;
  --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 4px 8px rgba(0, 0, 0, 0.15);
  --logo-width-default: 200px;
  --flag-width-default: 24px;
}

/* Estilos Generales */
body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: var(--background-light);
  color: var(--text-color-dark);
  overflow-x: hidden; /* Evita desplazamientos laterales */
}



/* Footer */
.footer {
    background:#ffffff !important;          /* antes: degradado azul */
  color: var(--text-color-dark);
  padding: 40px 20px;
  text-align: center;
}

.footer a {
  color: grey;
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  color: var(--text-color-light);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Secciones del Footer */
.footer-left,
.footer-partners,
.footer-right {
  flex: 1;
  min-width: 280px;
  margin-bottom: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  max-width: 250px;
  height: auto;
  margin-bottom: 1rem;
}

.project-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}



.logo-link {
  display: inline-block;
}

.project-logo,
.partner-logo {
  max-width: 110px;
  height: auto;
  background: white;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease, filter var(--transition-speed) ease;
}

.project-logo-wrapper {
  width: 110px;
  height: 70px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease, filter var(--transition-speed) ease;
}

.project-logo-svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Efectos Hover para Logos */
.project-logo:hover,
.partner-logo:hover,
.project-logo-wrapper:hover {
  transform: scale(1.1);
  opacity: 0.8;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.footer-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Footer Información y Redes Sociales */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: white;
  border-radius: 50%;
  border: 2px solid;
  text-decoration: none;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.social-link:hover {
  background-color: #002d72;
  transform: scale(1.1);
}

.social-icon,
.social-link span {
  font-size: 22px;
  color: white;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  background-color: var(--background-light);
  padding: 0 20px;
  border-bottom: 1px solid #ddd;
  transition: background-color var(--transition-speed), height var(--transition-speed);
}

.navbar.scrolled {
  background: linear-gradient(to right, #1f355e 0%, #2f4b87 25%, #002d72 55%, #001a48 100%);
  box-shadow: var(--shadow-heavy);
}

.navbar-brand {
  position: relative;
  display: flex;
  align-items: center;
  height: auto;
}

.navbar-brand img {
  width: var(--logo-width-default);
  height: auto;
  position: absolute; /* Ambos logos en la misma posición */
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  object-fit: contain;
  transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.navbar .logo-light {
  opacity: 1;
}

.navbar .logo-dark {
  opacity: 0;
}

.navbar.scrolled .logo-light {
  opacity: 0;
}

.navbar.scrolled .logo-dark {
  opacity: 1;
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
  color: var(--text-color-dark);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 15px;
  text-transform: uppercase;
  transition: color var(--transition-speed), transform var(--transition-speed);
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-toggle:hover {
  color: var(--secondary-color);
}

.navbar.scrolled .nav-link,
.navbar.scrolled .dropdown-toggle {
  color: var(--text-color-light);
}

/* Dropdown */
.dropdown-menu {
  background-color: var(--background-dark);
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--shadow-light);
}

.dropdown-item {
  color: var(--text-color-light);
  padding: 8px 12px;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.dropdown-item:hover {
  background-color: var(--secondary-color);
}

/* Toggler */
.navbar-toggler {
  border: none;
  background: transparent;
  color: var(--text-color-dark);
  font-size: 18px;
  transition: color var(--transition-speed);
}

.navbar-toggler:hover {
  color: var(--secondary-color);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%232a3350' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Menú Responsive */
@media (max-width: 1024px), (max-width: 768px), (max-width: 480px) {
  .navbar {
    height: 80px;
    background-color: var(--background-light);
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
  }
  
  .navbar-collapse {
    background-color: rgba(0, 30, 98, 0.95) !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .navbar-nav .nav-link {
    color: white !important;
    font-size: 18px;
    text-transform: uppercase;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: color 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
  }
  
  .dropdown-menu {
    background-color: rgba(0, 30, 98, 0.95) !important;
    border-radius: 5px;
    padding: 10px;
  }
  
  .dropdown-item {
    color: white !important;
    font-size: 16px;
    padding: 12px;
    text-align: left;
    transition: color 0.3s ease, background-color 0.3s ease;
  }
  
  .dropdown-item:hover {
    background-color: var(--secondary-color);
    color: white !important;
  }
  
  .btn-close {
    filter: invert(1);
    opacity: 1 !important;
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0 !important;
  padding: 0 18px 0 18px !important;

  background: #f5f5f5;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #002366;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  position: relative;
  color: #002366;
  font-size: 18px;
}

.breadcrumb-item:not(:last-child)::after {
  content: ">";
  margin: 0 12px;
  color: #002366;
  font-weight: bold;
  font-size: 18px;
}

.breadcrumb-item a {
  text-decoration: none;
  color: #002366;
  font-weight: 700;
  transition: color 0.3s ease-in-out;
  padding: 5px 8px;
  border-radius: 4px;
}

.breadcrumb-item a:hover {
  color: #f39c12;
  background: rgba(0, 30, 98, 0.1);
}

.breadcrumb-item.active {
  color: #666;
  font-weight: 700;
}

.breadcrumb-item:first-child a {
  display: flex;
  align-items: center;
}

.breadcrumb-item:first-child i {
  font-size: 20px;
  margin-right: 8px;
  color: #002366;
}

.logo {
  width: 110px; /* Tamaño original */
  box-sizing: border-box; /* Incluye el padding en el ancho total */
  padding: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
  opacity: 0.8;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}
/* Teléfono y correo en negrita, los iconos sociales quedan igual */
/* Teléfono y correo: negrita + negro */
.footer-right a[href^="tel"],
.footer-right a[href^="mailto"]{
    font-weight:700;
    color:#000 !important;          /* negro */
}



/* Responsividad */
@media (max-width: 1024px) {
    .page-content {
        font-size: 1rem;
        padding: 1.5rem 0;
    }
}

@media (max-width: 768px) {
    .imagen-superior {
        max-height: 60vh;
    }
    .page-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .imagen-superior {
        max-height: 50vh;
    }
    .page-content {
        font-size: 0.9rem;
        padding: 1rem 0;
    }
}

/* Iconify definitions */
.fa-solid--download {
  display: inline-block;
  width: 512px;
  height: 512px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23001a4d' d='M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24m296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24m-124 88c0-11-9-20-20-20s-20 9-20 20s9 20 20 20s20-9 20-20m64 0c0-11-9-20-20-20s-20 9-20 20s9 20 20 20s20-9 20-20'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.fa6-solid--certificate {
  display: inline-block;
  width: 512px;
  height: 512px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23001a4d' d='M211 7.3C205 1 196-1.4 187.6.8s-14.9 8.9-17.1 17.3l-15.8 62.5l-62-17.5c-8.4-2.4-17.4 0-23.5 6.1s-8.5 15.1-6.1 23.5l17.5 62l-62.5 15.9c-8.4 2.1-15 8.7-17.3 17.1S1 205 7.3 211l46.2 45l-46.2 45c-6.3 6-8.7 15-6.5 23.4s8.9 14.9 17.3 17.1l62.5 15.8l-17.5 62c-2.4 8.4 0 17.4 6.1 23.5s15.1 8.5 23.5 6.1l62-17.5l15.8 62.5c2.1 8.4 8.7 15 17.1 17.3s17.3-.2 23.4-6.4l45-46.2l45 46.2c6.1 6.2 15 8.7 23.4 6.4s14.9-8.9 17.1-17.3l15.8-62.5l62 17.5c8.4 2.4 17.4 0 23.5-6.1s8.5-15.1 6.1-23.5l-17.5-62l62.5-15.8c8.4-2.1 15-8.7 17.3-17.1s-.2-17.4-6.4-23.4l-46.2-45l46.2-45c6.2-6.1 8.7-15 6.4-23.4s-8.9-14.9-17.3-17.1l-62.5-15.8l17.5-62c2.4-8.4 0-17.4-6.1-23.5s-15.1-8.5-23.5-6.1l-62 17.5l-15.9-62.5c-2.1-8.4-8.7-15-17.1-17.3S307 1 301 7.3l-45 46.2z'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.fa6-solid--book-open {
  display: inline-block;
  width: 576px;
  height: 512px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%23000' d='M249.6 471.5c10.8 3.8 22.4-4.1 22.4-15.5V78.6c0-4.2-1.6-8.4-5-11C247.4 52 202.4 32 144 32C93.5 32 46.3 45.3 18.1 56.1C6.8 60.5 0 71.7 0 83.8v370.3c0 11.9 12.8 20.2 24.1 16.5C55.6 460.1 105.5 448 144 448c33.9 0 79 14 105.6 23.5m76.8 0C353 462 398.1 448 432 448c38.5 0 88.4 12.1 119.9 22.6c11.3 3.8 24.1-4.6 24.1-16.5V83.8c0-12.1-6.8-23.3-18.1-27.6C529.7 45.3 482.5 32 432 32c-58.4 0-103.4 20-123 35.6c-3.3 2.6-5 6.8-5 11V456c0 11.4 11.7 19.3 22.4 15.5'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.fa6-solid--file {
  display: inline-block;
  width: 384px;
  height: 512px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23000' d='M0 64C0 28.7 28.7 0 64 0h160v128c0 17.7 14.3 32 32 32h128v288c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64zm384 64H256V0z'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.fa-solid--thermometer-half {
  display: inline-block;
  width: 256px;
  height: 512px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath fill='%23000' d='M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417m32-84.653c19.912 22.563 32 52.194 32 84.653c0 70.696-57.303 128-128 128c-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333C.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08c-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.fa-solid--file-alt {
  display: inline-block;
  width: 384px;
  height: 512px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%23000' d='M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24m64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12m96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.fa-solid--shield-alt {
  display: inline-block;
  width: 512px;
  height: 512px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23000' d='m466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3c11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3M256.1 446.3l-.1-381l175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.limit-card-title {
  height: 75px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.limit-card-body {
  height: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}