/**
 * HScroll Elementor Widget - Estilos CSS
 */

.hscroll-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

.hscroll-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.hscroll-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.hscroll-section {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Ocultar barra de scroll nativa interna en las secciones si la hay */
.hscroll-section::-webkit-scrollbar {
    display: none;
}
.hscroll-section {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   Barra de Progreso
   ========================================================================== */
.hscroll-progress-bar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    overflow: hidden;
    z-index: 20;
    pointer-events: none;
}

.hscroll-progress-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 4px;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Bullets de Navegación
   ========================================================================== */
.hscroll-bullets {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
    padding: 10px;
}

.hscroll-wrapper.hscroll-pos-left .hscroll-bullets {
    left: 24px;
    right: auto;
}

.hscroll-wrapper.hscroll-pos-right .hscroll-bullets {
    right: 24px;
    left: auto;
}

.hscroll-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    outline: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hscroll-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.25);
}

.hscroll-bullet.is-active {
    background: #ffffff;
    transform: scale(1.35);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Paginación Numérica
   ========================================================================== */
.hscroll-pagination {
    position: absolute;
    top: 30px;
    z-index: 20;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    pointer-events: none;
}

.hscroll-wrapper.hscroll-pos-left .hscroll-pagination {
    left: 30px;
    right: auto;
}

.hscroll-wrapper.hscroll-pos-right .hscroll-pagination {
    right: 30px;
    left: auto;
}

.hscroll-page-current {
    font-size: 22px;
    font-weight: 700;
}

.hscroll-page-separator {
    opacity: 0.6;
    margin: 0 4px;
}

.hscroll-page-total {
    opacity: 0.75;
    font-size: 14px;
}

/* ==========================================================================
   Aviso de estado vacío en el editor de Elementor
   ========================================================================== */
.hscroll-empty-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 30px 20px;
    background: #0f172a;
    color: #94a3b8;
    border: 2px dashed #334155;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    margin: 15px 0;
}

/* ==========================================================================
   Desactivación en Móvil (Disable on Mobile)
   ========================================================================== */
@media (max-width: 767px) {
    .hscroll-wrapper.hscroll-disable-mobile,
    .hscroll-wrapper.is-mobile-disabled {
        height: auto !important;
        overflow: visible !important;
    }

    .hscroll-wrapper.hscroll-disable-mobile .hscroll-container,
    .hscroll-wrapper.is-mobile-disabled .hscroll-container {
        height: auto !important;
        overflow: visible !important;
    }

    .hscroll-wrapper.hscroll-disable-mobile .hscroll-track,
    .hscroll-wrapper.is-mobile-disabled .hscroll-track {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        transition: none !important;
    }

    .hscroll-wrapper.hscroll-disable-mobile .hscroll-section,
    .hscroll-wrapper.is-mobile-disabled .hscroll-section {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    .hscroll-wrapper.hscroll-disable-mobile .hscroll-bullets,
    .hscroll-wrapper.hscroll-disable-mobile .hscroll-pagination,
    .hscroll-wrapper.hscroll-disable-mobile .hscroll-progress-bar,
    .hscroll-wrapper.is-mobile-disabled .hscroll-bullets,
    .hscroll-wrapper.is-mobile-disabled .hscroll-pagination,
    .hscroll-wrapper.is-mobile-disabled .hscroll-progress-bar {
        display: none !important;
    }
}