/* === PESTAÑAS DE VEHÍCULOS === */

.vehiculos-tabs-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.vehiculos-tabs {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 0;
    margin: 0 0 50px 0;
}

.vehiculo-tab-btn {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    padding-bottom: 0;
    user-select: none;
    background: none;
    position: relative;
}

.vehiculo-tab-btn span {
    font-family: 'Noto Sans', sans-serif !important;
    color: #3a4652 !important;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 8px;
    display: inline-block;
}

.vehiculo-tab-btn::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: #3a4652;
    transition: width 0.2s ease;
    margin: 0 auto;
}

.vehiculo-tab-btn.active span {
    font-weight: 700;
}

.vehiculo-tab-btn.active::after {
    width: 100%;
}

.vehiculo-tab-btn:hover::after {
    width: 100%;
    background: #9aa5ae;
}

/* === ANIMACIÓN INDIVIDUAL DESDE LA DERECHA === */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === GRID DE VEHÍCULOS === */
.vehiculos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 30px;
}

.vehiculo-card {
    width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: slideInRight 0.4s ease forwards;
}

.vehiculo-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.vehiculo-img-wrap {
    width: 300px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vehiculo-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.vehiculo-card:hover .vehiculo-img-wrap img {
    transform: scale(1.04);
}

.vehiculo-nombre {
    font-family: 'Noto Sans', sans-serif !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #3a4652 !important;
    margin-top: 15px;
    text-align: center;
    width: 100%;
}

.vehiculo-sin-imagen {
    width: 300px;
    height: 190px;
    background: #f5f5f5;
}

.vehiculos-tabs-wrapper {
    background-color: #fafbfb;
}
.yoo-zoo {
    background-color: #fafbfb !important;
}
.yoo-zoo,
.yoo-zoo .uk-block,
#tm-main .uk-block-default,
.tm-isblog #tm-main {
    background-color: #fafbfb !important;
}
/* =============================================
   VEHÍCULOS - AJUSTE MOBILE (menú + grid)
   ============================================= */

@media screen and (max-width: 768px) {

    /* Menú de categorías: que quepan las 4 en una sola fila */
    .vehiculos-tabs {
        gap: 14px !important;
        flex-wrap: nowrap;
    }
    .vehiculo-tab-btn span {
        font-size: 10.5px !important;
        letter-spacing: 0.5px !important;
    }

    /* Grid de vehículos: 2 columnas flexibles en vez de ancho fijo de 300px */
    .vehiculos-grid {
        gap: 24px 14px !important;
    }
    .vehiculo-card {
        width: calc(50% - 7px) !important;
    }
    .vehiculo-img-wrap,
    .vehiculo-sin-imagen {
        width: 100% !important;
        height: 130px !important;
    }

    /* Anula el min-height que UIkit calcula para escritorio y deja hueco abajo */
    .yoo-zoo.blog-vehiculos [style*="min-height"] {
        min-height: 0 !important;
    }
}