.cia-whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 81, 40, 0.3);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Shared small-screen reading and touch targets on secondary pages. */
.cia-legal-page :is(h1, h2), .cia-login-page :is(h1, h2) { text-wrap: balance; }
.cia-legal-section :is(p, li), .cia-login-page p { text-wrap: pretty; }
.cia-legal-section a { overflow-wrap: anywhere; }
@media (max-width: 1050px) {
  .cia-legal-header-inner { grid-template-columns: auto minmax(0, 1fr); }
  .cia-legal-actions { justify-self: end; }
}
@media (max-width: 640px) {
  .cia-legal-document,
  .cia-legal-header-inner,
  .cia-legal-footer-inner { width: min(100% - 40px, 900px); }
  .cia-legal-document h1 { font-size: clamp(32px, 8.5vw, 40px); line-height: 1.12; }
  .cia-legal-contact { min-height: 44px; }
  .cia-login-field input { font-size: 16px; }
  .cia-password-toggle { width: 44px; height: 44px; right: 8px; }
  .cia-login-form-side { padding-bottom: 100px; }
}

.cia-whatsapp-float:hover,
.cia-whatsapp-float:focus-visible {
  background: #1fba59;
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 81, 40, 0.4);
  transform: translateY(-3px);
}

.cia-whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.28);
  outline-offset: 4px;
}

.cia-whatsapp-float svg {
  width: 31px;
  height: 31px;
}

#back_to_top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(98, 72, 255, 0.14);
  border-radius: 50%;
  background: rgba(238, 235, 255, 0.72);
  color: #6248ff;
  box-shadow: 0 8px 22px rgba(22, 21, 25, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: bottom 0.45s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#back_to_top:hover,
#back_to_top:focus-visible {
  background: rgba(238, 235, 255, 0.94);
  color: #6248ff;
  transform: translateY(-2px);
}

#back_to_top:focus-visible {
  outline: 3px solid rgba(98, 72, 255, 0.2);
  outline-offset: 3px;
}

.back-to-top-wrapper.back-to-top-btn-show #back_to_top {
  right: 28px;
  bottom: 94px;
}

@media (max-width: 640px) {
  .cia-whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .back-to-top-wrapper.back-to-top-btn-show #back_to_top {
    right: 18px;
    bottom: 84px;
  }

  #back_to_top {
    width: 54px;
    height: 54px;
  }
}

/* CIA footer */
.cia-footer {
  background: #161616;
  color: rgba(255, 255, 255, 0.66);
}

.cia-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(170px, 0.65fr) minmax(300px, 0.95fr);
  gap: 72px;
  min-height: 456px;
  padding: 88px 0 72px;
}

.cia-footer h2 {
  margin: 0 0 25px;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.cia-footer__brandline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

.cia-footer__mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding-right: 17px;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
}

.cia-footer__mark img {
  display: block;
  width: 49px;
  height: 38px;
  object-fit: contain;
}

.cia-footer__about > p {
  max-width: 470px;
  margin: 0 0 25px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.cia-footer__about > strong {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  font-weight: 600;
}

.cia-footer ul,
.cia-footer address {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cia-footer__nav li + li {
  margin-top: 8px;
}

.cia-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cia-footer a:hover,
.cia-footer a:focus-visible {
  color: #34eb51;
}

.cia-footer a:focus-visible {
  outline: 2px solid rgba(52, 235, 81, 0.55);
  outline-offset: 4px;
}

.cia-footer__nav a,
.cia-footer__contact p {
  font-size: 16px;
  line-height: 1.35;
}

.cia-footer__contact address {
  font-style: normal;
}

.cia-footer__contact-group p {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 10px;
}

.cia-footer__contact-group svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.cia-footer__contact-group--secondary {
  margin-top: 28px;
  padding-top: 27px;
  border-top: 1px dashed rgba(255, 255, 255, 0.48);
}

.cia-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 82px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cia-footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 600;
}

.cia-footer__bottom nav {
  display: flex;
  align-items: center;
  gap: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 15px;
}

.cia-footer__bottom nav a + a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 16px;
  margin: 0 13px;
  background: rgba(255, 255, 255, 0.32);
  vertical-align: -3px;
}

@media (max-width: 1024px) {
  .cia-footer__main {
    grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.65fr);
    gap: 55px 70px;
    min-height: 0;
    padding: 72px 0 65px;
  }

  .cia-footer__contact {
    grid-column: 1 / -1;
  }

  .cia-footer__contact address {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .cia-footer__contact-group--secondary {
    margin-top: 0;
    padding: 0 0 0 40px;
    border-top: 0;
    border-left: 1px dashed rgba(255, 255, 255, 0.48);
  }

  .cia-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding: 27px 0 30px;
  }
}

@media (max-width: 640px) {
  .cia-footer__main {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 58px 0 50px;
  }

  .cia-footer__brandline {
    align-items: flex-start;
    font-size: 16px;
  }

  .cia-footer__mark {
    padding-right: 13px;
  }

  .cia-footer__mark img {
    width: 42px;
    height: 34px;
  }

  .cia-footer__contact {
    grid-column: auto;
  }

  .cia-footer__contact address {
    display: block;
  }

  .cia-footer__contact-group--secondary {
    margin-top: 28px;
    padding: 27px 0 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.48);
    border-left: 0;
  }

  .cia-footer__bottom nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .cia-footer__bottom nav a + a::before {
    display: none;
  }
}

/* Oculto temporalmente: quitar esta regla para reactivar WhatsApp. */
.cia-whatsapp-float { display: none !important; }
