/* Estilos generales del footer */
/* Estilos generales del footer */
/* Cambiar de position: fixed a position: relative */
#mainFooter {
  background-color: #222;
  text-align: center;
  color: white;
  padding: 1.5rem;
  position: relative !important; /* Cambiar de fixed a relative */
  width: 100%;
  z-index: 1000;
}

/* Estilos para el selector de idioma */
.language-selector {
  position: absolute;
  left: 6rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.language-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  margin-bottom: 6px;
  cursor: pointer;
}

.language-label svg {
  color: #6366f1; /* Color primario para el icono */
}

.language-dropdown {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  padding: 6px 10px;
  font-size: 0.85rem;
  width: 160px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  background-size: 12px;
  padding-right: 30px;
  transition: all 0.2s ease;
}

.language-dropdown:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  background-color: rgba(255, 255, 255, 0.15);
}

.language-dropdown:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.language-dropdown option {
  background-color: #2a2a2a;
  color: white;
}

footer {
  background-color: rgba(10, 10, 13, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-top: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  text-align: center !important;
  padding: var(--space-lg) !important;
  position: relative !important;
  bottom: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
}

footer p {
  margin: 5px 0 !important;
  font-size: 0.875rem !important;
}

footer a,
footer .btn-link {
  color: var(--secondary) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  background: none !important;
  border: none !important;
  padding: 0 5px !important;
  font-size: 0.875rem !important;
}

footer a:hover,
footer .btn-link:hover {
  color: var(--primary) !important;
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  #mainFooter {
    /* padding-bottom: 80px; */
    position: relative !important;

    margin-top: auto !important;
    height: auto !important;
  }

  .main-content {
    flex: 1;
  }

  footer {
    padding-bottom: 0px !important;
    height: auto !important;
  }

  #footer-content {
    padding: 0px !important;
    margin: 0px !important;
  }

  .language-selector {
    position: static;
    margin: 15px auto !important;
    align-items: center;
    width: 160px;
    z-index: 1010;
  }

  /* Make the dropdown appear above instead of below */
  .language-dropdown {
    position: relative;
  }

  /* This creates space for the dropdown options */
}

@media (max-width: 480px) {
  .language-selector {
    margin: 10px auto !important;
  }

  .language-label {
    justify-content: center;
  }

  #mainFooter,
  footer {
    position: relative !important;
    bottom: auto !important;
  }

  #footer-content {
    padding: 0px !important;
    margin: 0px !important;
  }

  /* Override any fixed height settings */
  :root {
    --footer-height: auto !important;
  }
}

/* Estilos para los íconos sociales del footer */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
  flex-wrap: wrap;
}
.footer-social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.5);
  color: #fff;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.footer-social-icon:hover {
  background: #007bff;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}
.footer-social-mail {
  background: #007bff;
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, box-shadow 0.2s;
  margin-left: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  height: 38px;
}
.footer-social-mail:hover {
  background: #0056b3;
  box-shadow: 0 2px 8px rgba(0, 86, 179, 0.15);
}
@media (max-width: 600px) {
  .footer-socials {
    justify-content: center;
    margin-top: 18px;
  }
}
