/* ==========================================================
 * Vehículos CR – Nuevos ingresos v1.0.7
 * Showcase liviano para Home.
 * Scope total: .vcrni-home-showcase
 * ========================================================== */

.vcrni-home-showcase,
.vcrni-home-showcase *,
.vcrni-home-showcase *::before,
.vcrni-home-showcase *::after {
    box-sizing: border-box;
}

.vcrni-home-showcase {
    width: 100%;
    max-width: 1180px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 16px 42px;
    color: #172033;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.vcrni-home-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    align-items: stretch;
}

.vcrni-home-showcase__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 9px;
    overflow: hidden;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(16, 24, 40, .045);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.vcrni-home-showcase__card--new {
    border-color: #bfd2f0;
    box-shadow: 0 3px 14px rgba(11, 79, 179, .065);
}

.vcrni-home-showcase__card:focus-within {
    border-color: #8ea4de;
    box-shadow: 0 0 0 3px rgba(53, 111, 224, .11), 0 7px 20px rgba(16, 24, 40, .06);
}

.vcrni-home-showcase__media-link,
.vcrni-home-showcase__title a,
.vcrni-home-showcase__button {
    text-decoration: none !important;
}

.vcrni-home-showcase__media-link {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: inherit;
    border-radius: 8px;
}

.vcrni-home-showcase__media {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2f7;
}

.vcrni-home-showcase__image,
.vcrni-home-showcase__media img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: scale(1);
    transition: transform .22s ease;
}

.vcrni-home-showcase__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 20px);
    min-height: 27px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 7px;
    background: #0b4fb3;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 79, 179, .2);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .025em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.vcrni-home-showcase__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 15px 7px 7px;
}

.vcrni-home-showcase__title {
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #172033 !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1.28 !important;
    letter-spacing: -.18px;
    overflow-wrap: anywhere;
}

.vcrni-home-showcase__title a {
    color: #172033 !important;
}

.vcrni-home-showcase__eyebrow,
.vcrni-home-showcase__finance > span,
.vcrni-home-showcase__spec > span {
    display: block;
    color: #5a687b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.vcrni-home-showcase__price {
    margin: 0 0 12px;
}

.vcrni-home-showcase__price strong {
    display: block;
    margin-top: 3px;
    color: #073e91;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.2px;
    overflow-wrap: anywhere;
}

.vcrni-home-showcase__price .woocommerce-Price-amount,
.vcrni-home-showcase__finance .woocommerce-Price-amount {
    color: inherit !important;
    font: inherit !important;
}

.vcrni-home-showcase__finance {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 12px;
    padding: 10px 11px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #f6f8fb;
}

.vcrni-home-showcase__finance strong {
    display: block;
    margin-top: 3px;
    color: #0b4fb3;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.vcrni-home-showcase__finance strong small {
    margin-left: 3px;
    color: #5a687b;
    font-size: 11px;
    font-weight: 700;
}

.vcrni-home-showcase__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 14px;
}

.vcrni-home-showcase__spec {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f6f8fb;
}

.vcrni-home-showcase__spec strong {
    display: block;
    margin-top: 2px;
    color: #172033;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.vcrni-home-showcase__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    margin-top: auto;
    padding: 11px 17px;
    border: 1px solid #0b4fb3;
    border-radius: 7px;
    background: #0b4fb3;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
    transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.vcrni-home-showcase__button:focus-visible {
    outline: 3px solid rgba(53, 111, 224, .18);
    outline-offset: 2px;
}

.vcrni-home-showcase__empty-card {
    width: 100%;
    max-width: 720px;
    min-width: 0;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    text-align: center;
}

.vcrni-home-showcase__empty-card p {
    margin: 0 0 14px;
    color: #5a687b;
}

@media (hover: hover) and (pointer: fine) {
    .vcrni-home-showcase__card:hover {
        transform: translateY(-3px);
        border-color: #b9c7df;
        box-shadow: 0 10px 28px rgba(16, 24, 40, .075);
    }

    .vcrni-home-showcase__card:hover .vcrni-home-showcase__image,
    .vcrni-home-showcase__card:hover .vcrni-home-showcase__media img {
        transform: scale(1.018);
    }

    .vcrni-home-showcase__button:hover {
        border-color: #073e91;
        background: #073e91;
        color: #ffffff !important;
        box-shadow: 0 5px 14px rgba(7, 62, 145, .16);
        transform: translateY(-1px);
    }
}

@media (max-width: 1024px) {
    .vcrni-home-showcase {
        padding: 0 16px 36px;
    }

    .vcrni-home-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .vcrni-home-showcase__card {
        padding: 8px;
    }

    .vcrni-home-showcase__body {
        padding: 14px 7px 7px;
    }

    .vcrni-home-showcase__title {
        font-size: 17px !important;
    }

    .vcrni-home-showcase__price strong {
        font-size: 23px;
    }
}

@media (max-width: 780px) {
    .vcrni-home-showcase {
        padding: 0 10px 30px;
    }

    .vcrni-home-showcase__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .vcrni-home-showcase__card {
        padding: 8px;
    }

    .vcrni-home-showcase__media {
        aspect-ratio: 16 / 9;
    }

    .vcrni-home-showcase__body {
        padding: 14px 7px 7px;
    }

    .vcrni-home-showcase__title {
        margin-bottom: 11px !important;
        font-size: 17px !important;
        line-height: 1.3 !important;
    }

    .vcrni-home-showcase__price {
        margin-bottom: 11px;
    }

    .vcrni-home-showcase__price strong {
        font-size: 22px;
    }

    .vcrni-home-showcase__finance {
        margin-bottom: 11px;
        padding: 9px 10px;
    }

    .vcrni-home-showcase__finance strong {
        font-size: 17px;
    }

    .vcrni-home-showcase__specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-bottom: 12px;
    }

    .vcrni-home-showcase__spec {
        padding: 8px;
    }

    .vcrni-home-showcase__spec strong {
        font-size: 12px;
    }

    .vcrni-home-showcase__button {
        min-height: 46px;
        font-size: 15px;
    }

    .vcrni-home-showcase__empty-card {
        padding: 17px;
    }
}

@media (max-width: 360px) {
    .vcrni-home-showcase {
        padding-right: 8px;
        padding-left: 8px;
    }

    .vcrni-home-showcase__eyebrow,
    .vcrni-home-showcase__finance > span,
    .vcrni-home-showcase__spec > span {
        font-size: 11px;
    }

    .vcrni-home-showcase__price strong {
        font-size: 21px;
    }

    .vcrni-home-showcase__specs {
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vcrni-home-showcase__card,
    .vcrni-home-showcase__image,
    .vcrni-home-showcase__media img,
    .vcrni-home-showcase__button {
        transition: none !important;
        transform: none !important;
    }
}
