/* =============================================
   CONTENEDOR Y NAVEGACIÓN
   ============================================= */
.motospecs-widget {
    background: transparent;
    width: 100%;
    overflow: hidden;
}

.category-nav-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 25px;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 5px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    scroll-behavior: smooth;
}

.category-scroll::-webkit-scrollbar { 
    display: none; /* Chrome, Safari */
}

.cat-btn {
    background: #222; /* Color base */
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-btn.active {
    /* El color rojo se controla desde Elementor, pero este es el fallback */
    background: #cc0000; 
    transform: translateY(-2px);
}

/* =============================================
   GRID RESPONSIVO (2 MÓVIL / 4 PC)
   ============================================= */
.specs-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr); /* Móvil por defecto */
}

@media (min-width: 768px) {
    .specs-grid {
        grid-template-columns: repeat(3, 1fr); /* Tablet */
    }
}

@media (min-width: 1024px) {
    .specs-grid {
        grid-template-columns: repeat(4, 1fr); /* PC Desktop */
    }
}

/* =============================================
   ESTILO DE LAS TARJETAS
   ============================================= */
.spec-card {
    position: relative;
    display: flex;
    padding: 20px;
    background: #000;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    gap: 15px;
}

/* Glassmorphism */
.spec-card {
    backdrop-filter: blur(0px); /* Controlado por Elementor */
    -webkit-backdrop-filter: blur(0px);
}

.spec-card:hover {
    transform: translateY(-5px);
    z-index: 2;
}

/* =============================================
   ICONOS Y POSICIONES
   ============================================= */
.spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

/* Clases inyectadas por el Widget */
.icon-pos-top .spec-card { flex-direction: column; align-items: flex-start; }
.icon-pos-bottom .spec-card { flex-direction: column-reverse; align-items: flex-start; }
.icon-pos-left .spec-card { flex-direction: row; align-items: center; }
.icon-pos-right .spec-card { flex-direction: row-reverse; align-items: center; }

.spec-info {
    display: flex;
    flex-direction: column;
}

.spec-card .label { 
    color: #888; 
    font-size: 12px; 
    margin-bottom: 4px; 
    text-transform: uppercase;
}

.spec-card .value { 
    color: #fff; 
    font-size: 18px; 
    font-weight: 800; 
    font-style: italic;
}