/**
 * HOME HERO SLIDER
 * Loaded only on the front page via wp_enqueue_style in functions.php.
 *
 * @since 1.2.0
 */

/* Ocultar cursor nativo sobre el slider */
.home-hero-slider {
    cursor: none;
}

/* ── Ocultar slides 2-5 desde CSS antes de que el JS se ejecute ─────────
   Solo ocultamos visualmente con transform. El JS gestiona pointer-events
   completamente para evitar conflictos con el slide activo.              */
.home-hero-slider .kb-query-grid-wrap {
    position: relative;
    overflow: hidden;
}
.home-hero-slider .kb-query-item:not(:first-child) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
}

/* ── Dot navigation ─────────────────────────────────────────────────────── */
.hs-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 0 0 0;
}
.hs-dot {
    appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hs-dot::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--caminos-color-gris);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.hs-dot.is-active::before {
    background-color: var(--caminos-color-negro);
    transform: scale(1.4);
}
.hs-dot:hover::before {
    background-color: var(--caminos-color-oscuro);
}
button.hs-dot:hover,
button.hs-dot:active,
button.hs-dot:focus{
    background-color: transparent;
}

/* ── Custom cursor ───────────────────────────────────────────────────────── */
.hs-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 85px;
    height: 85px;
    pointer-events: none;
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: transform;
}
.hs-cursor.is-visible {
    opacity: 1;
}
.hs-cursor img {
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease;
}

/* En móvil no hay hover: restaurar cursor y ocultar el custom */
@media (max-width: 767px) {
    .home-hero-slider {
        cursor: auto;
    }
    .hs-cursor {
        display: none;
    }
}
