/* ---- Language switching (single page, ES/EN) ---- */
html[lang="es"] .lang-en { display: none !important; }
html:not([lang="es"]) .lang-es { display: none !important; }

.lang-switch { order: 1; margin-left: auto; margin-right: .75rem; display: inline-flex; padding: 3px; border: 0;
  border-radius: 999px; background: #f1f1f1; cursor: pointer; font: 700 .8rem "Ubuntu", sans-serif; }
.lang-switch span { padding: .35rem .7rem; border-radius: 999px; color: #212529; transition: background .2s, color .2s; }
html:not([lang="es"]) #mainNav .lang-switch [data-l="en"], html[lang="es"] #mainNav .lang-switch [data-l="es"] { background: #ffacbe; color: #212529 !important; }
.navbar-toggler { order: 2; }
.navbar-collapse { order: 3; }
@media (min-width: 992px) {
  #mainNav:not(.navbar-shrink) .lang-switch { background: rgba(255,255,255,.18); }
  #mainNav:not(.navbar-shrink) .lang-switch span { color: #fff; }
  #mainNav:not(.navbar-shrink) .lang-switch [data-l="en"], #mainNav:not(.navbar-shrink) .lang-switch [data-l="es"] { }
  .lang-switch { order: 4; margin-left: 1rem; margin-right: 0; }
  .navbar-collapse { flex-grow: 0; }
  #mainNav .container { flex-wrap: nowrap; }
  #mainNav .navbar-collapse { margin-left: auto; }
}

/* ---- Hero CTA ---- */
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.btn-ba-primary { background: #ffacbe; color: #212529; font-weight: 700; border: 2px solid #ffacbe; border-radius: 999px; padding: .7rem 1.6rem; }
.btn-ba-primary:hover, .btn-ba-primary:focus { background: #ff8fa9; border-color: #ff8fa9; color: #212529; }
.btn-ba-ghost { background: transparent; color: #fff; font-weight: 700; border: 2px solid #fff; border-radius: 999px; padding: .7rem 1.6rem; }
.btn-ba-ghost:hover { background: #fff; color: #212529; }
.btn-ba-ghost.dark { color: #212529; border-color: #212529; }
.btn-ba-ghost.dark:hover { background: #212529; color: #fff; }

/* ---- Service CTA ---- */
.svc-cta { display: inline-block; margin-bottom: 2rem; font-weight: 700; font-size: .9rem; color: #d6456b; text-decoration: none; border-bottom: 2px solid #ffacbe; }
.svc-cta:hover { color: #212529; border-color: #212529; }

/* ---- Contact form ---- */
.quote-form { max-width: 780px; margin: 1.5rem auto 0; background: #fff; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.quote-form .form-label { font-weight: 700; font-size: .85rem; }
.quote-form .form-control:focus, .quote-form .form-select:focus { border-color: #ffacbe; box-shadow: 0 0 0 .2rem rgba(255,172,190,.35); }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.form-actions .btn { flex: 1 1 14rem; }
.form-note { margin-bottom: 0; }
.quote-form .is-invalid { border-color: #dc3545; }

/* ---- Floating Blanca chat ---- */
.ba-chat { position: fixed; right: 20px; bottom: 20px; z-index: 1050; font-family: "Open Sans", sans-serif; }
.ba-fab { position: relative; width: 68px; height: 68px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: #ffacbe;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); cursor: pointer; display: block; margin-left: auto; text-decoration: none; animation: ba-pulse 2.6s infinite; }
.ba-fab img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.ba-dot { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: #25d366; border: 2px solid #fff; }
@keyframes ba-pulse { 0% { box-shadow: 0 6px 20px rgba(0,0,0,.3), 0 0 0 0 rgba(255,172,190,.8); } 70% { box-shadow: 0 6px 20px rgba(0,0,0,.3), 0 0 0 16px rgba(255,172,190,0); } 100% { box-shadow: 0 6px 20px rgba(0,0,0,.3), 0 0 0 0 rgba(255,172,190,0); } }

.ba-bubble { position: absolute; right: 76px; bottom: 14px; width: max-content; max-width: min(260px, calc(100vw - 120px)); background: #fff; color: #212529;
  padding: .7rem 1.6rem .7rem .9rem; border-radius: 1rem 1rem .25rem 1rem; box-shadow: 0 6px 20px rgba(0,0,0,.2); font-size: .92rem; line-height: 1.35;
  animation: ba-in .35s ease-out; cursor: pointer; }
.ba-bubble[hidden] { display: none; }
.ba-bubble a { color: inherit; text-decoration: none; display: block; }
.ba-x { position: absolute; top: 2px; right: 6px; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; color: #888; cursor: pointer; }
@keyframes ba-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .ba-fab, .ba-bubble, .fa-flip { animation: none !important; }
}

/* ---- Social icons ---- */
.follow-us { font: 700 .85rem "Ubuntu", sans-serif; letter-spacing: .15em; text-transform: uppercase; color: #6c757d; margin-bottom: .9rem; }
.footer .btn-social { width: 3.6rem; height: 3.6rem; border-radius: 50%; margin: 0 .6rem !important; font-size: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; background: #ffacbe; border-color: #ffacbe; color: #212529;
  box-shadow: 0 4px 12px rgba(255,172,190,.55); transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.footer .btn-social svg { height: 1.4rem; width: auto; }
.footer .btn-social:hover, .footer .btn-social:focus-visible { transform: translateY(-4px) scale(1.08); color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.footer .btn-social[aria-label="Facebook"]:hover { background: #1877f2; border-color: #1877f2; }
.footer .btn-social[aria-label="Instagram"]:hover { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); border-color: #dc2743; }
.footer .btn-social[aria-label="LinkedIn"]:hover { background: #0a66c2; border-color: #0a66c2; }
.footer { padding-top: 1.5rem !important; padding-bottom: 2rem !important; }
