/* =============================================
   1. CONTENEDOR PRINCIPAL
   ============================================= */
.motospecs-widget {
    background: transparent;
    width: 100%;
    overflow: visible; 
    position: relative;
}

/* =============================================
   2. NAVEGACIÓN (NO CONFLICT MODE)
   ============================================= */
.category-nav-wrapper {
    display: block; 
    position: relative;
    margin-bottom: 25px;
    width: 100%;
    /* FIX: Asegura que el contenedor no tenga altura extra fantasma */
    line-height: 0; 
}

/* Máscara del Carrusel */
.mpro-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    /* Mascara de desvanecimiento lateral */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
}

.mpro-carousel-container.grabbing {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Pista de Desplazamiento */
.mpro-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    
    /* FIX CRÍTICO: Eliminamos el padding-bottom para que la altura sea EXACTA a la del botón */
    padding-bottom: 0; 
    
    padding-left: 10px; 
    padding-right: 10px;
    /* Restauramos line-height para el contenido */
    line-height: normal; 
}

.mpro-carousel-track::-webkit-scrollbar {
    display: none;
}

.mpro-carousel-container.grabbing .mpro-carousel-track {
    scroll-behavior: auto;
}

.mpro-carousel-slide {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    /* Asegura que el slide no agregue altura extra */
    align-items: stretch; 
}

/* =============================================
   3. FLECHAS DE NAVEGACIÓN (FLOTANTES)
   ============================================= */
.mpro-nav-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
    /* Dimensiones */
    width: 60px; /* Base editable en Elementor */
    height: 100%; /* Se adapta a la altura exacta de los botones */
    color: #fff;
    border-radius: 0; 
    pointer-events: all;
}

.mpro-prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 5px;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.mpro-next {
    right: 0;
    justify-content: flex-end;
    padding-right: 5px;
    background: linear-gradient(to left, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.mpro-nav-btn:hover {
    color: #cc0000; 
}

.mpro-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    filter: drop-shadow(0px 0px 2px rgba(0,0,0,0.5));
}

.mpro-arrow-icon i,
.mpro-arrow-icon svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =============================================
   4. BOTONES DE CATEGORÍA
   ============================================= */
.cat-btn {
    background: #222; 
    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);
    pointer-events: auto;
    display: block;
    width: 100%;
    /* Aseguramos que el botón llene el slide verticalmente */
    height: 100%; 
}

.mpro-carousel-container.grabbing .cat-btn {
    pointer-events: none;
}

.cat-btn.active {
    background: #cc0000;
    /* FIX: Eliminamos el translateY para que no "salte" y se mantenga alineado con las flechas */
    transform: none; 
}

/* =============================================
   5. GRID Y TARJETAS
   ============================================= */
.specs-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr); 
}

.spec-card {
    position: relative;
    display: flex;
    padding: 20px;
    background: #000;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 15px;
    overflow: hidden; 
    backdrop-filter: blur(0px); 
    -webkit-backdrop-filter: blur(0px);
}

.spec-card:hover {
    transform: translateY(-5px);
    z-index: 2;
}

.spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.spec-icon i, .spec-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.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;
    display: block;
}

.spec-card .value { 
    color: #fff; 
    font-size: 18px; 
    font-weight: 800; 
    font-style: italic;
    display: block;
}