/* ==========================================================================
   INTESOLTI - Isolated Corporate Footer Stylesheet
   Garantiza coherencia total con index.html sin interferir con otros estilos
   ========================================================================== */

/* ─── Footer Container & Background ──────────────────────────────────── */
footer.footer,
.footer.footer--corporate {
  background: #0a2540 !important;
  color: #ffffff !important;
  padding: 5rem 0 2rem 0 !important;
  position: relative !important;
  margin-top: 4.5rem !important;
  border-top: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  clear: both !important;
}

/* Reset container inside footer to protect from styles.css (padding: 100px 16px) */
footer.footer .container {
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* ─── Footer Grid (Desktop: 4 columns) ───────────────────────────────── */
footer.footer .footer__grid {
  display: grid !important;
  grid-template-columns: 2fr repeat(3, 1fr) !important;
  gap: 3.5rem !important;
  margin-bottom: 3.5rem !important;
  align-items: start !important;
  box-sizing: border-box !important;
}

/* ─── Column 1: Brand & Socials ──────────────────────────────────────── */
footer.footer .footer__brand-logo {
  height: 44px !important;
  width: auto !important;
  margin-bottom: 1.35rem !important;
  filter: brightness(0) invert(1) !important;
  display: block !important;
}

footer.footer .footer__desc {
  color: #94a3b8 !important;
  font-size: 0.94rem !important;
  line-height: 1.65 !important;
  max-width: 340px !important;
  margin: 0 0 1.75rem 0 !important;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
}

footer.footer .footer__socials,
footer.footer .social-expanding-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  flex-wrap: wrap !important;
  margin-top: 1.25rem !important;
}

/* ─── FezAcademy Style Expanding Social Buttons ──────────────────────── */
footer.footer .social-expand-btn {
  display: inline-flex !important;
  align-items: center !important;
  height: 46px !important;
  width: 46px !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  transition: width 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.3s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  position: relative !important;
  box-sizing: border-box !important;
}

footer.footer .social-expand-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  font-size: 1.2rem !important;
  flex-shrink: 0 !important;
  color: #ffffff !important;
  transition: transform 0.3s ease !important;
}

footer.footer .social-expand-label {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  white-space: nowrap !important;
  padding-right: 18px !important;
  padding-left: 2px !important;
  transition: opacity 0.3s ease 0.05s, visibility 0.3s ease 0.05s !important;
  color: #ffffff !important;
}

footer.footer .social-expand-btn:hover {
  width: 155px !important;
  border-color: transparent !important;
  transform: translateY(-3deg) !important;
}

footer.footer .social-expand-btn:hover .social-expand-label {
  opacity: 1 !important;
  visibility: visible !important;
}

footer.footer .social-expand-btn:hover .social-expand-icon {
  transform: scale(1.15) !important;
}

/* Brand Hover Gradients */
footer.footer .social-expand-btn--facebook:hover {
  background: linear-gradient(135deg, #1877f2 0%, #0052cc 100%) !important;
  box-shadow: 0 8px 22px rgba(24, 119, 242, 0.45) !important;
}

footer.footer .social-expand-btn--linkedin:hover {
  background: linear-gradient(135deg, #0a66c2 0%, #0052cc 100%) !important;
  box-shadow: 0 8px 22px rgba(10, 102, 194, 0.45) !important;
}

footer.footer .social-expand-btn--instagram:hover {
  background: linear-gradient(135deg, #e4405f 0%, #0052cc 100%) !important;
  box-shadow: 0 8px 22px rgba(228, 64, 95, 0.45) !important;
}

footer.footer .social-expand-btn--whatsapp:hover {
  background: linear-gradient(135deg, #25d366 0%, #0052cc 100%) !important;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45) !important;
}

/* ─── Columns 2, 3, 4: Titles & Link Lists ───────────────────────────── */
footer.footer .footer__title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 1.5rem 0 !important;
  letter-spacing: -0.01em !important;
}

footer.footer .footer__links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
}

footer.footer .footer__links li {
  margin: 0 !important;
  padding: 0 !important;
}

footer.footer .footer__links a {
  color: #94a3b8 !important;
  font-size: 0.92rem !important;
  text-decoration: none !important;
  transition: all 0.22s ease !important;
  display: inline-block !important;
  line-height: 1.5 !important;
}

footer.footer .footer__links a:hover {
  color: #38bdf8 !important;
  padding-left: 5px !important;
}

/* ─── Bottom Copyright Bar ───────────────────────────────────────────── */
footer.footer .footer__bottom {
  padding-top: 2rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 0.88rem !important;
  color: #64748b !important;
  box-sizing: border-box !important;
}

footer.footer .footer__bottom a {
  color: #94a3b8 !important;
  text-decoration: none !important;
}

/* ─── Floating Back to Top Button ────────────────────────────────────── */
.back-to-top {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: #0052cc !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.15rem !important;
  box-shadow: 0 8px 25px rgba(0, 82, 204, 0.4) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease !important;
  z-index: 9999 !important;
  border: none !important;
  cursor: pointer !important;
  outline: none !important;
}

.back-to-top.is-visible {
  opacity: 1 !important;
  pointer-events: all !important;
}

.back-to-top:hover {
  transform: translateY(-4px) !important;
  background: #0046b3 !important;
  box-shadow: 0 12px 30px rgba(0, 82, 204, 0.6) !important;
}

/* ─── Responsive Media Queries (Mobile & Tablet) ─────────────────────── */
@media (max-width: 1024px) {
  footer.footer {
    padding: 4rem 0 2rem 0 !important;
  }

  footer.footer .footer__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem 2rem !important;
  }
}

@media (max-width: 768px) {
  footer.footer {
    padding: 3.5rem 0 1.75rem 0 !important;
    margin-top: 3rem !important;
  }

  footer.footer .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  footer.footer .footer__grid {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
    margin-bottom: 2.5rem !important;
  }

  footer.footer .footer__desc {
    max-width: 100% !important;
    font-size: 0.92rem !important;
    margin-bottom: 1.25rem !important;
  }

  footer.footer .footer__title {
    margin-bottom: 1rem !important;
    font-size: 1.05rem !important;
  }

  footer.footer .footer__links {
    gap: 0.75rem !important;
  }

  footer.footer .footer__links a {
    font-size: 0.95rem !important;
    padding: 3px 0 !important;
  }

  footer.footer .footer__bottom {
    flex-direction: column !important;
    gap: 0.85rem !important;
    text-align: center !important;
    padding-top: 1.5rem !important;
  }

  .back-to-top {
    bottom: 1.25rem !important;
    right: 1.25rem !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  footer.footer .social-expand-btn {
    height: 42px !important;
    width: 42px !important;
  }

  footer.footer .social-expand-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.1rem !important;
  }
}

