/* Floating "Pide presupuesto" + WhatsApp buttons and the quote modal */

.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  display: flex; align-items: center; gap: 12px;
}
.fab__quote {
  display: inline-flex; align-items: center; gap: 10px; border: none; cursor: pointer;
  background: #FFC20E; color: #0E1547; font-family: var(--font-body); font-weight: 800; font-size: 14px;
  padding: 16px 22px; border-radius: 999px; box-shadow: 0 10px 28px rgba(14, 21, 71, .35);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.fab__quote:hover { background: #FFD23F; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(14, 21, 71, .4); }
.fab__wa {
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(14, 21, 71, .35); transition: transform .2s ease, box-shadow .2s ease; position: relative;
}
.fab__wa:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px rgba(14, 21, 71, .4); }
.fab__wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: fab-pulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes fab-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.fab__quote:focus-visible, .fab__wa:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--color-primary); }

/* Keep the footer's last line clear of the floating buttons */
.footer__bottom { padding-bottom: 84px; }

/* Modal */
.quote-modal[hidden] { display: none; }
.quote-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.quote-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 14, 56, .72); }
.quote-modal__panel {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 10px; padding: 34px 30px 30px; border-top: 5px solid #FFC20E;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  animation: quote-in .28s ease;
}
@keyframes quote-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.quote-modal__close {
  position: absolute; right: 12px; top: 10px; width: 38px; height: 38px; border: none; background: transparent;
  font-size: 30px; line-height: 1; color: #6B6657; cursor: pointer; border-radius: 50%;
}
.quote-modal__close:hover { background: #F3EFE6; color: var(--color-navy-deep); }
.quote-modal__tag {
  display: inline-block; background: #FFC20E; color: #0E1547; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 2px; margin-bottom: 14px;
}
.quote-modal__title { margin: 0 0 6px; font-weight: 800; font-size: 28px; letter-spacing: -.02em; color: var(--color-navy-deep); }
.quote-modal__lead { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--color-text-body); }
.quote-modal form { display: flex; flex-direction: column; gap: 14px; }
.quote-modal textarea.form-input { min-height: 84px; }
.quote-modal__submit {
  border: none; cursor: pointer; background: var(--color-primary); color: #fff; font-family: var(--font-body);
  font-weight: 800; font-size: 15px; padding: 16px 22px; border-radius: 6px; transition: background .2s, transform .2s;
}
.quote-modal__submit:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.quote-modal__submit:disabled { opacity: .6; cursor: wait; transform: none; }
.quote-modal__success { text-align: center; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; }
.quote-modal__check {
  width: 64px; height: 64px; border-radius: 50%; background: #FFC20E; color: #0E1547; font-size: 34px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.quote-modal__success .quote-modal__submit { margin-top: 10px; }
body.quote-open { overflow: hidden; }

@media (max-width: 600px) {
  .fab { right: 12px; bottom: 12px; gap: 10px; }
  .fab__quote { padding: 14px 18px; font-size: 13px; }
  .fab__wa { width: 52px; height: 52px; }
  .quote-modal { align-items: flex-end; padding: 0; }
  .quote-modal__panel { max-width: none; border-radius: 14px 14px 0 0; max-height: 92vh; padding: 28px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .fab__wa::after { animation: none; display: none; }
  .quote-modal__panel { animation: none; }
  .fab__quote, .fab__wa { transition: none; }
}
