/* ─── WooCommerce Accordion Slider — frontend ──────────────────────────── */

.was-slider {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 6px 28px rgba(0,0,0,.35);
}

.was-panels {
    position: absolute;
    inset: 0;
    background: #111;
}

.was-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}
.was-panel.was-active {
    opacity: 1;
    pointer-events: auto;
}

.was-panel-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
}
.was-panel.was-active .was-panel-img {
    transform: scale(1.03);
}
.was-panel-empty { background: #1a1a2e; }

/* ── Barra de progreso automático ────────────────────────────────────── */
.was-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: rgba(255,255,255,.85);
    z-index: 30;
    transition: none;
}
.was-progress.was-running {
    transition: width linear;
    width: 100%;
}

/* ── Tiras de pestañas flotando sobre la imagen ───────────────────────── */
.was-tabs {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    z-index: 20;
    pointer-events: none;
}
.was-tabs-left  { left:  0; }
.was-tabs-right { right: 0; }

/* ── Pestaña = columna delgada ───────────────────────────────────────── */
.was-tab {
    position: relative;
    width: 42px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    pointer-events: auto;
    flex-shrink: 0;
    opacity: .78;
    transition: opacity .25s ease, filter .25s ease;
    outline: none;
}
.was-tab.was-active,
.was-tab:hover {
    opacity: 1;
    filter: brightness(1.18);
}
.was-tab:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.8);
}

/* Miniatura de imagen como fondo semitransparente */
.was-tab-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .2;
    transition: opacity .3s;
}
.was-tab.was-active .was-tab-thumb,
.was-tab:hover       .was-tab-thumb { opacity: .45; }

/* Texto vertical */
.was-tab-label {
    position: relative;
    z-index: 2;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    padding: 6px 0;
    text-shadow: 0 1px 6px rgba(0,0,0,.95);
    white-space: nowrap;
    overflow: hidden;
    max-height: 85%;
    opacity: .65;
    transition: opacity .3s;
    pointer-events: none;
}
.was-tab.was-active .was-tab-label,
.was-tab:hover       .was-tab-label { opacity: 1; }

.was-tabs-left .was-tab-label { transform: rotate(180deg); }

/* Separadores entre columnas */
.was-tabs-left  .was-tab + .was-tab { border-right: 1px solid rgba(255,255,255,.12); }
.was-tabs-right .was-tab + .was-tab { border-left:  1px solid rgba(255,255,255,.12); }

/* Línea indicadora activa */
.was-tab::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 3px;
    background: rgba(255,255,255,.95);
    transform: scaleY(0);
    transition: transform .35s ease;
}
.was-tabs-left  .was-tab::before { right: 0; left: auto; }
.was-tabs-right .was-tab::before { left:  0; right: auto; }
.was-tab.was-active::before { transform: scaleY(1); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .was-tabs {
        flex-direction: row;
        top: auto; left: 0 !important; right: 0 !important;
        width: 100% !important; height: 46px;
    }
    .was-tabs-left  { bottom: 46px; }
    .was-tabs-right { bottom: 0; }
    .was-tab { flex: 1; width: auto !important; height: 46px; }
    .was-tab-label { writing-mode: horizontal-tb !important; transform: none !important; font-size: .55rem; }
    .was-tab::before { top: 0; bottom: auto; left: 0; right: 0; width: 100%; height: 3px; }
}
