:root {
  --footer-bg: linear-gradient(180deg, #061a33 0%, #041223 100%);
  --footer-line: rgba(255, 255, 255, 0.1);
  --footer-text: rgba(226, 240, 255, 0.78);
  --footer-text-strong: #f4f9ff;
  --footer-highlight: #77d4ff;
}

.footer-cta-section {
  position: relative;
  z-index: 1;
  padding-top: clamp(2.4rem, 5vw, 3.2rem);
}

.footer-cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(11, 79, 163, 0.14);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(11, 79, 163, 0.08), rgba(27, 159, 224, 0.14));
  box-shadow: 0 24px 44px rgba(7, 30, 58, 0.08);
}

.footer-cta-panel h2 {
  margin-bottom: 0.45rem;
  color: var(--text-strong);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.footer-cta-panel p {
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn-light,
.btn-outline-light {
  min-height: 2.9rem;
  padding-inline: 1.1rem;
}

.btn-light {
  color: var(--brand);
  background: #fff;
  border-color: rgba(11, 79, 163, 0.16);
}

.btn-outline-light {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(11, 79, 163, 0.24);
}

.site-footer {
  position: relative;
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  background: var(--footer-bg);
  color: var(--footer-text);
  overflow: hidden;
  pointer-events: auto;
  -webkit-mask-image: none;
  mask-image: none;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(119, 212, 255, 0.11), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(11, 79, 163, 0.2), transparent 28%);
}

.footer-trust-section {
  position: relative;
  z-index: 1;
  padding-top: 1.35rem;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--footer-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.badge-icon {
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  color: var(--footer-highlight);
}

.badge-text {
  color: var(--footer-text-strong);
  font-size: 0.84rem;
  line-height: 1.4;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1.6rem 0 1.3rem;
}

.footer-grid > div {
  padding: 1rem;
  border: 1px solid var(--footer-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.site-footer .brand {
  color: #fff;
}

.footer-brand p {
  color: var(--footer-text);
}

.footer-brand-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(119, 212, 255, 0.28);
  background: rgba(119, 212, 255, 0.12);
  color: var(--footer-text-strong);
  font-size: 0.75rem;
}

.site-footer h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: #fff;
  font-size: 1rem;
}

.site-footer h3 .icon-svg {
  color: var(--footer-highlight);
}

.footer-links,
.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.62rem;
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  gap: 0.58rem;
  align-items: flex-start;
}

.footer-contact .icon-svg {
  color: var(--footer-highlight);
  margin-top: 0.18rem;
}

.footer-socials {
  display: flex;
  gap: 0.62rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 1px solid var(--footer-line);
  background: rgba(255, 255, 255, 0.07);
}

.footer-socials a:hover {
  background: rgba(119, 212, 255, 0.22);
  border-color: rgba(119, 212, 255, 0.32);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--footer-line);
  background: rgba(4, 18, 35, 0.4);
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(222, 239, 255, 0.55);
  line-height: 1.6;
  transition: all 0.3s ease;
}

.footer-bottom-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom-links a {
  position: relative;
  font-weight: 500;
}

.footer-bottom-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--footer-highlight);
  transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(119, 212, 255, 0.3);
}

.footer-bottom-links a:hover::after {
  width: 100%;
}

.footer-bottom .separator {
  color: rgba(119, 212, 255, 0.2);
  font-size: 0.7rem;
}

.footer-bottom-right p {
  font-style: italic;
  font-weight: 500;
  color: var(--footer-highlight);
}

.footer-credit {
  position: relative;
  z-index: 1;
  padding: 0.9rem 0;
  background: linear-gradient(90deg, #041223 0%, #061a33 50%, #041223 100%);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-credit p {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.footer-credit a {
  color: var(--footer-highlight);
  text-decoration: none;
  font-weight: 800;
  margin: 0 0.15rem;
  position: relative;
  padding: 0 0.2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-credit a:hover {
  color: #fff;
  transform: scale(1.05);
  text-shadow: 0 0 15px rgba(119, 212, 255, 0.5), 0 0 30px rgba(119, 212, 255, 0.2);
}

@media (max-width: 820px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

.floating-actions {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.4rem, calc(env(safe-area-inset-bottom) + 0.95rem));
  z-index: 1200;
  pointer-events: none;
}

.floating-whatsapp,
.floating-top {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.9rem, 6vw, 3.2rem);
  height: clamp(2.9rem, 6vw, 3.2rem);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.floating-whatsapp {
  left: 0;
  background: linear-gradient(135deg, #16a34a 0%, #25d366 100%);
  color: #fff;
}

.floating-top {
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  background: linear-gradient(135deg, #0b4fa3, #1b9fe0);
  color: #fff;
}

.floating-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-whatsapp:hover,
.floating-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.floating-whatsapp:focus-visible,
.floating-top:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 3px;
}

.floating-action-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.floating-action-label {
  display: none;
}

.floating-whatsapp .icon-svg,
.floating-top-arrow {
  width: 1.2rem;
  height: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-top-arrow {
  font-size: 1rem;
  font-weight: 800;
}

.floating-action-glow {
  display: none;
}

@media (max-width: 1120px) {
  .trust-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .footer-cta-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .trust-badges,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div {
    padding: 0.9rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-actions {
    left: 0.75rem;
    right: 0.75rem;
    bottom: max(4.8rem, calc(env(safe-area-inset-bottom) + 1rem));
  }

  .floating-whatsapp,
  .floating-top {
    width: 2.9rem;
    height: 2.9rem;
  }
}

@media (max-width: 640px) {
  .footer-credit p {
    font-size: 0.65rem;
    line-height: 1.8;
    padding: 0 1rem;
  }
}
