footer {
    --espaciado: 44px;
    --footer-line: rgba(255, 255, 255, .12);
    --footer-muted: rgba(255, 255, 255, .68);
    --footer-soft: rgba(255, 255, 255, .06);

    background-color: var(--negro);
    color: white;
    position: relative;
    margin-top: calc(var(--espaciado) + 50px);
    padding: 34px 0 110px;
}
footer > span {
    background-image: url("/assets/svg/prefooter.svg");
    height: var(--espaciado);
    display: block;
    position: absolute;
    top: calc(-1 * var(--espaciado) + 4px);
    width: 100%;
    background-repeat: repeat-x;
    background-position: bottom;
}
footer p,
footer a {
    color: white;
}
footer a {
    text-decoration: none;
    -webkit-transition: all .2s ease-out;
    -moz-transition: all .2s ease-out;
    -o-transition: all .2s ease-out;
    transition: all .2s ease-out;
}
footer a:hover {
    color: var(--primario);
}
footer > .contenedor {
    max-width: 1180px;
}

.footer-cabecera {
    display: grid;
    gap: 22px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--footer-line);
}
.footer-marca > p.titulo {
    color: white;
    font-family: var(--font-playfair) !important;
    font-size: 2.7em;
    line-height: 1;
    text-transform: lowercase;
}
.footer-marca > p.descripcion,
.footer-contacto > p,
.footer-final > p,
.footer-minimalista-cabecera > p,
.footer-minimalista-final > p {
    color: var(--footer-muted);
}
.footer-marca > p.descripcion {
    margin-top: 10px;
    max-width: 360px;
    font-size: .95em;
    line-height: 1.45;
}
.footer-contacto {
    display: grid;
    gap: 10px;
    align-content: start;
}
.footer-contacto > a {
    display: inline-flex;
    width: fit-content;
    padding: 10px 16px;
    border: 1px solid rgba(255, 153, 0, .7);
    border-radius: 100px;
    color: var(--primario);
    font-size: .85em;
    font-weight: var(--bold);
    text-transform: uppercase;
}
.footer-contacto > a:hover {
    background-color: var(--primario);
    color: white;
}

footer > section.menu-rapido {
    margin-top: 30px;
}
footer > section.menu-rapido > p {
    font-weight: var(--bold);
    color: white;
    text-transform: uppercase;
    font-size: .85em;
    letter-spacing: .08em;
}
footer > section.menu-rapido > .paginas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin-top: 16px;
}
footer > section.menu-rapido > .paginas > a {
    color: var(--footer-muted);
    font-size: .95em;
    line-height: 1.25;
    text-transform: capitalize;
}

footer > section.cualidades,
footer > section.pagos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 34px;
    padding: 22px;
    border: 1px solid var(--footer-line);
    background-color: var(--footer-soft);
    border-radius: 8px;
}
footer > section.cualidades > svg,
footer > section.pagos > svg {
    display: block;
    width: min(100%, 250px);
    height: auto;
}
footer > section.cualidades > div {
    display: grid;
    gap: 4px;
    min-width: 170px;
    text-align: center;
}
footer > section.pagos > div {
    display: grid;
    gap: 4px;
    min-width: 170px;
    text-align: center;
}
footer > section.cualidades > div > strong {
    color: white;
    font-size: .9em;
    text-transform: uppercase;
}
footer > section.pagos > div > strong {
    color: white;
    font-size: .9em;
    text-transform: uppercase;
}
footer > section.cualidades > div > span {
    color: var(--footer-muted);
    font-size: .82em;
}
footer > section.pagos > div > span {
    color: var(--footer-muted);
    font-size: .82em;
}
footer > section.pagos > .pagos-texto {
    min-width: 150px;
}
footer > section.pagos > .medios-pago {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}
footer > section.pagos > .medios-pago > img {
    display: block;
    width: auto;
    height: 38px;
    padding: 7px 10px;
    border-radius: 6px;
    background-color: white;
    object-fit: contain;
}
footer > section.cualidades > svg {
    max-height: 72px;
}
footer > section.pagos > svg {
    max-height: 58px;
}
.footer-final {
    display: grid;
    gap: 8px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--footer-line);
}
.footer-final > p {
    font-size: .82em;
}

footer.minimalista {
    margin-top: 54px;
    padding: 28px 0 90px;
}
footer.minimalista > .footer-minimalista-cabecera,
footer.minimalista > .footer-minimalista-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.footer-minimalista-logo {
    color: white;
    font-family: var(--font-playfair) !important;
    font-size: 2em;
    line-height: 1;
}
footer.minimalista > .pagos {
    margin-top: 22px;
    padding: 18px;
}
footer.minimalista > .pagos > svg.mediosdepago {
    width: min(100%, 360px);
}
footer.minimalista > .pagos > svg.comprasegura {
    width: min(100%, 240px);
}
footer.minimalista > .footer-minimalista-final {
    flex-direction: row;
    justify-content: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--footer-line);
}
footer.minimalista > .footer-minimalista-final > a {
    color: var(--footer-muted);
    font-size: .8em;
}

@media (width >= 700px) {
    footer {
        padding: 44px 0 96px;
    }
    .footer-cabecera {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
    .footer-contacto {
        justify-items: end;
        text-align: right;
    }
    footer > section.menu-rapido > .paginas {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .footer-final {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media (width >= 980px) {
    footer > section.menu-rapido > .paginas {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    footer > section.cualidades,
    footer > section.pagos {
        justify-content: space-between;
        gap: 28px;
    }
    footer > section.cualidades > svg,
    footer > section.pagos > svg {
        width: calc(50% - 18px);
        max-width: 360px;
    }
    footer.minimalista > .pagos {
        justify-content: center;
    }
    footer.minimalista > .pagos > svg.mediosdepago {
        width: 34vw;
        max-width: 440px;
    }
    footer.minimalista > .pagos > svg.comprasegura {
        width: 22vw;
        max-width: 280px;
    }
}
