/* ============================================================
   JGB Product Tabs — jgb-product-tabs.css  v1.3
   ============================================================ */

.jgb-product-tabs {
    --jgb-font:         "JGBSANS", Sans-serif;
    --jgb-blue:         #0970ED;
    --jgb-pulse:        #3EBCFF;
    --jgb-nav-bg:       rgba(234, 248, 255, 1);
    --jgb-text-dark:    #2D2D2D;
    --jgb-tab-active:   #0970ED;
    --jgb-tab-inactive: #8EAFC9;
    --jgb-transition:   0.40s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Layout ─────────────────────────────────────────────────── */
.jgb-product-tabs {
    display: grid;
    grid-template-columns: 1fr 340px 280px;
    min-height: 460px;
    position: relative;
    overflow: visible;
    font-family: var(--jgb-font) !important;
    width: 100%;
    align-items: stretch;
}

/* ── Col 1: Contenido ───────────────────────────────────────── */
.jgb-pt-content {
    grid-column: 1;
    display: grid;
    align-items: center;
    /* padding: 48px 40px 48px 0; */
    position: relative;
    z-index: 2;
}

.jgb-pt-panel {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition:
        opacity var(--jgb-transition),
        transform var(--jgb-transition),
        visibility 0s linear var(--jgb-transition);
}

.jgb-pt-panel.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        opacity var(--jgb-transition),
        transform var(--jgb-transition),
        visibility 0s linear 0s;
}

.jgb-pt-title {
    font-family: var(--jgb-font) !important;
    font-size: clamp(1.4rem, 2.2vw, 2rem) !important;
    font-weight: 700;
    color: var(--jgb-text-dark) !important;
    line-height: 1.2;
    margin: 0;
}

.jgb-pt-body,
.ewa-rteLine {
    font-family: var(--jgb-font) !important;
    font-size: 14px !important;
    font-weight: 400;
    color: var(--jgb-text-dark) !important;
    line-height: 1.7;
    margin: 0;
}

.jgb-pt-body p           { margin: 0 0 0.75em; color: var(--jgb-text-dark) !important; }
.jgb-pt-body p:last-child { margin-bottom: 0; }
.jgb-pt-body ul          { padding-left: 1.2em; margin: 0; }
.jgb-pt-body li          { margin-bottom: 0.4em; }

/* ── Col 2: Imagen + Pulse ──────────────────────────────────── */
.jgb-pt-image-wrap {
    grid-column: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    margin-right: -80px;
}

.jgb-pt-pulse-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.jgb-pt-pulse-ring::before,
.jgb-pt-pulse-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62,188,255,0.22) 0%, rgba(62,188,255,0.08) 55%, transparent 80%);
    animation: jgb-pulse 2.8s ease-in-out infinite;
    will-change: transform, opacity;
}

.jgb-pt-pulse-ring::after {
    inset: -36px;
    background: radial-gradient(circle, rgba(62,188,255,0.12) 0%, rgba(62,188,255,0.04) 60%, transparent 80%);
    animation-delay: 1.4s;
}

@keyframes jgb-pulse {
    0%   { transform: scale(0.88); opacity: 0.4; }
    50%  { transform: scale(1.12); opacity: 1;   }
    100% { transform: scale(0.88); opacity: 0.4; }
}

.jgb-pt-image {
    position: relative;
    z-index: 2;
    width: auto;
    /* max-width: 260px!important; */
    max-width: 280px!important;
    max-height: 380px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.13));
    transition: filter 0.4s ease;
}

.jgb-pt-image:hover {
    filter: drop-shadow(0 16px 40px rgba(62,188,255,0.30));
}

.jgb-pt-image-placeholder {
    width: 260px; height: 260px;
    background: rgba(62,188,255,0.08);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

/* ── Col 3: Nav de tabs ─────────────────────────────────────── */
.jgb-pt-nav {
    grid-column: 3;
    background: var(--jgb-nav-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px 48px 56px;
    position: relative;
    z-index: 3;
    overflow: visible;
}

/* Línea vertical — izquierda, alineada con centro del dot (56px padding - 6px radio dot - 1px = ~49px) */
.jgb-pt-nav-line {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    z-index: 1;
}

.jgb-pt-nav-line-track {
    width: 100%; height: 100%;
    background: rgba(9,112,237,0.18);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.jgb-pt-nav-line-fill {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 33.333%;
    background: var(--jgb-blue);
    border-radius: 2px;
    transition: top var(--jgb-transition);
}

.jgb-product-tabs[data-active="0"] .jgb-pt-nav-line-fill { top: 0;       }
.jgb-product-tabs[data-active="1"] .jgb-pt-nav-line-fill { top: 33.333%; }
.jgb-product-tabs[data-active="2"] .jgb-pt-nav-line-fill { top: 66.666%; }

/* ── Reset estilos del theme ────────────────────────────────── */
.jgb-pt-tab,
.jgb-pt-tab:hover,
.jgb-pt-tab:focus,
.jgb-pt-tab:active,
.jgb-pt-tab.is-active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    outline: none;
    text-decoration: none !important;
}

/* Dot izquierda, label derecha */
.jgb-pt-tab {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    cursor: pointer;
    padding: 18px 0;
    font-family: var(--jgb-font) !important;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem) !important;
    font-weight: 400;
    color: var(--jgb-tab-inactive) !important;
    text-align: left;
    width: 100%;
    transition: color var(--jgb-transition) !important;
    position: relative;
    z-index: 6;
    line-height: 1;
}

.jgb-pt-tab.is-active {
    color: var(--jgb-tab-active) !important;
    font-weight: 700 !important;
}

.jgb-pt-tab-dot {
    width: 12px; height: 12px;
    border-radius: 50% !important;
    background: var(--jgb-tab-inactive);
    flex-shrink: 0;
    order: -1;                  /* siempre primero (izquierda) */
    transition:
        background var(--jgb-transition),
        transform var(--jgb-transition),
        box-shadow var(--jgb-transition);
    position: relative;
    z-index: 7;
    display: block !important;
}

.jgb-pt-tab.is-active .jgb-pt-tab-dot {
    background: var(--jgb-blue) !important;
    transform: scale(1.45);
    box-shadow: 0 0 0 4px rgba(9,112,237,0.16) !important;
}

.jgb-pt-tab-label {
    flex: 1;
    transition: transform var(--jgb-transition);
}

.jgb-pt-tab.is-active .jgb-pt-tab-label {
    transform: translateX(3px);
}

.jgb-pt-tab:hover:not(.is-active) { color: #4A90C4 !important; }
.jgb-pt-tab:hover:not(.is-active) .jgb-pt-tab-dot {
    background: #4A90C4 !important;
    transform: scale(1.2);
}

.jgb-pt-tab:focus-visible {
    outline: 2px solid var(--jgb-blue) !important;
    outline-offset: 4px;
    border-radius: 4px !important;
}

/* ── Tablet ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .jgb-product-tabs  { grid-template-columns: 1fr 240px 220px; min-height: 400px; }
    .jgb-pt-image      { max-width: 200px; max-height: 320px; }
    .jgb-pt-pulse-ring { width: 220px; height: 220px; }
    .jgb-pt-image-wrap { margin-right: -60px; }
    .jgb-pt-nav        { padding: 40px 32px 40px 48px; }
    .jgb-pt-nav-line   { left: 52px; }
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .jgb-product-tabs {
        display: flex;
        flex-direction: column;
        min-height: unset;
        overflow: hidden;
    }

    .jgb-pt-content { display: block; padding: 28px 24px 40px; overflow: visible; }

    .jgb-pt-panel {
        display: none;
        opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    }
    .jgb-pt-panel.is-active {
        display: flex;
        animation: jgb-mob-in 0.35s ease forwards;
    }
    @keyframes jgb-mob-in {
        from { opacity: 0; transform: translateY(10px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .jgb-pt-nav {
        order: 1;
        flex-direction: row;
        padding: 0;
        background: var(--jgb-nav-bg);
        border-bottom: 2px solid rgba(9,112,237,0.12);
        overflow-x: auto;
        scrollbar-width: none;
        z-index: 2;
    }
    .jgb-pt-nav::-webkit-scrollbar { display: none; }
    .jgb-pt-nav-line { display: none; }

    .jgb-pt-tab,
    .jgb-pt-tab:hover,
    .jgb-pt-tab:active,
    .jgb-pt-tab.is-active {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px;
        padding: 14px 16px !important;
        flex: 1;
        min-width: 100px;
        font-size: 0.82rem !important;
        border-bottom: 3px solid transparent !important;
        border-radius: 0 !important;
        transition: border-color var(--jgb-transition), color var(--jgb-transition) !important;
        z-index: 2;
    }

    .jgb-pt-tab.is-active {
        border-bottom: 3px solid var(--jgb-blue) !important;
        color: var(--jgb-blue) !important;
    }

    .jgb-pt-tab-dot { display: none !important; }
    .jgb-pt-tab.is-active .jgb-pt-tab-label { transform: none; }

    .jgb-pt-image-wrap { order: 2; margin: 0; padding: 28px 0 12px; justify-content: center; }
    .jgb-pt-image      { max-width: 180px; max-height: 260px; }
    .jgb-pt-pulse-ring { width: 190px; height: 190px; }
    .jgb-pt-content    { order: 3; }
    .jgb-pt-title      { font-size: 1.3rem !important; }
}

@media (max-width: 480px) {
    .jgb-pt-tab     { font-size: 0.75rem !important; padding: 12px 10px !important; min-width: 85px; }
    .jgb-pt-content { padding: 20px 16px 32px; }
    .jgb-pt-image   { max-width: 160px; max-height: 230px; }
}

@media (min-width: 1024px)  {
    .jgb-pt-content {
        padding-left: 30px;
    }
}

 