/* ===============================
   FOOTER GENERAL
================================= */
.footer {
  background-color: #1b1d26;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding-top: 40px;
  padding-bottom: 10px;
}

/* ===============================
   CONTENEDOR SUPERIOR
================================= */
.footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
}

/* ===============================
   TITULOS DE SECCIÓN
================================= */
.footer h5 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  color: #ffffff;
}

/* ===============================
   ENLACES Y TEXTOS
================================= */
.footer a {
  color: #d4d8de;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffffff;
}

.footer p {
  color: #d4d8de;
  margin-bottom: 6px;
}

.footer i {
  color: #ffffff;
  margin-right: 8px;
}

.footer strong {
  color: #ffffff;
  font-weight: 600;
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
}

/* ===============================
   HR ANIMADO
================================= */
.footer-line {
  width: 0;
  height: 2px;
  margin: 25px auto;
  border: none;
  background: linear-gradient(to right, transparent, #ffffff, transparent);
  border-radius: 2px;
  transition: width 1.2s ease, opacity 0.6s ease;
  opacity: 0;
}

.footer-line.visible {
  width: 60%;
  opacity: 1;
}

/* ===============================
   SECCIÓN DE ICONOS SOCIALES
================================= */
.footer .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 15px;
  text-align: center;
}

.footer .social-icons a {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.footer .social-icons a:hover {
  background-color: #ffffff;
  color: #1b1d26;
  transform: scale(1.12);
  box-shadow: 0 0 12px rgba(226, 230, 0, 0.4);
}

.footer .social-icons i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  color: #ffffff;
  line-height: 1;
}

/* ===============================
   PARTE INFERIOR
================================= */
.footer-bottom {
  text-align: center;
  padding: 25px 15px 10px 15px;
  /*border-top: 1px solid rgba(255, 255, 255, 0.1);*/
  font-size: 0.85rem;
  color: #d4d8de;
}

.footer-bottom span {
  color: #ffffff;
  font-weight: 600;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
  .footer .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-line.visible {
    width: 80%;
  }
}

/* ===============================
   BOTONES FLOTANTES (CENTRADOS)
================================= */
.floating-socials {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.floating-socials.visible {
  opacity: 1;
  visibility: visible;
  animation: fadeInUp 0.6s ease forwards;
}

.float-btn,
#scrollTopBtn {
  position: relative;
  color: white;
  background-color: rgba(13, 70, 141, 0.95);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.float-btn i,
#scrollTopBtn i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

.float-btn:hover,
#scrollTopBtn:hover {
  transform: scale(1.12);
  background-color: #1e5ed1;
}

/* ===============================
   BOTÓN SUBIR MÓVIL
================================= */
#scrollTopBtnMobile {
  position: fixed;
  bottom: 75px;
  right: 15px;
  z-index: 1300;
  background: #0D468D;
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}

#scrollTopBtnMobile:hover {
  background: #1e5ed1;
  transform: scale(1.1);
}

#scrollTopBtnMobile i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
}

/* ===============================
   MENÚ INFERIOR MÓVIL
================================= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0D468D, #1e5ed1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 8px;
  z-index: 1200;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.25);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  backdrop-filter: blur(6px);
}

.mobile-bottom-nav .nav-item {
  color: white;
  font-size: 1.8rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease-in-out;
  flex: 1;
}

.mobile-bottom-nav .nav-item:hover {
  transform: translateY(-3px);
}

/* ===============================
   ANIMACIONES
================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#scrollTopBtn,
#scrollTopBtnMobile {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#scrollTopBtn.visible,
#scrollTopBtnMobile.visible {
  opacity: 1;
  visibility: visible;
  animation: fadeInUp 0.5s ease forwards;
}
