/* BeatLatin Home — Carrusel DJs (Apple ellipse-lockup)
 *
 * PC 1920: 8 círculos · flechas FUERA del círculo
 * Móvil: 3 + peek del 4º · swipe
 * Título: --title-2-emphasized 700 17px · Nombre: 400 12px
 * Rocket minify: no calc(var(a) + var(b))
 */

.bl-home-djs {
    position: relative;
    overflow: visible;
    margin-bottom: 36px;
    font-family: var(--bl-font);
}

.bl-home-djs__header {
    margin-bottom: 12px;
}

.bl-home-djs__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2941176471;
    letter-spacing: -0.01em;
    color: var(--bl-system-primary, hsla(0, 0%, 100%, 0.92));
}

.bl-home-djs__title-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.bl-home-djs__title-link:hover {
    opacity: 0.92;
    color: inherit;
}

.bl-home-djs__title-link .fa-chevron-right {
    font-size: 0.72em;
    opacity: 0.75;
}

.bl-home-djs__shelf {
    position: relative;
    overflow: visible;
}

.bl-home-djs__arrow {
    position: absolute;
    /* Centro vertical del círculo (resta bloque del nombre) */
    top: calc((100% - 36px) / 2);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 52px;
    padding: 0 !important;
    margin: 0;
    border: none !important;
    border-radius: 1000px !important;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
    /* Sin rojo Hello/Elementor — colores BeatLatin fijos */
    color: rgba(245, 245, 247, 0.72) !important;
    background: rgba(255, 255, 255, 0.10) !important;
    background-color: rgba(255, 255, 255, 0.10) !important;
    backdrop-filter: blur(24px) saturate(185%);
    -webkit-backdrop-filter: blur(24px) saturate(185%);
    box-shadow:
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.14),
        0 4px 14px rgba(0, 0, 0, 0.22) !important;
    transition:
        background-color 0.25s linear,
        color 0.25s linear,
        opacity 0.25s linear;
    -webkit-appearance: none;
    appearance: none;
    outline: none !important;
}

.bl-home-djs__arrow[hidden] {
    display: none !important;
}

.bl-home-djs__arrow-icon {
    width: 8.5px;
    height: 30.5px;
    fill: currentColor !important;
    color: inherit !important;
    flex-shrink: 0;
}

.bl-home-djs__arrow-icon--right {
    transform: scaleX(-1);
}

.bl-home-djs__arrow svg,
.bl-home-djs__arrow path {
    fill: currentColor !important;
    color: inherit !important;
}

/* Flechas FUERA del círculo (Apple: fuera del último item) */
.bl-home-djs__arrow--left {
    left: 0;
    right: auto;
    translate: -18px -50%;
}

/*
 * PC 1920: 8 enteras + peek corto · gap 16 · 7 gaps = 112
 * right = borde de la 8ª entera; translate empuja la pill fuera
 */
.bl-home-djs__arrow--right {
    right: calc(16px + (100% - 112px) / 8.04 * 0.04);
    left: auto;
    translate: 18px -50%;
}

.bl-home-djs__arrow:hover,
.bl-home-djs__arrow:focus,
.bl-home-djs__arrow:focus-visible,
.bl-home-djs__arrow:active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    background-color: rgba(255, 255, 255, 0.16) !important;
    border: none !important;
    outline: none !important;
}

.bl-home-djs__arrow:focus-visible {
    opacity: 1;
    pointer-events: auto;
    outline: 2px solid rgba(255, 255, 255, 0.35) !important;
    outline-offset: 2px;
}

.bl-home-djs.is-shelf-hover .bl-home-djs__arrow:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.bl-home-djs.is-at-start .bl-home-djs__arrow--left {
    display: none !important;
}

.bl-home-djs.is-at-end .bl-home-djs__arrow--right {
    display: none !important;
}

[data-theme="light"] .bl-home-djs__title {
    color: var(--bl-system-primary, rgba(0, 0, 0, 0.88));
}

[data-theme="light"] .bl-home-djs__arrow,
[data-theme="light"] .bl-home-djs__arrow:hover,
[data-theme="light"] .bl-home-djs__arrow:focus,
[data-theme="light"] .bl-home-djs__arrow:focus-visible,
[data-theme="light"] .bl-home-djs__arrow:active {
    color: rgba(29, 29, 31, 0.55) !important;
    background: rgba(255, 255, 255, 0.78) !important;
    background-color: rgba(255, 255, 255, 0.78) !important;
    box-shadow:
        inset 0 0 0 0.5px rgba(0, 0, 0, 0.07),
        0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .bl-home-djs__arrow:hover,
[data-theme="light"] .bl-home-djs__arrow:focus-visible {
    color: rgba(29, 29, 31, 0.92) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    background-color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="light"] .bl-home-djs__arrow:focus-visible {
    outline-color: rgba(0, 0, 0, 0.28) !important;
}

.bl-home-djs__viewport {
    overflow: hidden;
    width: 100%;
}

@media (min-width: 1025px) {
    .bl-home-djs__viewport {
        box-sizing: border-box;
        width: calc(100% + var(--bl-bleed-left, 256px) + var(--bl-bleed-right, 12px));
        max-width: none;
        margin-left: calc(-1 * var(--bl-bleed-left, 256px));
        margin-right: calc(-1 * var(--bl-bleed-right, 12px));
        padding-left: var(--bl-bleed-left, 256px);
        padding-right: var(--bl-bleed-right, 12px);
    }
}

.bl-home-djs__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* Desktop 1920: 8 círculos + peek · 7×16 = 112 */
.bl-home-djs__item {
    flex: 0 0 calc((100% - 112px) / 8.04);
    width: calc((100% - 112px) / 8.04);
    max-width: calc((100% - 112px) / 8.04);
    min-width: 0;
    box-sizing: border-box;
}

.bl-home-djs__lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.bl-home-djs__lockup:hover,
.bl-home-djs__lockup:focus-visible {
    color: inherit;
    text-decoration: none;
}

.bl-home-djs__art {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bl-featured-photo-bg, #3a3a3c);
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .bl-home-djs__art {
    background: var(--bl-featured-photo-bg, #e6e6ea);
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}

.bl-home-djs__art img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    border-radius: 50%;
    border: none !important;
}

.bl-home-djs__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0 2px;
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.333;
    letter-spacing: -0.01em;
    color: var(--bl-system-primary, hsla(0, 0%, 100%, 0.92));
    word-break: break-word;
}

[data-theme="light"] .bl-home-djs__name {
    color: var(--bl-system-primary, rgba(0, 0, 0, 0.88));
}

.bl-home-djs__lockup:focus-visible .bl-home-djs__art {
    box-shadow:
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.12),
        0 0 0 3px rgba(217, 12, 12, 0.28);
}

/* Tablet: 5 + peek */
@media (max-width: 1024px) {
    .bl-home-djs__track {
        gap: 14px;
    }

    .bl-home-djs__item {
        flex: 0 0 calc((100% - 56px) / 5.04);
        width: calc((100% - 56px) / 5.04);
        max-width: calc((100% - 56px) / 5.04);
    }

    .bl-home-djs__arrow--right {
        right: calc(14px + (100% - 56px) / 5.04 * 0.04);
    }
}

/* QHD: 10 + peek */
@media (min-width: 2560px) {
    .bl-home-djs__track {
        gap: 20px;
    }

    .bl-home-djs__item {
        flex: 0 0 calc((100% - 180px) / 10.04);
        width: calc((100% - 180px) / 10.04);
        max-width: calc((100% - 180px) / 10.04);
    }

    .bl-home-djs__arrow--right {
        right: calc(20px + (100% - 180px) / 10.04 * 0.04);
    }
}

/* Móvil: 3 enteras + peek del 4º · swipe · sin flechas */
@media (max-width: 767px) {
    .bl-home-djs {
        margin-bottom: 28px;
    }

    .bl-home-djs__arrow {
        display: none !important;
    }

    .bl-home-djs__track {
        gap: 12px;
    }

    /* 3 + peek 0.22 → / 3.22 · 2 gaps × 12 = 24 */
    .bl-home-djs__item {
        flex: 0 0 calc((100% - 24px) / 3.22);
        width: calc((100% - 24px) / 3.22);
        max-width: calc((100% - 24px) / 3.22);
    }

    .bl-home-djs__name {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bl-home-djs__track {
        transition: none;
    }
}
