/* Shared footer + floating buttons (used with templates/_footer.html and _floaters.html) */
/* FOOTER */
footer.site-footer { background: var(--navy-deep); color: #C6CEDA; position: relative; overflow: hidden; }
footer.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent 60%); }
.footer-main { padding: 70px 7% 34px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; flex-direction: column; gap: 22px; }
.footer-logo-container { display: flex; align-items: center; gap: 16px; }
.footer-logo-container img { height: 74px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand-text h3 { font-size: 1.24rem; color: #fff; margin-bottom: 6px; line-height: 1.3; font-weight: 600; }
.footer-brand-text .tagline { font-family: var(--font-display); font-style: italic; font-size: .88rem; color: var(--gold-soft); letter-spacing: .04em; }
.footer-description { color: #A9B4C6; line-height: 1.8; font-size: .93rem; }
.footer-mission { background: rgba(168,85,247,.12); padding: 16px 20px; border-radius: 8px; border-left: 3px solid var(--gold); }
.footer-mission p { font-size: .88rem; color: #D9DEE7; font-style: italic; line-height: 1.6; }
.footer-column h4 { color: #fff; font-size: 1.02rem; margin-bottom: 20px; font-weight: 600; position: relative; padding-bottom: 12px; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .06em; }
.footer-column h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--gold); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 13px; }
.footer-column a { color: #A9B4C6; text-decoration: none; transition: all var(--transition-fast); display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.footer-column a::before { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .58rem; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: all var(--transition-fast); }
.footer-column a:hover, .footer-column a:focus { color: #fff; padding-left: 4px; outline: none; }
.footer-column a:hover::before, .footer-column a:focus::before { opacity: 1; transform: translateX(0); }
.contact-item { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 16px; color: #A9B4C6; font-size: .89rem; }
.contact-item .icon { color: var(--gold); font-size: 1.05rem; margin-top: 2px; flex-shrink: 0; width: 18px; text-align: center; }
.social-links { display: flex; gap: 12px; margin-top: 4px; }
.social-link { width: 42px; height: 42px; background: rgba(255,255,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 1.05rem; transition: all var(--transition-fast); }
.social-link:hover, .social-link:focus { background: var(--gold); color: var(--navy-deep); transform: translateY(-3px); outline: none; }
.social-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.footer-bottom { padding: 22px 7%; background: rgba(0,0,0,.22); position: relative; z-index: 1; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-credit { color: #7E8AA0; font-size: .87rem; }
.footer-credit strong { color: var(--gold); font-weight: 600; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: #7E8AA0; text-decoration: none; font-size: .87rem; transition: color var(--transition-fast); }
.footer-links a:hover, .footer-links a:focus { color: #fff; outline: none; }

/* FLOATING CHAT & BACK-TO-TOP */
.chat-float { position: fixed; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); right: calc(30px + env(safe-area-inset-right, 0px)); z-index: 999; display: flex; flex-direction: column; gap: 14px; }
.chat-btn { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); transition: transform var(--transition-fast), box-shadow var(--transition-fast); text-decoration: none; }
.chat-btn:hover, .chat-btn:focus { transform: scale(1.08); box-shadow: var(--shadow-lg); outline: none; }
.chat-btn.whatsapp { background: #25D366; }
.chat-btn.facebook { background: #1877F2; }
.chat-btn img { width: 30px; height: 30px; }
.chat-tooltip { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); background: var(--navy-deep); color: #fff; padding: 8px 14px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--transition-fast); font-size: .85rem; font-weight: 600; }
.chat-float:hover .chat-tooltip { opacity: 1; }
.back-to-top { position: fixed; bottom: calc(168px + env(safe-area-inset-bottom, 0px)); right: calc(30px + env(safe-area-inset-right, 0px)); width: 48px; height: 48px; background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; border: 2px solid var(--gold); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: all var(--transition-fast); z-index: 998; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover, .back-to-top:focus { background: var(--gold); color: var(--navy-deep); outline: none; }

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-logo-container { flex-direction: column; align-items: flex-start; }
  .footer-bottom-content { flex-direction: column; text-align: center; }
  .chat-btn { width: 52px; height: 52px; }
  .chat-btn img { width: 26px; height: 26px; }
  .back-to-top { bottom: calc(148px + env(safe-area-inset-bottom, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; }
}
@media (max-width: 480px) { .social-links { justify-content: center; } .chat-float { gap: 10px; } }
