/* ==========================================================================
   Footer Principal (.main-footer.dark-section estilo exacto op2/framex)
   ========================================================================== */
.main-footer.dark-section {
  padding: 100px 0 0;
  background-color: #07152b;
  color: var(--white-color);
  position: relative;
}

.footer-main-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 52px;
  align-items: flex-start;
}

.about-footer {
  max-width: 240px;
}

.footer-logo a {
  display: inline-block;
}

.footer-social-links {
  margin-top: 26px;
}

.footer-social-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social-links ul li a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transition: all 0.35s ease;
}

.footer-social-links ul li a:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 134, 196, 0.4);
}

.footer-social-links ul li a.social-whatsapp:hover {
  background-color: #25D366;
  border-color: #25D366;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.footer-links-box {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1.45fr;
  gap: 32px 3.5vw;
}

.footer-links {
  position: relative;
}

.footer-links::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -1.75vw;
  background: rgba(255, 255, 255, 0.12);
  width: 1px;
  height: 100%;
}

.footer-links:last-child::before {
  display: none;
}

.footer-links h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 24px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links ul li {
  line-height: 1.4em;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-links ul li:last-child {
  margin-bottom: 0;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.76);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--accent-color);
  transform: translateX(4px);
}

.footer-newsletter-content p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 20px;
}

.footer-newsletter-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* Footer CTA Box (Signature op2 rounded container with frosted dark backdrop) */
.footer-cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 70px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 28px 42px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 48px rgba(3, 10, 22, 0.35);
}

.footer-cta-contact-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 3vw;
  align-items: center;
}

.footer-cta-contact-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-cta-contact-item .icon-box {
  position: relative;
  width: 48px;
  height: 48px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 134, 196, 0.3);
  transition: transform 0.35s ease;
}

.footer-cta-contact-item:hover .icon-box {
  transform: scale(1.08);
}

.footer-cta-contact-item-content p {
  margin: 0 0 2px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

.footer-cta-contact-item-content h3 {
  color: var(--white-color);
  font-size: 15.5px;
  font-weight: 600;
  margin: 0;
}

.footer-cta-contact-item-content h3 a {
  color: inherit;
  transition: color 0.3s ease;
}

.footer-cta-contact-item-content h3 a:hover {
  color: var(--accent-color);
}

/* Footer Copyright Text */
.footer-copyright-text {
  padding: 38px 0 46px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.footer-copyright-text p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-copyright-text a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
  text-decoration: none;
}

.footer-copyright-text a:hover {
  color: var(--accent-color);
}

.footer-copyright-sep {
  margin: 0 6px;
  opacity: 0.4;
}

.footer-developer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.footer-goodesign-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 991px) {
  .footer-main-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-footer {
    max-width: 100%;
  }

  .footer-links-box {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links::before {
    display: none;
  }

  .footer-cta-box {
    padding: 26px 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta-contact-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-copyright-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
}

/* Botón Flotante Circular Limpio de WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  background: #25D366;
  color: var(--white-color);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  background: #1ebe5b;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Botón Volver Arriba Flotante */
.scroll-to-top {
  position: fixed;
  right: 28px;
  bottom: 92px;
  z-index: 94;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white-color);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(4, 20, 45, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, box-shadow 0.25s ease;
  padding: 0;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  background-color: var(--accent-color);
  color: var(--white-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 28px rgba(0, 134, 196, 0.45);
}

.scroll-to-top svg {
  transition: transform 0.2s ease;
}

.scroll-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .scroll-to-top {
    right: 20px;
    bottom: 88px;
    width: 44px;
    height: 44px;
  }
}
