﻿/* ==========================================================================
   HOME - H1 + SUBTÍTULO
   ========================================================================== */

.section-h1 h1 {
    margin-bottom: 0.4rem;
    font-size: clamp(2.1rem, 1.5vw, 2.7rem);
    font-weight: 600;
    line-height: 1.25;
}

.section-h1 span {
    display: block;
    margin: 0 auto;
    color: #6c757d;
    font-size: 1.8rem;
    line-height: 1.5;
}


/* ==========================================================================
   HOME - MARCAS
   ========================================================================== */

.categories__card {
    height: 100%;
}

.categories__card--link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 25px 15px;
    text-decoration: none;
}

.categories__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    margin-bottom: 10px;
}

    .categories__icon img {
        max-width: 100%;
        max-height: 65px;
        object-fit: contain;
    }

.categories__title {
    margin: 0;
    color: #111;
    font-size: 1.5rem;
    font-weight: 600;
}

.marcas__cta {
    margin-top: 60px;
}


/* ==========================================================================
   HOME - BANNERS CAMPA / TASACIONES
   ========================================================================== */

.banner__content--btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 1;
    transition: color 0.25s ease, transform 0.25s ease;
}

    .banner__content--btn svg {
        transition: transform 0.25s ease;
    }

.banner__thumbnail:hover .banner__content--btn {
    color: var(--base-color-resalte);
}

    .banner__thumbnail:hover .banner__content--btn svg {
        transform: translateX(5px);
    }


/* ==========================================================================
   HOME - INFO BANNER
   ========================================================================== */

.info-banner__card {
    margin-bottom: 70px;
    padding: 270px 2.5rem 2rem;
    overflow: hidden;
    background: #fff url("../assets/img/seccion/foot-web.jpg") no-repeat;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.info-banner__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

    .info-banner__image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.info-banner__content h2 {
    margin-bottom: 1.2rem;
    color: #1a1a1a;
    font-size: 2.2rem;
    font-weight: 700;
}

.info-banner__content p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.5rem;
    line-height: 1.7;
}

.info-banner__footer {
    margin-top: 1.5rem;
    color: #777;
    font-size: 1.95rem;
}


/* ==========================================================================
   PRODUCT CARDS - TARJETAS UNIFORMES
   ========================================================================== */

.product__card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product__card--thumbnail {
    position: relative;
    flex-shrink: 0;
    height: 260px;
    overflow: hidden;
}

.product__card--thumbnail__link {
    display: block;
    width: 100%;
    height: 100%;
}

.product__card--thumbnail__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.product__primary--img {
    opacity: 1;
}

.product__secondary--img {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product__card:hover .product__secondary--img {
    opacity: 1;
}

.product__card:hover .product__primary--img {
    opacity: 0;
}

.product__card--content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 8px 14px 16px;
    text-align: center;
}


/* ==========================================================================
   VEHICLE CARDS - CAMPA
   ========================================================================== */

.vehicleCard__title {
    display: -webkit-box;
    min-height: 40px;
    margin-bottom: 10px;
    padding-left: 10px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

    .vehicleCard__title a {
        color: #1e3fa9;
        text-decoration: none;
    }

        .vehicleCard__title a:hover {
            text-decoration: underline;
        }

.vehicleCard__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    color: #6c757d;
    font-size: 13px;
}

.vehicleCard__yearColor {
    font-weight: 500;
}

.vehicleCard__entrada {
    font-size: 12px;
}

.vehicleCard__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.vehicleCard__photos {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
}


/* ==========================================================================
   STAR RATING
   ========================================================================== */

.star-rating {
    position: relative;
    width: 80px;
    height: 14px;
    background: url("/assets/img/star-empty.svg") repeat-x;
}

    .star-rating span {
        display: block;
        height: 100%;
        background: url("/assets/img/star-fill.svg") repeat-x;
    }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .info-banner__image {
        height: 200px;
    }

    .info-banner__content {
        padding: 1.8rem 1.5rem;
    }
}

