/* =============================================
   Footer
   ============================================= */
.footer {
  background: var(--clr-bg-darker);
  color: rgba(255,255,255,0.7);
  padding-top: var(--sp-20);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,95,204,0.7), rgba(249,115,22,0.5), transparent);
}

.footer::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30,58,138,0.12), transparent 60%);
  pointer-events: none;
}

/* ─── Footer Grid ─── */
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* ─── Brand Column ─── */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
}

.footer__logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-weight: var(--fw-black);
  font-size: var(--fz-lg);
  color: white;
  line-height: 1;
}

.footer__logo-text span { color: var(--clr-accent); }

.footer__tagline {
  font-size: var(--fz-sm);
  line-height: var(--lh-loose);
  color: rgba(255,255,255,0.5);
}

.footer__socials {
  display: flex;
  gap: var(--sp-2);
}

.footer__social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--dur-base) ease;
  text-decoration: none;
}

.footer__social-btn:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: white;
  transform: translateY(-3px);
}

/* ─── Link Columns ─── */
.footer__col-title {
  font-family: var(--font-heading);
  font-size: var(--fz-base);
  font-weight: var(--fw-bold);
  color: white;
  margin-bottom: var(--sp-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__link {
  font-size: var(--fz-sm);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: all var(--dur-fast) ease;
  text-decoration: none;
}

.footer__link::before {
  content: '→';
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--dur-fast) ease;
}

.footer__link:hover {
  color: white;
  padding-left: var(--sp-2);
}

.footer__link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Newsletter Column ─── */
.footer__newsletter-desc {
  font-size: var(--fz-sm);
  color: rgba(255,255,255,0.5);
  line-height: var(--lh-normal);
  margin-bottom: var(--sp-4);
}

.footer__newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__newsletter-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  font-size: var(--fz-sm);
  color: white;
  outline: none;
  transition: border-color var(--dur-base) ease;
  font-family: var(--font-body);
}

.footer__newsletter-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.footer__newsletter-input:focus {
  border-color: var(--clr-accent);
  background: rgba(255,255,255,0.08);
}

.footer__newsletter-btn {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-light));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--fz-sm);
  font-weight: var(--fw-semi);
  cursor: pointer;
  transition: all var(--dur-base) ease;
}

.footer__newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.footer__certifications {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}

.footer__cert-badge {
  font-size: var(--fz-xs);
  padding: 0.25rem 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.5);
}

/* ─── Bottom Bar ─── */
.footer__bottom {
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copyright {
  font-size: var(--fz-xs);
  color: rgba(255,255,255,0.3);
}

.footer__bottom-links {
  display: flex;
  gap: var(--sp-5);
}

.footer__bottom-link {
  font-size: var(--fz-xs);
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.footer__bottom-link:hover { color: rgba(255,255,255,0.7); }

/* ─── Floating Buttons ─── */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 900;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-bounce);
  text-decoration: none;
  animation: pulse-glow 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 36px rgba(37,211,102,0.6);
}

.whatsapp-float .tooltip-label {
  position: absolute;
  right: 70px;
  background: white;
  color: var(--clr-text-primary);
  font-size: var(--fz-sm);
  font-weight: var(--fw-semi);
  white-space: nowrap;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--dur-base) ease;
  pointer-events: none;
}

.whatsapp-float:hover .tooltip-label {
  opacity: 1;
  transform: translateX(0);
}

.scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--clr-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  box-shadow: var(--shadow-md);
  z-index: 900;
  cursor: pointer;
  border: none;
  transition: all var(--dur-base) ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--clr-primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
