.animacion-entrada {
  animation: growIn 1.2s ease-out forwards;
}

@keyframes growIn {
  0% {
    transform: scale(0.1);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.navbar-title,
.navbar-title-small {
  font-weight: 600;
  background: linear-gradient(to right, #002147, #5fa8d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: transform 0.3s ease-in-out;
}

.navbar-title {
  font-size: clamp(2rem, 2vw, 4.5rem);
  white-space: normal;
}

.navbar-title-small {
  font-size: clamp(0.9rem, 4vw, 1.2rem);
}

@media (min-width: 320px) and (max-width: 370px) {
  .navbar-title {
    font-size: 1rem;
  }
  .navbar-title-small {
    font-size: 0.825rem;
    line-height: 1.1;
  }
  .navbar-brand img {
    max-width: 100px; 
}
}

@media (min-width: 370px) and (max-width: 420px) {
  .navbar-title {
    font-size: 1.1rem;
  }
  .navbar-title-small {
    font-size: 1.2rem;
  }
  .navbar-brand img {
    max-width: 100px; 
}
}

@media (min-width: 420px) and (max-width: 560px) {
  .navbar-title {
    font-size: 1.3rem;
  }
  .navbar-title-small {
    font-size: 1.412rem;
  }
  .navbar-brand img {
    max-width: 100px; 
}
}

@media (min-width: 560px) and (max-width: 768px) {
  .navbar-title {
    font-size: 1.5rem;
  }
  .navbar-title-small {
    font-size: 1.7rem;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .navbar-title {
    font-size: 1.65rem;
  }
  .navbar-title-small {
    font-size: 2.1rem;
  }
}




.animacion-h1:hover {
  animation: bounceY 0.6s ease both;
}

@keyframes bounceY {
  0% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(3px);
  }
  75% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Estilos para clase activada manualmente */
.dark-mode body {
  background-color: #121212 !important;
  color: #ffffff !important;
}
.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}


.dark-mode .navbar,
.dark-mode nav,
.dark-mode .card,
.dark-mode .custom-card-background,
.dark-mode .first-container,
.dark-mode .second-container,
.dark-mode .third-container,
.dark-mode footer,
.dark-mode .cards-grid {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border-color: #333333 !important;
  box-shadow: none !important;
}

.dark-mode .navbar a,
.dark-mode nav a,
.dark-mode .nav-link,
.dark-mode .custom-card-text1,
.dark-mode .custom-card-text,
.dark-mode .card-title1,
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6,
.dark-mode p,
.dark-mode .text-muted,
.dark-mode footer,
.dark-mode .btn,
.dark-mode button,
.dark-mode a {
  color: #e0e0e0 !important;
}

.dark-mode a:hover,
.dark-mode .btn:hover,
.dark-mode button:hover {
  color: #99ddff !important;
  background-color: transparent !important;
}

.dark-mode .card-img-top {
  filter: brightness(0.75) !important;
}

.dark-mode input,
.dark-mode textarea,
.dark-mode select {
  background-color: #222222 !important;
  color: #eee !important;
  border: 1px solid #444444 !important;
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
  color: #888888 !important;
}

.dark-mode table {
  background-color: #1e1e1e !important;
  color: #ccc !important;
  border-color: #444 !important;
}

.dark-mode th,
.dark-mode td {
  border-color: #444 !important;
}

.dark-mode .logo {
  filter: brightness(0.85) !important;
}


.dark-mode ::-webkit-scrollbar {
  width: 8px;
}

.dark-mode ::-webkit-scrollbar-track {
  background: #121212;
}

.dark-mode ::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 4px;
}


.dark-mode .shadow,
.dark-mode .card-shadow {
  box-shadow: none !important;
}


.dark-mode .bg-image,
.dark-mode .header-bg,
.dark-mode .hero-section {
  filter: brightness(0.6) saturate(0.8) !important;
}

.dark-mode main .row.mb-4 > .col-12 > div,
.dark-mode main .row.mb-4 > .col-md-6 > div {
  background-color: #2a2a2a !important;
  border-color: #555 !important;
  color: #ddd !important;
  box-shadow: none !important;
}


.dark-mode main .row.mb-4 > .col-12 > div h5,
.dark-mode main .row.mb-4 > .col-md-6 > div h5,
.dark-mode main .row.mb-4 > .col-12 > div p,
.dark-mode main .row.mb-4 > .col-md-6 > div p,
.dark-mode main .row.mb-4 > .col-md-6 > div i {
  color: #ddd !important;
}


.dark-mode main .row.mb-4 > .col-md-6 > div i {
  filter: brightness(0.8) !important;
}


.dark-mode main {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
}


.dark-mode main h1,
.dark-mode main h2,
.dark-mode main h3,
.dark-mode main h4,
.dark-mode main h5,
.dark-mode main h6,
.dark-mode main p,
.dark-mode main span,
.dark-mode main a,
.dark-mode main li {
  color: #e0e0e0 !important;
}


.dark-mode main button,
.dark-mode main .btn {
  background-color: #333333 !important;
  color: #e0e0e0 !important;
  border-color: #555 !important;
}


.dark-mode main div,
.dark-mode main section,
.dark-mode main article {
  background-color: transparent !important;
  border-color: #444 !important;
}


.dark-mode main input,
.dark-mode main textarea,
.dark-mode main select {
  background-color: #222222 !important;
  color: #eee !important;
  border: 1px solid #444444 !important;
}


.dark-mode main input::placeholder,
.dark-mode main textarea::placeholder {
  color: #888888 !important;
}

.dark-mode .navbar-title,
.dark-mode .navbar-title-small {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}
.dark-mode .slider-bg-1 {
  background: linear-gradient(135deg, #050d1f, #102040) !important;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.3) !important;
}

.dark-mode .slider-bg-2 {
  background: #1a1a1a !important;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.3) !important;
}
.dark-mode .section-title1,
.dark-mode .section-title2 {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: initial !important;
  color: #ffffff !important;
}
.dark-mode .modal {
  background: rgba(0, 0, 0, 0.8) !important;
}

.dark-mode .modal-content {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
}

.dark-mode .modal-header,
.dark-mode .modal-body,
.dark-mode .modal-footer {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border-color: #333 !important;
}

.dark-mode .modal .btn-close {
  filter: invert(1) !important;
}

.dark-mode .modal a,
.dark-mode .modal p,
.dark-mode .modal h5,
.dark-mode .modal h4,
.dark-mode .modal h3 {
  color: #e0e0e0 !important;
}
.dark-mode .pdf-overlay {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

.dark-mode .pdf-modal {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6) !important;
}

.dark-mode .pdf-frame-modal {
  background-color: #1e1e1e !important;
  border: none !important;
}

.dark-mode .close-pdf {
  background-color: #333 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
}

.dark-mode .download-pdf {
  background-color: #333 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
}



/* css para el idioma */
  .dropdown .btn-outline-success {
    color: #054c09;
    border-color: #054c09;
  }

  .dropdown .btn-outline-success:hover {
    background-color: #054c09;
    color: white;
  }

  .dropdown-item img {
    width: 24px;
    height: 18px;
  }

  .goog-te-banner-frame.skiptranslate,
  .goog-te-gadget-icon {
    display: none !important;
  }

  /* Corregir posición del menú desplegable del idioma en móviles */
.navbar .dropdown-menu {
  position: absolute;
  right: 0;
  left: auto;
  transform: none;
}

@media (max-width: 991.98px) { /* Aplica cuando el menú está colapsado */
  .navbar .dropdown-menu {
    position: static;
    float: none;
    width: 30%;
    margin-top: 0.5rem;
    box-shadow: none;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    background-color: #fff;
  }

  .navbar .dropdown-menu.show {
    display: block;
  }

  .navbar .dropdown-item {
    text-align: center;
  }
}
