/* ========================
   FOOTER
======================== */
.footer {
  background: #1a1a1a !important;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
  position: relative;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}
.footer-brand p {
  font-size: 0.84rem; color: #9a9a9a;
  line-height: 1.7; margin: 1rem 0;
}
.social-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.social-btn {
  width: 34px; height: 34px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.social-btn.fb { border-color: #1877f2; color: #fff; background: #1877f2; }
.social-btn.ig { border-color: #e1306c; color: #fff; background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-btn.wa { border-color: #25d366; color: #fff; background: #25d366; }
.social-btn.tt { border-color: #000; color: #fff; background: #000; }
.social-btn.fb:hover { background: #1558b0; transform: translateY(-4px) scale(1.1); }
.social-btn.ig:hover { filter: brightness(1.15); transform: translateY(-4px) scale(1.1); }
.social-btn.wa:hover { background: #1da851; transform: translateY(-4px) scale(1.1); }
.social-btn.tt:hover { background: #111; transform: translateY(-4px) scale(1.1); }

.footer-col h4 {
  font-weight: 600; font-size: 0.875rem;
  margin-bottom: 1.25rem;
  color: #f0f0f0 !important;
  display: flex; align-items: center; gap: 0.5rem;
}
.footer-col h4::after {
  content: '';
  flex: 1; height: 1px;
  background: rgba(255,255,255,.15) !important;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.82rem; color: #9a9a9a !important;
  text-decoration: none;
  display: flex; align-items: center; gap: 0.4rem;
  transition: color .2s, padding-left .2s;
}
.footer-links a:hover { color: var(--accent) !important; padding-left: .35rem; }
.footer-links a::before { content: '›'; color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  position: relative;
  z-index: 2;
}
.footer-bottom p { font-size: 0.78rem; color: #9a9a9a !important; }
.payment-icons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pay-icon {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  color: #9a9a9a;
  font-weight: 600;
  transition: all .2s;
}
.pay-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(192,39,45,.2);
}

/* ========================
   ANIMACIONES FOOTER
======================== */
.footer-brand,
.footer-col {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.footer-brand.visible,
.footer-col.visible {
  opacity: 1;
  transform: translateY(0);
}
.footer-col:nth-child(2) { transition-delay: .1s; }
.footer-col:nth-child(3) { transition-delay: .2s; }
.footer-col:nth-child(4) { transition-delay: .3s; }

/* ========================
   RESPONSIVE FOOTER
======================== */
@media (max-width: 1024px) {
  .footer { padding: 2.5rem 1.5rem 1.25rem; }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
  .footer-col:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1rem;
  }
  .footer-col:last-child h4 { margin-bottom: 0; }
  .footer-col:last-child .footer-links {
    display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
  }
  .footer-col:last-child .footer-links li { margin-bottom: 0; }
}

@media (max-width: 768px) {
  .footer { padding: 2rem 1.25rem 1rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1.25rem;
  }
  .footer-brand .logo { margin-bottom: 0; }
  .footer-col:last-child {
    grid-column: auto;
    display: block;
  }
  .footer-col:last-child h4 { margin-bottom: 1.25rem; }
  .footer-col:last-child .footer-links { display: block; }
  .footer-col:last-child .footer-links li { margin-bottom: 0.6rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  /* Forzar visible en tablet — animación puede no dispararse */
  .footer-brand,
  .footer-col {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

@media (max-width: 480px) {
  .footer { padding: 1.75rem 1rem 1rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .footer-brand {
    grid-column: auto;
    display: block;
  }
  .footer-col:last-child {
    grid-column: auto;
    display: block;
  }
  .footer-col h4 { font-size: 0.82rem; margin-bottom: 1rem; }
  .footer-links a { font-size: 0.78rem; }
  .footer-bottom p { font-size: 0.72rem; }
  .pay-icon { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
}

@media (max-width: 360px) {
  .footer { padding: 1.5rem 0.875rem 0.875rem; }
  .payment-icons { gap: 0.35rem; }
  .social-btn { width: 30px; height: 30px; font-size: 0.78rem; }
}