/* Casa Cabello - Footer redesign v1
   Standalone CSS. Do not import into _argento_custom.less. */

:root {
    --cc-footer-navy: #0f224c;
    --cc-footer-navy-2: #1a3366;
    --cc-footer-accent: #e67e22;
    --cc-footer-muted: rgba(255, 255, 255, 0.72);
    --cc-footer-line: rgba(255, 255, 255, 0.12);
}

/* Hide legacy Argento footer CMS chrome */
.page-footer .footer-contacts,
.page-footer .footer-logo,
.page-footer .footer-toolbar-top .argento-grid {
    display: none !important;
}

.page-footer {
    margin-top: 48px;
    background: transparent !important;
    border: 0 !important;
}

.page-footer .footer-toolbar,
.page-footer .footer-toolbar-top,
.page-footer .footer-toolbar-bottom {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-footer .footer-toolbar-top .content {
    max-width: none;
    margin: 0;
    padding: 0 !important;
    width: 100% !important;
}

.page-footer .footer-toolbar-bottom .content,
.page-footer .footer .content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Full-bleed navy footer inside Magento containers */
.page-footer .footer-toolbar-top {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

/* ---------- Main footer ---------- */
.cc-footer {
    background:
        radial-gradient(1200px 420px at 10% -10%, rgba(70, 111, 173, 0.35), transparent 55%),
        linear-gradient(135deg, var(--cc-footer-navy) 0%, #152a58 55%, var(--cc-footer-navy-2) 100%);
    color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 40px 28px 28px;
    box-shadow: 0 -12px 40px rgba(15, 34, 76, 0.08);
}

.cc-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.9fr 1.1fr;
    gap: 28px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.cc-footer__eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.cc-footer__tagline {
    margin: 0 0 18px;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--cc-footer-muted);
}

.cc-footer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: #25d366;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.15s ease, background 0.15s ease;
}

.cc-footer__cta:hover {
    background: #1ebe57;
    transform: translateY(-1px);
    color: #fff !important;
}

.cc-footer__title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.cc-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cc-footer__list li {
    margin: 0;
    padding: 0;
}

.cc-footer__label {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.cc-footer__list a {
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1.35;
}

.cc-footer__list a:hover {
    color: #f0c27a !important;
}

.cc-footer__meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--cc-footer-muted);
}

.cc-footer__list--links {
    gap: 10px;
}

.cc-footer__list--links a {
    font-size: 14px;
    font-weight: 500;
}

.cc-footer__help {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--cc-footer-muted);
}

.cc-footer__link-accent {
    color: #f0c27a !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.cc-footer__link-accent:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.cc-footer__credits {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--cc-footer-line);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.cc-footer__credits-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
}

.cc-footer__credits-text a {
    color: #f0c27a !important;
    font-weight: 700;
    text-decoration: none !important;
}

.cc-footer__credits-text a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Hide Magento default copyright if credits are shown in cc-footer */
.page-footer .copyright {
    display: none !important;
}

/* ---------- Bottom toolbar ---------- */
.page-footer .footer-toolbar-bottom {
    background: #0b1a3a !important;
    border-top: 1px solid var(--cc-footer-line) !important;
    border-radius: 0 0 0 0;
}

.page-footer .footer-toolbar-bottom .content {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    color: rgba(255, 255, 255, 0.7);
}

.page-footer .footer-toolbar-bottom .footer-logo,
.page-footer .footer-toolbar-bottom .block:has(.footer-logo) {
    display: none !important;
}

.page-footer .footer-toolbar-bottom .social-icons,
.page-footer .footer-toolbar-bottom .block-static-block {
    margin: 0 !important;
}

.page-footer .footer-toolbar-bottom a {
    color: rgba(255, 255, 255, 0.85) !important;
}

.page-footer .footer-toolbar-bottom .copyright,
.page-footer .copyright {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 12px !important;
    text-transform: none !important;
    letter-spacing: 0.02em;
}

/* Social icons polish */
.page-footer .social-icons a,
.page-footer .footer-toolbar-bottom .social-icons img,
.page-footer .footer-toolbar-bottom a[href*="facebook"] {
    opacity: 0.9;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.page-footer .social-icons a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* ---------- Recently viewed above footer ---------- */
.block-viewed-products-grid,
.block.widget.block-viewed-products-grid,
.sidebar .block-viewed-products-grid,
.column.main .block-viewed-products-grid,
.page-bottom .block-viewed-products-grid,
div.block.widget[class*="viewed"] {
    margin: 32px auto 0 !important;
    max-width: 1440px;
    padding: 20px 22px !important;
    border: 1px solid #e8edf5 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 28px rgba(15, 34, 76, 0.06) !important;
}

.block-viewed-products-grid .block-title,
.block.widget.block-viewed-products-grid .block-title {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
}

.block-viewed-products-grid .block-title strong,
.block.widget.block-viewed-products-grid .block-title strong {
    color: #0f224c !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: none !important;
}

.block-viewed-products-grid .product-item-name a,
.block-viewed-products-grid .product-item-link {
    color: #0f224c !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

.block-viewed-products-grid .price-box .price:before,
.block-viewed-products-grid .price-box .price:after {
    content: none !important;
    display: none !important;
}

.block-viewed-products-grid .price-box .price {
    color: #0f224c !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.block-viewed-products-grid .price-box .price-wrapper::after {
    content: "Precio neto · IVA no incluido";
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}

.block-viewed-products-grid .owl-nav button,
.block-viewed-products-grid .swiper-button-prev,
.block-viewed-products-grid .swiper-button-next {
    border: 1px solid #e8edf5 !important;
    background: #fff !important;
    color: #0f224c !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 8px rgba(15, 34, 76, 0.06);
}

/* Catalog download link above footer */
a[href*="catalogo"],
.page-wrapper > a[href*="descarga"] {
    /* leave alone if elsewhere */
}

@media (max-width: 1024px) {
    .cc-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .cc-footer {
        padding: 28px 18px 22px;
        border-radius: 16px 16px 0 0;
    }

    .cc-footer__inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .page-footer .footer-toolbar-bottom .content {
        flex-direction: column;
        text-align: center;
        min-height: 0;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
}
