/* ==========================================================================
   Brbens Consórcios — ajustes da reescrita
   Blocos exclusivos de desktop/celular, ícones do rodapé (antes Font Awesome),
   WhatsApp flutuante, aviso de cookies, aviso de envio e acessibilidade.
   ========================================================================== */

/* O site anterior servia páginas diferentes para celular e desktop; aqui os dois
   conjuntos de marcação ficam no HTML e a largura (768 px) decide qual aparece. */
.bloco {
  display: contents;
}

@media (max-width: 768px) {
  .so-d {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .so-m {
    display: none !important;
  }
}

/* ---------- Ícones Font Awesome 4.5 (glifos embutidos no sprite) ---------- */
.fa {
  display: inline-block;
  width: .857em !important;
  height: 1em !important;
  font-size: inherit;
  vertical-align: -.1526em;
  fill: currentColor;
  overflow: visible;
  transform: none !important;
  transition: none !important;
}

.fa-facebook {
  width: .571em !important;
}

.redes-item-icon .fa,
.rede-item .fa {
  color: #fff;
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-flutuante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  color: #fff;
  background-color: #25d366;
  border-radius: 50px;
  box-shadow: 1px 1px 2px #888;
  font-size: 30px;
  text-align: center;
}

.whatsapp-flutuante .fa {
  margin-top: 16px;
}

.whatsapp-flutuante--sim {
  right: 60%;
  bottom: 50px;
}

@media only screen and (max-width: 900px) {
  .mobile-wpp {
    right: 10px !important;
    bottom: 10px !important;
  }
}

/* ---------- Aviso de cookies ---------- */
.cookies-popup {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 999;
  display: none;
  width: 70%;
  min-height: 80px;
  padding: 20px;
  background-color: #fff;
  border-radius: 15px 15px 0 0;
  transform: translateX(-50%);
}

.cookies-popup.visivel {
  display: block;
}

.cookies-fechar {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 15px;
  height: 15px;
  padding: 0;
  color: #919191;
  background: transparent;
  border: 1px solid #919191;
  border-radius: 0;
  font-size: 10px;
  line-height: 13px;
  text-align: center;
  cursor: pointer;
}

.cookies-popup h2 {
  margin: 0;
  font-size: 20px;
}

.cookies-popup p {
  margin-top: 5px;
  font-size: 15px;
}

.cookies-aceitar {
  display: block;
  width: 50%;
  margin-right: auto;
  margin-left: auto;
  color: #fff;
  background-color: #000;
  border: 1px solid #000;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .cookies-popup {
    width: 90%;
  }
}

/* ---------- Aviso de envio dos formulários (antes SweetAlert) ---------- */
.aviso-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .4);
}

.aviso-modal-caixa {
  width: 40rem;
  max-width: calc(100% - 2rem);
  padding: 1.5rem;
  color: #21262C;
  background: #F0F0F0;
  border-radius: 10px;
  text-align: center;
}

.aviso-modal--erro .aviso-modal-caixa {
  padding: 2rem;
  background: #FFB400;
}

.aviso-modal-icone {
  display: block;
  width: auto;
  max-width: 100%;
  height: 6rem;
  margin: 0 auto 1.25rem;
}

.aviso-modal-texto {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.5;
}

.aviso-modal-ok {
  padding: .625em 1.75em;
  color: #fff;
  background: #21262C;
  border: 0;
  border-radius: .25em;
  font-family: "Airbnb Cereal App", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Política de privacidade (antes com estilos inline) ---------- */
.sobre-wrapper--politica {
  max-width: 100%;
}

.sobre-wrapper--politica h3 {
  font-size: 24px;
}

/* ---------- Celular: diferenças de ordem entre o layout desktop e o celular ---------- */
@media (max-width: 768px) {
  .form-campo--50 {
    width: 100%;
  }

  .form-campo--50:nth-of-type(odd) {
    margin-right: 0;
  }

  .section--reverse .section-imagem {
    order: -1;
    padding-left: 0;
  }

  .destaque-conteudo-imagem {
    order: -1;
  }
}

/* ---------- Acessibilidade: foco visível só para teclado ---------- */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
.form-control:focus-visible {
  outline: 2px solid #22271C;
  outline-offset: 2px;
}

.menu-simulacao a:focus-visible,
.modal-menu a:focus-visible,
.rodape a:focus-visible {
  outline-color: #fff;
}
