/* Wrapper and Tabs Nav */
.pg-3b532506-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pg-3b532506-tabs-nav {
    display: flex;
    justify-content: center; /* override desde Elementor: control "Alineación" */
    gap: 15px;
    flex-wrap: wrap;
}

.pg-3b532506-tabs-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #E8E8E8;
}

.pg-3b532506-tab-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg-3b532506-tab-pane {
    display: none;
}

.pg-3b532506-tab-pane.active {
    display: block;
    animation: pg3b532506FadeIn 0.5s ease forwards;
}

@keyframes pg3b532506FadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Grid */
.pg-3b532506-grid {
    display: grid;
    column-gap: 30px;
    row-gap: 30px;
    grid-template-columns: repeat(4, 1fr);
}

/* Card */
.pg-3b532506-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    padding-top: 10px;
}

/* Promo Badge */
.pg-3b532506-promo-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #141436;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    z-index: 2;
    text-transform: uppercase;
    border-radius: 50px 0px 50px 50px;
}

/* Images (Hover Logic) */
.pg-3b532506-image-wrap {
    position: relative;
    width: 100%;
    padding: 10px 20px 20px;
    text-align: center;
    box-sizing: border-box;
}

.pg-3b532506-image-wrap a {
    display: block;
    position: relative;
}

.pg-3b532506-img-main {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.pg-3b532506-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pg-3b532506-image-wrap:hover .pg-3b532506-img-hover { opacity: 1; }
.pg-3b532506-image-wrap:hover .pg-3b532506-img-main  { opacity: 0; }
/* Fallback si no hay imagen hover */
.pg-3b532506-image-wrap:hover .pg-3b532506-img-main:only-child { opacity: 1; }

/* Content Area */
.pg-3b532506-card-content {
    padding: 0 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pg-3b532506-badge-wrap {
    min-height: 32px;
    margin-bottom: 12px;
}

.pg-3b532506-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1px solid #eee;
}

.pg-3b532506-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.pg-3b532506-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Meta (Price + Button) */
.pg-3b532506-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
}

.pg-3b532506-price {
    font-size: 20px;
    font-weight: 400;
    color: #333;
}
.pg-3b532506-price del {
    font-size: 14px;
    color: #999;
    margin-right: 5px;
}
.pg-3b532506-price ins { text-decoration: none; }

/* Button */
.pg-3b532506-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #FCD774;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

/* hover controlado desde Elementor (tab_button_hover) */

.pg-3b532506-btn svg,
.pg-3b532506-btn i { display: inline-block; }

.pg-3b532506-btn.loading { opacity: 0.7; cursor: wait; }
.pg-3b532506-btn.added::after { display: none; }

/* Barra de progreso carrusel (oculta en desktop) */
.pg-3b532506-carousel-track {
    display: none;
}

/* Tablet */
@media (max-width: 1024px) {
    .pg-3b532506-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Mobile — carrusel horizontal */
@media (max-width: 767px) {
    /* El grid pasa a flex horizontal con scroll */
    .pg-3b532506-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        grid-template-columns: unset !important;
        /* justify-content: center en un scroll flex cortaría el inicio — forzar start */
        justify-content: flex-start !important;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
        padding-left: var(--pg-mobile-carousel-offset, 0px);
        scroll-padding-left: var(--pg-mobile-carousel-offset, 0px);
        box-sizing: border-box;
    }

    .pg-3b532506-grid::-webkit-scrollbar {
        display: none;
    }

    /* Tarjetas con ancho fijo configurable y alto automático */
    .pg-3b532506-card {
        flex: 0 0 var(--pg-mobile-card-width, 281px) !important;
        width: var(--pg-mobile-card-width, 281px) !important;
        min-width: var(--pg-mobile-card-width, 281px);
        height: auto;
        scroll-snap-align: start;
    }

    .pg-3b532506-card-content { padding: 0 20px 20px; }

    /* Tabs nav permanece en fila en mobile */
    .pg-3b532506-tabs-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    /* Barra de progreso del carrusel */
    .pg-3b532506-carousel-track {
        display: block;
        margin-top: 16px;
    }

    .pg-3b532506-carousel-bar {
        height: 3px;
        background-color: #E0E0E0;
        border-radius: 3px;
        position: relative;
    }

    .pg-3b532506-carousel-progress {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background-color: #141436;
        border-radius: 3px;
        width: 30%;
        transition: left 0.15s ease, width 0.15s ease;
    }
}
