/* .scroll_header_top_area:not(.scrolled) + #back_to_top + .content  {
  border: 3px solid red;
  padding-top: 56px;
} */

.wrapper_inner:not(:has(.scroll_header_top_area.scrolled)) .content {
  padding-top: 56px;
}
.top-contact-bar {
  background-color:#204b71;
  color:#fff;
  padding:5px 110px 5px 20px;
  text-align:right;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:20px;
}

.top-contact-bar a span {
  display:flex;
  align-items:center;
  gap:5px;
}

.top-contact-bar a:nth-child(3) {
  background-color:#fff;
  color:#204b71;
  padding:10px 15px;
  border-radius:5px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  text-decoration:none;
  font-weight:bold;
}

@media screen and (max-width: 620px) {
  .top-contact-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'a b'
                          'c c';
    justify-content: center;
  }
  .top-contact-bar a {
    width: 100%;
  }
  .top-contact-bar a span {
    width: 100%;
  }
  .top-contact-bar a:nth-child(1) {
    grid-area: a;
  }
  .top-contact-bar a:nth-child(1) span {
    text-align: left;
    justify-content: start;
  }
  .top-contact-bar a:nth-child(2) {
    grid-area: b;
  }
  .top-contact-bar a:nth-child(2) span {
    text-align: right;
    justify-content: end;
  }
  .top-contact-bar a:nth-child(3) {
    grid-area: c;
    text-align: center;
    display: block;
    width: 100%;
    padding: 5px 0;
  }
}

@media screen and (max-width: 620px) {
  .top-contact-bar {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 'a'
                        'b'
                        'c';
    justify-content: center;
    gap:5px;
  }
  .top-contact-bar a:nth-child(1) span {
    text-align: center;
    justify-content: center;
  }
  .top-contact-bar a:nth-child(2) span {
    text-align: center;
    justify-content: center;
  }
}

#whatsapp-fab {
  position: fixed;
  left: 11px;
  bottom: 60px;
  z-index: 9999;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #25D366; /* color base de WhatsApp */
  color: white;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Icono SVG */
#whatsapp-fab svg {
  width: 26px;
  height: 26px;
  fill: white;
}

/* Hover / active */
#whatsapp-fab:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,0.18); }
#whatsapp-fab:active { transform: translateY(-1px); }

/* Ajuste para safe-area en iPhone (notch / home indicator) */
@supports(padding: max(0px)) {
  #whatsapp-fab { bottom: calc(60px + env(safe-area-inset-bottom)); right: calc(20px + env(safe-area-inset-right)); }
}

/* Ocultar en pantallas muy pequeñas si quieres (opcional) */
@media (max-width: 360px) {
  #whatsapp-fab { right: 12px; bottom: 60px; width: 48px; height: 48px; }
}