/* Contenedor principal */
.futa360-wrapper {
    position: relative !important;
    width: 100%;
    font-family: system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

.futa360-wrapper *, 
.futa360-wrapper *::before, 
.futa360-wrapper *::after {
    box-sizing: border-box;
}

.futa360-scene-container {
    width: 100%;
    height: 650px;
    background-color: #000;
    position: relative;
}

/* ==========================================================================
   NAVBAR DE FILTROS (FORZADA ABAJO)
   ========================================================================== */
.futa360-wrapper .futa360-navbar {
    position: absolute !important;
    bottom: 15px !important;
    top: auto !important;
    left: 10px !important;
    right: 10px !important;
    width: calc(100% - 20px) !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    padding: 8px 12px !important;
    border-radius: 20px !important;
    backdrop-filter: blur(8px) !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.futa360-navbar::-webkit-scrollbar {
    display: none;
}
.futa360-navbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.futa360-btn-filter {
    background: #ffffff;
    color: #0f172a;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.futa360-btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .futa360-wrapper .futa360-navbar {
        bottom: 10px !important;
        top: auto !important;
        left: 8px !important;
        right: 8px !important;
        width: calc(100% - 16px) !important;
        justify-content: flex-start !important;
        padding: 6px 8px !important;
        gap: 6px !important;
        border-radius: 12px !important;
    }

    .futa360-btn-filter {
        padding: 5px 9px;
        font-size: 10px;
        border-radius: 8px;
        line-height: 1.2;
    }
}

/* ==========================================================================
   CONTROLES PANNELLUM Y HOTSPOTS
   ========================================================================== */
.pnm-controls {
    z-index: 1001 !important;
}

.pnm-hotspot.pnm-sprite,
.pnm-tooltip,
.pnm-tooltip span,
div.pnm-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 0 !important;
}

.futa360-hs-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 100;
    overflow: visible !important;
}

.futa360-hs-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 0.2s ease;
}

.futa360-hs-wrapper:hover .futa360-hs-dot {
    transform: scale(1.3);
}

.futa360-hs-pulse {
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border-radius: 50%;
    border: 2px solid;
    animation: futa360-pulse-anim 2s infinite;
    pointer-events: none;
    box-sizing: content-box;
}

@keyframes futa360-pulse-anim {
    0% { transform: scale(0.8); opacity: 1; }
    70% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}

.futa360-hs-label {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.futa360-hs-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.92) transparent transparent transparent;
}

.futa360-hs-wrapper:hover .futa360-hs-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}