/* Acciones flotantes y espacio reservado para la barra de cotización móvil. */

/************************/
/******** variables ******/
/************************/

/*****************************************/
/******** whatsapp / back to top *********/
/*****************************************/
.floating-whatsapp,
.back-to-top {
  position: fixed;
  right: 18px;
  z-index: 1030;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.floating-whatsapp {
  bottom: 18px;
  background: #25d366;
  color: #fff;
  font-size: 1.5rem;
}

.floating-whatsapp svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  display: block;
  flex-shrink: 0;
}

.back-to-top {
  bottom: 82px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
  color: inherit;
  transform: scale(1.5);
  display: block;
}

.site-quote-bar {
  display: none;
}

/* Reserve the visible quote bar's height and keep one fixed WhatsApp action. */
@media (max-width: 991.98px) {
  .site-quote-bar {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 1040;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e3e8ed;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
  }

  .site-quote-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #16833f;
    color: #fff;
    font-family: Arial, sans-serif;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
  }

  .site-quote-bar a:hover {
    background: #116b33;
    color: #fff;
  }

  .site-quote-bar a:focus-visible {
    outline: 3px solid var(--brand-blue);
    outline-offset: 3px;
  }

  .site-quote-bar svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
  }

  .site-quote-bar strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
  }

  .site-quote-bar small {
    display: block;
    font-size: 12px;
    font-weight: 400;
  }

  html.has-quote-bar {
    scroll-padding-bottom: calc(var(--quote-bar-height, calc(7rem + env(safe-area-inset-bottom, 0px))) + 12px);
  }

  body.has-quote-bar {
    padding-bottom: var(--quote-bar-height, calc(7rem + env(safe-area-inset-bottom, 0px)));
  }

  .has-quote-bar .floating-whatsapp {
    display: none;
  }

  .has-quote-bar .back-to-top {
    bottom: calc(var(--quote-bar-height, calc(7rem + env(safe-area-inset-bottom, 0px))) + 12px);
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
}
