/* ==========================================================
   Menú fijo al hacer scroll + footer nuevo (todo el sitio)
   Insertado por scripts/site_footer_navbar.py
   ========================================================== */

/* ---------- Menú fijo ---------- */
@keyframes spSlideDown { from { transform: translateY(-110%); } to { transform: translateY(0); } }
.header-con.is-sticky {
  position: fixed !important; top: 0; left: 0; right: 0; width: 100% !important; float: none !important;
  z-index: 1000; margin: 0 !important; padding: 10px max(24px, calc((100vw - 1637px) / 2 + 24px)) !important;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 10px 30px rgba(11, 60, 93, .12); border-radius: 0 0 22px 22px !important;
  animation: spSlideDown .35s ease;
}
.header-con.is-sticky .site-logo-img { height: 48px; transition: height .3s ease; }
.sp-header-spacer { display: none; }
.sp-header-spacer.on { display: block; }
@media (max-width: 991px) {
  .header-con.is-sticky { padding: 8px 16px !important; }
  .header-con.is-sticky .navbar-collapse { max-height: calc(100vh - 80px); overflow-y: auto; }
  .header-con.is-sticky .site-logo-img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .header-con.is-sticky { animation: none; } }

/* ---------- Footer ---------- */
.sp-footer { --ink: #0B3C5D; --deep: #071f31; --primary: #0F7095; --teal: #26C0A8; --muted: #9fb6c6; --line: rgba(255, 255, 255, .1);
  float: left; width: 100%; position: relative; background: var(--deep); color: var(--muted); overflow: hidden; font-size: 15px; }
.sp-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(600px 300px at 10% 0%, rgba(38, 192, 168, .16), transparent 70%),
              radial-gradient(700px 360px at 100% 30%, rgba(15, 112, 149, .25), transparent 70%); }
.sp-footer a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.sp-footer a:hover { color: #fff; text-decoration: none; }
.sp-wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Llamado superior */
.sp-cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  margin: 70px 0 0; padding: 38px 44px; border-radius: 24px; background: linear-gradient(120deg, var(--primary), var(--teal)); color: #fff; }
.sp-cta h2 { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 6px; line-height: 1.25; }
.sp-cta p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 16px; }
.sp-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sp-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .2s ease, background .2s ease; border: 0; cursor: pointer; }
.sp-btn:hover { transform: translateY(-2px); }
.sp-footer .sp-btn.light { background: #fff; color: var(--ink); }
.sp-footer .sp-btn.light:hover { color: var(--primary); }
.sp-footer .sp-btn.wa { background: #25D366; color: #fff; }
.sp-footer .sp-btn.wa:hover { background: #1eb457; color: #fff; }

/* Garantías */
.sp-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.sp-trust div { display: flex; gap: 14px; align-items: center; }
.sp-trust i { flex: 0 0 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 18px;
  color: var(--teal); background: rgba(38, 192, 168, .12); border: 1px solid rgba(38, 192, 168, .25); }
.sp-trust strong { display: block; color: #fff; font-size: 15px; line-height: 1.3; }
.sp-trust span { font-size: 13px; line-height: 1.4; }

/* Columnas */
.sp-main { display: grid; grid-template-columns: 1.5fr 1fr 1.25fr 1fr 1.35fr; gap: 40px; padding: 56px 0 48px; }
.sp-brand img { height: 56px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.sp-brand p { line-height: 1.65; margin: 0 0 22px; }
.sp-footer h3 { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 20px; }
.sp-links { list-style: none; padding: 0; margin: 0; }
.sp-links li { margin-bottom: 11px; line-height: 1.4; }
.sp-links a { display: inline-flex; gap: 8px; align-items: baseline; }
.sp-links a::before { content: ""; width: 0; height: 2px; background: var(--teal); align-self: center; transition: width .2s ease; }
.sp-links a:hover::before { width: 10px; }
.sp-contact { list-style: none; padding: 0; margin: 0; }
.sp-contact li { display: flex; gap: 12px; margin-bottom: 14px; line-height: 1.45; }
.sp-contact i { color: var(--teal); width: 16px; margin-top: 3px; text-align: center; }
.sp-contact small { display: block; font-size: 12px; color: #6f8ea3; text-transform: uppercase; letter-spacing: .6px; }

.sp-social { display: flex; gap: 10px; }
.sp-social a { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: #fff; font-size: 16px; transition: all .25s ease; }
.sp-social a:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-3px); }

/* Boletín */
.sp-news { margin-top: 26px; }
.sp-news label { display: block; color: #fff; font-weight: 700; margin-bottom: 10px; }
.sp-news-row { display: flex; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.sp-news input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; padding: 8px 14px; font-size: 14px; }
.sp-news input::placeholder { color: #7f9bb0; }
.sp-news button { border: 0; border-radius: 999px; background: var(--teal); color: #fff; width: 42px; height: 38px; cursor: pointer; transition: background .2s; }
.sp-news button:hover { background: var(--primary); }
.sp-news-msg { display: block; font-size: 13px; margin-top: 8px; min-height: 18px; }
.sp-news-msg.ok { color: var(--teal); }
.sp-news-msg.err { color: #ff8a80; }
.sp-hp { position: absolute; left: -9999px; }

/* Barra inferior */
.sp-bottom { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 22px 0; border-top: 1px solid var(--line); font-size: 13px; }
.sp-bottom p { margin: 0; color: var(--muted); }
.sp-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sp-bottom img { height: 20px; width: auto; opacity: .85; }
.sp-disclaimer { padding: 0 0 26px; font-size: 12px; line-height: 1.6; color: #6f8ea3; text-align: center; }

/* Responsive */
@media (max-width: 1199px) {
  .sp-main { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; }
  .sp-main .sp-col-contact { grid-column: 1 / -1; }
  .sp-main .sp-col-contact .sp-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
}
@media (max-width: 991px) {
  .sp-trust { grid-template-columns: repeat(2, 1fr); }
  .sp-main { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .sp-main .sp-brand { grid-column: 1 / -1; }
  .sp-main .sp-col-contact .sp-contact { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .sp-cta { padding: 30px 26px; margin-top: 50px; }
  .sp-cta h2 { font-size: 23px; }
  .sp-bottom { flex-direction: column; text-align: center; }
  .sp-legal { justify-content: center; }
}
@media (max-width: 575px) {
  .sp-trust, .sp-main .sp-col-contact .sp-contact { grid-template-columns: 1fr; }
  .sp-main { grid-template-columns: 1fr 1fr; }
  .sp-cta-actions, .sp-cta-actions .sp-btn { width: 100%; justify-content: center; }
}
