.brand-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 10px 4% 20px;
    width: 100%;
    background: transparent;
    overflow-x: auto;
    /* Allow scrolling if they don't fit, though we aim for 1 row */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.brand-container::-webkit-scrollbar {
    display: none;
}

.brand-card {
    position: relative;
    flex: 1 1 0;
    min-width: 150px;
    /* Ajustado para formato horizontal equilibrado */
    aspect-ratio: 18 / 9;
    /* Formato equilibrado entre 16:9 y 21:9 */
    background: linear-gradient(180deg, #22222a 0%, #111115 100%);
    /* Degradado premium */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.brand-card:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.brand-border {
    width: 100%;
    height: 100%;
}

.brand-media {
    width: 100%;
    height: 100%;
    position: relative;
}

.brand-media img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.brand-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.brand-card:hover .brand-video {
    opacity: 1;
}

.brand-card:hover .brand-media img {
    opacity: 0;
    /* Hide image to show video clearly */
}

@media (max-width: 1024px) {
    .brand-container {
        flex-wrap: wrap;
    }

    .brand-card {
        flex: 1 1 calc(33.33% - 15px);
    }
}

@media (max-width: 768px) {
    .brand-card {
        flex: 1 1 calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .brand-container {
        gap: 10px;
    }

    .brand-card {
        flex: 1 1 calc(50% - 10px);
    }
}