/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: #040b0e;
  border-top: 1px solid rgba(39, 192, 208, 0.08);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

/* Resplandor ambiental sutil arriba */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(39, 192, 208, 0.4) 30%,
    rgba(245, 167, 61, 0.3) 70%,
    transparent
  );
  pointer-events: none;
}

/* ── LOGO ── */
.footer__logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.footer__logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(39, 192, 208, 0.3));
  transition: filter var(--transition-base);
}

.footer__logo img:hover {
  filter: drop-shadow(0 0 18px rgba(39, 192, 208, 0.55));
}

/* Fallback texto si no existe icono.jpg */
.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.1em;
}

/* ── FRASE ── */
.footer__tagline {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  font-weight: var(--font-bold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-6);
  display: block;
  width: 100%;
  margin-inline: auto;
}

/* ── LÍNEA DIVISORIA ── */
.footer__divider {
  width: 260px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 255, 255, 0.15) 70%,
    transparent
  );
  margin: 0 auto var(--space-8);
}

/* ── REDES SOCIALES ── */
.footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: all var(--transition-spring);
}

.footer__social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

.footer__social-link:hover {
  color: var(--color-teal-light);
  transform: translateY(-3px);
  filter: drop-shadow(0 4px 8px rgba(39, 192, 208, 0.4));
}

/* Hover naranja para redes alternas */
.footer__social-link:nth-child(even):hover {
  color: var(--color-amber);
  filter: drop-shadow(0 4px 8px rgba(245, 167, 61, 0.35));
}

/* ── NAV DE SECCIONES (opcional, enlaces rápidos) ── */
.footer__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.footer__nav-link {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__nav-link:hover {
  color: var(--color-teal-light);
}

/* ── SEPARADOR FINO ── */
.footer__bottom-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-6);
}

/* ── COPYRIGHT ── */
.footer__copy {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
  display: block;
  width: 100%;
  margin-inline: auto;
}

.footer__copy a {
  color: rgba(39, 192, 208, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__copy a:hover {
  color: var(--color-teal-light);
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .footer__social {
    gap: var(--space-6);
  }

  .footer__nav {
    gap: var(--space-4);
  }

  .footer__logo img {
    height: 56px;
  }
}
