/* ==========================================================================
   AMBUSH ECUADOR — SHARED STATEMENT FOOTER SYSTEM
   Única fuente de verdad para el footer en todas las páginas del sitio.
   ========================================================================== */

footer {
    padding: 4.5rem 5% 2.5rem;
    background: var(--color-paper, var(--black, #080808));
    border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    color: var(--color-text-muted, rgba(255, 255, 255, 0.65));
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto 3.25rem;
    display: grid;
    grid-template-columns: minmax(156px, auto) auto auto minmax(360px, auto);
    justify-content: space-between;
    gap: 3rem 36px;
    align-items: start;
}

.footer-brand a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-brand a:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.footer-brand img {
    height: 29px;
    width: auto;
    margin-bottom: 1.1rem;
    display: block;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--color-text-subtle, var(--gray, rgba(255, 255, 255, 0.55)));
    line-height: 1.6;
    margin: 0;
}

.footer-col h4,
.footer-col h5 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 1.1rem;
    color: var(--color-text, #FFFFFF);
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.55rem;
}

.footer-col a {
    color: var(--color-text-muted, var(--gray, rgba(255, 255, 255, 0.68)));
    text-decoration: none;
    font-size: 0.89rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--color-text, #FFFFFF);
}

.footer-col address {
    font-style: normal;
    font-size: 0.88rem;
    color: var(--color-text-muted, var(--gray, rgba(255, 255, 255, 0.68)));
    line-height: 1.6;
}

.footer-email {
    display: block;
    margin-bottom: 8px;
}

.footer-phone-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
    flex-wrap: nowrap;
}

.footer-phone-link {
    color: inherit;
    text-decoration: none;
    user-select: all;
    -webkit-user-select: all;
    cursor: pointer;
    display: inline-block;
    transition: color 0.2s ease;
}

.btn-copy-phone {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-copy-phone:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.footer-loc-label {
    margin-bottom: 4px;
    color: var(--color-text, #FFFFFF);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.footer-loc-addr {
    margin-bottom: 10px;
    color: var(--color-text-subtle, var(--gray-light, rgba(255, 255, 255, 0.52)));
}

.footer-loc-addr:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.79rem;
    color: var(--color-text-subtle, var(--gray, rgba(255, 255, 255, 0.52)));
    margin: 0;
}

.footer-bottom a {
    color: inherit;
    text-decoration: underline;
}

.socials {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.socials a {
    color: var(--color-text-subtle, var(--gray, rgba(255, 255, 255, 0.56)));
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
    font-weight: 600;
}

.socials a:hover {
    color: var(--color-text, #FFFFFF);
}


/* Desktop / Laptop: Asegura que contacto, teléfono y direcciones nunca se rompan en dos líneas */
@media (min-width: 769px) {
    .footer-contact-block > div {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }
    .footer-contact-block p {
        white-space: nowrap;
        font-size: 0.82rem;
    }
}

@media (max-width: 1024px) {
    .footer-col:last-child {
        grid-column: 1 / -1;
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 42px 6% 96px !important;
    }
    .footer-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 18px !important;
        margin-bottom: 32px !important;
    }
    .footer-brand {
        grid-column: 1 / -1 !important;
        margin-bottom: 4px;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .footer-brand img {
        height: 28px !important;
        width: auto;
        margin-bottom: 8px;
        display: block;
    }
    .footer-brand p {
        font-size: 0.75rem !important;
    }
    .footer-col h4,
    .footer-col h5 {
        margin-bottom: 12px;
        font-size: 0.72rem;
        letter-spacing: 0.15em;
    }
    .footer-col li {
        margin-bottom: 10px;
    }
    .footer-col a {
        font-size: 0.84rem;
        line-height: 1.45;
        display: inline-block;
        transition: color 0.2s ease, transform 0.2s ease;
    }
    .footer-col a:hover {
        transform: translateX(2px);
    }
    .footer-col:last-child {
        grid-column: 1 / -1 !important;
        margin-top: 4px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .footer-contact-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
        padding-top: 24px;
    }
    .socials {
        width: 100%;
        justify-content: flex-start;
        gap: 16px;
    }
}

@media (max-width: 420px) {
    .footer-grid {
        gap: 24px 14px !important;
    }
    .footer-col a {
        font-size: 0.82rem;
    }
    .footer-contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

