/* === FOOTER COMPACTO, CENTRADO Y ELEGANTE === */
footer.footer {
  margin-top: -5px;
}

/* Fondo gris elegante para mejor contraste */
.footer {
  background: linear-gradient(180deg, #2C3E50 0%, #34495E 100%);
  color: #ECF0F1;
  padding: 8px 0 3px;
  font-family: 'Montserrat', sans-serif;
  border-top: 1px solid rgba(52, 152, 219, 0.3);
  box-shadow: 0 -2px 15px rgba(44, 62, 80, 0.4);
  position: relative;
  transition: all 0.4s ease;
  min-height: 150px;
}

.footer.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-top: none;
}

/* Contenedor principal centrado - SIN ESPACIOS EXTRA */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 5px 15px;
}

/* Logo y descripción */
.footer-logo {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-top: 0;
}

.footer-logo img {
  width: auto;
  height: 40px;
  max-width: 90px;
  margin-bottom: 5px;
  object-fit: contain;
  filter: brightness(1.2);
}

.footer-description {
  font-size: 11px;
  color: #BDC3C7;
  line-height: 1.3;
  max-width: 240px;
  margin: 0 auto 3px;
}

/* Redes sociales - COMPACTO */
.social-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  padding-top: 0;
}

.social-link {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3498DB, #2980B9);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .social-link {
  color: white
}

.social-link:hover {
  background: linear-gradient(145deg, #FFFFFF, #ECF0F1);
  color: #3498DB;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.6);
  border-color: #3498DB;
}

/* Columnas de enlaces - COMPACTO */
.footer-links {
  flex: 1 1 140px;
  text-align: center;
  padding-top: 0;
}

.footer-title {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 5px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.footer-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #3498DB, #2980B9);
  margin: 3px auto 0;
  border-radius: 2px;
}

/* Menú del footer - COMPACTO */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin: 2px 0;
}

.footer-menu a {
  color: #BDC3C7;
  text-decoration: none;
  font-size: 11px;
  transition: all 0.3s ease;
  display: block;
  padding: 1px 0;
}

.footer-menu a:hover {
  color: #3498DB;
  transform: translateX(2px);
  text-shadow: 0 0 6px rgba(52, 152, 219, 0.3);
}

.footer-menu .fas.fa-chevron-right {
  color: #3498DB;
  margin-right: 4px;
  font-size: 8px;
  transition: all 0.3s ease;
}

.footer-menu a:hover .fas.fa-chevron-right {
  color: #2980B9;
  transform: translateX(1px);
}

/* Línea inferior (derechos y políticas) - ENLACES VERTICALES */
.footer-bottom {
  border-top: 1px solid rgba(52, 152, 219, 0.3);
  margin-top: 15px;
  padding-top: 8px;
  padding-bottom: 5px;
  text-align: center;
  font-size: 10px;
  color: #95A5A6;
  background: rgba(44, 62, 80, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-bottom .footer-nav {
  margin-top: 3px;
  display: flex;
  flex-direction: column; /* 🔹 Cambiado a columna */
  gap: 2px; /* 🔹 Espacio entre enlaces verticales */
  align-items: center;
}

.footer-bottom .footer-nav a {
  color: #7F8C8D;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 10px;
  display: block; /* 🔹 Para que ocupen toda la línea */
  padding: 1px 0;
}

.footer-bottom .footer-nav a:hover {
  color: #3498DB;
}

/* === BOTÓN TOGGLE IZQUIERDO FIJO Y CON APARICIÓN CONTROLADA === */
.footer-toggle {
  position: fixed;
  left: 25px;
  bottom: 20px;
  width: 45px;
  height: 45px;
  background: linear-gradient(145deg, #3498DB, #2980B9);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 2px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  visibility: hidden;
}

.footer-toggle.visible {
  opacity: 1;
  visibility: visible;
}

.footer:not(.hidden) ~ .footer-toggle.visible {
  bottom: calc(var(--footer-height, 160px) + 10px);
}

.footer.hidden ~ .footer-toggle.visible {
  bottom: 20px;
}

.footer.hidden ~ .footer-toggle i {
  transform: rotate(0deg);
}

.footer:not(.hidden) ~ .footer-toggle i {
  transform: rotate(180deg);
}

.footer-toggle:hover {
  background: linear-gradient(145deg, #2C3E50, #34495E);
  color: #3498DB;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

/* Animación del footer */
.footer {
  transition: max-height 0.6s ease, opacity 0.5s ease, padding 0.5s ease;
  overflow: hidden;
  max-height: 400px;
  opacity: 1;
}
.footer.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-top: none;
}
