/* ==========================================
   HERO CATÁLOGO
========================================== */

.catalog-hero {
    height: 460px;
    background-size: cover;
    background-position: center right;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.catalog-hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(2, 11, 29, .95) 0%,
        rgba(2, 11, 29, .86) 42%,
        rgba(2, 11, 29, .50) 70%,
        rgba(2, 11, 29, .20) 100%
    );
}

.catalog-hero-content {
    position: relative;
    z-index: 2;

    color: #fff;

    max-width: 560px;

    margin-left: 10%;

    text-align: left;
}

.catalog-hero-content span {
    color: #38bdf8;

    font-size: 13px;

    text-transform: uppercase;

    font-weight: 900;

    letter-spacing: 1.5px;
}

.catalog-hero-content h1 {
    font-size: 48px;

    line-height: 1.08;

    margin: 14px 0 18px;

    letter-spacing: -1px;
}

.catalog-hero-content p {
    color: #e5f2ff;

    font-size: 17px;

    line-height: 1.65;

    max-width: 520px;
}

.catalog-hero-benefits {
    display: flex;

    gap: 22px;

    margin-top: 28px;
}

.catalog-hero-benefits div {
    display: flex;

    align-items: center;

    gap: 10px;
}

.catalog-hero-benefits i {
    width: 46px;

    height: 46px;

    border-radius: 13px;

    background: #0ea5e9;

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;
}

.catalog-hero-benefits small {
    color: #fff;

    font-size: 13px;

    line-height: 1.25;

    font-weight: 800;
}


/* ==========================================
   FILTROS
========================================== */

.filters-section {
    background: #f4f7fb;

    margin-top: -42px;

    position: relative;

    z-index: 10;
}

.filters-box {
    max-width: 1160px;

    margin: 0 auto;

    background: #fff;

    border: 1px solid #d9e2ef;

    border-radius: 22px;

    padding: 22px;

    box-shadow:
        0 18px 42px
        rgba(16, 31, 70, .14);

    display: grid;

    grid-template-columns:
        repeat(7, minmax(0, 1fr));

    gap: 12px;
}

.filter-group label {
    display: block;

    color: #132a5c;

    font-size: 13px;

    font-weight: 900;

    margin-bottom: 8px;
}

.filter-group select {
    width: 100%;

    height: 46px;

    border: 1px solid #d9e2ef;

    border-radius: 12px;

    padding: 0 12px;

    background: #fff;

    color: #111827;

    font-size: 13px;

    font-weight: 650;

    outline: none;

    cursor: pointer;
}

.filter-group select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, .12);
}


/* ==========================================
   CATÁLOGO
========================================== */

.catalog-section {
    background: #f4f7fb;

    padding: 60px 0 90px;
}

.catalog-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    margin-bottom: 32px;
}

.catalog-top h2 {
    font-size: 34px;

    color: #132a5c;

    margin-bottom: 6px;
}

.catalog-top span {
    color: #64748b;

    font-size: 15px;
}


/* ==========================================
   ORDENAR
========================================== */

.sort-box {
    display: flex;

    align-items: center;

    gap: 12px;
}

.sort-box label {
    color: #132a5c;

    font-weight: 700;
}

.sort-box select {
    height: 46px;

    border: 1px solid #d9e2ef;

    border-radius: 12px;

    padding: 0 14px;

    background: #fff;

    font-weight: 600;

    outline: none;

    cursor: pointer;
}


/* ==========================================
   GRID DE CARROS
========================================== */

.catalog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;
}


/* ==========================================
   TARJETA
========================================== */

.car-card {
    min-width: 0;

    background: #fff;

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 18px 40px
        rgba(16, 31, 70, .10);

    transition:
        transform .25s,
        box-shadow .25s;
}

.car-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 26px 55px
        rgba(16, 31, 70, .18);
}


/* ==========================================
   GALERÍA DEL CARRO
========================================== */

.car-gallery {
    width: 100%;

    background: #eef3f8;

    padding: 0;

    overflow: hidden;
}


/* ==========================================
   FOTO PRINCIPAL

   object-fit: cover hace que la fotografía
   rellene completamente el cuadro.
========================================== */

.car-card-link {
    display: block;

    width: 100%;

    overflow: hidden;
}

.main-car-img {
    display: block;

    width: 100%;

    height: 300px;

    object-fit: cover;

    object-position: center;

    background: #eef3f8;

    transition: transform .35s ease;
}

.car-card:hover .main-car-img {
    transform: scale(1.02);
}


/* ==========================================
   CUANDO NO EXISTE FOTO
========================================== */

.no-car-image {
    width: 100%;

    height: 300px;

    min-height: 300px;

    background: #eef2f7;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #94a3b8;

    font-size: 42px;
}


/* ==========================================
   MINIATURAS
========================================== */

.thumbs {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 8px;

    margin-top: 0;

    padding: 12px;

    background: #f4f7fb;
}

.thumbs button {
    width: 100%;

    height: 70px;

    border-radius: 10px;

    border: 2px solid transparent;

    background: #fff;

    cursor: pointer;

    overflow: hidden;

    padding: 0;

    transition:
        border-color .2s,
        transform .2s,
        box-shadow .2s;
}

.thumbs button.active,
.thumbs button:hover {
    border-color: #2563eb;
}

.thumbs button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 4px 10px
        rgba(16, 31, 70, .10);
}

.thumbs img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;
}


/* ==========================================
   INFORMACIÓN DEL CARRO
========================================== */

.car-info {
    padding: 22px;
}

.car-title-link {
    color: inherit;

    text-decoration: none;
}

.car-info h3 {
    color: #132a5c;

    font-size: 24px;

    line-height: 1.2;

    margin: 0 0 18px;

    transition: color .2s;
}

.car-title-link:hover h3 {
    color: #2563eb;
}


/* ==========================================
   DATOS DEL CARRO
========================================== */

.car-meta {
    list-style: none;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin: 0 0 22px;

    padding: 0;
}

.car-meta li {
    min-width: 0;

    color: #475569;

    font-size: 14px;

    line-height: 1.4;
}

.car-meta i {
    color: #2563eb;

    width: 18px;
}


/* ==========================================
   PRECIO
========================================== */

.car-price {
    display: block;

    font-size: 34px;

    font-weight: 900;

    color: #2563eb;

    margin-bottom: 20px;
}


/* ==========================================
   BOTONES DE TARJETA
========================================== */

.car-actions {
    display: grid;

    grid-template-columns:
        1.3fr .9fr;

    gap: 10px;
}

.btn-card-whatsapp {
    min-width: 0;

    height: 48px;

    background: #25d366;

    color: #fff;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    font-weight: 800;

    text-decoration: none;

    transition:
        background .25s,
        transform .25s;
}

.btn-card-whatsapp:hover {
    background: #1db954;

    transform: translateY(-1px);
}

.btn-share {
    height: 48px;

    border-radius: 12px;

    border: 1px solid #d9e2ef;

    background: #fff;

    color: #132a5c;

    font-weight: 700;

    cursor: pointer;

    transition: .25s;
}

.btn-share:hover {
    border-color: #2563eb;

    color: #2563eb;
}


/* ==========================================
   SIN RESULTADOS
========================================== */

.catalog-empty {
    grid-column: 1 / -1;

    background: #fff;

    border-radius: 18px;

    padding: 55px 25px;

    text-align: center;

    border: 1px solid #e4eaf2;
}

.catalog-empty i {
    font-size: 42px;

    color: #19a9ed;

    margin-bottom: 15px;
}

.catalog-empty h3 {
    margin: 0 0 8px;

    color: #09265b;
}

.catalog-empty p {
    margin: 0 0 18px;

    color: #64748b;
}

.catalog-empty a {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 11px 16px;

    border-radius: 8px;

    background: #14a9ef;

    color: #fff;

    font-weight: 800;

    text-decoration: none;
}


/* ==========================================
   CTA FINAL
========================================== */

.catalog-cta-bottom {
    margin-top: 42px;

    background: #eef6ff;

    border: 1px solid #d9e2ef;

    border-radius: 22px;

    padding: 28px 32px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.catalog-cta-bottom > div {
    display: flex;

    align-items: center;

    gap: 18px;
}

.catalog-cta-bottom > div > i {
    width: 64px;

    height: 64px;

    border-radius: 50%;

    background: #25d366;

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;
}

.catalog-cta-bottom h3 {
    color: #132a5c;

    font-size: 24px;

    margin-bottom: 5px;
}

.catalog-cta-bottom p {
    color: #64748b;

    font-size: 15px;
}

.catalog-cta-bottom a {
    background: #2563eb;

    color: #fff;

    border-radius: 12px;

    padding: 15px 24px;

    font-weight: 850;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;

    transition: .25s;
}

.catalog-cta-bottom a:hover {
    background: #1d4ed8;

    transform: translateY(-2px);
}


/* ==========================================
   FOOTER SIMPLE
========================================== */

.footer-simple {
    background: #020b1d;

    color: #fff;

    text-align: center;

    padding: 58px 0 26px;
}

.footer-simple img {
    width: 190px;

    margin: 0 auto 18px;
}

.footer-simple h3 {
    font-size: 22px;

    margin-bottom: 14px;
}

.footer-simple p {
    max-width: 720px;

    margin: 0 auto 22px;

    color: #dbeafe;

    font-size: 16px;

    line-height: 1.7;
}

.footer-contact-simple {
    display: flex;

    justify-content: center;

    gap: 26px;

    flex-wrap: wrap;

    margin-bottom: 26px;
}

.footer-contact-simple span,
.footer-contact-simple a {
    color: #dbeafe;

    text-decoration: none;

    transition: .25s;
}

.footer-contact-simple a:hover {
    color: #25d366;
}

.footer-contact-simple i {
    color: #25d366;

    margin-right: 7px;
}

.footer-copy-simple {
    border-top:
        1px solid
        rgba(255,255,255,.08);

    padding-top: 20px;
}

.footer-copy-simple p {
    margin-bottom: 8px;

    color: #9ca3af;

    font-size: 14px;
}

.footer-copy-simple span {
    color: #dbeafe;

    font-size: 13px;
}

.footer-copy-simple a {
    color: #fff;

    font-weight: 700;

    text-decoration: none;

    transition: .25s;
}

.footer-copy-simple a:hover {
    color: #25d366;
}


/* ==========================================
   TABLET GRANDE
========================================== */

@media (max-width: 1200px) {

    .filters-box {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .catalog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .catalog-top {
        gap: 20px;

        align-items: flex-start;
    }

    /*
       Al pasar a dos columnas cada tarjeta
       tiene más ancho, por eso aumentamos
       ligeramente la altura de la foto.
    */

    .main-car-img,
    .no-car-image {
        height: 320px;

        min-height: 320px;
    }

}


/* ==========================================
   TABLET PEQUEÑA
========================================== */

@media (max-width: 991px) {

    .catalog-hero {
        height: 460px;

        background-position: center;
    }

    .catalog-hero-content {
        max-width: 100%;

        margin-left: 0;

        text-align: center;
    }

    .catalog-hero-content h1 {
        font-size: 46px;
    }

    .catalog-hero-content p {
        margin-left: auto;

        margin-right: auto;
    }

    .catalog-hero-benefits {
        justify-content: center;

        flex-wrap: wrap;
    }

    .filters-box {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .catalog-top {
        flex-direction: column;
    }

    .sort-box {
        margin-top: 15px;
    }

    .catalog-cta-bottom {
        flex-direction: column;

        text-align: center;

        gap: 25px;
    }

    .catalog-cta-bottom > div {
        flex-direction: column;
    }

}


/* ==========================================
   MÓVIL
========================================== */

@media (max-width: 768px) {

    .catalog-hero {
        height: 400px;
    }

    .catalog-hero-overlay {
        background:
            rgba(2,11,29,.80);
    }

    .catalog-hero-content {
        padding-left: 18px;

        padding-right: 18px;
    }

    .catalog-hero-content span {
        font-size: 13px;
    }

    .catalog-hero-content h1 {
        font-size: 34px;

        line-height: 1.15;
    }

    .catalog-hero-content p {
        font-size: 16px;
    }

    .catalog-hero-benefits {
        display: none;
    }

    .filters-section {
        margin-top: -35px;
    }

    .filters-box {
        grid-template-columns: 1fr;

        padding: 20px;
    }

    .catalog-section {
        padding: 45px 0 70px;
    }

    .catalog-top h2 {
        font-size: 28px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    /*
       Una sola tarjeta ocupa prácticamente
       todo el ancho disponible.
    */

    .main-car-img,
    .no-car-image {
        height: 300px;

        min-height: 300px;
    }

    .thumbs {
        gap: 8px;

        padding: 10px;
    }

    .thumbs button {
        height: 65px;
    }

    .car-meta {
        grid-template-columns: 1fr;
    }

    .car-actions {
        grid-template-columns: 1fr;
    }

    .catalog-cta-bottom {
        padding: 24px;
    }

    .catalog-cta-bottom h3 {
        font-size: 22px;
    }

}


/* ==========================================
   TELÉFONOS PEQUEÑOS
========================================== */

@media (max-width: 480px) {

    .main-car-img,
    .no-car-image {
        height: 270px;

        min-height: 270px;
    }

    .thumbs {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 6px;

        padding: 9px;
    }

    .thumbs button {
        height: 58px;

        border-radius: 8px;
    }

    .car-info {
        padding: 19px;
    }

    .car-info h3 {
        font-size: 22px;
    }

    .car-price {
        font-size: 30px;
    }

}


/* ==========================================
   FOOTER MÓVIL
========================================== */

@media (max-width: 600px) {

    .footer-simple {
        padding: 45px 0 20px;
    }

    .footer-simple img {
        width: 165px;
    }

    .footer-simple h3 {
        font-size: 19px;
    }

    .footer-simple p {
        font-size: 15px;
    }

    .footer-contact-simple {
        flex-direction: column;

        gap: 12px;
    }

    .footer-copy-simple span {
        display: block;

        line-height: 1.6;
    }

}




/* ==========================================
   FORZAR FOTO A LLENAR TARJETA
========================================== */

.car-card .car-gallery {
    position: relative !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #e8edf3 !important;
}

.car-card .car-gallery .car-card-link {
    display: block !important;
    width: 100% !important;
    height: 300px !important;
    overflow: hidden !important;
}

.car-card .car-gallery .main-car-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    display: block !important;

    object-fit: cover !important;
    object-position: center !important;

    margin: 0 !important;
    padding: 0 !important;
}