/* ============================================
   FOOTER CON VIVEZA - Diseño moderno, colores y animaciones
   ============================================ */

.footer {
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Efecto decorativo superior */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6, var(--accent));
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

/* ===== BRAND SECTION ===== */
.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--accent) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.logo-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.footer-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--accent-light) 0%,
    var(--bg-hover) 100%
  );
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  width: fit-content;
  border: 1px solid var(--border-color);
}

/* ===== LINKS SECTION ===== */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  display: inline-block;
  position: relative;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

/* Enlaces activos y deshabilitados */
.footer-link-active {
  color: var(--accent) !important;
  font-weight: 500;
}

.footer-link-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== COLUMNA DESTACADA (AYUDA) ===== */
.footer-col-highlight {
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb), 0.1) 0%,
    rgba(var(--accent-rgb), 0.05) 100%
  );
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  backdrop-filter: blur(4px);
}

.help-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), 0.15) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.footer-col-highlight:hover .help-glow {
  opacity: 1;
}

.footer-col-highlight h4 {
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.help-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.contact-help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  );
  color: white !important;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  width: auto;
  min-width: 180px;
  transform: none !important;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
  position: relative;
  overflow: hidden;
}

.contact-help-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-help-link:hover::before {
  left: 100%;
}

.contact-help-link:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

.help-icon {
  font-size: 1.1rem;
}

.help-arrow {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.contact-help-link:hover .help-arrow {
  transform: translateX(5px);
}

.footer-contact-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  background: rgba(var(--bg-primary-rgb), 0.5);
  backdrop-filter: blur(4px);
}

.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.heart {
  display: inline-block;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.footer-disclaimer {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    max-width: 100%;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-badge {
    margin: 0 auto;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    padding: 2rem 1.5rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col ul {
    text-align: center;
  }

  .footer-col a:hover {
    transform: translateX(0) !important;
  }

  .footer-col-highlight {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    padding: 1.5rem 1rem;
  }

  .footer-bottom-inner {
    padding: 0 1rem;
  }
}
