/* ==========================================================================
   Sección: Cotizar por Categorías
   ========================================================================== */
.categories-section {
    padding: 5px 0;
    background-color: #f6f6f6; /* Fondo gris claro general de la sección */
    width: 100%;
    
}

.categories-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
}

.categories-title {
    font-size: 2.1rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 30px;
}

.categories-title .highlight {
    color: #00a803;
}

.categories-slider {
    display: flex;
    gap: 20px;
    padding: 10px 10px 20px 10px; /* Padding interno para que no se corte la sombra de las tarjetas */
    margin: -10px -10px 0 -10px; /* Compensamos el padding visualmente */
    cursor: grab;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-slider.active {
    cursor: grabbing;
    scroll-snap-type: none; /* Desactiva el snap temporalmente para que el arrastre sea fluido */
}

.categories-slider::-webkit-scrollbar {
    display: none;
}

/* --- Estilo de la Tarjeta (Desktop) --- */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 0 0 auto;
    
    /* Medidas exactas Desktop */
    width: 140px; 
    height: 181px; 
    
    background-color: #ffffff; /* Fondo blanco de la tarjeta */
    border-radius: 20px; /* Bordes bien redondeados según Figma */
    padding: 10px; /* Espacio interno */
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); /* Sombra suave */
    
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.category-image-wrapper {
    width: 100%;
    height: 90px; /* Altura controlada para la imagen */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.category-img {
    max-width: 85%;
    max-height: 100%;
    object-fit: contain; /* Para que el producto se vea completo sin recortes */
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.category-name {
    color: #555; /* Texto un poco más gris */
    font-size: 0.85rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
    line-height: 1.3;
    width: 100%;
}

/* ==========================================================================
   Responsive (Mobile)
   ========================================================================== */
@media screen and (max-width: 991px) {
    .categories-section {
        padding: 5px 0;
    }

    .categories-container {
        padding: 0 20px;
    }

    .categories-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .categories-slider {
        gap: 15px;
    }

    /* --- Estilo de la Tarjeta (Mobile) --- */
    .category-card {
        /* Medidas exactas Móvil */
        width: 105px;
        height: 146px;
        
        border-radius: 16px;
        padding: 10px 8px;
    }

    .category-image-wrapper {
        height: 70px;
        margin-bottom: 10px;
    }

    .category-name {
        font-size: 0.75rem;
    }
}