/* Estilos del pie de página (cargados por <link> en cada página; antes los inyectaba shared-footer.js). */

body > footer {
  display: block !important;
  margin: 0 !important;
  background: #123529 !important;
  color: #ffffff !important;
  padding: 0 0 30px !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  text-align: left !important;
}
footer .cc-foot {
  width: min(1120px, calc(100% - 40px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
body > footer .cc-foot { padding-top: 46px !important; }
footer .cc-closing { background: linear-gradient(120deg, #26795c 0%, #1d6049 100%); position: relative; overflow: hidden; }
footer .cc-closing::before, footer .cc-closing::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
footer .cc-closing::before { width: 340px; height: 340px; right: -80px; top: -140px; background: rgba(174, 220, 192, .22); }
footer .cc-closing::after { width: 200px; height: 200px; left: -60px; bottom: -110px; background: rgba(197, 224, 99, .22); }
footer .cc-closing-in { position: relative; z-index: 1; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0; }
footer .cc-closing-eyebrow { margin: 0 !important; color: #aedcc0 !important; font-size: .78rem !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
footer .cc-closing-title { margin: 14px 0 0 !important; max-width: 17ch; color: #fff !important; font-family: Alegreya, Georgia, serif; font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; line-height: .98 !important; letter-spacing: -.045em; }
footer .cc-closing-title span { color: #c5e063; }
footer .cc-closing-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
footer .cc-closing-actions a { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px; font-size: .92rem !important; font-weight: 800; text-decoration: none !important; transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease !important; }
footer .cc-closing-actions a:hover { transform: translateY(-2px); text-decoration: none !important; }
footer a.cc-closing-cta { background: #c5e063; color: #232f2b !important; box-shadow: 0 8px 22px rgba(197, 224, 99, .45); }
footer a.cc-closing-cta:hover { background: #d3ec72; color: #232f2b !important; box-shadow: 0 0 0 4px rgba(197, 224, 99, .3), 0 12px 28px rgba(197, 224, 99, .6); }
footer a.cc-closing-wa { border: 2px solid rgba(255, 255, 255, .7); color: #fff !important; }
footer a.cc-closing-wa:hover { background: rgba(255, 255, 255, .14); color: #fff !important; }
footer .cc-foot p { margin: 10px 0 0 !important; line-height: 1.5 !important; }
footer .cc-foot .brand img { width: 40px !important; height: 40px !important; }
footer .foot {
  display: grid !important;
  grid-template-columns: 1.1fr .9fr 1.2fr !important;
  gap: 32px !important;
  align-items: start !important;
}
footer .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: Alegreya, Georgia, serif !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}
footer .cert-routes, footer .footer-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
footer a {
  color: #d8e9e1 !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}
footer a:hover, footer a:focus-visible {
  color: #ffffff !important;
  text-decoration: underline !important;
}
footer .footer-links .foot-more-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
footer .footer-links .foot-more-list[hidden] { display: none; }
footer .footer-links .foot-more { background: none; border: 0; padding: 0; color: #c5e063; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; text-align: left; }
footer .footer-links .foot-more:hover, footer .footer-links .foot-more:focus-visible { color: #fff; text-decoration: underline; }
footer .footer-biz {
  grid-column: 1 / -1 !important;
  margin: 8px 0 0 !important;
  font-size: 0.78rem !important;
  color: #d8e9e1 !important;
}
footer .footer-biz a { text-decoration: underline !important; }
.biz-missing { background: #fff3a3 !important; color: #5a4200 !important; padding: 0 4px; border-radius: 4px; font-weight: 700; }
footer .footer-copyright {
  display: block !important;
  grid-column: 1 / -1 !important;
  margin-top: 24px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(207, 224, 217, 0.2) !important;
  text-align: center !important;
  font-size: 0.68rem !important;
  line-height: 1.45 !important;
  color: #b8d2c7 !important;
}
footer .footer-copyright a { font-size: inherit !important; text-decoration: underline !important; text-underline-offset: 2px; }
footer .footer-social {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 18px !important;
}
footer .footer-social a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  color: #e7f1ec !important;
  transition: color 0.18s ease, background-color 0.18s ease !important;
}
footer .footer-social a:hover, footer .footer-social a:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  text-decoration: none !important;
}
footer .footer-social svg { display: block; }
/* WhatsApp flotante: sube cuando se ve el pie de página */
.whatsapp-float { transition: bottom 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease !important; }
body.footer-in-view .whatsapp-float { bottom: 88px !important; }
@media (max-width: 800px) {
  footer .cc-closing-in { padding: 48px 0; }
  footer .foot {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Botón flotante de WhatsApp (lo crea shared-footer.js) */
body .whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #1a7a43;
  color: #fff;
  font: 800 .9rem Montserrat, Arial, sans-serif;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
  text-decoration: none;
}
.whatsapp-float:hover { color: #fff; }
.whatsapp-float:focus-visible { outline: 3px solid #173d33; outline-offset: 2px; }
body button.whatsapp-float { border: 0; cursor: pointer; line-height: 1; }
.whatsapp-float .wa-icon { display: inline-flex; }
.whatsapp-float .wa-icon svg { display: block; }
/* Menú de motivos de consulta */
.wa-panel { position: fixed; right: 24px; bottom: 84px; z-index: 99; width: min(320px, calc(100vw - 32px)); display: grid; gap: 8px; padding: 14px; border-radius: 20px; background: #ffffff; border: 1px solid #cfe0d9; box-shadow: 0 18px 44px rgba(92, 38, 121, .22); transition: bottom 0.25s ease; }
.wa-panel[hidden] { display: none; }
body.footer-in-view .wa-panel { bottom: 148px; }
.wa-panel-title { margin: 2px 4px 4px; font: 800 .8rem Montserrat, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #5c2679; }
.wa-panel a { display: block; padding: 11px 14px; border-radius: 12px; background: #f2f2f2; color: #173d33; font: 700 .88rem/1.25 Montserrat, Arial, sans-serif; text-decoration: none; border: 1px solid transparent; }
.wa-panel a:hover, .wa-panel a:focus-visible { background: #ffffff; color: #5c2679; border-color: #5c2679; outline: none; }
@media (max-width: 600px) {
  body .whatsapp-float { right: 16px; bottom: 16px; padding: 12px 16px; }
  .wa-panel { right: 16px; bottom: 76px; }
  body.footer-in-view .wa-panel { bottom: 140px; }
}
