/* Featured Components Module CSS */
.rebit-module-featured-comps {
    padding: var(--section-padding) 0;
}

.rebit-featured-comps-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-24);
}

.rebit-featured-comps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-32);
}

.rebit-featured-comps-header .rebit-section-title {
    margin: 0;
    text-align: left;
    justify-content: flex-start;
}

.rebit-fc-btn-explore {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 2px;
    transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.rebit-fc-btn-explore:hover {
    color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

/* Slider Layout */
.rebit-fc-content {
    position: relative;
}

.rebit-fc-grid {
    display: flex;
    padding: 8px;
    gap: var(--spacing-24);
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    width: 100%;
    max-width: 100%;
}

.rebit-fc-grid.is-slider {
    justify-content: flex-start;
}

.rebit-fc-grid::-webkit-scrollbar {
    display: none;
}

.rebit-fc-card-wrapper {
    flex: 0 0 calc(25% - 18px);
    /* 4 por vista - (gap * 3 / 4) */
    min-width: 250px;
}

.rebit-fc-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-outline);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 98, 131, 0.12);
    z-index: 10;
    color: var(--color-primary);
    transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 150ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .rebit-fc-slider-btn:hover {
        background: var(--color-primary);
        color: #fff;
        border-color: var(--color-primary);
        transform: translateY(-50%) scale(1.06);
        box-shadow: 0 12px 24px rgba(0, 98, 131, 0.25);
    }

    .rebit-fc-slider-btn.prev:hover svg {
        transform: translateX(-2px);
    }

    .rebit-fc-slider-btn.next:hover svg {
        transform: translateX(2px);
    }
}

.rebit-fc-slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.rebit-fc-slider-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 3;
    transition: transform 150ms var(--ease-out);
}

.rebit-fc-slider-btn.prev {
    left: -20px;
}

.rebit-fc-slider-btn.next {
    right: -20px;
}

@media (max-width: 1024px) {
    .rebit-fc-grid {
        justify-content: flex-start;
    }

    .rebit-fc-card-wrapper {
        flex: 0 0 calc(33.333% - 16px);
    }
}

@media (max-width: 768px) {
    .rebit-featured-comps-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: var(--spacing-8);
        width: 100%;
    }

    .rebit-fc-card-wrapper {
        flex: 0 0 240px; /* Ensanchado para que entren los precios duales */
        min-width: 0;
    }

    .rebit-fc-slider-btn {
        display: none;
        /* Ocultar flechas en móviles, los usuarios hacen scroll táctil */
    }

    .rebit-fc-btn-explore {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .rebit-fc-card-wrapper {
        flex: 0 0 200px; /* Ensanchado para que entren los precios duales */
        min-width: 0;
    }

    .rebit-fc-btn-explore {
        font-size: 11px;
        padding: 6px 12px;
    }
}