/* Virtual Tour 360° Styles */

.virtual-tour-section {
    background: #f8f9fa;
    padding: 2.5rem 0;
    position: relative;
}

.virtual-tour-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.virtual-tour-header {
    text-align: center;
    margin-bottom: 2rem;
}

.virtual-tour-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.virtual-tour-header p {
    font-size: 1rem;
    color: #718096;
    margin: 0;
}

.virtual-tour-viewer {
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#panorama {
    width: 100%;
    height: 600px;
}

/* Controles personalizados */
.tour-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tour-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tour-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tour-btn.home-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tour-btn.home-btn:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

.tour-btn.fullscreen-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Información de escena */
.scene-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    z-index: 1000;
    max-width: 300px;
}

.scene-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.scene-info p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Indicador de carga */
.tour-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 999;
}

.tour-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hotspots personalizados */
.custom-hotspot {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.custom-hotspot:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.custom-hotspot.info-hotspot {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Tooltip de hotspot */
.hotspot-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1001;
    transform: translate(-50%, -120%);
}

/* Modal de información */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.info-modal.active {
    display: flex;
}

.info-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.info-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #f1f3f5;
    color: #495057;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.info-modal-close:hover {
    background: #e9ecef;
    transform: rotate(90deg);
}

/* Navegación de escenas */
.scene-navigation {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.scene-nav-item {
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.scene-nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.scene-nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive */
@media (max-width: 768px) {
    #panorama {
        height: 400px;
    }
    
    .tour-controls {
        bottom: 10px;
        padding: 10px 15px;
        gap: 8px;
    }
    
    .tour-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .scene-info {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 10px 15px;
    }
    
    .scene-info h3 {
        font-size: 1rem;
    }
    
    .scene-info p {
        font-size: 0.85rem;
    }
    
    .scene-navigation {
        display: none;
    }
    
    .virtual-tour-header h2 {
        font-size: 1.5rem;
    }
}
