/* =========================================
   BASE & WRAP
========================================= */
.gx-hotspots-section {
    width: 100%;
    padding: 1rem 0;
    background: #fff;
    overflow: visible;
    position: relative;
}

.gx-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =========================================
   IMAGE CONTAINER
========================================= */
.gx-hotspots-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
}

.gx-main-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.gx-points-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* =========================================
   HOTSPOT TRIGGER
========================================= */
.gx-hotspot-item {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    z-index: 10;
}

.gx-hotspot-item:hover {
    z-index: 50;
}

.gx-p-trigger {
    width: 36px;
    height: 36px;
    background: #1C244B;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
    position: relative;
    z-index: 2;
}

.gx-p-trigger:hover {
    transform: scale(1.15);
    background: #16549D;
}

.gx-p-icon {
    font-weight: 700;
    font-size: 20px;
}

.gx-p-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #1C244B;
    opacity: 0.6;
    z-index: -1;
    animation: gxPulse 2s infinite;
}

@keyframes gxPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* =========================================
   PRECIO ORIGINAL
========================================= */
.gx-tooltip-price-original,
.gx-sheet-price-original {
    font-size: 0.95rem;
    color: #6B7280;
    text-decoration: line-through;
    margin-bottom: 6px;
    font-weight: 600;
}

/* =========================================
   BADGE AZUL
========================================= */
.gx-tooltip-badge,
.gx-sheet-badge {
    background: #1C244B;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin: 6px 0 18px;
    line-height: 1.4;
}

/* =========================================
   DESKTOP TOOLTIP
========================================= */
@media (min-width: 769px) {

    .gx-desktop-tooltip {
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 280px;
        background: #fff;
        padding: 24px 22px;
        border-radius: 12px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        text-align: center;
        pointer-events: none;
        z-index: 100;
    }

    .gx-hotspot-item:hover .gx-desktop-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    .pos-left .gx-desktop-tooltip {
        left: 0;
        transform: translateX(15px) translateY(10px);
    }

    .pos-left:hover .gx-desktop-tooltip {
        transform: translateX(15px) translateY(0);
    }

    .pos-right .gx-desktop-tooltip {
        right: 0;
        left: auto;
        transform: translateX(-15px) translateY(10px);
    }

    .pos-right:hover .gx-desktop-tooltip {
        transform: translateX(-15px) translateY(0);
    }

    /* Tooltip hacia abajo cuando el hotspot está en el tercio superior */
    .pos-top .gx-desktop-tooltip {
        bottom: auto;
        top: 50px;
        transform: translateX(-50%) translateY(-10px);
    }

    .pos-top:hover .gx-desktop-tooltip {
        transform: translateX(-50%) translateY(0);
    }

    .pos-top.pos-left .gx-desktop-tooltip {
        left: 0;
        transform: translateX(15px) translateY(-10px);
    }

    .pos-top.pos-left:hover .gx-desktop-tooltip {
        transform: translateX(15px) translateY(0);
    }

    .pos-top.pos-right .gx-desktop-tooltip {
        right: 0;
        left: auto;
        transform: translateX(-15px) translateY(-10px);
    }

    .pos-top.pos-right:hover .gx-desktop-tooltip {
        transform: translateX(-15px) translateY(0);
    }

    .gx-tooltip-title {
        font-weight: 800;
        color: #1C244B;
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

    .gx-tooltip-desc {
        font-size: 0.9rem;
        color: #555;
        margin-bottom: 14px;
    }

    .gx-tooltip-price {
        font-size: 1.15rem;
        font-weight: 800;
        color: #E63946;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .gx-tooltip-btn {
        display: inline-block;
        background: #1C244B;
        color: #fff;
        padding: 8px 18px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.8rem;
    }

    .gx-mobile-overlay,
    .gx-bottom-sheet {
        display: none;
    }
}

/* =========================================
   MOBILE BOTTOM SHEET
========================================= */
@media (max-width: 768px) {

    .gx-desktop-tooltip {
        display: none;
    }

    .gx-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
    }

    .gx-mobile-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

    .gx-bottom-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-radius: 25px 25px 0 0;
        z-index: 9999;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding-bottom: 30px;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    }

    .gx-bottom-sheet.is-active {
        transform: translateY(0);
    }

    .gx-sheet-content {
        padding: 0 25px 10px;
        text-align: center;
    }

    .gx-sheet-title {
        font-size: 1.5rem;
        font-weight: 800;
        color: #1C244B;
        margin-bottom: 10px;
    }

    .gx-sheet-desc {
        font-size: 1rem;
        color: #555;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .gx-sheet-price {
        font-size: 1.3rem;
        font-weight: 800;
        color: #E63946;
        margin-bottom: 12px;
    }

    .gx-sheet-btn {
        display: block;
        width: 100%;
        text-align: center;
        background: #1C244B;
        color: #fff;
        padding: 15px;
        border-radius: 12px;
        font-weight: 700;
        text-decoration: none;
        font-size: 1.1rem;
    }

    /* Sheet header */
    .gx-sheet-header {
        display: flex;
        align-items: center;
        padding: 14px 16px 6px;
        position: relative;
    }

    .gx-sheet-drag-area {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .gx-sheet-pill {
        width: 44px;
        height: 5px;
        background: #D1D5DB;
        border-radius: 999px;
    }

    .gx-sheet-drag-hint {
        font-size: 0.68rem;
        color: #9CA3AF;
        letter-spacing: 0.02em;
    }

    .gx-sheet-close {
        position: absolute;
        right: 16px;
        top: 14px;
        background: #F3F4F6;
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        font-size: 14px;
        cursor: pointer;
        color: #6B7280;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-appearance: none;
        font-family: inherit;
    }

    .gx-sheet-close:active {
        background: #E5E7EB;
    }
}

/* =========================================
   SISTEMA GLOBAL: BANNSEP (UNIFICADO)
========================================= */

.bannsep-container {
    padding: 0 0 2rem 0;
}

.bannsep-inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.bannsep-container.is-left  .bannsep-inner { justify-content: flex-start; }
.bannsep-container.is-center .bannsep-inner { justify-content: center; }
.bannsep-container.is-right .bannsep-inner { justify-content: flex-end; }

.bannsep-box {
    border: 2px solid #1C244B;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1C244B;
    background: #fff;

    white-space: normal;
    max-width: 500px;
    width: 100%;
    flex-shrink: 0;

    line-height: 1.2; /* 🔒 hard fix */
}

.bannsep-title {
    line-height: 1.2;
    display: block;
    white-space: normal;
    word-break: break-word;
}

.bannsep-line {
    flex: 1;
    height: 2px;
    background-color: #1C244B;
    min-width: 20px;
}


/* =========================================
   TABS NAV (V2)
========================================= */

.gx-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 2rem;
}

.gx-tab-btn {
    padding: 10px 24px;
    border-radius: 999px;
    border: 2px solid #1C244B;
    background: #fff;
    color: #1C244B;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.gx-tab-btn:hover {
    background: #f0f2f7;
    transform: translateY(-1px);
}

.gx-tab-btn.is-active {
    background: #1C244B;
    color: #fff;
    box-shadow: 0 6px 16px rgba(28, 36, 75, 0.25);
}

/* =========================================
   TABS PANELS (fade transition)
========================================= */

.gx-tabs-content {
    position: relative;
}

.gx-tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gx-tab-panel.is-active {
    display: block;
    opacity: 1;
    animation: gxFadeIn 0.4s ease;
}

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

/* =========================================
   MOBILE CLUSTERS
========================================= */
@media (max-width: 768px) {

    .gx-hotspots-container {
        overflow: visible;
    }

    .gx-in-cluster {
        display: none;
    }

    /* Visual 28px — área táctil 44px vía ::before (estándar HIG Apple) */
    .gx-p-trigger {
        width: 28px;
        height: 28px;
    }

    .gx-p-trigger::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 44px;
        height: 44px;
        border-radius: 50%;
    }

    .gx-p-icon {
        font-size: 14px;
    }

    .gx-p-trigger:active {
        transform: scale(0.88);
        background: #16549D;
    }

    .gx-cluster-item {
        position: absolute;
        transform: translate(-50%, -50%);
        pointer-events: auto;
        z-index: 20;
    }

    .gx-cluster-trigger {
        width: 28px;
        height: 28px;
        background: #16549D;
        color: #fff;
        border-radius: 50%;
        border: 2px solid #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
        position: relative;
        z-index: 2;
        font-family: inherit;
        -webkit-appearance: none;
        transition: transform 0.15s ease;
    }

    .gx-cluster-trigger::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 44px;
        height: 44px;
        border-radius: 50%;
    }

    .gx-cluster-trigger:active {
        transform: scale(0.88);
    }

    .gx-cluster-count {
        font-weight: 800;
        font-size: 12px;
        line-height: 1;
    }

    /* Picker container — solo posición y pointer-events */
    .gx-cluster-picker {
        position: absolute;
        bottom: calc(100% + 12px);
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        gap: 6px;
        pointer-events: none;
        z-index: 30;
    }

    .gx-cluster-item.picker-down .gx-cluster-picker {
        bottom: auto;
        top: calc(100% + 12px);
    }

    .gx-cluster-item.is-open .gx-cluster-picker {
        pointer-events: auto;
    }

    /* Cada pill anima por separado (stagger) */
    .gx-cluster-opt {
        background: #1C244B;
        color: #fff;
        border: none;
        padding: 9px 16px;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
        font-family: inherit;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
        -webkit-appearance: none;
        text-align: center;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.1s ease;
    }

    /* picker-down: pills caen desde arriba */
    .gx-cluster-item.picker-down .gx-cluster-opt {
        transform: translateY(-8px);
    }

    .gx-cluster-item.is-open .gx-cluster-opt {
        opacity: 1;
        transform: translateY(0);
    }

    .gx-cluster-item.is-open .gx-cluster-opt:nth-child(1) { transition-delay: 0ms; }
    .gx-cluster-item.is-open .gx-cluster-opt:nth-child(2) { transition-delay: 65ms; }
    .gx-cluster-item.is-open .gx-cluster-opt:nth-child(3) { transition-delay: 130ms; }
    .gx-cluster-item.is-open .gx-cluster-opt:nth-child(4) { transition-delay: 195ms; }

    .gx-cluster-opt:active {
        background: #16549D;
        transform: scale(0.95) !important;
    }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {
    .gx-tabs-nav {
        gap: 6px;
    }
    .gx-tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}