/* ==========================================================
   ACOSTA RENT CAR
   CATÁLOGO DE VEHÍCULOS — DISEÑO MODERNO
   ========================================================== */

.catalog-page {
    --catalog-gold: #b79a61;
    --catalog-dark: #17191d;
    --catalog-muted: #68717d;
    --catalog-border: #e4e7eb;
    --catalog-bg: #f4f6f8;
    padding-bottom: 0;
}

/* ENCABEZADO */

.catalog-hero {
    position: relative;
    overflow: hidden;
    padding: 75px 0 65px;
    background: linear-gradient(115deg, #17191d, #292d33);
    color: #fff;
}

.catalog-hero::after {
    content: "ACOSTA";
    position: absolute;
    right: -20px;
    bottom: -65px;
    font-size: clamp(100px, 14vw, 230px);
    font-weight: 900;
    letter-spacing: -10px;
    color: rgba(255,255,255,.035);
    pointer-events: none;
}

.catalog-hero .container {
    position: relative;
    z-index: 1;
}

.catalog-hero h1 {
    margin: 15px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(38px, 4.5vw, 65px);
    font-weight: 800;
    letter-spacing: -2px;
}

.catalog-hero h1 em {
    color: var(--catalog-gold);
    font-style: normal;
}

.catalog-hero p {
    max-width: 600px;
    color: #c4c8ce;
    font-size: 15px;
}

.catalog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    color: #a5abb3;
    font-size: 12px;
}

.catalog-breadcrumb a:hover,
.catalog-breadcrumb strong {
    color: var(--catalog-gold);
}

/* SECCIÓN PRINCIPAL */

.catalog-section {
    padding: 70px 0 110px;
    background: var(--catalog-bg);
}

.catalog-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 35px;
}

.catalog-heading h2 {
    margin: 9px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(29px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -1.3px;
}

.catalog-heading p {
    color: var(--catalog-muted);
    font-size: 14px;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 14px;
}

.catalog-sort label {
    font-size: 12px;
    font-weight: 700;
}

.catalog-sort select {
    min-height: 45px;
    padding: 0 15px;
    border: 1px solid var(--catalog-border);
    border-radius: 8px;
    background: #fff;
    color: #252930;
    font-size: 12px;
    cursor: pointer;
}

.catalog-search-notice {
    padding: 17px 22px;
    margin-bottom: 25px;
    border-left: 3px solid var(--catalog-gold);
    border-radius: 0 8px 8px 0;
    background: #eee8dc;
    font-size: 13px;
}

/* DISTRIBUCIÓN */

.catalog-layout {
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

/* FILTROS */

.catalog-sidebar {
    padding: 25px;
    background: #fff;
    border: 1px solid var(--catalog-border);
    border-radius: 12px;
    box-shadow: 0 5px 22px rgba(0,0,0,.025);
}

.filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
}

.filter-heading h3 {
    font-size: 17px;
    font-weight: 800;
}

.filter-heading button {
    border: 0;
    background: transparent;
    color: #a3834a;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 22px 0;
    border-top: 1px solid #edf0f2;
}

.filter-group > label,
.filter-group h4 {
    color: #292e35;
    font-size: 12px;
    font-weight: 800;
}

.filter-group input[type="search"],
.filter-group select {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #dfe3e8;
    border-radius: 7px;
    background: #fafbfc;
    color: #252930;
    font-size: 12px;
    outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--catalog-gold);
    background: #fff;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555e68;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.filter-option input,
.catalog-compare-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--catalog-gold);
    cursor: pointer;
}

#price-range {
    width: 100%;
    accent-color: var(--catalog-gold);
    cursor: pointer;
}

#price-output {
    display: block;
    margin-top: 6px;
    color: #a3834a;
    font-size: 18px;
    font-weight: 800;
}

/* RESULTADOS */

.catalog-results {
    min-width: 0;
}

.catalog-results-top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 0 2px 18px;
    color: var(--catalog-muted);
    font-size: 12px;
}

.catalog-results-top span:last-child {
    color: #a3834a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

/* TARJETAS */

.catalog-vehicle-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--catalog-border);
    border-radius: 13px;
    box-shadow: 0 4px 18px rgba(20,30,40,.035);
    transition: transform .3s ease, box-shadow .3s ease;
}

.catalog-vehicle-card[hidden] {
    display: none !important;
}

.catalog-vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(20,30,40,.1);
}

/* IMÁGENES */

.catalog-vehicle-image {
    position: relative;
    height: 290px;
    overflow: hidden;
    background: #e9edf0;
}

.catalog-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.catalog-vehicle-card:hover .catalog-vehicle-image img {
    transform: scale(1.04);
}

.catalog-category {
    position: absolute;
    z-index: 2;
    top: 17px;
    left: 17px;
    padding: 9px 14px;
    border-radius: 5px;
    background: rgba(255,255,255,.96);
    color: #252930;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

/* INFORMACIÓN DEL VEHÍCULO */

.catalog-vehicle-content {
    padding: 28px;
}

.catalog-card-eyebrow {
    color: #a3834a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.catalog-vehicle-content h3 {
    margin: 8px 0 23px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(21px, 1.7vw, 26px);
    font-weight: 800;
    letter-spacing: -.8px;
    color: #191d23;
}

/* CARACTERÍSTICAS */

.catalog-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding-bottom: 25px;
    color: #606a75;
    font-size: 12px;
}

.catalog-specs span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* PRECIO Y BOTÓN */

.catalog-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 23px;
    border-top: 1px solid #e9ecef;
}

.catalog-price {
    min-width: 0;
}

.catalog-price small {
    display: block;
    margin-bottom: 2px;
    color: #858d97;
    font-size: 11px;
}

.catalog-price strong {
    color: #17191d;
    font-size: clamp(26px, 2.2vw, 33px);
    font-weight: 800;
    letter-spacing: -1.5px;
}

.catalog-price > span {
    color: #858d97;
    font-size: 12px;
}

.catalog-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 13px 20px;
    border-radius: 7px;
    background: #1d2229;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .25s ease, color .25s ease;
}

.catalog-detail-btn:hover {
    background: var(--catalog-gold);
    color: #111;
}

/* COMPARAR */

.catalog-compare-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 23px;
    padding-top: 19px;
    border-top: 1px solid #edf0f2;
    color: #68717d;
    font-size: 12px;
    cursor: pointer;
}

.catalog-empty {
    padding: 75px 25px;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.catalog-empty h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.catalog-empty p {
    margin-bottom: 25px;
    color: var(--catalog-muted);
}

/* BARRA DE COMPARACIÓN */

.compare-bar {
    position: fixed;
    z-index: 150;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 0;
    background: #1b2026;
    color: #fff;
    box-shadow: 0 -8px 30px rgba(0,0,0,.18);
}

.compare-bar[hidden],
.catalog-empty[hidden] {
    display: none !important;
}

.compare-bar-inner,
.compare-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.compare-bar-inner > div:first-child {
    display: flex;
    flex-direction: column;
}

.compare-bar strong {
    font-size: 14px;
}

.compare-bar span {
    color: #adb5bd;
    font-size: 12px;
}

.compare-actions > button:first-child {
    border: 0;
    background: transparent;
    color: #e1e4e8;
    font-size: 12px;
    cursor: pointer;
}

.compare-actions .btn {
    border-radius: 7px;
}

.compare-actions .btn:disabled {
    cursor: not-allowed;
}

/* RESPONSIVE */

@media (max-width: 1150px) {
    .catalog-layout {
        grid-template-columns: 235px minmax(0, 1fr);
        gap: 20px;
    }

    .catalog-vehicle-image {
        height: 235px;
    }

    .catalog-vehicle-content {
        padding: 22px;
    }

    .catalog-card-bottom {
        flex-wrap: wrap;
    }
}

@media (max-width: 850px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 22px;
    }

    .filter-heading {
        grid-column: 1 / -1;
    }

    .catalog-vehicle-image {
        height: 265px;
    }
}

@media (max-width: 650px) {
    .catalog-hero {
        padding: 65px 0;
    }

    .catalog-section {
        padding: 55px 0 80px;
    }

    .catalog-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-heading h2 {
        font-size: 30px;
    }

    .catalog-sort {
        justify-content: space-between;
    }

    .catalog-sidebar {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .catalog-vehicle-image {
        height: 270px;
    }

    .catalog-vehicle-content {
        padding: 23px;
    }

    .catalog-vehicle-content h3 {
        font-size: 24px;
    }

    .catalog-results-top span:last-child {
        display: none;
    }

    .compare-bar-inner {
        gap: 12px;
    }

    .compare-actions {
        gap: 12px;
    }

    .compare-actions .btn {
        min-height: 43px;
        padding: 12px;
    }
}

@media (max-width: 380px) {
    .catalog-card-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-detail-btn {
        width: 100%;
    }

    .compare-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .compare-actions {
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-vehicle-card,
    .catalog-vehicle-image img,
    .catalog-detail-btn {
        transition: none;
    }
}


/* TARJETAS — ESTILO DEFINITIVO */

.catalog-vehicle-card {
    border-radius: 24px;
    background: #f0f3f8;
    border: 1px solid #e1e5eb;
    overflow: hidden;
}

.catalog-vehicle-content {
    background: #f0f3f8;
}

.catalog-detail-btn {
    border-radius: 12px;
}

.catalog-sidebar {
    border-radius: 20px;
}


/* CATÁLOGO — 3 VEHÍCULOS POR FILA */

.catalog-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
}

.catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.catalog-vehicle-image {
    height: 200px;
}

.catalog-vehicle-content {
    padding: 18px;
}

.catalog-vehicle-content h3 {
    font-size: 19px;
}

.catalog-price strong {
    font-size: 25px;
}

.catalog-card-bottom {
    flex-wrap: wrap;
}

/* TABLETS */
@media (max-width: 1100px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MÓVILES */
@media (max-width: 650px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-vehicle-image {
        height: 250px;
    }
}


/* ==========================================
   CATÁLOGO — APROVECHAR ANCHO DE PANTALLA
   ========================================== */

.catalog-page .container {
    width: calc(100% - 80px);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
}

.catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.catalog-vehicle-image {
    height: 250px;
}

/* PANTALLAS MEDIANAS */
@media (max-width: 1200px) {
    .catalog-page .container {
        width: calc(100% - 48px);
    }

    .catalog-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 20px;
    }

    .catalog-grid {
        gap: 16px;
    }
}

/* TABLETS */
@media (max-width: 1000px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MÓVILES */
@media (max-width: 700px) {
    .catalog-page .container {
        width: calc(100% - 32px);
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* CATÁLOGO MÁS ANCHO */

@media (min-width: 1201px) {
    .catalog-page .container {
        width: calc(100% - 48px);
        max-width: 1800px;
    }

    .catalog-layout {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 28px;
    }

    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px;
    }

    .catalog-vehicle-image {
        height: 270px;
    }
}

/* =========================================
   ACCIONES DEL CATÁLOGO
========================================= */

.catalog-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-card-actions .catalog-detail-btn,
.catalog-card-actions .catalog-reserve-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all .25s ease;
}

.catalog-reserve-btn {
    background: #B79A61;
    color: #111111;
    border: 1px solid #B79A61;
}

.catalog-reserve-btn:hover {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

@media (max-width: 480px) {
    .catalog-card-actions {
        width: 100%;
    }
}
