/* ========================================
   FOOTER STYLES - CreaYVendelo (Moderno + Animaciones)
======================================== */

.main-footer {
  position: relative;
  background: linear-gradient(135deg, #12122a 0%, #1a1a2e 50%, #241a3a 100%);
  color: #e8e8f0;
  padding: 5rem 0 0;
  margin-top: 0;
  overflow: hidden;
  isolation: isolate;
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary-gradient);
  z-index: 1;
}

.main-footer::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(168, 85, 247, 0.18), transparent 60%),
    radial-gradient(500px 350px at 10% 90%, rgba(255, 107, 53, 0.15), transparent 60%);
  z-index: -1;
  animation: footerGlow 12s ease-in-out infinite alternate;
}

@keyframes footerGlow {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -20px) scale(1.05); }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal[data-reveal="zoom"] { transform: scale(0.94); }
.reveal[data-reveal="left"] { transform: translateX(-30px); }
.reveal[data-reveal="right"] { transform: translateX(30px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Brand ===== */
.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.footer-logo .logo-text {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}
.footer-logo .highlight { font-weight: 900; font-size: 1.65rem; }

.footer-description {
  color: rgba(232, 232, 240, 0.7);
  line-height: 1.65;
  max-width: 380px;
  font-size: 0.95rem;
}

/* ===== Redes sociales ===== */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-link:hover {
  transform: translateY(-4px) rotate(-6deg);
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.35);
}

.social-link:hover::before { opacity: 1; }

/* ===== Columnas ===== */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-title {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--primary-gradient);
  border-radius: 10px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-list a {
  color: rgba(232, 232, 240, 0.7);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-list a::before {
  content: "→";
  position: absolute;
  left: -18px;
  opacity: 0;
  transition: opacity 0.3s ease, left 0.3s ease;
  color: var(--accent-color);
}

.footer-list a:hover {
  color: #ffffff;
  padding-left: 18px;
}

.footer-list a:hover::before { opacity: 1; left: 0; }

/* ===== Footer bottom ===== */
.footer-bottom {
  padding: 1.5rem 0;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.copyright {
  color: rgba(232, 232, 240, 0.55);
  font-size: 0.85rem;
}

.copyright a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.3s ease;
}

.copyright a:hover { opacity: 0.85; }

.footer-bottom-links { display: flex; gap: 1.5rem; }

.footer-bottom-links a {
  color: rgba(232, 232, 240, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover { color: #fff; }

/* ===== Botón scroll top ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--primary-gradient);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 12px 30px rgba(255, 107, 53, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.4s var(--ease-out), box-shadow 0.35s ease;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: scrollTopPulse 2.4s ease-in-out infinite;
}

.scroll-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 40px rgba(255, 107, 53, 0.5);
  animation: none;
}

@keyframes scrollTopPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(255, 107, 53, 0.35), 0 0 0 0 rgba(255, 107, 53, 0.4); }
  50%      { box-shadow: 0 12px 30px rgba(255, 107, 53, 0.35), 0 0 0 14px rgba(255, 107, 53, 0); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-container { grid-template-columns: 1fr; gap: 3rem; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .main-footer { padding-top: 4rem; }
  .footer-content { padding: 0 1.5rem; }
  .footer-bottom-container { padding: 0 1.5rem; justify-content: center; text-align: center; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .scroll-top { width: 48px; height: 48px; right: 1.25rem; bottom: 1.25rem; }
}

@media (max-width: 480px) {
  .footer-content { padding: 0 1.25rem; }
  .footer-links { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-description { max-width: 100%; }
  .copyright { text-align: center; }
}
