/*
|--------------------------------------------------------------------------
| FOOTER — AMOLADERO
|--------------------------------------------------------------------------
| Frontend
|--------------------------------------------------------------------------
*/

.amoladero-footer {
    --amoladero-footer-bg: #066a5b;
    --amoladero-footer-bar: #0a4c43;
    --amoladero-footer-pattern-opacity: 0.18;

    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--amoladero-footer-bg);
    color: #ffffff;

    padding-top: clamp(42px, 5vw, 72px);
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
}


/* ==========================================================================
   INNER
   ========================================================================== */

.amoladero-footer__inner {
    position: relative;
    z-index: 2;

    width: min(calc(100% - 72px), 1480px);
    margin-inline: auto;

    padding-top: 0;
    padding-right: 0;
    padding-bottom: clamp(34px, 4vw, 54px);
    padding-left: 0;
}


/* ==========================================================================
   BACKGROUND PATTERN
   ========================================================================== */

.amoladero-footer__pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.amoladero-footer__pattern::before {
    content: "";
    position: absolute;

    left: 50%;
    top: 52%;

    width: min(1180px, 90vw);
    height: min(240px, 28vw);

    transform: translate(-50%, -50%);

    background-image: url("../../img/footer-pattern.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: var(--amoladero-footer-pattern-opacity);
}


/* ==========================================================================
   GRID
   ========================================================================== */

.amoladero-footer__grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(260px, 430px) minmax(320px, 1fr);
    align-items: center;

    gap: clamp(32px, 6vw, 120px);
}


/* ==========================================================================
   MASCOTA
   ========================================================================== */

.amoladero-footer__brand {
    display: flex;
    align-items: flex-end;
    justify-content: center;

    min-height: 100%;
}

.amoladero-footer__brand-image {
    margin: 0;
    line-height: 0;
}

.amoladero-footer__brand-image img {
    display: block;
    width: clamp(180px, 22vw, 360px);
    height: auto;
    max-width: 100%;
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.amoladero-footer__content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;

    text-align: right;
}


/* ==========================================================================
   NAV
   ========================================================================== */

.amoladero-footer__nav {
    margin: 0 0 clamp(26px, 3vw, 42px) 0;
}

.amoladero-footer__nav .wp-block-navigation {
    justify-content: flex-end;
}

.amoladero-footer__nav .wp-block-navigation__container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.amoladero-footer__nav .wp-block-navigation-item__content {
    color: #ffffff;
    font-family: var(--amoladero-font-heavy);
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    text-decoration: none;
}

.amoladero-footer__nav .wp-block-navigation-item__content:hover {
    opacity: 0.85;
}


/* ==========================================================================
   CONTACT
   ========================================================================== */

.amoladero-footer__contact {
    margin: 0 0 clamp(24px, 3vw, 38px) 0;
}

.amoladero-footer__contact p {
    margin: 0;
    color: #ffffff;
    line-height: 1.25;
}

.amoladero-footer__contact p + p {
    margin-top: 6px;
}

.amoladero-footer__contact .amoladero-footer__contact-title {
    font-family: var(--amoladero-font-body);
    font-size: clamp(1.05rem, 1.5vw, 1.45rem);
    font-style: italic;
    font-weight: 400;
    text-transform: uppercase;
}

.amoladero-footer__contact .amoladero-footer__contact-email {
    font-family: var(--amoladero-font-body);
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    font-style: italic;
    font-weight: 400;
    text-transform: uppercase;
}


/* ==========================================================================
   SOCIAL
   ========================================================================== */

.amoladero-footer__social {
    display: flex;
    justify-content: flex-end;
}

.amoladero-footer__social .wp-block-social-links {
    gap: 18px;
    justify-content: flex-end;
}

.amoladero-footer__social .wp-social-link {
    margin: 0;
}

.amoladero-footer__social .wp-block-social-link-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    border-radius: 50%;
    color: #ffffff;
    transition: transform 180ms ease, opacity 180ms ease;
}

.amoladero-footer__social .wp-block-social-link-anchor:hover {
    transform: translateY(-2px);
    opacity: 0.88;
}

.amoladero-footer__social svg {
    width: 34px;
    height: 34px;
}


/* ==========================================================================
   FOOTER — BARRA INFERIOR
   ========================================================================== */

.amoladero-footer__bottom {
    position: relative;
    z-index: 3;

    width: 100vw;
    max-width: 100vw;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding:
        clamp(18px, 2.2vw, 28px)
        0
        0 !important;
}


.amoladero-footer__bottom-bar {
    width:
        min(
            calc(100% - 150px),
            1750px
        );

    height:
        clamp(28px, 2.1vw, 36px);

    margin: 0 auto;

    background:
        #03594f; /* verde oscuro corregido */

    border-radius: 0;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1024px) {
    .amoladero-footer__inner {
        width: min(calc(100% - 52px), 1280px);
    }

    .amoladero-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 42px;
    }

    .amoladero-footer__brand-image img {
        width: clamp(170px, 24vw, 290px);
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 781px) {
    .amoladero-footer {
        padding-top: 36px;
    }

    .amoladero-footer__inner {
        width: calc(100% - 36px);
        padding-bottom: 28px;
    }

    .amoladero-footer__pattern::before {
        width: 160vw;
        height: 180px;
        top: 58%;
        opacity: 0.12;
    }

    .amoladero-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .amoladero-footer__brand {
        justify-content: center;
    }

    .amoladero-footer__brand-image img {
        width: min(240px, 72vw);
    }

    .amoladero-footer__content {
        align-items: center;
        text-align: center;
    }

    .amoladero-footer__nav .wp-block-navigation {
        justify-content: center;
    }

    .amoladero-footer__nav .wp-block-navigation__container {
        align-items: center;
    }

    .amoladero-footer__contact {
        text-align: center;
    }

    .amoladero-footer__social {
        justify-content: center;
    }

    .amoladero-footer__social .wp-block-social-links {
        justify-content: center;
    }

    .amoladero-footer__bar {
        height: 24px;
        margin-top: 22px;
    }
    .amoladero-footer__contact-email a {
    color: inherit;
    text-decoration: none;
}

.amoladero-footer__contact-email a:hover {
    opacity: 0.82;
}
}

/* ==========================================================
   FOOTER — TÍTULO CONTÁCTANOS EN SVG
   ========================================================== */

.amoladero-footer .amoladero-footer__contact-svg {
    display: block;
    width: min(100%, 320px);
    max-width: 100%;
    margin: 0 0 8px auto !important;
    padding: 0;
    line-height: 0;
}

.amoladero-footer .amoladero-footer__contact-svg img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Adaptación móvil */
@media (max-width: 781px) {
    .amoladero-footer .amoladero-footer__contact-svg {
        width: min(100%, 260px);
        margin-inline: auto !important;
    }
}
