/* =========================================================
   SANTO TORNILLO - FOOTER
========================================================= */
.st-footer {
    --st-footer-dark: #153b2b;
    --st-footer-main: #1b4632;
    --st-footer-muted: #bbd1c4;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    background: var(--st-footer-main);
    color: #fff;
    font-family:'Inter',sans-serif;
}
.st-footer *, .st-footer *::before, .st-footer *::after { box-sizing: border-box; }
.st-footer a { text-decoration: none; color: inherit; }
.st-footer-main {
    width: min(100% - 48px, 1440px);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(145px, 1fr)) minmax(200px, 1.15fr);
    gap: clamp(20px, 2.6vw, 44px);
    padding: 70px 0 66px;
}
.st-footer-intro { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.st-footer-brand { display: inline-block; background: #fff; padding: 13px 17px; border-radius: 12px; max-width: 185px; }
.st-footer-brand img { display: block; width: 100%; max-height: 72px; object-fit: contain; }
.st-footer-intro p { color: var(--st-footer-muted); font-size: 13px; line-height: 1.7; margin: 19px 0; }
.st-footer-phone, .st-footer-email { display: inline-flex; align-items: center; gap: 10px; margin: 5px 0; font-size: 12px; overflow-wrap: anywhere; }
.st-footer-phone i, .st-footer-email i { color: #a7cfb6; width: 15px; }
.st-footer-group, .st-footer-social { min-width: 0; }
.st-footer-group h2, .st-footer-social h2 { margin: 8px 0 22px; font-family:var(--st-font-title); font-size: 14px; line-height: 1.5; letter-spacing: .25px; font-weight: 600; }
.st-footer-toggle { appearance: none; border: 0; border-radius: 0; background: none; color: #fff; padding: 0; width: 100%; font: inherit; text-align: left; display: flex; align-items: center; justify-content: space-between; cursor: default; }
.st-footer-toggle i { display: none; }
.st-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.st-footer-links a, .st-footer-links span { color: var(--st-footer-muted); font-size: 12px; line-height: 1.6; transition: color .2s; }
.st-footer-links a:hover, .st-footer-intro a:hover { color: #fff; }
.st-footer-social > p { color: var(--st-footer-muted); font-size: 12px; line-height: 1.7; margin: -6px 0 22px; }
.st-footer-social-icons { display: flex; flex-wrap: wrap; gap: 9px; }
.st-footer-social-icons a, .st-footer-social-icons button {
    flex: 0 0 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.15); color: #fff;
    border-radius: 11px; cursor: pointer; font-size: 16px; padding: 0; transition: background .2s, transform .2s;
}
.st-footer-social-icons a:hover, .st-footer-social-icons button:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.st-footer .st-footer-whatsapp { margin-top: 23px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; padding: 12px 14px; color: #183e2b; background: #e0f3e6; font-size: 12px; font-weight: 600; transition: background .2s; }
.st-footer .st-footer-whatsapp:hover { background: #fff; }
.st-footer-bottom { border-top: 1px solid rgba(255,255,255,.13); background: var(--st-footer-dark); }
.st-footer-bottom-inner { width: min(100% - 48px, 1280px); margin: auto; min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.st-footer-legal { display: flex; gap: 7px 24px; flex-wrap: wrap; color: #aec9b7; font-size: 11px; line-height: 1.7; }
.st-footer-bottom-inner > a { color: #dbece1; font-size: 11px; white-space: nowrap; }
.st-footer-bottom-inner > a i { margin-left: 5px; }
/* =========================================================
   MENSAJERÍA - CONSERVAR IDS PARA MENU.JS
========================================================= */
.chat-facebook { position: fixed; right: 16px; bottom: 12px; z-index: 9999; }
.chat_contenido { display: none; background: #fff; border-radius: 13px 13px 0 0; box-shadow: 0 16px 50px rgba(0,0,0,.25); overflow: hidden; width: min(340px, calc(100vw - 32px)); }
.chat_contenido .titulo { display: flex; gap: 9px; align-items: center; padding: 13px 15px; background: #214d38; color: #fff; font-size: 14px; }
.chat_contenido .titulo button { display: flex; align-items: center; justify-content: center; margin-left: auto; width: 28px; height: 28px; padding: 0; border: none; border-radius: 6px; background: rgba(255,255,255,.13); color: #fff; cursor: pointer; }
.chat_contenido iframe { display: block; width: 340px; max-width: 100%; height: min(500px, 65vh); border: 0; }
/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1150px) and (min-width: 768px) {
    .st-footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; }
    .st-footer-intro { grid-column: span 2; }
}
/* =========================================================
   MÓVIL
========================================================= */
@media (max-width: 767px) {
    .st-footer-main { width: min(100% - 38px, 480px); grid-template-columns: 1fr; gap: 0; padding: 36px 0 39px; }
    .st-footer-intro { align-items: center; text-align: center; padding-bottom: 27px; }
    .st-footer-brand { max-width: 174px; }
    .st-footer-intro p { max-width: 280px; margin: 15px auto; }
    .st-footer-group { border-top: 1px solid rgba(255,255,255,.17); }
    .st-footer-group h2 { margin: 0; }
    .st-footer-toggle { padding: 18px 0; cursor: pointer; font-size: 14px; }
    .st-footer-toggle i { display: inline-block; font-size: 12px; transition: transform .2s; }
    .st-footer-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
    .st-footer-links { display: none; padding: 0 0 20px 10px; gap: 15px; }
    .st-footer-links.is-open { display: flex; }
    .st-footer-social { border-top: 1px solid rgba(255,255,255,.17); margin-top: 2px; padding-top: 27px; text-align: center; }
    .st-footer-social h2 { margin: 0 0 9px; }
    .st-footer-social > p { margin: 0 0 18px; }
    .st-footer-social-icons { justify-content: center; }
    .st-footer-bottom-inner { width: min(100% - 38px, 480px); flex-direction: column; padding: 20px 0 25px; gap: 12px; text-align: center; }
    .st-footer-legal { flex-direction: column; gap: 6px; }
    .st-footer-bottom-inner > a { white-space: normal; }
    .chat-facebook { right: 10px; bottom: 0; }
}
/* =========================================================
   FOOTER - DISTRIBUCIÓN CORRECTA EN COMPUTADORA
========================================================= */
@media only screen and (min-width: 1151px) {

    .st-footer .st-footer-main {
        width: calc(100% - 48px);
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;

        display: grid;
        grid-template-columns: 1.35fr 0.85fr 1.2fr 1fr;
        gap: 55px;
        align-items: start;
    }

}