/* ============================================================
   PIE DE PÁGINA INSTITUCIONAL FIJATE.COM PARA HERRAMIENTAS
   Diseño responsivo, accesible y adaptable a temas oscuro y claro
   ============================================================ */

.fijate-footer {
  background-color: var(--bg-surface, #181c24);
  color: var(--text-secondary, #94a3b8);
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  padding: 3.5rem 1.5rem 2rem 1.5rem;
  margin-top: 5rem;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
  z-index: 10;
}

[data-theme="light"] .fijate-footer,
body.light-theme .fijate-footer {
  background-color: #f8fafc;
  color: #64748b;
  border-top-color: #e2e8f0;
}

.fijate-footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .fijate-footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .fijate-footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Columna Marca */
.fijate-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fijate-footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary, #f8fafc);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

[data-theme="light"] .fijate-footer-logo-link,
body.light-theme .fijate-footer-logo-link {
  color: #0f172a;
}

.fijate-footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.fijate-footer-tagline {
  color: var(--text-muted, #64748b);
  font-size: 0.85rem;
  margin: 0;
  max-width: 320px;
}

/* Redes Sociales */
.fijate-footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.fijate-footer-social-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  margin: 0;
}

.fijate-footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fijate-footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-card, rgba(255, 255, 255, 0.05));
  color: var(--text-secondary, #94a3b8);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  transition: all 0.2s ease;
  text-decoration: none;
}

.fijate-footer-social-btn:hover {
  background: #ff8507;
  color: #ffffff;
  border-color: #ff8507;
  transform: translateY(-2px);
}

.fijate-footer-social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Títulos de sección */
.fijate-footer-heading {
  color: var(--text-primary, #f8fafc);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 1.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="light"] .fijate-footer-heading,
body.light-theme .fijate-footer-heading {
  color: #0f172a;
}

/* Listas de Enlaces y Contacto */
.fijate-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fijate-footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.fijate-footer-list a {
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  transition: color 0.15s ease;
}

[data-theme="light"] .fijate-footer-list a,
body.light-theme .fijate-footer-list a {
  color: #64748b;
}

.fijate-footer-list a:hover {
  color: #ff8507;
  text-decoration: underline;
}

.fijate-footer-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: #ff8507;
}

/* Barra Inferior (Copyright, Transparencia IA y Enlaces Legales) */
.fijate-footer-bottom {
  max-width: 1400px;
  margin: 2.5rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
}

.fijate-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fijate-footer-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
  opacity: 0.9;
}

.fijate-footer-ai-badge svg {
  color: #a855f7;
  flex-shrink: 0;
}

[data-theme="light"] .fijate-footer-ai-badge,
body.light-theme .fijate-footer-ai-badge {
  color: #64748b;
}

[data-theme="light"] .fijate-footer-bottom,
body.light-theme .fijate-footer-bottom {
  border-top-color: #e2e8f0;
}

.fijate-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fijate-footer-legal-links a,
.fijate-footer-legal-links span {
  color: var(--text-muted, #64748b);
  text-decoration: none;
  transition: color 0.15s ease;
}

.fijate-footer-legal-links a:hover,
.fijate-footer-legal-links span:hover {
  color: #ff8507;
  cursor: pointer;
}

/* ============================================================
   BOTÓN RETORNO EN CABECERA (.btn-back-tools)
   ============================================================ */
.btn-back-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: var(--bg-card, rgba(255, 255, 255, 0.06));
  color: var(--text-secondary, #cbd5e1);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-back-tools:hover {
  background: rgba(255, 133, 7, 0.15);
  color: #ff8507;
  border-color: rgba(255, 133, 7, 0.4);
  transform: translateX(-2px);
}

.btn-back-tools svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-back-tools:hover svg {
  transform: translateX(-3px);
}

[data-theme="light"] .btn-back-tools,
body.light-theme .btn-back-tools {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

[data-theme="light"] .btn-back-tools:hover,
body.light-theme .btn-back-tools:hover {
  background: #fff7ed;
  color: #ea580c;
  border-color: #fdba74;
}
