@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rubik:wght@400;500;600&display=swap');

/* =============================================
   LAYOUT GENERAL
============================================= */
.pv-wrap {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    margin-top: 40px;
}

/* =============================================
   SIDEBAR (solo desktop)
============================================= */
.pv-sidebar {
    flex: 0 0 240px;
    width: 240px;
}

.pv-sidebar-divider {
    border: none;
    border-top: 1px solid #D1D5DB;
    margin: 20px 0 !important;
}

.pv-grupo {
    margin-bottom: 4px;
}

.pv-grupo-titulo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #111111;
    margin: 0 0 8px 0;
    line-height: 1.1;
    white-space: nowrap;
}

.pv-categorias {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pv-cat-item {
    margin-bottom: 2px;
}

/* =============================================
   LINKS DE CATEGORÍA (sidebar desktop)
============================================= */
.pv-cat-link {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #111111;
    text-decoration: none;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pv-cat-link:hover {
    background-color: rgba(244, 6, 52, 0.1);
    color: #F40634;
}

.pv-cat-link.pv-cat--activa {
    background-color: rgba(244, 6, 52, 0.12);
    color: #F40634;
    font-weight: 500;
}

/* =============================================
   CONTENIDO PRINCIPAL
============================================= */
.pv-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* =============================================
   FILTROS MÓVIL (ocultos en desktop)
============================================= */
.pv-mobile-filters {
    display: none;
}

/* =============================================
   TABS (móvil)
============================================= */
.pv-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 12px;
}

.pv-tab {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 8px 16px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.pv-tab:hover {
    color: #F40634;
}

.pv-tab--activo {
    color: #F40634;
    border-bottom-color: #F40634;
}

/* =============================================
   CHIPS DE CATEGORÍAS (móvil — scroll horizontal)
============================================= */
.pv-grupo-chips {
    margin-bottom: 10px;
}

.pv-grupo-chips--oculto {
    display: none;
}

.pv-chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pv-chips-scroll::-webkit-scrollbar {
    display: none;
}

.pv-chip {
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #374151;
    background-color: #F3F4F6;
    border: 1.5px solid transparent;
    border-radius: 20px;
    padding: 5px 14px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pv-chip:hover {
    background-color: rgba(244, 6, 52, 0.08);
    color: #F40634;
    border-color: rgba(244, 6, 52, 0.3);
}

.pv-chip--activo {
    background-color: rgba(244, 6, 52, 0.1);
    color: #F40634;
    border-color: #F40634;
    font-weight: 500;
}

/* =============================================
   ETIQUETAS — chips encima del grid
   (visibles en desktop Y móvil)
============================================= */
.pv-etiquetas-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.pv-etiqueta {
    font-family: 'Rubik', sans-serif!important;
    font-size: 12px!important;;
    font-weight: 400!important;;
    color: #374151;
    background-color: #F3F4F6;
    border: 1.5px solid transparent!important;;
    border-radius: 20px;
    /* padding: 5px 16px; */
    padding: 10px 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.pv-etiqueta:hover {
    background-color: rgba(244, 6, 52, 0.08);
    color: #F40634;
    border-color: rgba(244, 6, 52, 0.3);
}

.pv-etiqueta--activa {
    background-color: rgba(244, 6, 52, 0.1);
    color: #F40634;
    border-color: #F40634;
    font-weight: 500;
}

/* =============================================
   GRID DE VEHÍCULOS
============================================= */
.pv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    min-width: 0;
}

/* =============================================
   TARJETA
============================================= */
.pv-card {
    background: #ffffff;
    border: 2px solid #99A1AF80;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

/* =============================================
   BADGE
============================================= */
.pv-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 25px;
    border-radius: 20px;
    width: fit-content;
    line-height: 1;
}

.pv-badge--ano {
    background-color: rgba(244, 6, 52, 0.12);
    color: #070707;
    border: 2px solid #F40634;
}

.pv-badge--custom {
    background-color: rgba(244, 6, 52, 0.12);
    color: #F40634;
}

/* =============================================
   IMAGEN
============================================= */
.pv-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.pv-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* =============================================
   BODY DE LA TARJETA
============================================= */
.pv-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pv-marca {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #111111;
    margin: 0;
}

/* =============================================
   BOTONES
============================================= */
.pv-btn {
    display: inline-block;
    width: fit-content;
    background-color: #F40634;
    color: #ffffff;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.pv-btn:hover {
    background-color: #cc0229;
    color: #ffffff;
}

.pv-link-cotizacion {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #111111;
    text-decoration: underline !important;
    width: fit-content;
    transition: color 0.2s ease;
}

.pv-link-cotizacion:hover {
    color: #F40634;
}

/* =============================================
   SIN RESULTADOS
============================================= */
.pv-sin-resultados {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    color: #666666;
    grid-column: 1 / -1;
}

/* =============================================
   TABLET (max 1024px)
============================================= */
@media (max-width: 1024px) {
    .pv-sidebar {
        flex: 0 0 200px;
        width: 200px;
    }

    .pv-grupo-titulo {
        font-size: 21px;
    }

    .pv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   MÓVIL (max 768px)
============================================= */
@media (max-width: 768px) {
    .pv-wrap {
        flex-direction: column;
        gap: 0;
        margin-top: 20px;
    }

    /* Ocultar sidebar en móvil */
    .pv-sidebar {
        display: none;
    }

    /* Mostrar filtros móvil */
    .pv-mobile-filters {
        display: block;
        margin-bottom: 16px;
    }

    .pv-main {
        width: 100%;
    }

    /* Etiquetas en móvil: scroll horizontal */
    .pv-etiquetas-wrap {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin-bottom: 16px;
    }

    .pv-etiquetas-wrap::-webkit-scrollbar {
        display: none;
    }

    .pv-etiqueta {
        flex-shrink: 0;
    }

    .pv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* =============================================
   MÓVIL PEQUEÑO (max 480px)
============================================= */
@media (max-width: 480px) {
    .pv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pv-card {
        padding: 12px;
    }

    .pv-btn {
        font-size: 13px;
        padding: 8px 16px;
        width: 100%;
        text-align: center;
    }
}


.pv-card-body p:not([class]) {
    display: flex;
    flex-direction: column;
    gap: 12px;
}