/* ═══════════════════════════════════════════════
   FOOTER — LABRIEGO
═══════════════════════════════════════════════ */

#footer {
  position: relative;
  background: #080808;
  overflow: hidden;
  text-align: center;
  padding: 80px 24px 56px;
}

/* ── Grid: continúa desde #cierre, se apaga hacia abajo ── */
#footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none;
}

/* ── Degradado final ── */
#footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #020202);
  pointer-events: none;
}

/* ── Contenido ── */
.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.1s;
}

.footer-inner.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Logo ── */
.footer-logo-link {
  display: inline-block;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
  opacity: 1;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* ── Links de navegación ── */
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
}

.footer-nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  padding: 6px 20px;
  transition: color 0.25s ease;
}

.footer-nav-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Iconos de redes sociales ── */
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.25s ease,
              border-color 0.25s ease,
              background 0.25s ease;
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-social-link--instagram svg {
  fill: none;
}

.footer-social-link--instagram {
  border-image: linear-gradient(135deg, #fdf497, #fd5949, #d6249f, #285AEB) 1;
  border-image-slice: 1;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(#111116, #111116) padding-box,
              linear-gradient(135deg, #fdf497, #fd5949, #d6249f, #285AEB) border-box;
}

.footer-social-link--instagram:hover {
  background: linear-gradient(rgba(17, 17, 22, 0.7), rgba(17, 17, 22, 0.7)) padding-box,
              linear-gradient(135deg, #fdf497, #fd5949, #d6249f, #285AEB) border-box;
  filter: drop-shadow(0 0 8px rgba(214, 36, 159, 0.35));
}

.footer-social-link--tiktok {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-social-link--tiktok:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.footer-social-link--whatsapp {
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.25);
}

.footer-social-link--whatsapp:hover {
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.6);
  background: rgba(37, 211, 102, 0.08);
}

/* ── Legal ── */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-legal-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  padding: 4px 8px;
  transition: color 0.25s ease;
}

.footer-legal-link:hover {
  color: rgba(255, 255, 255, 0.55);
}

/* ── Copyright ── */
.footer-copy {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.2);
  margin-top: -8px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */

@media (max-width: 600px) {
  #footer {
    padding: 64px 24px 48px;
  }

  .footer-inner {
    gap: 32px;
  }

  .footer-nav {
    gap: 0 4px;
  }

  .footer-nav-link {
    padding: 6px 12px;
  }
}
